@mojaloop/sdk-scheme-adapter 11.18.8
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/.env.example +140 -0
- package/.eslintignore +2 -0
- package/.eslintrc.json +30 -0
- package/.nvmrc +1 -0
- package/.versionrc +15 -0
- package/CHANGELOG.md +118 -0
- package/InboundServer/api.yaml +3594 -0
- package/InboundServer/api_template.yaml +69 -0
- package/InboundServer/handlers.js +940 -0
- package/InboundServer/index.js +205 -0
- package/InboundServer/middlewares.js +426 -0
- package/OAuthTestServer/index.js +66 -0
- package/OAuthTestServer/model.js +70 -0
- package/OutboundServer/api.yaml +2732 -0
- package/OutboundServer/api_interfaces/index.d.ts +117 -0
- package/OutboundServer/api_interfaces/openapi.d.ts +1475 -0
- package/OutboundServer/api_template/components/parameters/bulkQuoteId.yaml +9 -0
- package/OutboundServer/api_template/components/parameters/bulkTransferId.yaml +9 -0
- package/OutboundServer/api_template/components/parameters/requestToPayTransactionId.yaml +9 -0
- package/OutboundServer/api_template/components/parameters/transferId.yaml +9 -0
- package/OutboundServer/api_template/components/responses/accountsCreationCompleted.yaml +5 -0
- package/OutboundServer/api_template/components/responses/accountsCreationError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/accountsCreationTimeout.yaml +5 -0
- package/OutboundServer/api_template/components/responses/authorizationPostSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/authorizationsServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkQuoteBadRequest.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkQuoteServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkQuoteSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkQuoteTimeout.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkTransferBadRequest.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkTransferServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkTransferSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/bulkTransferTimeout.yaml +5 -0
- package/OutboundServer/api_template/components/responses/partiesByIdError404.yaml +9 -0
- package/OutboundServer/api_template/components/responses/partiesByIdSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/quotesPostSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/quotesServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/requestToPaySuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/requestToPayTransferBadRequest.yaml +5 -0
- package/OutboundServer/api_template/components/responses/requestToPayTransferSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/simpleTransfersPostSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/simpleTransfersServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/transferBadRequest.yaml +5 -0
- package/OutboundServer/api_template/components/responses/transferServerError.yaml +5 -0
- package/OutboundServer/api_template/components/responses/transferSuccess.yaml +5 -0
- package/OutboundServer/api_template/components/responses/transferTimeout.yaml +5 -0
- package/OutboundServer/api_template/components/schemas/accountCreationStatus.yaml +18 -0
- package/OutboundServer/api_template/components/schemas/accountsCreationState.yaml +4 -0
- package/OutboundServer/api_template/components/schemas/accountsRequest.yaml +20 -0
- package/OutboundServer/api_template/components/schemas/accountsResponse.yaml +15 -0
- package/OutboundServer/api_template/components/schemas/async2SyncCurrentState.yaml +5 -0
- package/OutboundServer/api_template/components/schemas/authorizationsPostRequest.yaml +15 -0
- package/OutboundServer/api_template/components/schemas/authorizationsPostResponse.yaml +19 -0
- package/OutboundServer/api_template/components/schemas/bulkQuoteErrorResponse.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/bulkQuoteRequest.yaml +26 -0
- package/OutboundServer/api_template/components/schemas/bulkQuoteResponse.yaml +21 -0
- package/OutboundServer/api_template/components/schemas/bulkQuoteStatus.yaml +4 -0
- package/OutboundServer/api_template/components/schemas/bulkQuoteStatusResponse.yaml +17 -0
- package/OutboundServer/api_template/components/schemas/bulkTransferErrorResponse.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/bulkTransferRequest.yaml +26 -0
- package/OutboundServer/api_template/components/schemas/bulkTransferResponse.yaml +16 -0
- package/OutboundServer/api_template/components/schemas/bulkTransferStatus.yaml +4 -0
- package/OutboundServer/api_template/components/schemas/bulkTransferStatusResponse.yaml +17 -0
- package/OutboundServer/api_template/components/schemas/errorAccountsResponse.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/errorAuthorizationsResponse.yaml +3 -0
- package/OutboundServer/api_template/components/schemas/errorQuotesResponse.yaml +9 -0
- package/OutboundServer/api_template/components/schemas/errorResponse.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/errorSimpleTransfersResponse.yaml +3 -0
- package/OutboundServer/api_template/components/schemas/errorTransferResponse.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/extensionListEmptiable.yaml +6 -0
- package/OutboundServer/api_template/components/schemas/individualQuote.yaml +32 -0
- package/OutboundServer/api_template/components/schemas/individualQuoteResult.yaml +28 -0
- package/OutboundServer/api_template/components/schemas/individualTransfer.yaml +32 -0
- package/OutboundServer/api_template/components/schemas/individualTransferFulfilment.yaml +13 -0
- package/OutboundServer/api_template/components/schemas/individualTransferResult.yaml +41 -0
- package/OutboundServer/api_template/components/schemas/mojaloopError.yaml +5 -0
- package/OutboundServer/api_template/components/schemas/mojaloopTransactionRequestState.yaml +2 -0
- package/OutboundServer/api_template/components/schemas/partiesByIdResponse.yaml +13 -0
- package/OutboundServer/api_template/components/schemas/quote.yaml +3 -0
- package/OutboundServer/api_template/components/schemas/quoteError.yaml +16 -0
- package/OutboundServer/api_template/components/schemas/quotesPostRequest.yaml +13 -0
- package/OutboundServer/api_template/components/schemas/quotesPostResponse.yaml +48 -0
- package/OutboundServer/api_template/components/schemas/requestToPayRequest.yaml +39 -0
- package/OutboundServer/api_template/components/schemas/requestToPayResponse.yaml +41 -0
- package/OutboundServer/api_template/components/schemas/requestToPayTransferRequest.yaml +42 -0
- package/OutboundServer/api_template/components/schemas/requestToPayTransferResponse.yaml +58 -0
- package/OutboundServer/api_template/components/schemas/simpleTransferServerError.yaml +5 -0
- package/OutboundServer/api_template/components/schemas/simpleTransfersPostRequest.yaml +12 -0
- package/OutboundServer/api_template/components/schemas/simpleTransfersPostResponse.yaml +11 -0
- package/OutboundServer/api_template/components/schemas/transactionType.yaml +4 -0
- package/OutboundServer/api_template/components/schemas/transferContinuationAcceptOTP.yaml +9 -0
- package/OutboundServer/api_template/components/schemas/transferContinuationAcceptParty.yaml +8 -0
- package/OutboundServer/api_template/components/schemas/transferContinuationAcceptQuote.yaml +9 -0
- package/OutboundServer/api_template/components/schemas/transferError.yaml +16 -0
- package/OutboundServer/api_template/components/schemas/transferFulfilment.yaml +3 -0
- package/OutboundServer/api_template/components/schemas/transferParty.yaml +40 -0
- package/OutboundServer/api_template/components/schemas/transferRequest.yaml +37 -0
- package/OutboundServer/api_template/components/schemas/transferResponse.yaml +58 -0
- package/OutboundServer/api_template/components/schemas/transferStatus.yaml +6 -0
- package/OutboundServer/api_template/components/schemas/transferStatusResponse.yaml +13 -0
- package/OutboundServer/api_template/health.yaml +12 -0
- package/OutboundServer/api_template/openapi.yaml +55 -0
- package/OutboundServer/api_template/paths/accounts.yaml +26 -0
- package/OutboundServer/api_template/paths/authorizations.yaml +19 -0
- package/OutboundServer/api_template/paths/bulkQuotes.yaml +23 -0
- package/OutboundServer/api_template/paths/bulkQuotes_bulkQuoteId.yaml +24 -0
- package/OutboundServer/api_template/paths/bulkTransfers.yaml +23 -0
- package/OutboundServer/api_template/paths/bulkTransfers_bulkTransferId.yaml +24 -0
- package/OutboundServer/api_template/paths/parties_Type_ID.yaml +20 -0
- package/OutboundServer/api_template/paths/parties_Type_ID_SubId.yaml +22 -0
- package/OutboundServer/api_template/paths/quotes.yaml +20 -0
- package/OutboundServer/api_template/paths/requestToPay.yaml +22 -0
- package/OutboundServer/api_template/paths/requestToPayTransfer.yaml +57 -0
- package/OutboundServer/api_template/paths/requestToPayTransfer_requestToPayTransactionId.yaml +34 -0
- package/OutboundServer/api_template/paths/simpleTransfers.yaml +19 -0
- package/OutboundServer/api_template/paths/transfers.yaml +55 -0
- package/OutboundServer/api_template/paths/transfers_transferId.yaml +58 -0
- package/OutboundServer/handlers.js +622 -0
- package/OutboundServer/index.js +137 -0
- package/OutboundServer/middlewares.js +67 -0
- package/TestServer/api.yaml +62 -0
- package/TestServer/handlers.js +63 -0
- package/TestServer/index.js +215 -0
- package/audit-resolve.json +65 -0
- package/babel.config.js +3 -0
- package/config.js +158 -0
- package/index.d.ts +1 -0
- package/index.js +149 -0
- package/jest.config.js +15 -0
- package/lib/api/index.js +12 -0
- package/lib/cache.js +352 -0
- package/lib/check.js +25 -0
- package/lib/model/AccountsModel.js +396 -0
- package/lib/model/Async2SyncModel.js +283 -0
- package/lib/model/AuthorizationsModel.js +86 -0
- package/lib/model/InboundTransfersModel.js +730 -0
- package/lib/model/OutboundBulkQuotesModel.js +485 -0
- package/lib/model/OutboundBulkTransfersModel.js +479 -0
- package/lib/model/OutboundRequestToPayModel.js +517 -0
- package/lib/model/OutboundRequestToPayTransferModel.js +893 -0
- package/lib/model/OutboundTransfersModel.js +823 -0
- package/lib/model/PartiesModel.js +70 -0
- package/lib/model/ProxyModel/MatchRules/Expression.js +48 -0
- package/lib/model/ProxyModel/MatchRules/Headers.js +65 -0
- package/lib/model/ProxyModel/MatchRules/MatchRule.js +27 -0
- package/lib/model/ProxyModel/MatchRules/Path.js +36 -0
- package/lib/model/ProxyModel/MatchRules/Query.js +65 -0
- package/lib/model/ProxyModel/MatchRules/index.js +19 -0
- package/lib/model/ProxyModel/Route.js +82 -0
- package/lib/model/ProxyModel/configSchema.json +118 -0
- package/lib/model/ProxyModel/index.js +138 -0
- package/lib/model/QuotesModel.js +94 -0
- package/lib/model/TransfersModel.js +81 -0
- package/lib/model/common/BackendError.js +26 -0
- package/lib/model/common/PersistentStateMachine.js +93 -0
- package/lib/model/common/index.js +18 -0
- package/lib/model/index.js +43 -0
- package/lib/model/lib/deferredJob.js +113 -0
- package/lib/model/lib/index.js +9 -0
- package/lib/model/lib/requests/backendRequests.js +227 -0
- package/lib/model/lib/requests/common.js +76 -0
- package/lib/model/lib/requests/index.js +19 -0
- package/lib/model/lib/shared.js +468 -0
- package/lib/randomphrase/index.js +21 -0
- package/lib/randomphrase/words.json +3397 -0
- package/lib/router.js +28 -0
- package/lib/validate.js +205 -0
- package/package.json +102 -0
- package/test/__mocks__/@mojaloop/sdk-standard-components.js +152 -0
- package/test/__mocks__/javascript-state-machine.js +21 -0
- package/test/__mocks__/redis.js +49 -0
- package/test/__mocks__/uuidv4.js +16 -0
- package/test/config/integration.env +136 -0
- package/test/integration/lib/Outbound/authorizations.test.js +58 -0
- package/test/integration/lib/Outbound/data/authorizationsPostRequest.json +43 -0
- package/test/integration/lib/Outbound/data/quotesPostRequest.json +52 -0
- package/test/integration/lib/Outbound/data/transfersPostRequest.json +24 -0
- package/test/integration/lib/Outbound/parties.test.js +28 -0
- package/test/integration/lib/Outbound/quotes.test.js +58 -0
- package/test/integration/lib/Outbound/simpleTransfers.test.js +67 -0
- package/test/integration/lib/cache.test.js +80 -0
- package/test/integration/testEnv.js +7 -0
- package/test/unit/InboundServer.test.js +443 -0
- package/test/unit/TestServer.test.js +394 -0
- package/test/unit/api/accounts/accounts.test.js +128 -0
- package/test/unit/api/accounts/data/postAccountsBody.json +7 -0
- package/test/unit/api/accounts/data/postAccountsErrorMojaloopResponse.json +25 -0
- package/test/unit/api/accounts/data/postAccountsErrorTimeoutResponse.json +19 -0
- package/test/unit/api/accounts/data/postAccountsSuccessResponse.json +17 -0
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json +21 -0
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError2.json +21 -0
- package/test/unit/api/accounts/utils.js +65 -0
- package/test/unit/api/proxy/data/proxyConfig.yaml +82 -0
- package/test/unit/api/proxy/data/requestBody.json +22 -0
- package/test/unit/api/proxy/data/requestHeaders.json +5 -0
- package/test/unit/api/proxy/data/requestQuery.json +6 -0
- package/test/unit/api/proxy/data/responseBody.json +21 -0
- package/test/unit/api/proxy/data/responseHeaders.json +5 -0
- package/test/unit/api/proxy/proxy.test.js +220 -0
- package/test/unit/api/proxy/utils.js +79 -0
- package/test/unit/api/transfers/data/getTransfersCommittedResponse.json +21 -0
- package/test/unit/api/transfers/data/getTransfersErrorNotFound.json +17 -0
- package/test/unit/api/transfers/data/postQuotesBody.json +52 -0
- package/test/unit/api/transfers/data/postTransfersBadBody.json +17 -0
- package/test/unit/api/transfers/data/postTransfersBody.json +24 -0
- package/test/unit/api/transfers/data/postTransfersErrorMojaloopResponse.json +53 -0
- package/test/unit/api/transfers/data/postTransfersErrorTimeoutResponse.json +47 -0
- package/test/unit/api/transfers/data/postTransfersSimpleBody.json +26 -0
- package/test/unit/api/transfers/data/postTransfersSuccessResponse.json +101 -0
- package/test/unit/api/transfers/data/putPartiesBody.json +20 -0
- package/test/unit/api/transfers/data/putQuotesBody.json +37 -0
- package/test/unit/api/transfers/data/putTransfersBody.json +17 -0
- package/test/unit/api/transfers/transfers.test.js +191 -0
- package/test/unit/api/transfers/utils.js +183 -0
- package/test/unit/api/utils.js +75 -0
- package/test/unit/config.test.js +119 -0
- package/test/unit/data/commonHttpHeaders.json +6 -0
- package/test/unit/data/defaultConfig.json +58 -0
- package/test/unit/data/postQuotesBody.json +52 -0
- package/test/unit/data/putParticipantsBody.json +12 -0
- package/test/unit/data/putPartiesBody.json +20 -0
- package/test/unit/data/testFile.json +29 -0
- package/test/unit/data/testFile.yaml +14 -0
- package/test/unit/inboundApi/data/mockArguments.json +117 -0
- package/test/unit/inboundApi/data/mockTransactionRequest.json +42 -0
- package/test/unit/inboundApi/handlers.test.js +799 -0
- package/test/unit/index.test.js +55 -0
- package/test/unit/lib/cache.test.js +146 -0
- package/test/unit/lib/model/AccountsModel.test.js +121 -0
- package/test/unit/lib/model/AuthorizationsModel.test.js +460 -0
- package/test/unit/lib/model/InboundTransfersModel.test.js +628 -0
- package/test/unit/lib/model/OutboundBulkQuotesModel.test.js +249 -0
- package/test/unit/lib/model/OutboundBulkTransfersModel.test.js +244 -0
- package/test/unit/lib/model/OutboundRequestToPayModel.test.js +166 -0
- package/test/unit/lib/model/OutboundRequestToPayTransferModel.test.js +245 -0
- package/test/unit/lib/model/OutboundTransfersModel.test.js +836 -0
- package/test/unit/lib/model/PartiesModel.test.js +468 -0
- package/test/unit/lib/model/QuotesModel.test.js +470 -0
- package/test/unit/lib/model/TransfersModel.test.js +474 -0
- package/test/unit/lib/model/common/PersistentStateMachine.test.js +179 -0
- package/test/unit/lib/model/data/authorizationsResponse.json +13 -0
- package/test/unit/lib/model/data/bulkQuoteRequest.json +27 -0
- package/test/unit/lib/model/data/bulkQuoteResponse.json +35 -0
- package/test/unit/lib/model/data/bulkTransferFulfil.json +13 -0
- package/test/unit/lib/model/data/bulkTransferRequest.json +29 -0
- package/test/unit/lib/model/data/defaultConfig.json +47 -0
- package/test/unit/lib/model/data/getBulkTransfersBackendResponse.json +42 -0
- package/test/unit/lib/model/data/getBulkTransfersMojaloopResponse.json +22 -0
- package/test/unit/lib/model/data/getTransfersBackendResponse.json +34 -0
- package/test/unit/lib/model/data/getTransfersMojaloopResponse.json +17 -0
- package/test/unit/lib/model/data/mockArguments.json +131 -0
- package/test/unit/lib/model/data/mockTxnRequestsArguments.json +63 -0
- package/test/unit/lib/model/data/notificationToPayee.json +10 -0
- package/test/unit/lib/model/data/payeeParty.json +16 -0
- package/test/unit/lib/model/data/putAuthorizationsResponse.json +10 -0
- package/test/unit/lib/model/data/putQuotesResponse.json +33 -0
- package/test/unit/lib/model/data/putTransfersResponse.json +5 -0
- package/test/unit/lib/model/data/quoteResponse.json +31 -0
- package/test/unit/lib/model/data/requestToPayRequest.json +20 -0
- package/test/unit/lib/model/data/requestToPayTransferRequest.json +27 -0
- package/test/unit/lib/model/data/transactionRequestResponse.json +18 -0
- package/test/unit/lib/model/data/transferFulfil.json +8 -0
- package/test/unit/lib/model/data/transferRequest.json +26 -0
- package/test/unit/lib/model/mockedLibRequests.js +74 -0
- package/test/unit/mockLogger.js +39 -0
- package/test/unit/outboundApi/data/bulkQuoteRequest.json +28 -0
- package/test/unit/outboundApi/data/bulkTransferRequest.json +28 -0
- package/test/unit/outboundApi/data/mockBulkQuoteError.json +45 -0
- package/test/unit/outboundApi/data/mockBulkTransferError.json +48 -0
- package/test/unit/outboundApi/data/mockError.json +41 -0
- package/test/unit/outboundApi/data/mockGetPartiesError.json +4 -0
- package/test/unit/outboundApi/data/mockRequestToPayError.json +32 -0
- package/test/unit/outboundApi/data/mockRequestToPayTransferError.json +39 -0
- package/test/unit/outboundApi/data/requestToPay.json +21 -0
- package/test/unit/outboundApi/data/requestToPayTransferRequest.json +20 -0
- package/test/unit/outboundApi/data/transferRequest.json +21 -0
- package/test/unit/outboundApi/handlers.test.js +986 -0
|
@@ -0,0 +1,26 @@
|
|
|
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: >-
|
|
14
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
15
|
+
from:
|
|
16
|
+
$ref: ./transferParty.yaml
|
|
17
|
+
individualTransfers:
|
|
18
|
+
description: List of individual transfers in a bulk transfer.
|
|
19
|
+
type: array
|
|
20
|
+
minItems: 1
|
|
21
|
+
maxItems: 1000
|
|
22
|
+
items:
|
|
23
|
+
$ref: ./individualTransfer.yaml
|
|
24
|
+
extensions:
|
|
25
|
+
$ref: >-
|
|
26
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/ExtensionList.yaml
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- from
|
|
4
|
+
- individualTransferResults
|
|
5
|
+
properties:
|
|
6
|
+
transferId:
|
|
7
|
+
$ref: >-
|
|
8
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
9
|
+
from:
|
|
10
|
+
$ref: ./transferParty.yaml
|
|
11
|
+
individualTransferResults:
|
|
12
|
+
type: array
|
|
13
|
+
maxItems: 1000
|
|
14
|
+
items:
|
|
15
|
+
$ref: ./individualTransferResult.yaml
|
|
16
|
+
description: List of individual transfer result in a bulk transfer response.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- bulkTransferId
|
|
4
|
+
- currentState
|
|
5
|
+
- fulfils
|
|
6
|
+
properties:
|
|
7
|
+
bulkTransferId:
|
|
8
|
+
$ref: >-
|
|
9
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
10
|
+
currentState:
|
|
11
|
+
$ref: ./bulkTransferStatus.yaml
|
|
12
|
+
fulfils:
|
|
13
|
+
type: array
|
|
14
|
+
minItems: 1
|
|
15
|
+
maxItems: 1000
|
|
16
|
+
items:
|
|
17
|
+
$ref: ./individualTransferFulfilment.yaml
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
title: IndividualQuote
|
|
2
|
+
type: object
|
|
3
|
+
description: Data model for the complex type 'individualQuote'.
|
|
4
|
+
properties:
|
|
5
|
+
quoteId:
|
|
6
|
+
$ref: >-
|
|
7
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
8
|
+
to:
|
|
9
|
+
$ref: ./transferParty.yaml
|
|
10
|
+
amountType:
|
|
11
|
+
$ref: >-
|
|
12
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
13
|
+
currency:
|
|
14
|
+
$ref: >-
|
|
15
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
16
|
+
amount:
|
|
17
|
+
$ref: >-
|
|
18
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
19
|
+
transactionType:
|
|
20
|
+
$ref: ./transactionType.yaml
|
|
21
|
+
note:
|
|
22
|
+
$ref: >-
|
|
23
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Note.yaml
|
|
24
|
+
extensions:
|
|
25
|
+
$ref: >-
|
|
26
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/ExtensionList.yaml
|
|
27
|
+
required:
|
|
28
|
+
- quoteId
|
|
29
|
+
- to
|
|
30
|
+
- amountType
|
|
31
|
+
- currency
|
|
32
|
+
- transactionType
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
properties:
|
|
3
|
+
quoteId:
|
|
4
|
+
$ref: >-
|
|
5
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
6
|
+
to:
|
|
7
|
+
$ref: ./transferParty.yaml
|
|
8
|
+
amountType:
|
|
9
|
+
$ref: >-
|
|
10
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
11
|
+
currency:
|
|
12
|
+
$ref: >-
|
|
13
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
14
|
+
amount:
|
|
15
|
+
$ref: >-
|
|
16
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
17
|
+
transactionType:
|
|
18
|
+
$ref: ./transactionType.yaml
|
|
19
|
+
note:
|
|
20
|
+
$ref: >-
|
|
21
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Note.yaml
|
|
22
|
+
lastError:
|
|
23
|
+
description: >
|
|
24
|
+
Object representing the last error to occur during a quote process. This
|
|
25
|
+
may be a Mojaloop API error returned from another entity in the scheme or
|
|
26
|
+
an object representing other types of error e.g. exceptions that may occur
|
|
27
|
+
inside the scheme adapter.
|
|
28
|
+
$ref: ./quoteError.yaml
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
title: IndividualTransfer
|
|
2
|
+
type: object
|
|
3
|
+
description: Data model for the complex type 'individualTransfer'.
|
|
4
|
+
properties:
|
|
5
|
+
transferId:
|
|
6
|
+
$ref: >-
|
|
7
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
8
|
+
to:
|
|
9
|
+
$ref: ./transferParty.yaml
|
|
10
|
+
amountType:
|
|
11
|
+
$ref: >-
|
|
12
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
13
|
+
currency:
|
|
14
|
+
$ref: >-
|
|
15
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
16
|
+
amount:
|
|
17
|
+
$ref: >-
|
|
18
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
19
|
+
transactionType:
|
|
20
|
+
$ref: ./transactionType.yaml
|
|
21
|
+
note:
|
|
22
|
+
$ref: >-
|
|
23
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Note.yaml
|
|
24
|
+
extensions:
|
|
25
|
+
$ref: >-
|
|
26
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/ExtensionList.yaml
|
|
27
|
+
required:
|
|
28
|
+
- transferId
|
|
29
|
+
- to
|
|
30
|
+
- amountType
|
|
31
|
+
- currency
|
|
32
|
+
- transactionType
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
description: A Mojaloop API transfer fulfilment for individual transfers in a bulk transfer
|
|
3
|
+
properties:
|
|
4
|
+
fulfilment:
|
|
5
|
+
$ref: >-
|
|
6
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/IlpFulfilment.yaml
|
|
7
|
+
description: >
|
|
8
|
+
Fulfilment of the condition specified with the transaction. Mandatory if
|
|
9
|
+
transfer has completed successfully.
|
|
10
|
+
extensionList:
|
|
11
|
+
$ref: >-
|
|
12
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/ExtensionList.yaml
|
|
13
|
+
description: 'Optional extension, specific to deployment.'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
properties:
|
|
3
|
+
transferId:
|
|
4
|
+
$ref: >-
|
|
5
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
6
|
+
to:
|
|
7
|
+
$ref: ./transferParty.yaml
|
|
8
|
+
amountType:
|
|
9
|
+
$ref: >-
|
|
10
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
11
|
+
currency:
|
|
12
|
+
$ref: >-
|
|
13
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
14
|
+
amount:
|
|
15
|
+
$ref: >-
|
|
16
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
17
|
+
transactionType:
|
|
18
|
+
$ref: ./transactionType.yaml
|
|
19
|
+
note:
|
|
20
|
+
$ref: >-
|
|
21
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Note.yaml
|
|
22
|
+
quoteId:
|
|
23
|
+
$ref: >-
|
|
24
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
25
|
+
quoteResponse:
|
|
26
|
+
$ref: ./quote.yaml
|
|
27
|
+
quoteResponseSource:
|
|
28
|
+
type: string
|
|
29
|
+
description: >
|
|
30
|
+
FSPID of the entity that supplied the quote response. This may not be the
|
|
31
|
+
same as the FSPID of the entity which owns the end user account in the
|
|
32
|
+
case of a FOREX transfer. i.e. it may be a FOREX gateway.
|
|
33
|
+
fulfil:
|
|
34
|
+
$ref: ./transferFulfilment.yaml
|
|
35
|
+
lastError:
|
|
36
|
+
description: >
|
|
37
|
+
Object representing the last error to occur during a transfer process.
|
|
38
|
+
This may be a Mojaloop API error returned from another entity in the
|
|
39
|
+
scheme or an object representing other types of error e.g. exceptions that
|
|
40
|
+
may occur inside the scheme adapter.
|
|
41
|
+
$ref: ./transferError.yaml
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
title: partiesByIdResponse
|
|
2
|
+
type: object
|
|
3
|
+
description: 'GET /parties/{Type}/{ID} response object'
|
|
4
|
+
properties:
|
|
5
|
+
party:
|
|
6
|
+
$ref: >-
|
|
7
|
+
../../../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/components/schemas/Party.yaml
|
|
8
|
+
description: Information regarding the requested Party.
|
|
9
|
+
currentState:
|
|
10
|
+
$ref: ../schemas/async2SyncCurrentState.yaml
|
|
11
|
+
required:
|
|
12
|
+
- party
|
|
13
|
+
- 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
|
+
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,13 @@
|
|
|
1
|
+
title: QuotesPostRequest
|
|
2
|
+
type: object
|
|
3
|
+
properties:
|
|
4
|
+
fspId:
|
|
5
|
+
title: destination DFSP requested to calculate the quote
|
|
6
|
+
$ref: >-
|
|
7
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/FspId.yaml
|
|
8
|
+
quotesPostRequest:
|
|
9
|
+
$ref: >-
|
|
10
|
+
../../../../node_modules/@mojaloop/api-snippets/thirdparty/openapi3/components/schemas/QuotesPostRequest.yaml
|
|
11
|
+
required:
|
|
12
|
+
- fspId
|
|
13
|
+
- quotesPostRequest
|
|
@@ -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
|
+
transferAmount:
|
|
10
|
+
$ref: >-
|
|
11
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Money.yaml
|
|
12
|
+
payeeReceiveAmount:
|
|
13
|
+
$ref: >-
|
|
14
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Money.yaml
|
|
15
|
+
payeeFspFee:
|
|
16
|
+
$ref: >-
|
|
17
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Money.yaml
|
|
18
|
+
payeeFspCommission:
|
|
19
|
+
$ref: >-
|
|
20
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Money.yaml
|
|
21
|
+
expiration:
|
|
22
|
+
type: string
|
|
23
|
+
description: >-
|
|
24
|
+
Date and time until when the quotation is valid and can be honored when
|
|
25
|
+
used in the subsequent transaction.
|
|
26
|
+
example: '2016-05-24T08:38:08.699-04:00'
|
|
27
|
+
geoCode:
|
|
28
|
+
$ref: >-
|
|
29
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/GeoCode.yaml
|
|
30
|
+
ilpPacket:
|
|
31
|
+
$ref: >-
|
|
32
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/IlpPacket.yaml
|
|
33
|
+
condition:
|
|
34
|
+
$ref: >-
|
|
35
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/IlpCondition.yaml
|
|
36
|
+
extensionList:
|
|
37
|
+
$ref: >-
|
|
38
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/ExtensionList.yaml
|
|
39
|
+
required:
|
|
40
|
+
- transferAmount
|
|
41
|
+
- expiration
|
|
42
|
+
- ilpPacket
|
|
43
|
+
- condition
|
|
44
|
+
currentState:
|
|
45
|
+
$ref: ../schemas/async2SyncCurrentState.yaml
|
|
46
|
+
required:
|
|
47
|
+
- quotes
|
|
48
|
+
- currentState
|
|
@@ -0,0 +1,39 @@
|
|
|
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: >-
|
|
24
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
25
|
+
currency:
|
|
26
|
+
$ref: >-
|
|
27
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
28
|
+
amount:
|
|
29
|
+
$ref: >-
|
|
30
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
31
|
+
scenario:
|
|
32
|
+
$ref: >-
|
|
33
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionType.yaml
|
|
34
|
+
initiator:
|
|
35
|
+
$ref: >-
|
|
36
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionInitiator.yaml
|
|
37
|
+
initiatorType:
|
|
38
|
+
$ref: >-
|
|
39
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionInitiatorType.yaml
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
required:
|
|
3
|
+
- transactionRequestId
|
|
4
|
+
- from
|
|
5
|
+
- to
|
|
6
|
+
- amountType
|
|
7
|
+
- currency
|
|
8
|
+
- amount
|
|
9
|
+
- transactionType
|
|
10
|
+
- requestToPayState
|
|
11
|
+
properties:
|
|
12
|
+
transactionRequestId:
|
|
13
|
+
$ref: >-
|
|
14
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/CorrelationId.yaml
|
|
15
|
+
from:
|
|
16
|
+
$ref: ./transferParty.yaml
|
|
17
|
+
to:
|
|
18
|
+
$ref: ./transferParty.yaml
|
|
19
|
+
amountType:
|
|
20
|
+
$ref: >-
|
|
21
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AmountType.yaml
|
|
22
|
+
currency:
|
|
23
|
+
$ref: >-
|
|
24
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Currency.yaml
|
|
25
|
+
amount:
|
|
26
|
+
$ref: >-
|
|
27
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/Amount.yaml
|
|
28
|
+
scenario:
|
|
29
|
+
$ref: >-
|
|
30
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionType.yaml
|
|
31
|
+
initiator:
|
|
32
|
+
$ref: >-
|
|
33
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionInitiator.yaml
|
|
34
|
+
initiatorType:
|
|
35
|
+
$ref: >-
|
|
36
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/TransactionInitiatorType.yaml
|
|
37
|
+
authenticationType:
|
|
38
|
+
$ref: >-
|
|
39
|
+
../../../../node_modules/@mojaloop/api-snippets/fspiop/v1_1/openapi3/components/schemas/AuthenticationType.yaml
|
|
40
|
+
requestToPayState:
|
|
41
|
+
$ref: ./mojaloopTransactionRequestState.yaml
|