Skip to content

Commit f5b5f4c

Browse files
committed
Review Webhooks, Subscriptions, Labels & Masspayments
1 parent 6c087fd commit f5b5f4c

28 files changed

+683
-830
lines changed

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dwolla-openapi.iml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"yaml.schemas": {
3+
"swaggerviewer:openapi": "file:///Users/sthapa/Documents/Projects/DevRel/dwolla-openapi/specs/spec.yml"
4+
},
5+
"swaggerViewer.previewInBrowser": true
6+
}

specs/resources/labels/createLabelReallocation.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
post:
22
tags:
33
- labels
4-
summary: Create label reallocation
5-
description: Create label reallocation
6-
operationId: createLabelReallocation
4+
summary: Create a label reallocation
5+
description: Create a label reallocation
6+
operationId: createReallocation
77
requestBody:
88
description: Parameters to create a label reallocation
99
content:
@@ -17,23 +17,27 @@ post:
1717
_links:
1818
type: object
1919
properties:
20-
source:
20+
from:
2121
type: object
2222
properties:
2323
href:
2424
type: string
25-
description:
25+
example: https://api-sandbox.dwolla.com/labels/c91c501c-f49b-48be-a93b-12b45e152d45
26+
to:
2627
type: object
2728
properties:
2829
href:
2930
type: string
31+
example: https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc
3032
amount:
3133
type: object
3234
properties:
3335
currency:
3436
type: string
37+
example: '15.00'
3538
value:
3639
type: string
40+
example: USD
3741
responses:
3842
'201':
3943
description: created

specs/resources/labels/createListCustomerLabel.yml

+20-83
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,26 @@ get:
33
- labels
44
summary: List labels for a customer
55
description: List labels for a customer
6-
operationId: listCustomerLabels
6+
operationId: listLabelsForCustomer
77
parameters:
88
- name: id
99
in: path
1010
description: ID of customer
1111
required: true
1212
schema:
1313
type: string
14-
requestBody:
15-
description: Parameters to filter customer labels
16-
content:
17-
application/json:
18-
type: object
19-
properties:
20-
limit:
21-
type: integer
22-
offset:
23-
type: integer
14+
- name: limit
15+
in: query
16+
description: How many results to return
17+
required: false
18+
schema:
19+
type: string
20+
- name: offset
21+
in: query
22+
description: How many results to skip
23+
required: false
24+
schema:
25+
type: string
2426
responses:
2527
'200':
2628
description: success operation
@@ -87,88 +89,21 @@ get:
8789
labels:
8890
type: array
8991
items:
90-
type: object
91-
properties:
92-
_links:
93-
type: object
94-
properties:
95-
self:
96-
type: object
97-
properties:
98-
href:
99-
type: string
100-
example: https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc
101-
type:
102-
type: string
103-
example: application/vnd.dwolla.v1.hal+json
104-
resource-type:
105-
type: string
106-
example: label
107-
update:
108-
type: object
109-
properties:
110-
href:
111-
type: string
112-
example: https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc/ledger-entries
113-
type:
114-
type: string
115-
example: application/vnd.dwolla.v1.hal+json
116-
resource-type:
117-
type: string
118-
example: ledger-entry
119-
ledger-entries:
120-
type: object
121-
properties:
122-
href:
123-
type: string
124-
example: https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc/ledger-entries
125-
type:
126-
type: string
127-
example: application/vnd.dwolla.v1.hal+json
128-
resource-type:
129-
type: string
130-
example: ledger-entry
131-
customer:
132-
type: object
133-
properties:
134-
href:
135-
type: string
136-
example: https://api-sandbox.dwolla.com/customers/315a9456-3750-44bf-8b41-487b10d1d4bb
137-
type:
138-
type: string
139-
example: application/vnd.dwolla.v1.hal+json
140-
resource-type:
141-
type: string
142-
example: customer
143-
id:
144-
type: string
145-
example: 7e042ffe-e25e-40d2-b86e-748b98845ecc
146-
created:
147-
type: string
148-
example: 2019-05-15T22:19:09.635Z
149-
amount:
150-
type: object
151-
properties:
152-
value:
153-
type: string
154-
example: 5.00
155-
currency:
156-
type: string
157-
example: USD
92+
$ref: './retrieveRemoveLabel.yml#/components/schemas/RetrieveLabelResponse'
15893
total:
15994
type: integer
16095
format: int32
16196
example: 1
16297
post:
16398
tags:
16499
- labels
165-
summary: Create labels for a customer
166-
description: Create labels for a customer
167-
operationId: createCustomerLabel
100+
summary: Create a label for a customer
101+
description: Create a label for a customer
102+
operationId: createForCustomer
168103
parameters:
169104
- name: id
170105
in: path
171-
description: ID of customer
106+
description: ID of customer to create a label for
172107
required: true
173108
schema:
174109
type: string
@@ -186,8 +121,10 @@ post:
186121
properties:
187122
currency:
188123
type: string
124+
example: 12.34
189125
value:
190126
type: string
127+
example: USD
191128
responses:
192129
'201':
193130
description: create

specs/resources/labels/createlistLabelLedgerEntry.yml

+15-56
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,26 @@ get:
33
- labels
44
summary: List label ledger entries
55
description: List label ledger entries
6-
operationId: listLabelLedgerEntries
6+
operationId: listLedgerEntries
77
parameters:
88
- name: id
99
in: path
1010
description: A label unique identifier
1111
required: true
1212
schema:
1313
type: string
14-
requestBody:
15-
description: Parameters to filter label ledge entries by
16-
content:
17-
application/json:
18-
type: object
19-
properties:
20-
limit:
21-
type: integer
22-
offset:
23-
type: integer
14+
- name: limit
15+
in: query
16+
description: How many results to return
17+
required: false
18+
schema:
19+
type: string
20+
- name: offset
21+
in: query
22+
description: How many results to skip
23+
required: false
24+
schema:
25+
type: string
2426
responses:
2527
'200':
2628
description: successful operation
@@ -75,54 +77,11 @@ get:
7577
ledger-entries:
7678
type: array
7779
items:
78-
type: object
79-
properties:
80-
_links:
81-
type: object
82-
properties:
83-
self:
84-
type: object
85-
properties:
86-
href:
87-
type: string
88-
example: https://api-sandbox.dwolla.com/ledger-entries/32d68709-62dd-43d6-a6df-562f4baec526
89-
type:
90-
type: string
91-
example: application/vnd.dwolla.v1.hal+json
92-
resource-type:
93-
type: string
94-
example: ledger-entry
95-
label:
96-
type: object
97-
properties:
98-
href:
99-
type: string
100-
example: https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc
101-
type:
102-
type: string
103-
example: application/vnd.dwolla.v1.hal+json
104-
resource-type:
105-
type: string
106-
example: label
107-
id:
108-
type: string
109-
example: 32d68709-62dd-43d6-a6df-562f4baec526
110-
amount:
111-
type: object
112-
properties:
113-
value:
114-
type: string
115-
example: -5.00
116-
currency:
117-
type: string
118-
example: USD
119-
created:
120-
type: string
121-
example: 2019-05-16T01:54:58.062Z
80+
$ref: './retrieveLabelLedgerEntry.yml#/components/schemas/RetrieveLabelLedgerEntryResponse'
12281
total:
12382
type: integer
12483
format: int32
125-
example: 2
84+
example: 1
12685
post:
12786
tags:
12887
- labels

0 commit comments

Comments
 (0)