@mojaloop/api-snippets 17.7.4 → 17.7.6

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,18 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ### [17.7.6](https://github.com/mojaloop/api-snippets/compare/v17.7.5...v17.7.6) (2024-12-12)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **csi-1023:** fixed outbound POST transferResponse - getPartiesResponse ([#188](https://github.com/mojaloop/api-snippets/issues/188)) ([1625504](https://github.com/mojaloop/api-snippets/commit/162550466866bae641d6588c07d8d8995b3c110a))
8
+
9
+ ### [17.7.5](https://github.com/mojaloop/api-snippets/compare/v17.7.4...v17.7.5) (2024-11-26)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * sdk api schemas ([#186](https://github.com/mojaloop/api-snippets/issues/186)) ([75a29f6](https://github.com/mojaloop/api-snippets/commit/75a29f6649e7d7ed680093ad21c36467b0a133b7))
15
+
2
16
  ### [17.7.4](https://github.com/mojaloop/api-snippets/compare/v17.7.3...v17.7.4) (2024-10-31)
3
17
 
4
18
 
@@ -1034,7 +1034,7 @@ components:
1034
1034
  fulfil:
1035
1035
  properties:
1036
1036
  body:
1037
- type: object
1037
+ $ref: '#/components/schemas/TransfersIDPutResponse'
1038
1038
  headers:
1039
1039
  type: object
1040
1040
  type: object
@@ -1045,34 +1045,34 @@ components:
1045
1045
  prepare:
1046
1046
  properties:
1047
1047
  body:
1048
- type: object
1048
+ $ref: '#/components/schemas/TransfersPostRequest'
1049
1049
  headers:
1050
1050
  type: object
1051
1051
  type: object
1052
1052
  quote:
1053
1053
  properties:
1054
1054
  fulfilment:
1055
- type: string
1055
+ $ref: '#/components/schemas/IlpFulfilment'
1056
1056
  internalRequest:
1057
- type: object
1057
+ $ref: '#/components/schemas/quoteRequest'
1058
1058
  mojaloopResponse:
1059
- type: object
1059
+ $ref: '#/components/schemas/QuotesIDPutResponse'
1060
1060
  request:
1061
- type: object
1061
+ $ref: '#/components/schemas/QuotesPostRequest'
1062
1062
  response:
1063
- type: object
1063
+ $ref: '#/components/schemas/quoteResponse'
1064
1064
  type: object
1065
1065
  quoteRequest:
1066
1066
  properties:
1067
1067
  body:
1068
- type: object
1068
+ $ref: '#/components/schemas/QuotesPostRequest'
1069
1069
  headers:
1070
1070
  type: object
1071
1071
  type: object
1072
1072
  quoteResponse:
1073
1073
  properties:
1074
1074
  body:
1075
- type: object
1075
+ $ref: '#/components/schemas/QuotesIDPutResponse'
1076
1076
  headers:
1077
1077
  type: object
1078
1078
  type: object
@@ -2295,6 +2295,213 @@ components:
2295
2295
  - QRCODE - QR code used as One Time Password.
2296
2296
  - U2F - U2F is a new addition isolated to Thirdparty stream.
2297
2297
  example: OTP
2298
+ TransfersIDPutResponse:
2299
+ title: TransfersIDPutResponse
2300
+ type: object
2301
+ description: The object sent in the PUT /transfers/{ID} callback.
2302
+ properties:
2303
+ fulfilment:
2304
+ $ref: '#/components/schemas/IlpFulfilment'
2305
+ completedTimestamp:
2306
+ $ref: '#/components/schemas/DateTime'
2307
+ transferState:
2308
+ $ref: '#/components/schemas/TransferState'
2309
+ extensionList:
2310
+ $ref: '#/components/schemas/ExtensionList'
2311
+ required:
2312
+ - transferState
2313
+ TransfersPostRequest:
2314
+ title: TransfersPostRequest
2315
+ type: object
2316
+ description: The object sent in the POST /transfers request.
2317
+ properties:
2318
+ transferId:
2319
+ $ref: '#/components/schemas/CorrelationId'
2320
+ payeeFsp:
2321
+ $ref: '#/components/schemas/FspId'
2322
+ payerFsp:
2323
+ $ref: '#/components/schemas/FspId'
2324
+ amount:
2325
+ $ref: '#/components/schemas/Money'
2326
+ ilpPacket:
2327
+ $ref: '#/components/schemas/IlpPacket'
2328
+ condition:
2329
+ $ref: '#/components/schemas/IlpCondition'
2330
+ expiration:
2331
+ $ref: '#/components/schemas/DateTime'
2332
+ extensionList:
2333
+ $ref: '#/components/schemas/ExtensionList'
2334
+ required:
2335
+ - transferId
2336
+ - payeeFsp
2337
+ - payerFsp
2338
+ - amount
2339
+ - ilpPacket
2340
+ - condition
2341
+ - expiration
2342
+ QuotesIDPutResponse:
2343
+ title: QuotesIDPutResponse
2344
+ type: object
2345
+ description: The object sent in the PUT /quotes/{ID} callback.
2346
+ properties:
2347
+ transferAmount:
2348
+ $ref: '#/components/schemas/Money'
2349
+ payeeReceiveAmount:
2350
+ $ref: '#/components/schemas/Money'
2351
+ payeeFspFee:
2352
+ $ref: '#/components/schemas/Money'
2353
+ payeeFspCommission:
2354
+ $ref: '#/components/schemas/Money'
2355
+ expiration:
2356
+ $ref: '#/components/schemas/DateTime'
2357
+ geoCode:
2358
+ $ref: '#/components/schemas/GeoCode'
2359
+ ilpPacket:
2360
+ $ref: '#/components/schemas/IlpPacket'
2361
+ condition:
2362
+ $ref: '#/components/schemas/IlpCondition'
2363
+ extensionList:
2364
+ $ref: '#/components/schemas/ExtensionList'
2365
+ required:
2366
+ - transferAmount
2367
+ - expiration
2368
+ - ilpPacket
2369
+ - condition
2370
+ TransactionScenario:
2371
+ title: TransactionScenario
2372
+ type: string
2373
+ enum:
2374
+ - DEPOSIT
2375
+ - WITHDRAWAL
2376
+ - TRANSFER
2377
+ - PAYMENT
2378
+ - REFUND
2379
+ description: |-
2380
+ Below are the allowed values for the enumeration.
2381
+ - DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.
2382
+ - WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.
2383
+ - TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.
2384
+ - PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.
2385
+ - REFUND - Used for performing a refund of transaction.
2386
+ example: DEPOSIT
2387
+ TransactionInitiator:
2388
+ title: TransactionInitiator
2389
+ type: string
2390
+ enum:
2391
+ - PAYER
2392
+ - PAYEE
2393
+ description: |-
2394
+ Below are the allowed values for the enumeration.
2395
+ - PAYER - Sender of funds is initiating the transaction. The account to send from is either owned by the Payer or is connected to the Payer in some way.
2396
+ - PAYEE - Recipient of the funds is initiating the transaction by sending a transaction request. The Payer must approve the transaction, either automatically by a pre-generated OTP or by pre-approval of the Payee, or by manually approving in his or her own Device.
2397
+ example: PAYEE
2398
+ TransactionInitiatorType:
2399
+ title: TransactionInitiatorType
2400
+ type: string
2401
+ enum:
2402
+ - CONSUMER
2403
+ - AGENT
2404
+ - BUSINESS
2405
+ - DEVICE
2406
+ description: |-
2407
+ Below are the allowed values for the enumeration.
2408
+ - CONSUMER - Consumer is the initiator of the transaction.
2409
+ - AGENT - Agent is the initiator of the transaction.
2410
+ - BUSINESS - Business is the initiator of the transaction.
2411
+ - DEVICE - Device is the initiator of the transaction.
2412
+ example: CONSUMER
2413
+ RefundReason:
2414
+ title: RefundReason
2415
+ type: string
2416
+ minLength: 1
2417
+ maxLength: 128
2418
+ description: Reason for the refund.
2419
+ example: Free text indicating reason for the refund.
2420
+ Refund:
2421
+ title: Refund
2422
+ type: object
2423
+ description: Data model for the complex type Refund.
2424
+ properties:
2425
+ originalTransactionId:
2426
+ $ref: '#/components/schemas/CorrelationId'
2427
+ refundReason:
2428
+ $ref: '#/components/schemas/RefundReason'
2429
+ required:
2430
+ - originalTransactionId
2431
+ BalanceOfPayments:
2432
+ title: BalanceOfPayments
2433
+ type: string
2434
+ pattern: ^[1-9]\d{2}$
2435
+ description: (BopCode) The API data type [BopCode](https://www.imf.org/external/np/sta/bopcode/) is a JSON String of 3 characters, consisting of digits only. Negative numbers are not allowed. A leading zero is not allowed.
2436
+ example: '123'
2437
+ TransactionType:
2438
+ title: TransactionType
2439
+ type: object
2440
+ description: Data model for the complex type TransactionType.
2441
+ properties:
2442
+ scenario:
2443
+ $ref: '#/components/schemas/TransactionScenario'
2444
+ subScenario:
2445
+ $ref: '#/components/schemas/TransactionSubScenario'
2446
+ initiator:
2447
+ $ref: '#/components/schemas/TransactionInitiator'
2448
+ initiatorType:
2449
+ $ref: '#/components/schemas/TransactionInitiatorType'
2450
+ refundInfo:
2451
+ $ref: '#/components/schemas/Refund'
2452
+ balanceOfPayments:
2453
+ $ref: '#/components/schemas/BalanceOfPayments'
2454
+ required:
2455
+ - scenario
2456
+ - initiator
2457
+ - initiatorType
2458
+ QuotesPostRequest:
2459
+ title: QuotesPostRequest
2460
+ type: object
2461
+ description: The object sent in the POST /quotes request.
2462
+ properties:
2463
+ quoteId:
2464
+ $ref: '#/components/schemas/CorrelationId'
2465
+ transactionId:
2466
+ $ref: '#/components/schemas/CorrelationId'
2467
+ transactionRequestId:
2468
+ $ref: '#/components/schemas/CorrelationId'
2469
+ payee:
2470
+ $ref: '#/components/schemas/Party'
2471
+ payer:
2472
+ $ref: '#/components/schemas/Party'
2473
+ amountType:
2474
+ $ref: '#/components/schemas/AmountType'
2475
+ amount:
2476
+ $ref: '#/components/schemas/Money'
2477
+ fees:
2478
+ $ref: '#/components/schemas/Money'
2479
+ transactionType:
2480
+ $ref: '#/components/schemas/TransactionType'
2481
+ converter:
2482
+ allOf:
2483
+ - $ref: '#/components/schemas/CurrencyConverter'
2484
+ - description: An optional field which will allow the payer DFSP to specify which DFSP it wants to undertake currency conversion. This is useful incase of if the sender wants the recipient to receive a specified amount of the target currency, but the payer DFSP does not want to undertake the currency conversion. In this case, the amount of the transfer would be expressed in the target currency and the amountType would be set to RECEIVE.
2485
+ currencyConversion:
2486
+ allOf:
2487
+ - $ref: '#/components/schemas/FxRate'
2488
+ - description: Used by the debtor party if it wants to share information about the currency conversion it proposes to make; or if it is required by scheme rules to share this information. This object contains the amount of the transfer in the source and target currencies, but does not identify the FXP being used.
2489
+ geoCode:
2490
+ $ref: '#/components/schemas/GeoCode'
2491
+ note:
2492
+ $ref: '#/components/schemas/Note'
2493
+ expiration:
2494
+ $ref: '#/components/schemas/DateTime'
2495
+ extensionList:
2496
+ $ref: '#/components/schemas/ExtensionList'
2497
+ required:
2498
+ - quoteId
2499
+ - transactionId
2500
+ - payee
2501
+ - payer
2502
+ - amountType
2503
+ - amount
2504
+ - transactionType
2298
2505
  FxMoney:
2299
2506
  title: FxMoney
2300
2507
  type: object
@@ -2290,6 +2290,11 @@ components:
2290
2290
  properties:
2291
2291
  body:
2292
2292
  type: object
2293
+ properties:
2294
+ party:
2295
+ $ref: '#/components/schemas/Party'
2296
+ required:
2297
+ - party
2293
2298
  headers:
2294
2299
  type: object
2295
2300
  quoteResponse: