|
8 | 8 | servers:
|
9 | 9 | - url: 'https://account-servicing-entity.com/webhooks'
|
10 | 10 | webhooks:
|
| 11 | + incomingPaymentCreated: |
| 12 | + post: |
| 13 | + requestBody: |
| 14 | + description: Notify account servicing entity that an incoming payment was created. |
| 15 | + content: |
| 16 | + application/json: |
| 17 | + schema: |
| 18 | + $ref: '#/components/schemas/incomingPaymentEvent' |
| 19 | + responses: |
| 20 | + '200': |
| 21 | + description: Returns a 200 status to indicate that the data was received successfully. |
11 | 22 | incomingPaymentCompleted:
|
12 | 23 | post:
|
13 | 24 | requestBody:
|
@@ -148,9 +159,9 @@ components:
|
148 | 159 | completed:
|
149 | 160 | type: boolean
|
150 | 161 | incomingAmount:
|
151 |
| - $ref: ./schemas.yaml#/components/schemas/amount |
| 162 | + $ref: '#/components/schemas/amount' |
152 | 163 | receivedAmount:
|
153 |
| - $ref: ./schemas.yaml#/components/schemas/amount |
| 164 | + $ref: '#/components/schemas/amount' |
154 | 165 | metadata:
|
155 | 166 | type: object
|
156 | 167 | additionalProperties: true
|
@@ -214,9 +225,9 @@ components:
|
214 | 225 | type: string
|
215 | 226 | format: uri
|
216 | 227 | debitAmount:
|
217 |
| - $ref: ./schemas.yaml#/components/schemas/amount |
| 228 | + $ref: '#/components/schemas/amount' |
218 | 229 | sentAmount:
|
219 |
| - $ref: ./schemas.yaml#/components/schemas/amount |
| 230 | + $ref: '#/components/schemas/amount' |
220 | 231 | metadata:
|
221 | 232 | type: object
|
222 | 233 | additionalProperties: true
|
@@ -293,7 +304,7 @@ components:
|
293 | 304 | type: string
|
294 | 305 | format: date-time
|
295 | 306 | receivedAmount:
|
296 |
| - $ref: ./schemas.yaml#/components/schemas/amount |
| 307 | + $ref: '#/components/schemas/amount' |
297 | 308 | additionalProperties: false
|
298 | 309 | liquidityEvent:
|
299 | 310 | required:
|
@@ -341,3 +352,23 @@ components:
|
341 | 352 | scale:
|
342 | 353 | type: number
|
343 | 354 | additionalProperties: false
|
| 355 | + amount: |
| 356 | + type: object |
| 357 | + properties: |
| 358 | + value: |
| 359 | + type: string |
| 360 | + format: uint64 |
| 361 | + description: 'The value is an unsigned 64-bit integer amount, represented as a string.' |
| 362 | + assetCode: |
| 363 | + type: string |
| 364 | + description: The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code. |
| 365 | + assetScale: |
| 366 | + type: integer |
| 367 | + minimum: 0 |
| 368 | + maximum: 255 |
| 369 | + description: The scale of amounts denoted in the corresponding asset code. |
| 370 | + required: |
| 371 | + - value |
| 372 | + - assetCode |
| 373 | + - assetScale |
| 374 | + additionalProperties: false |
0 commit comments