@mojaloop/api-snippets 14.0.0 → 14.2.1

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.
Files changed (195) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +4 -0
  3. package/docs/sdk-scheme-adapter-outbound-openapi3-snippets.yaml +4657 -0
  4. package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +4898 -0
  5. package/lib/index.d.ts +3 -0
  6. package/lib/index.js +5 -2
  7. package/lib/index.js.map +1 -1
  8. package/lib/scripts/json-schema-generator.d.ts +29 -0
  9. package/lib/scripts/json-schema-generator.js +99 -0
  10. package/lib/scripts/json-schema-generator.js.map +1 -0
  11. package/lib/sdk-scheme-adapter/index.d.ts +30 -0
  12. package/lib/sdk-scheme-adapter/index.js +35 -0
  13. package/lib/sdk-scheme-adapter/index.js.map +1 -0
  14. package/lib/sdk-scheme-adapter/outbound/index.d.ts +30 -0
  15. package/lib/sdk-scheme-adapter/outbound/index.js +35 -0
  16. package/lib/sdk-scheme-adapter/outbound/index.js.map +1 -0
  17. package/lib/sdk-scheme-adapter/outbound/v2_0_0/index.d.ts +3 -0
  18. package/lib/sdk-scheme-adapter/outbound/v2_0_0/index.js +9 -0
  19. package/lib/sdk-scheme-adapter/outbound/v2_0_0/index.js.map +1 -0
  20. package/lib/sdk-scheme-adapter/outbound/v2_0_0/json-schemas.json +25677 -0
  21. package/lib/sdk-scheme-adapter/outbound/v2_0_0/openapi.d.ts +29287 -0
  22. package/lib/sdk-scheme-adapter/outbound/v2_0_0/openapi.js +7 -0
  23. package/lib/sdk-scheme-adapter/outbound/v2_0_0/openapi.js.map +1 -0
  24. package/lib/sdk-scheme-adapter/outbound/v2_0_0/schemas.d.ts +12526 -0
  25. package/lib/sdk-scheme-adapter/outbound/v2_0_0/schemas.js +114 -0
  26. package/lib/sdk-scheme-adapter/outbound/v2_0_0/schemas.js.map +1 -0
  27. package/lib/sdk-scheme-adapter/outbound/v2_0_0/types.d.ts +107 -0
  28. package/lib/sdk-scheme-adapter/outbound/v2_0_0/types.js +4 -0
  29. package/lib/sdk-scheme-adapter/outbound/v2_0_0/types.js.map +1 -0
  30. package/package.json +28 -23
  31. package/sdk-bulk.yaml +2618 -0
  32. package/sdk-outbound-old.yaml +2884 -0
  33. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/ID.yaml +6 -0
  34. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/SubId.yaml +8 -0
  35. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/Type.yaml +6 -0
  36. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/bulkQuoteId.yaml +8 -0
  37. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/bulkTransactionId.yaml +8 -0
  38. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/bulkTransferId.yaml +8 -0
  39. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/requestToPayTransactionId.yaml +8 -0
  40. package/sdk-scheme-adapter/outbound/v2_0_0/components/parameters/transferId.yaml +8 -0
  41. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/accountsCreationCompleted.yaml +5 -0
  42. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/accountsCreationError.yaml +5 -0
  43. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/accountsCreationTimeout.yaml +5 -0
  44. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkQuoteBadRequest.yaml +5 -0
  45. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkQuoteServerError.yaml +5 -0
  46. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkQuoteSuccess.yaml +5 -0
  47. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkQuoteTimeout.yaml +5 -0
  48. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransactionAccepted.yaml +1 -0
  49. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransactionBadRequest.yaml +5 -0
  50. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransactionPutBadRequest.yaml +7 -0
  51. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransferBadRequest.yaml +5 -0
  52. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransferStatusResponse.yaml +16 -0
  53. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/bulkTransferSuccess.yaml +5 -0
  54. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/errorResponse.yaml +5 -0
  55. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/partiesByIdError404.yaml +8 -0
  56. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/partiesByIdSuccess.yaml +5 -0
  57. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/quotesPostSuccess.yaml +5 -0
  58. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/quotesServerError.yaml +5 -0
  59. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/requestToPaySuccess.yaml +5 -0
  60. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/requestToPayTransferBadRequest.yaml +5 -0
  61. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/requestToPayTransferSuccess.yaml +5 -0
  62. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/simpleTransfersPostSuccess.yaml +5 -0
  63. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/simpleTransfersServerError.yaml +5 -0
  64. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/transferBadRequest.yaml +5 -0
  65. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/transferServerError.yaml +5 -0
  66. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/transferSuccess.yaml +5 -0
  67. package/sdk-scheme-adapter/outbound/v2_0_0/components/responses/transferTimeout.yaml +5 -0
  68. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Amount.yaml +11 -0
  69. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/AmountType.yaml +14 -0
  70. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/AuthenticationType.yaml +12 -0
  71. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/BalanceOfPayments.yaml +9 -0
  72. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/CorrelationId.yaml +10 -0
  73. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Currency.yaml +174 -0
  74. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/DateOfBirth.yaml +6 -0
  75. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/DateTime.yaml +14 -0
  76. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ErrorCode.yaml +11 -0
  77. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ErrorDescription.yaml +5 -0
  78. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ErrorInformation.yaml +13 -0
  79. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Extension.yaml +11 -0
  80. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ExtensionKey.yaml +5 -0
  81. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ExtensionList.yaml +15 -0
  82. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/ExtensionValue.yaml +5 -0
  83. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/FirstName.yaml +9 -0
  84. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/FspId.yaml +5 -0
  85. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/GeoCode.yaml +13 -0
  86. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/IlpCondition.yaml +5 -0
  87. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/IlpFulfilment.yaml +6 -0
  88. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/IlpPacket.yaml +8 -0
  89. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/LastName.yaml +9 -0
  90. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Latitude.yaml +7 -0
  91. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Longitude.yaml +8 -0
  92. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/MerchantClassificationCode.yaml +7 -0
  93. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/MiddleName.yaml +9 -0
  94. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Money.yaml +11 -0
  95. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Name.yaml +17 -0
  96. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Note.yaml +6 -0
  97. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Party.yaml +14 -0
  98. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyComplexName.yaml +10 -0
  99. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyIdInfo.yaml +19 -0
  100. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyIdType.yaml +54 -0
  101. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyIdentifier.yaml +6 -0
  102. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyName.yaml +5 -0
  103. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartyPersonalInfo.yaml +8 -0
  104. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/PartySubIdOrType.yaml +7 -0
  105. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/QuotesIDPutResponse.yaml +27 -0
  106. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/QuotesPostRequest.yaml +38 -0
  107. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/Refund.yaml +10 -0
  108. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/RefundReason.yaml +6 -0
  109. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionInitiator.yaml +16 -0
  110. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionInitiatorType.yaml +14 -0
  111. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionRequestState.yaml +14 -0
  112. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionScenario.yaml +32 -0
  113. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionSubScenario.yaml +5 -0
  114. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransactionType.yaml +4 -0
  115. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransferState.yaml +19 -0
  116. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransfersIDPutResponse.yaml +14 -0
  117. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/TransfersPostRequest.yaml +28 -0
  118. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/accountCreationStatus.yaml +15 -0
  119. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/accountsCreationState.yaml +4 -0
  120. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/accountsRequest.yaml +16 -0
  121. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/accountsResponse.yaml +23 -0
  122. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/async2SyncCurrentState.yaml +5 -0
  123. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/autoAcceptPartyOption.yaml +9 -0
  124. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/autoAcceptQuote.yaml +14 -0
  125. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkPerTransferFeeLimit.yaml +9 -0
  126. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkQuoteErrorResponse.yaml +8 -0
  127. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkQuoteRequest.yaml +24 -0
  128. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkQuoteResponse.yaml +20 -0
  129. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkQuoteStatus.yaml +4 -0
  130. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkQuoteStatusResponse.yaml +16 -0
  131. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionAcceptPartyErrorResponse.yaml +10 -0
  132. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionAcceptQuoteErrorResponse.yaml +10 -0
  133. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionContinuationAcceptParty.yaml +24 -0
  134. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionContinuationAcceptQuote.yaml +20 -0
  135. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionOptions.yaml +35 -0
  136. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionRequest.yaml +27 -0
  137. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionResponse.yaml +27 -0
  138. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransactionStatus.yaml +6 -0
  139. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransferErrorResponse.yaml +8 -0
  140. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransferRequest.yaml +24 -0
  141. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransferResponse.yaml +15 -0
  142. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/bulkTransferStatus.yaml +4 -0
  143. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/errorAccountsResponse.yaml +8 -0
  144. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/errorQuotesResponse.yaml +3 -0
  145. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/errorResponse.yaml +8 -0
  146. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/errorSimpleTransfersResponse.yaml +3 -0
  147. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/errorTransferResponse.yaml +8 -0
  148. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/extensionListEmptiable.yaml +5 -0
  149. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualQuote.yaml +26 -0
  150. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualQuoteResult.yaml +23 -0
  151. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransaction.yaml +31 -0
  152. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransactionAccept.yaml +10 -0
  153. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransactionResult.yaml +37 -0
  154. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransfer.yaml +26 -0
  155. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransferFulfilment.yaml +13 -0
  156. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/individualTransferResult.yaml +37 -0
  157. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/mojaloopError.yaml +4 -0
  158. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/partiesByIdResponse.yaml +19 -0
  159. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/partyError.yaml +16 -0
  160. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/quoteError.yaml +16 -0
  161. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/quotesPostResponse.yaml +48 -0
  162. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/requestToPayRequest.yaml +33 -0
  163. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/requestToPayResponse.yaml +33 -0
  164. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/requestToPayTransferRequest.yaml +35 -0
  165. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/requestToPayTransferResponse.yaml +52 -0
  166. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/simpleQuotesPostRequest.yaml +11 -0
  167. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/simpleTransfersPostRequest.yaml +10 -0
  168. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/simpleTransfersPostResponse.yaml +17 -0
  169. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferContinuationAcceptOTP.yaml +9 -0
  170. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferContinuationAcceptParty.yaml +8 -0
  171. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferContinuationAcceptQuote.yaml +9 -0
  172. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferError.yaml +16 -0
  173. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferParty.yaml +29 -0
  174. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferRequest.yaml +39 -0
  175. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferResponse.yaml +81 -0
  176. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferStatus.yaml +6 -0
  177. package/sdk-scheme-adapter/outbound/v2_0_0/components/schemas/transferStatusResponse.yaml +19 -0
  178. package/sdk-scheme-adapter/outbound/v2_0_0/openapi.yaml +56 -0
  179. package/sdk-scheme-adapter/outbound/v2_0_0/paths/accounts.yaml +26 -0
  180. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkQuotes.yaml +23 -0
  181. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkQuotes_bulkQuoteId.yaml +24 -0
  182. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkTransactions.yaml +21 -0
  183. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkTransactions_bulkTransactionId.yaml +33 -0
  184. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkTransfers.yaml +21 -0
  185. package/sdk-scheme-adapter/outbound/v2_0_0/paths/bulkTransfers_bulkTransferId.yaml +24 -0
  186. package/sdk-scheme-adapter/outbound/v2_0_0/paths/parties_Type_ID.yaml +18 -0
  187. package/sdk-scheme-adapter/outbound/v2_0_0/paths/parties_Type_ID_SubId.yaml +19 -0
  188. package/sdk-scheme-adapter/outbound/v2_0_0/paths/quotes.yaml +18 -0
  189. package/sdk-scheme-adapter/outbound/v2_0_0/paths/requestToPay.yaml +22 -0
  190. package/sdk-scheme-adapter/outbound/v2_0_0/paths/requestToPayTransfer.yaml +57 -0
  191. package/sdk-scheme-adapter/outbound/v2_0_0/paths/requestToPayTransfer_requestToPayTransactionId.yaml +34 -0
  192. package/sdk-scheme-adapter/outbound/v2_0_0/paths/simpleTransfers.yaml +18 -0
  193. package/sdk-scheme-adapter/outbound/v2_0_0/paths/transfers.yaml +55 -0
  194. package/sdk-scheme-adapter/outbound/v2_0_0/paths/transfers_transferId.yaml +58 -0
  195. package/sdk-scheme-adapter/outbound/v2_0_0/paths.yaml +12 -0
@@ -0,0 +1,16 @@
1
+ type: object
2
+ required:
3
+ - bulkQuoteId
4
+ - currentState
5
+ - individualQuotes
6
+ properties:
7
+ bulkQuoteId:
8
+ $ref: ./CorrelationId.yaml
9
+ currentState:
10
+ $ref: ./bulkQuoteStatus.yaml
11
+ individualQuotes:
12
+ type: array
13
+ minItems: 1
14
+ maxItems: 1000
15
+ items:
16
+ $ref: ./individualQuote.yaml
@@ -0,0 +1,10 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
4
+ required:
5
+ - bulkTransferState
6
+ properties:
7
+ bulkTransferState:
8
+ allOf:
9
+ - $ref: ./bulkTransactionContinuationAcceptParty.yaml
10
+ - $ref: ./partyError.yaml
@@ -0,0 +1,10 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
4
+ required:
5
+ - bulkTansferState
6
+ properties:
7
+ bulkTransferState:
8
+ allOf:
9
+ - $ref: ./bulkTransactionContinuationAcceptQuote.yaml
10
+ - $ref: ./quoteError.yaml
@@ -0,0 +1,24 @@
1
+ description: >-
2
+ The object sent back as confirmation of payee parties when autoAcceptParty is
3
+ false.
4
+ type: object
5
+ required:
6
+ - bulkHomeTransactionID
7
+ - individualTransfers
8
+ properties:
9
+ bulkHomeTransactionID:
10
+ type: string
11
+ description: >-
12
+ Transaction ID from the DFSP backend, used to reconcile transactions
13
+ between the Switch and DFSP backend systems.
14
+ individualTransfers:
15
+ description: >-
16
+ List of individual transfers in a bulk transfer with accept party
17
+ information.
18
+ type: array
19
+ minItems: 1
20
+ maxItems: 1000
21
+ items:
22
+ allOf:
23
+ - $ref: ./individualTransactionAccept.yaml
24
+ - $ref: ./transferContinuationAcceptParty.yaml
@@ -0,0 +1,20 @@
1
+ description: The object sent back as confirmation of quotes when autoAcceptQuotes is false.
2
+ type: object
3
+ required:
4
+ - bulkHomeTransactionID
5
+ - individualTransfers
6
+ properties:
7
+ bulkHomeTransactionID:
8
+ type: string
9
+ description: >-
10
+ Transaction ID from the DFSP backend, used to reconcile transactions
11
+ between the Switch and DFSP backend systems.
12
+ individualTransfers:
13
+ description: List of individual transfers in a bulk transfer.
14
+ type: array
15
+ minItems: 1
16
+ maxItems: 1000
17
+ items:
18
+ allOf:
19
+ - $ref: ./individualTransactionAccept.yaml
20
+ - $ref: ./transferContinuationAcceptQuote.yaml
@@ -0,0 +1,35 @@
1
+ type: object
2
+ required:
3
+ - autoAcceptParty
4
+ - autoAcceptQuote
5
+ - bulkExpiration
6
+ properties:
7
+ onlyValidateParty:
8
+ description: >-
9
+ Set to true if only party validation is required. This means the quotes
10
+ and transfers will not run. This is useful for only party resolution.
11
+ type: boolean
12
+ autoAcceptParty:
13
+ $ref: ./autoAcceptPartyOption.yaml
14
+ autoAcceptQuote:
15
+ description: >-
16
+ Set to true if the quote response is accepted without confirmation from
17
+ the payer. The fees applied by the payee will be acceptable to the payer
18
+ abiding by the limits set by optional 'perTransferFeeLimits' array.
19
+ type: object
20
+ oneOf:
21
+ - $ref: ./autoAcceptQuote.yaml
22
+ skipPartyLookup:
23
+ description: >-
24
+ Set to true if supplying an FSPID for the payee party and no party
25
+ resolution is needed. This may be useful if a previous party resolution
26
+ has been performed.
27
+ type: boolean
28
+ synchronous:
29
+ description: >-
30
+ Set to true if the bulkTransfer requests need be handled synchronous.
31
+ Otherwise the requests will be handled asynchronously, meaning there will
32
+ be callbacks whenever the processing is done
33
+ type: boolean
34
+ bulkExpiration:
35
+ $ref: ./DateTime.yaml
@@ -0,0 +1,27 @@
1
+ type: object
2
+ required:
3
+ - bulkHomeTransactionID
4
+ - options
5
+ - from
6
+ - individualTransfers
7
+ properties:
8
+ bulkHomeTransactionID:
9
+ type: string
10
+ description: >-
11
+ Transaction ID from the DFSP backend, used to reconcile transactions
12
+ between the Switch and DFSP backend systems.
13
+ bulkTransactionId:
14
+ $ref: ./CorrelationId.yaml
15
+ options:
16
+ $ref: ./bulkTransactionOptions.yaml
17
+ from:
18
+ $ref: ./Party.yaml
19
+ individualTransfers:
20
+ description: List of individual transfers in a bulk transfer.
21
+ type: array
22
+ minItems: 1
23
+ maxItems: 1000
24
+ items:
25
+ $ref: ./individualTransaction.yaml
26
+ extensions:
27
+ $ref: ./ExtensionList.yaml
@@ -0,0 +1,27 @@
1
+ type: object
2
+ required:
3
+ - bulkHomeTransactionID
4
+ - bulkTransactionId
5
+ - currentState
6
+ - individualTransferResults
7
+ properties:
8
+ bulkHomeTransactionID:
9
+ type: string
10
+ description: >-
11
+ Transaction ID from the DFSP backend, used to reconcile transactions
12
+ between the Switch and DFSP backend systems.
13
+ bulkTransactionId:
14
+ $ref: ./CorrelationId.yaml
15
+ currentState:
16
+ $ref: ./bulkTransactionStatus.yaml
17
+ options:
18
+ $ref: ./bulkTransactionOptions.yaml
19
+ individualTransferResults:
20
+ description: List of individual transfer result in a bulk transfer response.
21
+ type: array
22
+ minItems: 1
23
+ maxItems: 1000
24
+ items:
25
+ $ref: ./individualTransactionResult.yaml
26
+ extensions:
27
+ $ref: ./ExtensionList.yaml
@@ -0,0 +1,6 @@
1
+ type: string
2
+ enum:
3
+ - ERROR_OCCURRED
4
+ - WAITING_FOR_PARTY_ACCEPTANCE
5
+ - WAITING_FOR_QUOTE_ACCEPTANCE
6
+ - COMPLETED
@@ -0,0 +1,8 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
4
+ required:
5
+ - bulkTansferState
6
+ properties:
7
+ bulkTransferState:
8
+ $ref: ./bulkTransferResponse.yaml
@@ -0,0 +1,24 @@
1
+ type: object
2
+ required:
3
+ - homeTransactionId
4
+ - from
5
+ - individualTransfers
6
+ properties:
7
+ homeTransactionId:
8
+ type: string
9
+ description: >-
10
+ Transaction ID from the DFSP backend, used to reconcile transactions
11
+ between the Switch and DFSP backend systems.
12
+ bulkTransferId:
13
+ $ref: ./CorrelationId.yaml
14
+ from:
15
+ $ref: ./transferParty.yaml
16
+ individualTransfers:
17
+ description: List of individual transfers in a bulk transfer.
18
+ type: array
19
+ minItems: 1
20
+ maxItems: 1000
21
+ items:
22
+ $ref: ./individualTransfer.yaml
23
+ extensions:
24
+ $ref: ./ExtensionList.yaml
@@ -0,0 +1,15 @@
1
+ type: object
2
+ required:
3
+ - from
4
+ - individualTransferResults
5
+ properties:
6
+ transferId:
7
+ $ref: ./CorrelationId.yaml
8
+ from:
9
+ $ref: ./transferParty.yaml
10
+ individualTransferResults:
11
+ type: array
12
+ maxItems: 1000
13
+ items:
14
+ $ref: ./individualTransferResult.yaml
15
+ description: List of individual transfer result in a bulk transfer response.
@@ -0,0 +1,4 @@
1
+ type: string
2
+ enum:
3
+ - ERROR_OCCURRED
4
+ - COMPLETED
@@ -0,0 +1,8 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
4
+ required:
5
+ - executionState
6
+ properties:
7
+ executionState:
8
+ $ref: ./accountsResponse.yaml
@@ -0,0 +1,3 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
@@ -0,0 +1,8 @@
1
+ type: object
2
+ properties:
3
+ statusCode:
4
+ type: string
5
+ description: Error code as string.
6
+ message:
7
+ type: string
8
+ description: Error message text.
@@ -0,0 +1,3 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
@@ -0,0 +1,8 @@
1
+ allOf:
2
+ - $ref: ./errorResponse.yaml
3
+ - type: object
4
+ required:
5
+ - transferState
6
+ properties:
7
+ transferState:
8
+ $ref: ./transferResponse.yaml
@@ -0,0 +1,5 @@
1
+ type: array
2
+ items:
3
+ $ref: ./Extension.yaml
4
+ minItems: 0
5
+ maxItems: 16
@@ -0,0 +1,26 @@
1
+ title: IndividualQuote
2
+ type: object
3
+ description: Data model for the complex type 'individualQuote'.
4
+ properties:
5
+ quoteId:
6
+ $ref: ./CorrelationId.yaml
7
+ to:
8
+ $ref: ./transferParty.yaml
9
+ amountType:
10
+ $ref: ./AmountType.yaml
11
+ currency:
12
+ $ref: ./Currency.yaml
13
+ amount:
14
+ $ref: ./Amount.yaml
15
+ transactionType:
16
+ $ref: ./TransactionType.yaml
17
+ note:
18
+ $ref: ./Note.yaml
19
+ extensions:
20
+ $ref: ./ExtensionList.yaml
21
+ required:
22
+ - quoteId
23
+ - to
24
+ - amountType
25
+ - currency
26
+ - transactionType
@@ -0,0 +1,23 @@
1
+ type: object
2
+ properties:
3
+ quoteId:
4
+ $ref: ./CorrelationId.yaml
5
+ to:
6
+ $ref: ./transferParty.yaml
7
+ amountType:
8
+ $ref: ./AmountType.yaml
9
+ currency:
10
+ $ref: ./Currency.yaml
11
+ amount:
12
+ $ref: ./Amount.yaml
13
+ transactionType:
14
+ $ref: ./TransactionType.yaml
15
+ note:
16
+ $ref: ./Note.yaml
17
+ lastError:
18
+ description: >
19
+ Object representing the last error to occur during a quote process. This
20
+ may be a Mojaloop API error returned from another entity in the scheme or
21
+ an object representing other types of error e.g. exceptions that may occur
22
+ inside the scheme adapter.
23
+ $ref: ./quoteError.yaml
@@ -0,0 +1,31 @@
1
+ title: IndividualTransaction
2
+ type: object
3
+ description: Data model for the complex type 'individualTransaction'.
4
+ properties:
5
+ homeTransactionId:
6
+ $ref: ./CorrelationId.yaml
7
+ to:
8
+ $ref: ./Party.yaml
9
+ reference:
10
+ description: Payer Loan reference
11
+ type: string
12
+ amountType:
13
+ $ref: ./AmountType.yaml
14
+ currency:
15
+ $ref: ./Currency.yaml
16
+ amount:
17
+ $ref: ./Amount.yaml
18
+ note:
19
+ $ref: ./Note.yaml
20
+ quoteExtensions:
21
+ $ref: ./ExtensionList.yaml
22
+ transferExtensions:
23
+ $ref: ./ExtensionList.yaml
24
+ lastError:
25
+ $ref: ./transferError.yaml
26
+ required:
27
+ - homeTransactionId
28
+ - to
29
+ - amountType
30
+ - currency
31
+ - amount
@@ -0,0 +1,10 @@
1
+ type: object
2
+ description: Data model for the 'individualTransfer' while accepting party or quote.
3
+ properties:
4
+ homeTransactionId:
5
+ $ref: ./CorrelationId.yaml
6
+ transactionId:
7
+ $ref: ./CorrelationId.yaml
8
+ required:
9
+ - homeTransactionId
10
+ - transactionId
@@ -0,0 +1,37 @@
1
+ type: object
2
+ required:
3
+ - homeTransactionId
4
+ - transactionId
5
+ - to
6
+ - amountType
7
+ - currency
8
+ - amount
9
+ properties:
10
+ transferId:
11
+ $ref: ./CorrelationId.yaml
12
+ homeTransactionId:
13
+ $ref: ./CorrelationId.yaml
14
+ transactionId:
15
+ $ref: ./CorrelationId.yaml
16
+ to:
17
+ $ref: ./Party.yaml
18
+ amountType:
19
+ $ref: ./AmountType.yaml
20
+ currency:
21
+ $ref: ./Currency.yaml
22
+ amount:
23
+ $ref: ./Amount.yaml
24
+ note:
25
+ $ref: ./Note.yaml
26
+ quoteId:
27
+ $ref: ./CorrelationId.yaml
28
+ quoteResponse:
29
+ $ref: ./QuotesIDPutResponse.yaml
30
+ fulfil:
31
+ $ref: ./TransfersIDPutResponse.yaml
32
+ quoteExtensions:
33
+ $ref: ./ExtensionList.yaml
34
+ transferExtensions:
35
+ $ref: ./ExtensionList.yaml
36
+ lastError:
37
+ $ref: ./transferError.yaml
@@ -0,0 +1,26 @@
1
+ title: IndividualTransfer
2
+ type: object
3
+ description: Data model for the complex type 'individualTransfer'.
4
+ properties:
5
+ transferId:
6
+ $ref: ./CorrelationId.yaml
7
+ to:
8
+ $ref: ./transferParty.yaml
9
+ amountType:
10
+ $ref: ./AmountType.yaml
11
+ currency:
12
+ $ref: ./Currency.yaml
13
+ amount:
14
+ $ref: ./Amount.yaml
15
+ transactionType:
16
+ $ref: ./TransactionType.yaml
17
+ note:
18
+ $ref: ./Note.yaml
19
+ extensions:
20
+ $ref: ./ExtensionList.yaml
21
+ required:
22
+ - transferId
23
+ - to
24
+ - amountType
25
+ - currency
26
+ - amount
@@ -0,0 +1,13 @@
1
+ type: object
2
+ description: >-
3
+ A Mojaloop API transfer fulfilment for individual transfers in a bulk
4
+ transfer
5
+ properties:
6
+ fulfilment:
7
+ $ref: ./IlpFulfilment.yaml
8
+ description: >
9
+ Fulfilment of the condition specified with the transaction.
10
+ Mandatory if transfer has completed successfully.
11
+ extensionList:
12
+ $ref: ./ExtensionList.yaml
13
+ description: 'Optional extension, specific to deployment.'
@@ -0,0 +1,37 @@
1
+ type: object
2
+ required:
3
+ - transactionId
4
+ - to
5
+ - amountType
6
+ - currency
7
+ - amount
8
+ properties:
9
+ transferId:
10
+ $ref: ./CorrelationId.yaml
11
+ to:
12
+ $ref: ./transferParty.yaml
13
+ amountType:
14
+ $ref: ./AmountType.yaml
15
+ currency:
16
+ $ref: ./Currency.yaml
17
+ amount:
18
+ $ref: ./Amount.yaml
19
+ transactionType:
20
+ $ref: ./TransactionType.yaml
21
+ note:
22
+ $ref: ./Note.yaml
23
+ quoteId:
24
+ $ref: ./CorrelationId.yaml
25
+ quoteResponse:
26
+ $ref: ./QuotesIDPutResponse.yaml
27
+ quoteResponseSource:
28
+ type: string
29
+ description: >
30
+ FSPID of the entity that supplied the quote response. This may not
31
+ be the same as the FSPID of the entity which owns the end user
32
+ account in the case of a FOREX transfer. i.e. it may be a FOREX
33
+ gateway.
34
+ fulfil:
35
+ $ref: ./TransfersIDPutResponse.yaml
36
+ lastError:
37
+ $ref: ./transferError.yaml
@@ -0,0 +1,4 @@
1
+ type: object
2
+ properties:
3
+ errorInformation:
4
+ $ref: ./ErrorInformation.yaml
@@ -0,0 +1,19 @@
1
+ title: partiesByIdResponse
2
+ type: object
3
+ description: GET /parties/{Type}/{ID} response object
4
+ properties:
5
+ party:
6
+ properties:
7
+ body:
8
+ $ref: ./Party.yaml
9
+ description: Information regarding the requested Party.
10
+ headers:
11
+ type: object
12
+ required:
13
+ - body
14
+ - headers
15
+ currentState:
16
+ $ref: ./async2SyncCurrentState.yaml
17
+ required:
18
+ - party
19
+ - currentState
@@ -0,0 +1,16 @@
1
+ type: object
2
+ description: >-
3
+ This object represents a Mojaloop API error received at any time during the
4
+ party discovery process
5
+ properties:
6
+ httpStatusCode:
7
+ type: integer
8
+ description: >-
9
+ The HTTP status code returned to the caller. This is the same as the
10
+ actual HTTP status code returned with the response.
11
+ mojaloopError:
12
+ description: >-
13
+ If a transfer process results in an error callback during the asynchronous
14
+ Mojaloop API exchange, this property will contain the underlying Mojaloop
15
+ API error object.
16
+ $ref: ./mojaloopError.yaml
@@ -0,0 +1,16 @@
1
+ type: object
2
+ description: >-
3
+ This object represents a Mojaloop API error received at any time during the
4
+ quote process
5
+ properties:
6
+ httpStatusCode:
7
+ type: integer
8
+ description: >-
9
+ The HTTP status code returned to the caller. This is the same as the
10
+ actual HTTP status code returned with the response.
11
+ mojaloopError:
12
+ description: >-
13
+ If a quote process results in an error callback during the asynchronous
14
+ Mojaloop API exchange, this property will contain the underlying Mojaloop
15
+ API error object.
16
+ $ref: ./mojaloopError.yaml
@@ -0,0 +1,48 @@
1
+ title: QuotesPostResponse
2
+ type: object
3
+ properties:
4
+ quotes:
5
+ title: QuotesIDPutResponse
6
+ type: object
7
+ description: The object sent in the PUT /quotes/{ID} callback.
8
+ properties:
9
+ body:
10
+ type: object
11
+ properties:
12
+ transferAmount:
13
+ $ref: ./Money.yaml
14
+ payeeReceiveAmount:
15
+ $ref: ./Money.yaml
16
+ payeeFspFee:
17
+ $ref: ./Money.yaml
18
+ payeeFspCommission:
19
+ $ref: ./Money.yaml
20
+ expiration:
21
+ type: string
22
+ description: >-
23
+ Date and time until when the quotation is valid and can be honored
24
+ when used in the subsequent transaction.
25
+ example: '2016-05-24T08:38:08.699-04:00'
26
+ geoCode:
27
+ $ref: ./GeoCode.yaml
28
+ ilpPacket:
29
+ $ref: ./IlpPacket.yaml
30
+ condition:
31
+ $ref: ./IlpCondition.yaml
32
+ extensionList:
33
+ $ref: ./ExtensionList.yaml
34
+ required:
35
+ - transferAmount
36
+ - expiration
37
+ - ilpPacket
38
+ - condition
39
+ headers:
40
+ type: object
41
+ required:
42
+ - body
43
+ - headers
44
+ currentState:
45
+ $ref: ./async2SyncCurrentState.yaml
46
+ required:
47
+ - quotes
48
+ - currentState
@@ -0,0 +1,33 @@
1
+ type: object
2
+ required:
3
+ - homeTransactionId
4
+ - from
5
+ - to
6
+ - amountType
7
+ - currency
8
+ - amount
9
+ - scenario
10
+ - initiator
11
+ - initiatorType
12
+ properties:
13
+ homeTransactionId:
14
+ type: string
15
+ description: >-
16
+ Transaction ID from the DFSP backend, used to reconcile transactions
17
+ between the Switch and DFSP backend systems.
18
+ from:
19
+ $ref: ./transferParty.yaml
20
+ to:
21
+ $ref: ./transferParty.yaml
22
+ amountType:
23
+ $ref: ./AmountType.yaml
24
+ currency:
25
+ $ref: ./Currency.yaml
26
+ amount:
27
+ $ref: ./Amount.yaml
28
+ scenario:
29
+ $ref: ./TransactionType.yaml
30
+ initiator:
31
+ $ref: ./TransactionInitiator.yaml
32
+ initiatorType:
33
+ $ref: ./TransactionInitiatorType.yaml