@mojaloop/sdk-scheme-adapter 11.18.12 → 12.0.2
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/.circleci/config.yml +619 -0
- package/.nvmrc +1 -1
- package/.versionrc +1 -0
- package/CHANGELOG.md +24 -2
- package/CODEOWNERS +2 -0
- package/Dockerfile +35 -0
- package/LICENSE.md +10 -0
- package/PROXY.md +84 -0
- package/README.md +228 -0
- package/SECURITY.md +18 -0
- package/audit-resolve.json +142 -0
- package/docker/ml-testing-toolkit/secrets/keygen.sh +5 -0
- package/docker/ml-testing-toolkit/secrets/privatekey.pem +27 -0
- package/docker/ml-testing-toolkit/secrets/publickey.cer +21 -0
- package/docker/ml-testing-toolkit/secrets/tls/createSecrets.sh +29 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_client.csr +28 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_client_cacert.pem +32 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_client_cakey.key +51 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_client_key.key +51 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server.csr +28 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server_cacert.pem +32 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server_cacert.srl +1 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server_cakey.key +51 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server_cert.pem +33 -0
- package/docker/ml-testing-toolkit/secrets/tls/hub_server_key.key +51 -0
- package/docker/ml-testing-toolkit/secrets/tls/openssl.conf +17 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/central_admin_9.3/api_spec.yaml +2450 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/central_admin_9.3/response_map.json +96 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/api_spec.yaml +4187 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/callback_map.json +542 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/mockRef.json +83 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/trigger_templates/transaction_request_followup.json +125 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.1/api_spec.yaml +3703 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.1/callback_map.json +568 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.1/mockRef.json +83 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.1/trigger_templates/transaction_request_followup.json +125 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/settlements_1.0/api_spec.yaml +983 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/settlements_1.0/mockRef.json +38 -0
- package/docker/ml-testing-toolkit/spec_files/api_definitions/settlements_1.0/response_map.json +34 -0
- package/docker/ml-testing-toolkit/spec_files/reports/templates/newman/html_template.html +1074 -0
- package/docker/ml-testing-toolkit/spec_files/reports/templates/newman/pdf_template.html +765 -0
- package/docker/ml-testing-toolkit/spec_files/reports/templates/newman/script.js +98 -0
- package/docker/ml-testing-toolkit/spec_files/rules_callback/config.json +3 -0
- package/docker/ml-testing-toolkit/spec_files/rules_callback/default.json +426 -0
- package/docker/ml-testing-toolkit/spec_files/rules_response/config.json +3 -0
- package/docker/ml-testing-toolkit/spec_files/rules_response/default.json +1623 -0
- package/docker/ml-testing-toolkit/spec_files/rules_response/default_pisp_rules.json +161 -0
- package/docker/ml-testing-toolkit/spec_files/rules_validation/config.json +3 -0
- package/docker/ml-testing-toolkit/spec_files/rules_validation/default.json +672 -0
- package/docker/ml-testing-toolkit/spec_files/system_config.json +62 -0
- package/docker/ml-testing-toolkit/spec_files/user_config.json +45 -0
- package/docker/wait4/setup_hosts_file.sh +25 -0
- package/docker/wait4/wait4.config.js +71 -0
- package/docker/wait4/wait4.js +204 -0
- package/docker-compose.yml +67 -0
- package/docs/Mojaloop - Modusbox Onboarding functionality.pdf +0 -0
- package/docs/dfspInboundApi.yaml +1091 -0
- package/jest.config.js +4 -1
- package/junit.xml +515 -0
- package/package.json +15 -13
- package/secrets/jwsSigningKey.key +27 -0
- package/secrets/jwsVerificationKeys/mojaloop-sdk.pem +9 -0
- package/secrets/jwsVerificationKeys/switch.pem +9 -0
- package/sequences.puml +99 -0
- package/{InboundServer → src/InboundServer}/api.yaml +0 -0
- package/src/InboundServer/api_template.yaml +69 -0
- package/{InboundServer → src/InboundServer}/handlers.js +0 -0
- package/{InboundServer → src/InboundServer}/index.js +0 -0
- package/{InboundServer → src/InboundServer}/middlewares.js +0 -0
- package/src/OAuthTestServer/index.js +127 -0
- package/{OAuthTestServer → src/OAuthTestServer}/model.js +0 -0
- package/{OutboundServer → src/OutboundServer}/api.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_interfaces/index.d.ts +1 -17
- package/{OutboundServer → src/OutboundServer}/api_interfaces/openapi.d.ts +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/parameters/bulkQuoteId.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/parameters/bulkTransferId.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/parameters/requestToPayTransactionId.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/parameters/transferId.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/accountsCreationCompleted.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/accountsCreationError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/accountsCreationTimeout.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkQuoteBadRequest.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkQuoteServerError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkQuoteSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkQuoteTimeout.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkTransferBadRequest.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkTransferServerError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkTransferSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/bulkTransferTimeout.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/partiesByIdError404.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/partiesByIdSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/quotesPostSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/quotesServerError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/requestToPaySuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/requestToPayTransferBadRequest.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/requestToPayTransferSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/simpleTransfersPostSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/simpleTransfersServerError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/transferBadRequest.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/transferServerError.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/transferSuccess.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/responses/transferTimeout.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/accountCreationStatus.yaml +18 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/accountsCreationState.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/accountsRequest.yaml +20 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/accountsResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/async2SyncCurrentState.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkQuoteErrorResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkQuoteRequest.yaml +2 -2
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkQuoteResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkQuoteStatus.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkQuoteStatusResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkTransferErrorResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkTransferRequest.yaml +2 -2
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkTransferResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkTransferStatus.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/bulkTransferStatusResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/errorAccountsResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/errorQuotesResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/errorResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/errorSimpleTransfersResponse.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/errorTransferResponse.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/extensionListEmptiable.yaml +6 -0
- package/src/OutboundServer/api_template/components/schemas/individualQuote.yaml +32 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/individualQuoteResult.yaml +5 -5
- package/src/OutboundServer/api_template/components/schemas/individualTransfer.yaml +32 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/individualTransferFulfilment.yaml +2 -2
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/individualTransferResult.yaml +6 -6
- package/src/OutboundServer/api_template/components/schemas/mojaloopError.yaml +5 -0
- package/src/OutboundServer/api_template/components/schemas/mojaloopTransactionRequestState.yaml +2 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/partiesByIdResponse.yaml +2 -2
- package/src/OutboundServer/api_template/components/schemas/quote.yaml +3 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/quoteError.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/quotesPostRequest.yaml +13 -0
- package/src/OutboundServer/api_template/components/schemas/quotesPostResponse.yaml +48 -0
- package/src/OutboundServer/api_template/components/schemas/requestToPayRequest.yaml +39 -0
- package/src/OutboundServer/api_template/components/schemas/requestToPayResponse.yaml +41 -0
- package/src/OutboundServer/api_template/components/schemas/requestToPayTransferRequest.yaml +42 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/requestToPayTransferResponse.yaml +6 -6
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/simpleTransferServerError.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/simpleTransfersPostRequest.yaml +12 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/simpleTransfersPostResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transactionType.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferContinuationAcceptOTP.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferContinuationAcceptParty.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferContinuationAcceptQuote.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferError.yaml +0 -0
- package/src/OutboundServer/api_template/components/schemas/transferFulfilment.yaml +3 -0
- package/src/OutboundServer/api_template/components/schemas/transferParty.yaml +40 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferRequest.yaml +4 -4
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferResponse.yaml +6 -6
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferStatus.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/components/schemas/transferStatusResponse.yaml +1 -1
- package/{OutboundServer → src/OutboundServer}/api_template/health.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/openapi.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/accounts.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/bulkQuotes.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/bulkQuotes_bulkQuoteId.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/bulkTransfers.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/bulkTransfers_bulkTransferId.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/parties_Type_ID.yaml +2 -2
- package/{OutboundServer → src/OutboundServer}/api_template/paths/parties_Type_ID_SubId.yaml +3 -3
- package/{OutboundServer → src/OutboundServer}/api_template/paths/quotes.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/requestToPay.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/requestToPayTransfer.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/requestToPayTransfer_requestToPayTransactionId.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/simpleTransfers.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/transfers.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/api_template/paths/transfers_transferId.yaml +0 -0
- package/{OutboundServer → src/OutboundServer}/handlers.js +0 -0
- package/{OutboundServer → src/OutboundServer}/index.js +0 -0
- package/{OutboundServer → src/OutboundServer}/middlewares.js +0 -0
- package/{TestServer → src/TestServer}/api.yaml +0 -0
- package/{TestServer → src/TestServer}/handlers.js +0 -0
- package/{TestServer → src/TestServer}/index.js +0 -0
- package/{config.js → src/config.js} +0 -0
- package/{index.d.ts → src/index.d.ts} +0 -0
- package/{index.js → src/index.js} +0 -0
- package/{lib → src/lib}/api/index.js +0 -0
- package/{lib → src/lib}/cache.js +0 -0
- package/{lib → src/lib}/check.js +0 -0
- package/{lib → src/lib}/model/AccountsModel.js +0 -0
- package/{lib → src/lib}/model/Async2SyncModel.js +0 -0
- package/{lib → src/lib}/model/InboundTransfersModel.js +0 -0
- package/{lib → src/lib}/model/OutboundBulkQuotesModel.js +0 -0
- package/{lib → src/lib}/model/OutboundBulkTransfersModel.js +0 -0
- package/{lib → src/lib}/model/OutboundRequestToPayModel.js +0 -0
- package/{lib → src/lib}/model/OutboundRequestToPayTransferModel.js +0 -0
- package/{lib → src/lib}/model/OutboundTransfersModel.js +0 -0
- package/{lib → src/lib}/model/PartiesModel.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/Expression.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/Headers.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/MatchRule.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/Path.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/Query.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/MatchRules/index.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/Route.js +0 -0
- package/{lib → src/lib}/model/ProxyModel/configSchema.json +0 -0
- package/{lib → src/lib}/model/ProxyModel/index.js +0 -0
- package/{lib → src/lib}/model/QuotesModel.js +0 -0
- package/{lib → src/lib}/model/TransfersModel.js +0 -0
- package/{lib → src/lib}/model/common/BackendError.js +0 -0
- package/{lib → src/lib}/model/common/PersistentStateMachine.js +0 -0
- package/{lib → src/lib}/model/common/index.js +0 -0
- package/{lib → src/lib}/model/index.js +0 -0
- package/{lib → src/lib}/model/lib/deferredJob.js +0 -0
- package/{lib → src/lib}/model/lib/index.js +0 -0
- package/{lib → src/lib}/model/lib/requests/backendRequests.js +0 -0
- package/{lib → src/lib}/model/lib/requests/common.js +0 -0
- package/{lib → src/lib}/model/lib/requests/index.js +0 -0
- package/{lib → src/lib}/model/lib/shared.js +0 -0
- package/{lib → src/lib}/randomphrase/index.js +0 -0
- package/{lib → src/lib}/randomphrase/words.json +0 -0
- package/{lib → src/lib}/router.js +0 -0
- package/{lib → src/lib}/validate.js +0 -0
- package/test/integration/lib/cache.test.js +3 -3
- package/test/unit/InboundServer.test.js +5 -5
- package/test/unit/TestServer.test.js +5 -5
- package/test/unit/api/utils.js +5 -5
- package/test/unit/config.test.js +10 -10
- package/test/unit/inboundApi/handlers.test.js +6 -6
- package/test/unit/index.test.js +1 -1
- package/test/unit/lib/cache.test.js +1 -1
- package/test/unit/lib/model/AccountsModel.test.js +2 -2
- package/test/unit/lib/model/InboundTransfersModel.test.js +5 -5
- package/test/unit/lib/model/OutboundBulkQuotesModel.test.js +2 -2
- package/test/unit/lib/model/OutboundBulkTransfersModel.test.js +2 -2
- package/test/unit/lib/model/OutboundRequestToPayModel.test.js +3 -3
- package/test/unit/lib/model/OutboundRequestToPayTransferModel.test.js +2 -2
- package/test/unit/lib/model/OutboundTransfersModel.test.js +3 -3
- package/test/unit/lib/model/PartiesModel.test.js +28 -28
- package/test/unit/lib/model/QuotesModel.test.js +31 -31
- package/test/unit/lib/model/TransfersModel.test.js +3 -3
- package/test/unit/lib/model/common/PersistentStateMachine.test.js +13 -13
- package/test/unit/lib/model/mockedLibRequests.js +1 -1
- package/test/unit/outboundApi/handlers.test.js +3 -3
- package/.eslintignore +0 -2
- package/InboundServer/api_template.yaml +0 -69
- package/OAuthTestServer/index.js +0 -66
- package/OutboundServer/api_template/components/schemas/accountCreationStatus.yaml +0 -18
- package/OutboundServer/api_template/components/schemas/accountsRequest.yaml +0 -20
- package/OutboundServer/api_template/components/schemas/extensionListEmptiable.yaml +0 -6
- package/OutboundServer/api_template/components/schemas/individualQuote.yaml +0 -32
- package/OutboundServer/api_template/components/schemas/individualTransfer.yaml +0 -32
- package/OutboundServer/api_template/components/schemas/mojaloopError.yaml +0 -5
- package/OutboundServer/api_template/components/schemas/mojaloopTransactionRequestState.yaml +0 -2
- package/OutboundServer/api_template/components/schemas/quote.yaml +0 -3
- package/OutboundServer/api_template/components/schemas/quotesPostRequest.yaml +0 -13
- package/OutboundServer/api_template/components/schemas/quotesPostResponse.yaml +0 -48
- package/OutboundServer/api_template/components/schemas/requestToPayRequest.yaml +0 -39
- package/OutboundServer/api_template/components/schemas/requestToPayResponse.yaml +0 -41
- package/OutboundServer/api_template/components/schemas/requestToPayTransferRequest.yaml +0 -42
- package/OutboundServer/api_template/components/schemas/simpleTransfersPostRequest.yaml +0 -12
- package/OutboundServer/api_template/components/schemas/transferFulfilment.yaml +0 -3
- package/OutboundServer/api_template/components/schemas/transferParty.yaml +0 -40
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
openapi: 3.0.1
|
|
2
|
+
info:
|
|
3
|
+
title: MOJALOOP Central Settlements
|
|
4
|
+
description: Mojaloop API for Settlements.
|
|
5
|
+
version: 1.1.0
|
|
6
|
+
servers:
|
|
7
|
+
- url: /v1
|
|
8
|
+
paths:
|
|
9
|
+
/health:
|
|
10
|
+
get:
|
|
11
|
+
tags:
|
|
12
|
+
- getHealth
|
|
13
|
+
summary: getHealth
|
|
14
|
+
description: Gets the health of the service and sub-services (i.e. database).
|
|
15
|
+
operationId: getHealth
|
|
16
|
+
responses:
|
|
17
|
+
200:
|
|
18
|
+
description: A valid and health service.
|
|
19
|
+
content: {}
|
|
20
|
+
502:
|
|
21
|
+
description: API is live, but error connecting to required sub-service.
|
|
22
|
+
content: {}
|
|
23
|
+
deprecated: false
|
|
24
|
+
/settlementWindows/{id}:
|
|
25
|
+
get:
|
|
26
|
+
tags:
|
|
27
|
+
- getSettlementWindowById
|
|
28
|
+
summary: getSettlementWindowById
|
|
29
|
+
description: Returns a Settlement Window by id.
|
|
30
|
+
operationId: getSettlementWindowById
|
|
31
|
+
parameters:
|
|
32
|
+
- name: id
|
|
33
|
+
in: path
|
|
34
|
+
description: |
|
|
35
|
+
A valid settlement window id to be supplied in the query.
|
|
36
|
+
required: true
|
|
37
|
+
schema:
|
|
38
|
+
type: integer
|
|
39
|
+
responses:
|
|
40
|
+
200:
|
|
41
|
+
description: A settlement window's data returned.
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: '#/components/schemas/SettlementWindow'
|
|
46
|
+
400:
|
|
47
|
+
description: Bad request.
|
|
48
|
+
content:
|
|
49
|
+
application/json:
|
|
50
|
+
schema:
|
|
51
|
+
$ref: '#/components/schemas/Error'
|
|
52
|
+
401:
|
|
53
|
+
description: Authorisation information is missing or invalid.
|
|
54
|
+
content:
|
|
55
|
+
application/json:
|
|
56
|
+
schema:
|
|
57
|
+
$ref: '#/components/schemas/Error'
|
|
58
|
+
404:
|
|
59
|
+
description: No data found.
|
|
60
|
+
content:
|
|
61
|
+
application/json:
|
|
62
|
+
schema:
|
|
63
|
+
$ref: '#/components/schemas/Error'
|
|
64
|
+
415:
|
|
65
|
+
description: Unsupported Media Type
|
|
66
|
+
content:
|
|
67
|
+
application/json:
|
|
68
|
+
schema:
|
|
69
|
+
$ref: '#/components/schemas/Error'
|
|
70
|
+
default:
|
|
71
|
+
description: Unexpected error
|
|
72
|
+
content:
|
|
73
|
+
application/json:
|
|
74
|
+
schema:
|
|
75
|
+
$ref: '#/components/schemas/Error'
|
|
76
|
+
deprecated: false
|
|
77
|
+
post:
|
|
78
|
+
tags:
|
|
79
|
+
- closeSettlementWindow
|
|
80
|
+
summary: closeSettlementWindow
|
|
81
|
+
description: If the settlementWindow is open, it can be closed and a new window
|
|
82
|
+
is created. If it is already closed, return an error message. Returns the
|
|
83
|
+
new settlement window.
|
|
84
|
+
operationId: closeSettlementWindow
|
|
85
|
+
parameters:
|
|
86
|
+
- name: id
|
|
87
|
+
in: path
|
|
88
|
+
required: true
|
|
89
|
+
schema:
|
|
90
|
+
type: integer
|
|
91
|
+
requestBody:
|
|
92
|
+
description: A JSON object containing settlement window closure info.
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: '#/components/schemas/SettlementWindowClosurePayload'
|
|
97
|
+
required: true
|
|
98
|
+
responses:
|
|
99
|
+
200:
|
|
100
|
+
description: Settlement window closed and new window opened.
|
|
101
|
+
content:
|
|
102
|
+
application/json:
|
|
103
|
+
schema:
|
|
104
|
+
$ref: '#/components/schemas/SettlementWindow'
|
|
105
|
+
400:
|
|
106
|
+
description: Bad request.
|
|
107
|
+
content:
|
|
108
|
+
application/json:
|
|
109
|
+
schema:
|
|
110
|
+
$ref: '#/components/schemas/Error'
|
|
111
|
+
401:
|
|
112
|
+
description: Authorisation information is missing or invalid.
|
|
113
|
+
content:
|
|
114
|
+
application/json:
|
|
115
|
+
schema:
|
|
116
|
+
$ref: '#/components/schemas/Error'
|
|
117
|
+
404:
|
|
118
|
+
description: No data found.
|
|
119
|
+
content:
|
|
120
|
+
application/json:
|
|
121
|
+
schema:
|
|
122
|
+
$ref: '#/components/schemas/Error'
|
|
123
|
+
415:
|
|
124
|
+
description: Unsupported Media Type.
|
|
125
|
+
content:
|
|
126
|
+
application/json:
|
|
127
|
+
schema:
|
|
128
|
+
$ref: '#/components/schemas/Error'
|
|
129
|
+
default:
|
|
130
|
+
description: Unexpected error
|
|
131
|
+
content:
|
|
132
|
+
application/json:
|
|
133
|
+
schema:
|
|
134
|
+
$ref: '#/components/schemas/Error'
|
|
135
|
+
deprecated: false
|
|
136
|
+
x-codegen-request-body-name: payload
|
|
137
|
+
/settlementWindows:
|
|
138
|
+
get:
|
|
139
|
+
tags:
|
|
140
|
+
- getSettlementWindowsByParams
|
|
141
|
+
summary: getSettlementWindowsByParams
|
|
142
|
+
description: Returns Settlement Windows as per parameter(s).
|
|
143
|
+
operationId: getSettlementWindowsByParams
|
|
144
|
+
parameters:
|
|
145
|
+
- name: participantId
|
|
146
|
+
in: query
|
|
147
|
+
description: |
|
|
148
|
+
A valid participant Id to filter on.
|
|
149
|
+
schema:
|
|
150
|
+
type: integer
|
|
151
|
+
- name: state
|
|
152
|
+
in: query
|
|
153
|
+
description: |
|
|
154
|
+
A settlement window state to filter on.
|
|
155
|
+
schema:
|
|
156
|
+
type: string
|
|
157
|
+
enum:
|
|
158
|
+
- OPEN
|
|
159
|
+
- CLOSED
|
|
160
|
+
- PENDING_SETTLEMENT
|
|
161
|
+
- SETTLED
|
|
162
|
+
- ABORTED
|
|
163
|
+
- name: fromDateTime
|
|
164
|
+
in: query
|
|
165
|
+
description: |
|
|
166
|
+
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
167
|
+
schema:
|
|
168
|
+
type: string
|
|
169
|
+
format: date-time
|
|
170
|
+
- name: toDateTime
|
|
171
|
+
in: query
|
|
172
|
+
description: |
|
|
173
|
+
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
174
|
+
schema:
|
|
175
|
+
type: string
|
|
176
|
+
format: date-time
|
|
177
|
+
responses:
|
|
178
|
+
200:
|
|
179
|
+
description: Settlement window(s) returned by the filtering parameters.
|
|
180
|
+
content:
|
|
181
|
+
application/json:
|
|
182
|
+
schema:
|
|
183
|
+
$ref: '#/components/schemas/SettlementWindows'
|
|
184
|
+
400:
|
|
185
|
+
description: Bad request.
|
|
186
|
+
content:
|
|
187
|
+
application/json:
|
|
188
|
+
schema:
|
|
189
|
+
$ref: '#/components/schemas/Error'
|
|
190
|
+
401:
|
|
191
|
+
description: Authorisation information is missing or invalid.
|
|
192
|
+
content:
|
|
193
|
+
application/json:
|
|
194
|
+
schema:
|
|
195
|
+
$ref: '#/components/schemas/Error'
|
|
196
|
+
404:
|
|
197
|
+
description: No data found.
|
|
198
|
+
content:
|
|
199
|
+
application/json:
|
|
200
|
+
schema:
|
|
201
|
+
$ref: '#/components/schemas/Error'
|
|
202
|
+
415:
|
|
203
|
+
description: Unsupported Media Type.
|
|
204
|
+
content:
|
|
205
|
+
application/json:
|
|
206
|
+
schema:
|
|
207
|
+
$ref: '#/components/schemas/Error'
|
|
208
|
+
default:
|
|
209
|
+
description: Unexpected error
|
|
210
|
+
content:
|
|
211
|
+
application/json:
|
|
212
|
+
schema:
|
|
213
|
+
$ref: '#/components/schemas/Error'
|
|
214
|
+
deprecated: false
|
|
215
|
+
/settlements:
|
|
216
|
+
get:
|
|
217
|
+
tags:
|
|
218
|
+
- getSettlementsByParams
|
|
219
|
+
summary: getSettlementsByParams
|
|
220
|
+
description: Returns Settlements as per parameter(s).
|
|
221
|
+
operationId: getSettlementsByParams
|
|
222
|
+
parameters:
|
|
223
|
+
- name: currency
|
|
224
|
+
in: query
|
|
225
|
+
description: |
|
|
226
|
+
A valid currency to filter on.
|
|
227
|
+
schema:
|
|
228
|
+
type: string
|
|
229
|
+
- name: participantId
|
|
230
|
+
in: query
|
|
231
|
+
description: |
|
|
232
|
+
A valid participant Id to filter on.
|
|
233
|
+
schema:
|
|
234
|
+
type: integer
|
|
235
|
+
- name: settlementWindowId
|
|
236
|
+
in: query
|
|
237
|
+
description: |
|
|
238
|
+
A valid Settlement Window Id to filter on.
|
|
239
|
+
schema:
|
|
240
|
+
type: number
|
|
241
|
+
- name: accountId
|
|
242
|
+
in: query
|
|
243
|
+
description: |
|
|
244
|
+
A valid Account Id to filter on.
|
|
245
|
+
schema:
|
|
246
|
+
type: number
|
|
247
|
+
- name: state
|
|
248
|
+
in: query
|
|
249
|
+
description: "A settlement state to filter on. \n"
|
|
250
|
+
schema:
|
|
251
|
+
type: string
|
|
252
|
+
enum:
|
|
253
|
+
- PENDING_SETTLEMENT
|
|
254
|
+
- PS_TRANSFERS_RECORDED
|
|
255
|
+
- PS_TRANSFERS_RESERVED
|
|
256
|
+
- PS_TRANSFERS_COMMITTED
|
|
257
|
+
- SETTLING
|
|
258
|
+
- SETTLED
|
|
259
|
+
- ABORTED
|
|
260
|
+
- name: fromDateTime
|
|
261
|
+
in: query
|
|
262
|
+
description: |
|
|
263
|
+
The start date for query (relates to central-ledger.settlement.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
264
|
+
schema:
|
|
265
|
+
type: string
|
|
266
|
+
format: date-time
|
|
267
|
+
- name: toDateTime
|
|
268
|
+
in: query
|
|
269
|
+
description: |
|
|
270
|
+
The end date for query (relates to central-ledger.settlement.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
271
|
+
schema:
|
|
272
|
+
type: string
|
|
273
|
+
format: date-time
|
|
274
|
+
- name: fromSettlementWindowDateTime
|
|
275
|
+
in: query
|
|
276
|
+
description: |
|
|
277
|
+
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
278
|
+
schema:
|
|
279
|
+
type: string
|
|
280
|
+
format: date-time
|
|
281
|
+
- name: toSettlementWindowDateTime
|
|
282
|
+
in: query
|
|
283
|
+
description: |
|
|
284
|
+
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
285
|
+
schema:
|
|
286
|
+
type: string
|
|
287
|
+
format: date-time
|
|
288
|
+
responses:
|
|
289
|
+
200:
|
|
290
|
+
description: Settlement window(s) returned by the filtering parameters.
|
|
291
|
+
content:
|
|
292
|
+
application/json:
|
|
293
|
+
schema:
|
|
294
|
+
$ref: '#/components/schemas/Settlements'
|
|
295
|
+
400:
|
|
296
|
+
description: Bad request.
|
|
297
|
+
content:
|
|
298
|
+
application/json:
|
|
299
|
+
schema:
|
|
300
|
+
$ref: '#/components/schemas/Error'
|
|
301
|
+
401:
|
|
302
|
+
description: Authorisation information is missing or invalid.
|
|
303
|
+
content:
|
|
304
|
+
application/json:
|
|
305
|
+
schema:
|
|
306
|
+
$ref: '#/components/schemas/Error'
|
|
307
|
+
404:
|
|
308
|
+
description: No data found.
|
|
309
|
+
content:
|
|
310
|
+
application/json:
|
|
311
|
+
schema:
|
|
312
|
+
$ref: '#/components/schemas/Error'
|
|
313
|
+
415:
|
|
314
|
+
description: Unsupported Media Type.
|
|
315
|
+
content:
|
|
316
|
+
application/json:
|
|
317
|
+
schema:
|
|
318
|
+
$ref: '#/components/schemas/Error'
|
|
319
|
+
default:
|
|
320
|
+
description: Unexpected error
|
|
321
|
+
content:
|
|
322
|
+
application/json:
|
|
323
|
+
schema:
|
|
324
|
+
$ref: '#/components/schemas/Error'
|
|
325
|
+
deprecated: false
|
|
326
|
+
post:
|
|
327
|
+
tags:
|
|
328
|
+
- createSettlement
|
|
329
|
+
summary: createSettlement
|
|
330
|
+
description: Trigger the creation of a settlement, that does the calculation
|
|
331
|
+
of the net settlement position per participant and marks all transfers in
|
|
332
|
+
the affected windows as PENDING_SETTLEMENT. Returned dataset is the net settlement
|
|
333
|
+
report for the settlementWindow
|
|
334
|
+
operationId: createSettlement
|
|
335
|
+
requestBody:
|
|
336
|
+
description: A JSON object containing settlement windows to be included.
|
|
337
|
+
content:
|
|
338
|
+
application/json:
|
|
339
|
+
schema:
|
|
340
|
+
$ref: '#/components/schemas/SettlementEventPayload'
|
|
341
|
+
required: true
|
|
342
|
+
responses:
|
|
343
|
+
200:
|
|
344
|
+
description: Created settlement with all windows and accounts.
|
|
345
|
+
content:
|
|
346
|
+
application/json:
|
|
347
|
+
schema:
|
|
348
|
+
$ref: '#/components/schemas/Settlement'
|
|
349
|
+
400:
|
|
350
|
+
description: Bad request.
|
|
351
|
+
content:
|
|
352
|
+
application/json:
|
|
353
|
+
schema:
|
|
354
|
+
$ref: '#/components/schemas/Error'
|
|
355
|
+
401:
|
|
356
|
+
description: Authorisation information is missing or invalid.
|
|
357
|
+
content:
|
|
358
|
+
application/json:
|
|
359
|
+
schema:
|
|
360
|
+
$ref: '#/components/schemas/Error'
|
|
361
|
+
404:
|
|
362
|
+
description: No data found.
|
|
363
|
+
content:
|
|
364
|
+
application/json:
|
|
365
|
+
schema:
|
|
366
|
+
$ref: '#/components/schemas/Error'
|
|
367
|
+
415:
|
|
368
|
+
description: Unsupported Media Type.
|
|
369
|
+
content:
|
|
370
|
+
application/json:
|
|
371
|
+
schema:
|
|
372
|
+
$ref: '#/components/schemas/Error'
|
|
373
|
+
default:
|
|
374
|
+
description: Unexpected error
|
|
375
|
+
content:
|
|
376
|
+
application/json:
|
|
377
|
+
schema:
|
|
378
|
+
$ref: '#/components/schemas/Error'
|
|
379
|
+
deprecated: false
|
|
380
|
+
x-codegen-request-body-name: payload
|
|
381
|
+
/settlements/{id}:
|
|
382
|
+
get:
|
|
383
|
+
tags:
|
|
384
|
+
- getSettlementById
|
|
385
|
+
summary: getSettlementById
|
|
386
|
+
description: Returns Settlement(s) as per parameters/filter criteria.
|
|
387
|
+
operationId: getSettlementById
|
|
388
|
+
parameters:
|
|
389
|
+
- name: id
|
|
390
|
+
in: path
|
|
391
|
+
description: |
|
|
392
|
+
A valid Settlement Id.
|
|
393
|
+
required: true
|
|
394
|
+
schema:
|
|
395
|
+
type: integer
|
|
396
|
+
responses:
|
|
397
|
+
200:
|
|
398
|
+
description: Settlement successfully returned by the filtering/Query parameters.
|
|
399
|
+
content:
|
|
400
|
+
application/json:
|
|
401
|
+
schema:
|
|
402
|
+
$ref: '#/components/schemas/Settlement'
|
|
403
|
+
400:
|
|
404
|
+
description: Bad request.
|
|
405
|
+
content:
|
|
406
|
+
application/json:
|
|
407
|
+
schema:
|
|
408
|
+
$ref: '#/components/schemas/Error'
|
|
409
|
+
401:
|
|
410
|
+
description: Authorisation information is missing or invalid.
|
|
411
|
+
content:
|
|
412
|
+
application/json:
|
|
413
|
+
schema:
|
|
414
|
+
$ref: '#/components/schemas/Error'
|
|
415
|
+
404:
|
|
416
|
+
description: No data found.
|
|
417
|
+
content:
|
|
418
|
+
application/json:
|
|
419
|
+
schema:
|
|
420
|
+
$ref: '#/components/schemas/Error'
|
|
421
|
+
415:
|
|
422
|
+
description: Unsupported Media Type.
|
|
423
|
+
content:
|
|
424
|
+
application/json:
|
|
425
|
+
schema:
|
|
426
|
+
$ref: '#/components/schemas/Error'
|
|
427
|
+
default:
|
|
428
|
+
description: Unexpected error
|
|
429
|
+
content:
|
|
430
|
+
application/json:
|
|
431
|
+
schema:
|
|
432
|
+
$ref: '#/components/schemas/Error'
|
|
433
|
+
deprecated: false
|
|
434
|
+
put:
|
|
435
|
+
tags:
|
|
436
|
+
- updateSettlementById
|
|
437
|
+
summary: updateSettlementById
|
|
438
|
+
description: Acknowledgement of settlement by updating with Settlement Id.
|
|
439
|
+
operationId: updateSettlementById
|
|
440
|
+
parameters:
|
|
441
|
+
- name: id
|
|
442
|
+
in: path
|
|
443
|
+
description: A valid Settlement Id.
|
|
444
|
+
required: true
|
|
445
|
+
schema:
|
|
446
|
+
type: integer
|
|
447
|
+
requestBody:
|
|
448
|
+
description: A JSON object containing settlement update info.
|
|
449
|
+
content:
|
|
450
|
+
application/json:
|
|
451
|
+
schema:
|
|
452
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdPayload'
|
|
453
|
+
required: true
|
|
454
|
+
responses:
|
|
455
|
+
200:
|
|
456
|
+
description: Settlements updated.
|
|
457
|
+
content:
|
|
458
|
+
application/json:
|
|
459
|
+
schema:
|
|
460
|
+
$ref: '#/components/schemas/Settlement'
|
|
461
|
+
400:
|
|
462
|
+
description: Bad request.
|
|
463
|
+
content:
|
|
464
|
+
application/json:
|
|
465
|
+
schema:
|
|
466
|
+
$ref: '#/components/schemas/Error'
|
|
467
|
+
401:
|
|
468
|
+
description: Authorisation information is missing or invalid.
|
|
469
|
+
content:
|
|
470
|
+
application/json:
|
|
471
|
+
schema:
|
|
472
|
+
$ref: '#/components/schemas/Error'
|
|
473
|
+
404:
|
|
474
|
+
description: No data found.
|
|
475
|
+
content:
|
|
476
|
+
application/json:
|
|
477
|
+
schema:
|
|
478
|
+
$ref: '#/components/schemas/Error'
|
|
479
|
+
415:
|
|
480
|
+
description: Unsupported Media Type.
|
|
481
|
+
content:
|
|
482
|
+
application/json:
|
|
483
|
+
schema:
|
|
484
|
+
$ref: '#/components/schemas/Error'
|
|
485
|
+
default:
|
|
486
|
+
description: Unexpected error
|
|
487
|
+
content:
|
|
488
|
+
application/json:
|
|
489
|
+
schema:
|
|
490
|
+
$ref: '#/components/schemas/Error'
|
|
491
|
+
deprecated: false
|
|
492
|
+
x-codegen-request-body-name: payload
|
|
493
|
+
/settlements/{settlementId}/participants/{participantId}:
|
|
494
|
+
get:
|
|
495
|
+
tags:
|
|
496
|
+
- getSettlementBySettlementParticipant
|
|
497
|
+
summary: getSettlementBySettlementParticipant
|
|
498
|
+
description: Returns Settlement(s) as per filter criteria.
|
|
499
|
+
operationId: getSettlementBySettlementParticipant
|
|
500
|
+
parameters:
|
|
501
|
+
- name: settlementId
|
|
502
|
+
in: path
|
|
503
|
+
description: |
|
|
504
|
+
A valid Settlement Id.
|
|
505
|
+
required: true
|
|
506
|
+
schema:
|
|
507
|
+
type: integer
|
|
508
|
+
- name: participantId
|
|
509
|
+
in: path
|
|
510
|
+
description: |
|
|
511
|
+
A valid Participant Id.
|
|
512
|
+
required: true
|
|
513
|
+
schema:
|
|
514
|
+
type: integer
|
|
515
|
+
responses:
|
|
516
|
+
200:
|
|
517
|
+
description: Settlement, settlement windows and settlement accounts returned
|
|
518
|
+
by the filtering parameters.
|
|
519
|
+
content:
|
|
520
|
+
application/json:
|
|
521
|
+
schema:
|
|
522
|
+
$ref: '#/components/schemas/Settlement'
|
|
523
|
+
400:
|
|
524
|
+
description: Bad request.
|
|
525
|
+
content:
|
|
526
|
+
application/json:
|
|
527
|
+
schema:
|
|
528
|
+
$ref: '#/components/schemas/Error'
|
|
529
|
+
401:
|
|
530
|
+
description: Authorisation information is missing or invalid.
|
|
531
|
+
content:
|
|
532
|
+
application/json:
|
|
533
|
+
schema:
|
|
534
|
+
$ref: '#/components/schemas/Error'
|
|
535
|
+
404:
|
|
536
|
+
description: No data found.
|
|
537
|
+
content:
|
|
538
|
+
application/json:
|
|
539
|
+
schema:
|
|
540
|
+
$ref: '#/components/schemas/Error'
|
|
541
|
+
415:
|
|
542
|
+
description: Unsupported Media Type.
|
|
543
|
+
content:
|
|
544
|
+
application/json:
|
|
545
|
+
schema:
|
|
546
|
+
$ref: '#/components/schemas/Error'
|
|
547
|
+
default:
|
|
548
|
+
description: Unexpected error
|
|
549
|
+
content:
|
|
550
|
+
application/json:
|
|
551
|
+
schema:
|
|
552
|
+
$ref: '#/components/schemas/Error'
|
|
553
|
+
deprecated: false
|
|
554
|
+
put:
|
|
555
|
+
tags:
|
|
556
|
+
- updateSettlementBySettlementParticipant
|
|
557
|
+
summary: updateSettlementBySettlementParticipant
|
|
558
|
+
description: Acknowledgement of settlement by updating with Settlements Id and
|
|
559
|
+
Participant Id.
|
|
560
|
+
operationId: updateSettlementBySettlementParticipant
|
|
561
|
+
parameters:
|
|
562
|
+
- name: settlementId
|
|
563
|
+
in: path
|
|
564
|
+
description: A valid Settlement Id.
|
|
565
|
+
required: true
|
|
566
|
+
schema:
|
|
567
|
+
type: integer
|
|
568
|
+
- name: participantId
|
|
569
|
+
in: path
|
|
570
|
+
description: A valid Participant Id.
|
|
571
|
+
required: true
|
|
572
|
+
schema:
|
|
573
|
+
type: integer
|
|
574
|
+
requestBody:
|
|
575
|
+
description: A JSON object containing settlement update info.
|
|
576
|
+
content:
|
|
577
|
+
application/json:
|
|
578
|
+
schema:
|
|
579
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementParticipantPayload'
|
|
580
|
+
required: true
|
|
581
|
+
responses:
|
|
582
|
+
200:
|
|
583
|
+
description: Settlements updated.
|
|
584
|
+
content:
|
|
585
|
+
application/json:
|
|
586
|
+
schema:
|
|
587
|
+
$ref: '#/components/schemas/Settlement'
|
|
588
|
+
400:
|
|
589
|
+
description: Bad request.
|
|
590
|
+
content:
|
|
591
|
+
application/json:
|
|
592
|
+
schema:
|
|
593
|
+
$ref: '#/components/schemas/Error'
|
|
594
|
+
401:
|
|
595
|
+
description: Authorisation information is missing or invalid.
|
|
596
|
+
content:
|
|
597
|
+
application/json:
|
|
598
|
+
schema:
|
|
599
|
+
$ref: '#/components/schemas/Error'
|
|
600
|
+
404:
|
|
601
|
+
description: No data found.
|
|
602
|
+
content:
|
|
603
|
+
application/json:
|
|
604
|
+
schema:
|
|
605
|
+
$ref: '#/components/schemas/Error'
|
|
606
|
+
415:
|
|
607
|
+
description: Unsupported Media Type.
|
|
608
|
+
content:
|
|
609
|
+
application/json:
|
|
610
|
+
schema:
|
|
611
|
+
$ref: '#/components/schemas/Error'
|
|
612
|
+
default:
|
|
613
|
+
description: Unexpected error
|
|
614
|
+
content:
|
|
615
|
+
application/json:
|
|
616
|
+
schema:
|
|
617
|
+
$ref: '#/components/schemas/Error'
|
|
618
|
+
deprecated: false
|
|
619
|
+
x-codegen-request-body-name: payload
|
|
620
|
+
/settlements/{settlementId}/participants/{participantId}/accounts/{accountId}:
|
|
621
|
+
get:
|
|
622
|
+
tags:
|
|
623
|
+
- getSettlementBySettlementParticipantAccount
|
|
624
|
+
summary: getSettlementBySettlementParticipantAccount
|
|
625
|
+
description: Returns Settlement(s) as per filter criteria.
|
|
626
|
+
operationId: getSettlementBySettlementParticipantAccount
|
|
627
|
+
parameters:
|
|
628
|
+
- name: settlementId
|
|
629
|
+
in: path
|
|
630
|
+
description: |
|
|
631
|
+
A valid Settlement Id.
|
|
632
|
+
required: true
|
|
633
|
+
schema:
|
|
634
|
+
type: integer
|
|
635
|
+
- name: participantId
|
|
636
|
+
in: path
|
|
637
|
+
description: |
|
|
638
|
+
A valid Participant Id.
|
|
639
|
+
required: true
|
|
640
|
+
schema:
|
|
641
|
+
type: integer
|
|
642
|
+
- name: accountId
|
|
643
|
+
in: path
|
|
644
|
+
description: "A valid Account Id. \n"
|
|
645
|
+
required: true
|
|
646
|
+
schema:
|
|
647
|
+
type: integer
|
|
648
|
+
responses:
|
|
649
|
+
200:
|
|
650
|
+
description: Settlement, settlement windows and settlement accounts returned
|
|
651
|
+
by the filtering parameters.
|
|
652
|
+
content:
|
|
653
|
+
application/json:
|
|
654
|
+
schema:
|
|
655
|
+
$ref: '#/components/schemas/Settlement'
|
|
656
|
+
400:
|
|
657
|
+
description: Bad request.
|
|
658
|
+
content:
|
|
659
|
+
application/json:
|
|
660
|
+
schema:
|
|
661
|
+
$ref: '#/components/schemas/Error'
|
|
662
|
+
401:
|
|
663
|
+
description: Authorisation information is missing or invalid.
|
|
664
|
+
content:
|
|
665
|
+
application/json:
|
|
666
|
+
schema:
|
|
667
|
+
$ref: '#/components/schemas/Error'
|
|
668
|
+
404:
|
|
669
|
+
description: No data found.
|
|
670
|
+
content:
|
|
671
|
+
application/json:
|
|
672
|
+
schema:
|
|
673
|
+
$ref: '#/components/schemas/Error'
|
|
674
|
+
415:
|
|
675
|
+
description: Unsupported Media Type.
|
|
676
|
+
content:
|
|
677
|
+
application/json:
|
|
678
|
+
schema:
|
|
679
|
+
$ref: '#/components/schemas/Error'
|
|
680
|
+
default:
|
|
681
|
+
description: Unexpected error
|
|
682
|
+
content:
|
|
683
|
+
application/json:
|
|
684
|
+
schema:
|
|
685
|
+
$ref: '#/components/schemas/Error'
|
|
686
|
+
deprecated: false
|
|
687
|
+
put:
|
|
688
|
+
tags:
|
|
689
|
+
- updateSettlementBySettlementParticipantAccount
|
|
690
|
+
summary: updateSettlementBySettlementParticipantAccount
|
|
691
|
+
description: Acknowledgement of settlement by updating the reason and state
|
|
692
|
+
by Settlements Id, Participant Id and accounts Id.
|
|
693
|
+
operationId: updateSettlementBySettlementParticipantAccount
|
|
694
|
+
parameters:
|
|
695
|
+
- name: settlementId
|
|
696
|
+
in: path
|
|
697
|
+
description: A valid Settlement Id.
|
|
698
|
+
required: true
|
|
699
|
+
schema:
|
|
700
|
+
type: integer
|
|
701
|
+
- name: participantId
|
|
702
|
+
in: path
|
|
703
|
+
description: A valid Participant Id.
|
|
704
|
+
required: true
|
|
705
|
+
schema:
|
|
706
|
+
type: integer
|
|
707
|
+
- name: accountId
|
|
708
|
+
in: path
|
|
709
|
+
description: A valid Account Id.
|
|
710
|
+
required: true
|
|
711
|
+
schema:
|
|
712
|
+
type: integer
|
|
713
|
+
requestBody:
|
|
714
|
+
description: A JSON object containing settlement update info.
|
|
715
|
+
content:
|
|
716
|
+
application/json:
|
|
717
|
+
schema:
|
|
718
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementParticipantAccount'
|
|
719
|
+
required: true
|
|
720
|
+
responses:
|
|
721
|
+
200:
|
|
722
|
+
description: Settlements updated.
|
|
723
|
+
content:
|
|
724
|
+
application/json:
|
|
725
|
+
schema:
|
|
726
|
+
$ref: '#/components/schemas/Settlement'
|
|
727
|
+
400:
|
|
728
|
+
description: Bad request.
|
|
729
|
+
content:
|
|
730
|
+
application/json:
|
|
731
|
+
schema:
|
|
732
|
+
$ref: '#/components/schemas/Error'
|
|
733
|
+
401:
|
|
734
|
+
description: Authorisation information is missing or invalid.
|
|
735
|
+
content:
|
|
736
|
+
application/json:
|
|
737
|
+
schema:
|
|
738
|
+
$ref: '#/components/schemas/Error'
|
|
739
|
+
404:
|
|
740
|
+
description: No data found.
|
|
741
|
+
content:
|
|
742
|
+
application/json:
|
|
743
|
+
schema:
|
|
744
|
+
$ref: '#/components/schemas/Error'
|
|
745
|
+
415:
|
|
746
|
+
description: Unsupported Media Type.
|
|
747
|
+
content:
|
|
748
|
+
application/json:
|
|
749
|
+
schema:
|
|
750
|
+
$ref: '#/components/schemas/Error'
|
|
751
|
+
default:
|
|
752
|
+
description: Unexpected error
|
|
753
|
+
content:
|
|
754
|
+
application/json:
|
|
755
|
+
schema:
|
|
756
|
+
$ref: '#/components/schemas/Error'
|
|
757
|
+
deprecated: false
|
|
758
|
+
x-codegen-request-body-name: payload
|
|
759
|
+
components:
|
|
760
|
+
schemas:
|
|
761
|
+
Account:
|
|
762
|
+
type: object
|
|
763
|
+
properties:
|
|
764
|
+
id:
|
|
765
|
+
type: string
|
|
766
|
+
description: Account Id
|
|
767
|
+
reason:
|
|
768
|
+
type: string
|
|
769
|
+
description: TBD
|
|
770
|
+
state:
|
|
771
|
+
type: string
|
|
772
|
+
example: PENDING_SETTLEMENT
|
|
773
|
+
netSettlementAmount:
|
|
774
|
+
$ref: '#/components/schemas/netSettlementAmount'
|
|
775
|
+
SettlementUpdateBySettlementIdPayload:
|
|
776
|
+
type: object
|
|
777
|
+
properties:
|
|
778
|
+
state:
|
|
779
|
+
type: string
|
|
780
|
+
enum:
|
|
781
|
+
- ABORTED
|
|
782
|
+
- INVALID
|
|
783
|
+
reason:
|
|
784
|
+
type: string
|
|
785
|
+
externalReference:
|
|
786
|
+
type: string
|
|
787
|
+
participants:
|
|
788
|
+
type: array
|
|
789
|
+
items:
|
|
790
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIDOuterPayload'
|
|
791
|
+
SettlementUpdateBySettlementIDOuterPayload:
|
|
792
|
+
type: object
|
|
793
|
+
properties:
|
|
794
|
+
id:
|
|
795
|
+
type: integer
|
|
796
|
+
description: Participant Id
|
|
797
|
+
accounts:
|
|
798
|
+
type: array
|
|
799
|
+
items:
|
|
800
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
801
|
+
SettlementUpdateBySettlementIdInnerPayload:
|
|
802
|
+
type: object
|
|
803
|
+
properties:
|
|
804
|
+
id:
|
|
805
|
+
type: integer
|
|
806
|
+
description: Participant Currency Id
|
|
807
|
+
reason:
|
|
808
|
+
type: string
|
|
809
|
+
example: reason
|
|
810
|
+
state:
|
|
811
|
+
type: string
|
|
812
|
+
example: SETTLED
|
|
813
|
+
enum:
|
|
814
|
+
- PENDING_SETTLEMENT
|
|
815
|
+
- PS_TRANSFERS_RECORDED
|
|
816
|
+
- PS_TRANSFERS_RESERVED
|
|
817
|
+
- PS_TRANSFERS_COMMITTED
|
|
818
|
+
- SETTLED
|
|
819
|
+
externalReference:
|
|
820
|
+
type: string
|
|
821
|
+
example: external-reference-abc123
|
|
822
|
+
SettlementUpdateBySettlementParticipantPayload:
|
|
823
|
+
type: object
|
|
824
|
+
properties:
|
|
825
|
+
accounts:
|
|
826
|
+
type: array
|
|
827
|
+
items:
|
|
828
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
829
|
+
Accounts:
|
|
830
|
+
type: object
|
|
831
|
+
properties:
|
|
832
|
+
id:
|
|
833
|
+
type: integer
|
|
834
|
+
description: Participant Currency Id
|
|
835
|
+
reason:
|
|
836
|
+
type: string
|
|
837
|
+
description: TBD
|
|
838
|
+
state:
|
|
839
|
+
type: string
|
|
840
|
+
example: PENDING_SETTLEMENT
|
|
841
|
+
netSettlementAmount:
|
|
842
|
+
$ref: '#/components/schemas/netSettlementAmount'
|
|
843
|
+
SettlementWindowClosurePayload:
|
|
844
|
+
required:
|
|
845
|
+
- reason
|
|
846
|
+
- state
|
|
847
|
+
type: object
|
|
848
|
+
properties:
|
|
849
|
+
state:
|
|
850
|
+
type: string
|
|
851
|
+
example: CLOSED
|
|
852
|
+
enum:
|
|
853
|
+
- CLOSED
|
|
854
|
+
reason:
|
|
855
|
+
type: string
|
|
856
|
+
example: string
|
|
857
|
+
SettlementUpdateBySettlementParticipantAccount:
|
|
858
|
+
required:
|
|
859
|
+
- reason
|
|
860
|
+
- state
|
|
861
|
+
type: object
|
|
862
|
+
properties:
|
|
863
|
+
state:
|
|
864
|
+
type: string
|
|
865
|
+
example: SETTLED
|
|
866
|
+
enum:
|
|
867
|
+
- PENDING_SETTLEMENT
|
|
868
|
+
- PS_TRANSFERS_RECORDED
|
|
869
|
+
- PS_TRANSFERS_RESERVED
|
|
870
|
+
- PS_TRANSFERS_COMMITTED
|
|
871
|
+
- SETTLED
|
|
872
|
+
reason:
|
|
873
|
+
type: string
|
|
874
|
+
example: string
|
|
875
|
+
externalReference:
|
|
876
|
+
type: string
|
|
877
|
+
example: external-reference-abc123
|
|
878
|
+
SettlementEventPayload:
|
|
879
|
+
required:
|
|
880
|
+
- reason
|
|
881
|
+
- settlementWindows
|
|
882
|
+
type: object
|
|
883
|
+
properties:
|
|
884
|
+
reason:
|
|
885
|
+
type: string
|
|
886
|
+
settlementWindows:
|
|
887
|
+
minItems: 1
|
|
888
|
+
uniqueItems: true
|
|
889
|
+
type: array
|
|
890
|
+
items:
|
|
891
|
+
$ref: '#/components/schemas/SettlementWindowId'
|
|
892
|
+
SettlementWindowId:
|
|
893
|
+
required:
|
|
894
|
+
- id
|
|
895
|
+
type: object
|
|
896
|
+
properties:
|
|
897
|
+
id:
|
|
898
|
+
type: integer
|
|
899
|
+
SettlementWindow:
|
|
900
|
+
required:
|
|
901
|
+
- createdDate
|
|
902
|
+
- id
|
|
903
|
+
- state
|
|
904
|
+
type: object
|
|
905
|
+
properties:
|
|
906
|
+
id:
|
|
907
|
+
type: integer
|
|
908
|
+
reason:
|
|
909
|
+
type: string
|
|
910
|
+
state:
|
|
911
|
+
type: string
|
|
912
|
+
createdDate:
|
|
913
|
+
type: string
|
|
914
|
+
changedDate:
|
|
915
|
+
type: string
|
|
916
|
+
SettlementWindows:
|
|
917
|
+
type: array
|
|
918
|
+
items:
|
|
919
|
+
$ref: '#/components/schemas/SettlementWindow'
|
|
920
|
+
netSettlementAmount:
|
|
921
|
+
type: object
|
|
922
|
+
properties:
|
|
923
|
+
amount:
|
|
924
|
+
type: number
|
|
925
|
+
currency:
|
|
926
|
+
type: string
|
|
927
|
+
Participant:
|
|
928
|
+
type: object
|
|
929
|
+
properties:
|
|
930
|
+
id:
|
|
931
|
+
type: integer
|
|
932
|
+
accounts:
|
|
933
|
+
type: array
|
|
934
|
+
items:
|
|
935
|
+
$ref: '#/components/schemas/Accounts'
|
|
936
|
+
Settlements:
|
|
937
|
+
type: array
|
|
938
|
+
items:
|
|
939
|
+
$ref: '#/components/schemas/Settlement'
|
|
940
|
+
Settlement:
|
|
941
|
+
type: object
|
|
942
|
+
properties:
|
|
943
|
+
id:
|
|
944
|
+
type: integer
|
|
945
|
+
state:
|
|
946
|
+
type: string
|
|
947
|
+
settlementWindows:
|
|
948
|
+
type: array
|
|
949
|
+
items:
|
|
950
|
+
$ref: '#/components/schemas/SettlementWindows'
|
|
951
|
+
participants:
|
|
952
|
+
type: array
|
|
953
|
+
items:
|
|
954
|
+
$ref: '#/components/schemas/Participant'
|
|
955
|
+
Error:
|
|
956
|
+
required:
|
|
957
|
+
- errorInformation
|
|
958
|
+
type: object
|
|
959
|
+
properties:
|
|
960
|
+
errorInformation:
|
|
961
|
+
type: object
|
|
962
|
+
properties:
|
|
963
|
+
errorCode:
|
|
964
|
+
type: integer
|
|
965
|
+
errorDescription:
|
|
966
|
+
type: string
|
|
967
|
+
extensionList:
|
|
968
|
+
type: object
|
|
969
|
+
properties:
|
|
970
|
+
extension:
|
|
971
|
+
type: array
|
|
972
|
+
items:
|
|
973
|
+
$ref: '#/components/schemas/Extension'
|
|
974
|
+
Extension:
|
|
975
|
+
required:
|
|
976
|
+
- key
|
|
977
|
+
- value
|
|
978
|
+
type: object
|
|
979
|
+
properties:
|
|
980
|
+
key:
|
|
981
|
+
type: string
|
|
982
|
+
value:
|
|
983
|
+
type: string
|