@mojaloop/api-snippets 17.0.4-snapshot.1 → 17.0.5-snapshot.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ### [17.0.4](https://github.com/mojaloop/api-snippets/compare/v17.0.3...v17.0.4) (2023-04-26)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **mojaloop/3285:** transactiontype data type in requesttopay sdkoutbound ([#160](https://github.com/mojaloop/api-snippets/issues/160)) ([474cf1c](https://github.com/mojaloop/api-snippets/commit/474cf1c40023406ee3f3ff7d4d1ad902a517a058))
8
+
2
9
  ### [17.0.3](https://github.com/mojaloop/api-snippets/compare/v17.0.2...v17.0.3) (2023-01-11)
3
10
 
4
11
 
@@ -294,6 +294,38 @@ paths:
294
294
  responses:
295
295
  '200':
296
296
  $ref: '#/components/responses/requestToPaySuccess'
297
+ /requestToPay/{requestToPayId}:
298
+ put:
299
+ summary: >-
300
+ Continues a request funds from sender that has paused at the party
301
+ resolution stage in order to accept or reject party information
302
+ description: >
303
+ The HTTP request `PUT /requestToPay/{requestToPayId}` is used to
304
+ continue a transfer initiated via the `POST /requestToPay` method that
305
+ has halted after party lookup stage.
306
+
307
+
308
+ The request body should contain the "acceptParty" property set to `true`
309
+ as required to continue the transfer.
310
+
311
+ See the description of the `POST /requestToPay` HTTP method for more
312
+ information on modes of transfer.
313
+ tags:
314
+ - RequestToPay
315
+ requestBody:
316
+ content:
317
+ application/json:
318
+ schema:
319
+ $ref: '#/components/schemas/transferContinuationAcceptParty'
320
+ parameters:
321
+ - $ref: '#/components/parameters/requestToPayId'
322
+ responses:
323
+ '200':
324
+ $ref: '#/components/responses/requestToPaySuccess'
325
+ '500':
326
+ $ref: '#/components/responses/transferServerError'
327
+ '504':
328
+ $ref: '#/components/responses/transferTimeout'
297
329
  /requestToPayTransfer:
298
330
  post:
299
331
  summary: >-
@@ -2081,80 +2113,30 @@ components:
2081
2113
  $ref: '#/components/schemas/TransactionScenario'
2082
2114
  subScenario:
2083
2115
  $ref: '#/components/schemas/TransactionSubScenario'
2084
- AuthenticationType:
2085
- title: AuthenticationType
2086
- type: string
2087
- enum:
2088
- - OTP
2089
- - QRCODE
2090
- - U2F
2091
- description: |-
2092
- Below are the allowed values for the enumeration AuthenticationType.
2093
- - OTP - One-time password generated by the Payer FSP.
2094
- - QRCODE - QR code used as One Time Password.
2095
- - U2F - U2F is a new addition isolated to Thirdparty stream.
2096
- example: OTP
2097
- TransactionRequestState:
2098
- title: TransactionRequestState
2116
+ transferStatus:
2099
2117
  type: string
2100
2118
  enum:
2101
- - RECEIVED
2102
- - PENDING
2103
- - ACCEPTED
2104
- - REJECTED
2105
- description: |-
2106
- Below are the allowed values for the enumeration.
2107
- - RECEIVED - Payer FSP has received the transaction from the Payee FSP.
2108
- - PENDING - Payer FSP has sent the transaction request to the Payer.
2109
- - ACCEPTED - Payer has approved the transaction.
2110
- - REJECTED - Payer has rejected the transaction.
2111
- example: RECEIVED
2119
+ - ERROR_OCCURRED
2120
+ - WAITING_FOR_PARTY_ACCEPTANCE
2121
+ - WAITING_FOR_QUOTE_ACCEPTANCE
2122
+ - COMPLETED
2112
2123
  requestToPayResponse:
2113
2124
  type: object
2114
2125
  required:
2115
- - transactionRequestId
2126
+ - requestToPayId
2116
2127
  - from
2117
2128
  - to
2118
2129
  - amountType
2119
2130
  - currency
2120
2131
  - amount
2121
2132
  - transactionType
2122
- - requestToPayState
2133
+ - currentState
2123
2134
  properties:
2135
+ requestToPayId:
2136
+ $ref: '#/components/schemas/CorrelationId'
2124
2137
  transactionRequestId:
2125
2138
  $ref: '#/components/schemas/CorrelationId'
2126
- from:
2127
- $ref: '#/components/schemas/transferParty'
2128
- to:
2129
- $ref: '#/components/schemas/transferParty'
2130
- amountType:
2131
- $ref: '#/components/schemas/AmountType'
2132
- currency:
2133
- $ref: '#/components/schemas/Currency'
2134
- amount:
2135
- $ref: '#/components/schemas/Amount'
2136
- transactionType:
2137
- $ref: '#/components/schemas/TransactionScenario'
2138
- subScenario:
2139
- $ref: '#/components/schemas/TransactionSubScenario'
2140
- authenticationType:
2141
- $ref: '#/components/schemas/AuthenticationType'
2142
- requestToPayState:
2143
- $ref: '#/components/schemas/TransactionRequestState'
2144
- requestToPayTransferRequest:
2145
- type: object
2146
- required:
2147
- - requestToPayTransactionId
2148
- - from
2149
- - to
2150
- - amountType
2151
- - currency
2152
- - amount
2153
- - scenario
2154
- - initiator
2155
- - initiatorType
2156
- properties:
2157
- requestToPayTransactionId:
2139
+ homeTransactionId:
2158
2140
  type: string
2159
2141
  description: >-
2160
2142
  Transaction ID from the DFSP backend, used to reconcile transactions
@@ -2169,21 +2151,28 @@ components:
2169
2151
  $ref: '#/components/schemas/Currency'
2170
2152
  amount:
2171
2153
  $ref: '#/components/schemas/Amount'
2172
- scenario:
2173
- $ref: '#/components/schemas/TransactionType'
2174
- initiator:
2175
- $ref: '#/components/schemas/TransactionInitiator'
2176
- initiatorType:
2177
- $ref: '#/components/schemas/TransactionInitiatorType'
2178
- note:
2179
- $ref: '#/components/schemas/Note'
2180
- transferStatus:
2181
- type: string
2182
- enum:
2183
- - ERROR_OCCURRED
2184
- - WAITING_FOR_PARTY_ACCEPTANCE
2185
- - WAITING_FOR_QUOTE_ACCEPTANCE
2186
- - COMPLETED
2154
+ transactionType:
2155
+ $ref: '#/components/schemas/TransactionScenario'
2156
+ subScenario:
2157
+ $ref: '#/components/schemas/TransactionSubScenario'
2158
+ currentState:
2159
+ $ref: '#/components/schemas/transferStatus'
2160
+ getPartiesResponse:
2161
+ type: object
2162
+ required:
2163
+ - body
2164
+ properties:
2165
+ body:
2166
+ type: object
2167
+ headers:
2168
+ type: object
2169
+ lastError:
2170
+ description: >
2171
+ Object representing the last error to occur during a transfer
2172
+ process. This may be a Mojaloop API error returned from another
2173
+ entity in the scheme or an object representing other types of error
2174
+ e.g. exceptions that may occur inside the scheme adapter.
2175
+ $ref: '#/components/schemas/transferError'
2187
2176
  QuotesIDPutResponse:
2188
2177
  title: QuotesIDPutResponse
2189
2178
  type: object
@@ -2227,10 +2216,10 @@ components:
2227
2216
  $ref: '#/components/schemas/ExtensionList'
2228
2217
  required:
2229
2218
  - transferState
2230
- requestToPayTransferResponse:
2219
+ transferResponse:
2231
2220
  type: object
2232
2221
  required:
2233
- - requestToPayTransactionId
2222
+ - homeTransactionId
2234
2223
  - from
2235
2224
  - to
2236
2225
  - amountType
@@ -2240,7 +2229,7 @@ components:
2240
2229
  properties:
2241
2230
  transferId:
2242
2231
  $ref: '#/components/schemas/CorrelationId'
2243
- requestToPayTransactionId:
2232
+ homeTransactionId:
2244
2233
  type: string
2245
2234
  description: >-
2246
2235
  Transaction ID from the DFSP backend, used to reconcile transactions
@@ -2257,14 +2246,32 @@ components:
2257
2246
  $ref: '#/components/schemas/Amount'
2258
2247
  transactionType:
2259
2248
  $ref: '#/components/schemas/transferTransactionType'
2249
+ subScenario:
2250
+ $ref: '#/components/schemas/TransactionSubScenario'
2260
2251
  note:
2261
2252
  $ref: '#/components/schemas/Note'
2262
2253
  currentState:
2263
2254
  $ref: '#/components/schemas/transferStatus'
2264
2255
  quoteId:
2265
2256
  $ref: '#/components/schemas/CorrelationId'
2257
+ getPartiesResponse:
2258
+ type: object
2259
+ required:
2260
+ - body
2261
+ properties:
2262
+ body:
2263
+ type: object
2264
+ headers:
2265
+ type: object
2266
2266
  quoteResponse:
2267
- $ref: '#/components/schemas/QuotesIDPutResponse'
2267
+ type: object
2268
+ required:
2269
+ - body
2270
+ properties:
2271
+ body:
2272
+ $ref: '#/components/schemas/QuotesIDPutResponse'
2273
+ headers:
2274
+ type: object
2268
2275
  quoteResponseSource:
2269
2276
  type: string
2270
2277
  description: >
@@ -2273,7 +2280,14 @@ components:
2273
2280
  account in the case of a FOREX transfer. i.e. it may be a FOREX
2274
2281
  gateway.
2275
2282
  fulfil:
2276
- $ref: '#/components/schemas/TransfersIDPutResponse'
2283
+ type: object
2284
+ required:
2285
+ - body
2286
+ properties:
2287
+ body:
2288
+ $ref: '#/components/schemas/TransfersIDPutResponse'
2289
+ headers:
2290
+ type: object
2277
2291
  lastError:
2278
2292
  description: >
2279
2293
  Object representing the last error to occur during a transfer
@@ -2281,10 +2295,61 @@ components:
2281
2295
  entity in the scheme or an object representing other types of error
2282
2296
  e.g. exceptions that may occur inside the scheme adapter.
2283
2297
  $ref: '#/components/schemas/transferError'
2284
- transferResponse:
2298
+ skipPartyLookup:
2299
+ description: >-
2300
+ Set to true if supplying an FSPID for the payee party and no party
2301
+ resolution is needed. This may be useful is a previous party
2302
+ resolution has been performed.
2303
+ type: boolean
2304
+ errorTransferResponse:
2305
+ allOf:
2306
+ - $ref: '#/components/schemas/errorResponse'
2307
+ - type: object
2308
+ required:
2309
+ - transferState
2310
+ properties:
2311
+ transferState:
2312
+ $ref: '#/components/schemas/transferResponse'
2313
+ requestToPayTransferRequest:
2285
2314
  type: object
2286
2315
  required:
2287
- - homeTransactionId
2316
+ - requestToPayTransactionId
2317
+ - from
2318
+ - to
2319
+ - amountType
2320
+ - currency
2321
+ - amount
2322
+ - scenario
2323
+ - initiator
2324
+ - initiatorType
2325
+ properties:
2326
+ requestToPayTransactionId:
2327
+ type: string
2328
+ description: >-
2329
+ Transaction ID from the DFSP backend, used to reconcile transactions
2330
+ between the Switch and DFSP backend systems.
2331
+ from:
2332
+ $ref: '#/components/schemas/transferParty'
2333
+ to:
2334
+ $ref: '#/components/schemas/transferParty'
2335
+ amountType:
2336
+ $ref: '#/components/schemas/AmountType'
2337
+ currency:
2338
+ $ref: '#/components/schemas/Currency'
2339
+ amount:
2340
+ $ref: '#/components/schemas/Amount'
2341
+ scenario:
2342
+ $ref: '#/components/schemas/TransactionType'
2343
+ initiator:
2344
+ $ref: '#/components/schemas/TransactionInitiator'
2345
+ initiatorType:
2346
+ $ref: '#/components/schemas/TransactionInitiatorType'
2347
+ note:
2348
+ $ref: '#/components/schemas/Note'
2349
+ requestToPayTransferResponse:
2350
+ type: object
2351
+ required:
2352
+ - requestToPayTransactionId
2288
2353
  - from
2289
2354
  - to
2290
2355
  - amountType
@@ -2294,7 +2359,7 @@ components:
2294
2359
  properties:
2295
2360
  transferId:
2296
2361
  $ref: '#/components/schemas/CorrelationId'
2297
- homeTransactionId:
2362
+ requestToPayTransactionId:
2298
2363
  type: string
2299
2364
  description: >-
2300
2365
  Transaction ID from the DFSP backend, used to reconcile transactions
@@ -2311,32 +2376,14 @@ components:
2311
2376
  $ref: '#/components/schemas/Amount'
2312
2377
  transactionType:
2313
2378
  $ref: '#/components/schemas/transferTransactionType'
2314
- subScenario:
2315
- $ref: '#/components/schemas/TransactionSubScenario'
2316
2379
  note:
2317
2380
  $ref: '#/components/schemas/Note'
2318
2381
  currentState:
2319
2382
  $ref: '#/components/schemas/transferStatus'
2320
2383
  quoteId:
2321
2384
  $ref: '#/components/schemas/CorrelationId'
2322
- getPartiesResponse:
2323
- type: object
2324
- required:
2325
- - body
2326
- properties:
2327
- body:
2328
- type: object
2329
- headers:
2330
- type: object
2331
2385
  quoteResponse:
2332
- type: object
2333
- required:
2334
- - body
2335
- properties:
2336
- body:
2337
- $ref: '#/components/schemas/QuotesIDPutResponse'
2338
- headers:
2339
- type: object
2386
+ $ref: '#/components/schemas/QuotesIDPutResponse'
2340
2387
  quoteResponseSource:
2341
2388
  type: string
2342
2389
  description: >
@@ -2345,14 +2392,7 @@ components:
2345
2392
  account in the case of a FOREX transfer. i.e. it may be a FOREX
2346
2393
  gateway.
2347
2394
  fulfil:
2348
- type: object
2349
- required:
2350
- - body
2351
- properties:
2352
- body:
2353
- $ref: '#/components/schemas/TransfersIDPutResponse'
2354
- headers:
2355
- type: object
2395
+ $ref: '#/components/schemas/TransfersIDPutResponse'
2356
2396
  lastError:
2357
2397
  description: >
2358
2398
  Object representing the last error to occur during a transfer
@@ -2360,21 +2400,6 @@ components:
2360
2400
  entity in the scheme or an object representing other types of error
2361
2401
  e.g. exceptions that may occur inside the scheme adapter.
2362
2402
  $ref: '#/components/schemas/transferError'
2363
- skipPartyLookup:
2364
- description: >-
2365
- Set to true if supplying an FSPID for the payee party and no party
2366
- resolution is needed. This may be useful is a previous party
2367
- resolution has been performed.
2368
- type: boolean
2369
- errorTransferResponse:
2370
- allOf:
2371
- - $ref: '#/components/schemas/errorResponse'
2372
- - type: object
2373
- required:
2374
- - transferState
2375
- properties:
2376
- transferState:
2377
- $ref: '#/components/schemas/transferResponse'
2378
2403
  transferContinuationAcceptOTP:
2379
2404
  type: object
2380
2405
  required:
@@ -2613,26 +2638,26 @@ components:
2613
2638
  application/json:
2614
2639
  schema:
2615
2640
  $ref: '#/components/schemas/requestToPayResponse'
2616
- requestToPayTransferSuccess:
2617
- description: Transfer completed successfully
2641
+ transferServerError:
2642
+ description: An error occurred processing the transfer
2618
2643
  content:
2619
2644
  application/json:
2620
2645
  schema:
2621
- $ref: '#/components/schemas/requestToPayTransferResponse'
2622
- requestToPayTransferBadRequest:
2623
- description: Malformed or missing required body, headers or parameters
2646
+ $ref: '#/components/schemas/errorTransferResponse'
2647
+ transferTimeout:
2648
+ description: Timeout occurred processing the transfer
2624
2649
  content:
2625
2650
  application/json:
2626
2651
  schema:
2627
2652
  $ref: '#/components/schemas/errorTransferResponse'
2628
- transferServerError:
2629
- description: An error occurred processing the transfer
2653
+ requestToPayTransferSuccess:
2654
+ description: Transfer completed successfully
2630
2655
  content:
2631
2656
  application/json:
2632
2657
  schema:
2633
- $ref: '#/components/schemas/errorTransferResponse'
2634
- transferTimeout:
2635
- description: Timeout occurred processing the transfer
2658
+ $ref: '#/components/schemas/requestToPayTransferResponse'
2659
+ requestToPayTransferBadRequest:
2660
+ description: Malformed or missing required body, headers or parameters
2636
2661
  content:
2637
2662
  application/json:
2638
2663
  schema:
@@ -2712,6 +2737,15 @@ components:
2712
2737
  description: >-
2713
2738
  A sub-identifier of the party identifier, or a sub-type of the party
2714
2739
  identifier's type. For example, `PASSPORT`, `DRIVING_LICENSE`.
2740
+ requestToPayId:
2741
+ name: requestToPayId
2742
+ in: path
2743
+ required: true
2744
+ schema:
2745
+ $ref: '#/components/schemas/CorrelationId'
2746
+ description: >-
2747
+ Identifier of the merchant request to pay to continue as returned in the
2748
+ response to a `POST /requestToPay` request.
2715
2749
  requestToPayTransactionId:
2716
2750
  name: requestToPayTransactionId
2717
2751
  in: path