ml-testing-toolkit 18.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +10 -0
- package/.grype.yaml +16 -0
- package/.ncurc.yaml +9 -0
- package/.nvmrc +1 -0
- package/.versionrc.js +16 -0
- package/CHANGELOG.md +504 -0
- package/CODEOWNERS +30 -0
- package/Dockerfile +42 -0
- package/Dockerfile-newman +13 -0
- package/LICENSE.md +9 -0
- package/README.md +119 -0
- package/assets/diagrams/architectural/architectural-diagram.svg +3 -0
- package/assets/diagrams/flow/flow-diagram.svg +3 -0
- package/assets/images/Sample-Response-Failure.png +0 -0
- package/assets/images/Screenshot 2020-04-16 at 22.58.04.png +0 -0
- package/assets/images/TLS-Enabled-on-Environment.png +0 -0
- package/assets/images/adapter-mutual-tls-enabled.png +0 -0
- package/assets/images/add-additional-input-values.png +0 -0
- package/assets/images/add-condition-button.png +0 -0
- package/assets/images/add-new-assertion.png +0 -0
- package/assets/images/add-new-input-value.png +0 -0
- package/assets/images/add-new-input-variable.png +0 -0
- package/assets/images/additional-transfers.png +0 -0
- package/assets/images/api-provisioning-add-new-api-confirmation.png +0 -0
- package/assets/images/api-provisioning-file-input-window.png +0 -0
- package/assets/images/api-provisioning-list-apis-view.png +0 -0
- package/assets/images/api-provisioning-menu-item.png +0 -0
- package/assets/images/apply_and_restart.jpg +0 -0
- package/assets/images/assess-request-or-response.png +0 -0
- package/assets/images/assess-response-equation-save.png +0 -0
- package/assets/images/assess-response-equation.png +0 -0
- package/assets/images/assess-response-status.png +0 -0
- package/assets/images/building-new-rules-file.png +0 -0
- package/assets/images/callback-rules-screen.png +0 -0
- package/assets/images/configurable-parameter-assertion.png +0 -0
- package/assets/images/configurable-parameter-currency.png +0 -0
- package/assets/images/configurable-parameter.png +0 -0
- package/assets/images/connection-manager-ui-opening.png +0 -0
- package/assets/images/create-inbound-user-simulator.png +0 -0
- package/assets/images/creating-new-rule-file.png +0 -0
- package/assets/images/dfsp-client-cacert.png +0 -0
- package/assets/images/dfsp-client-submit.png +0 -0
- package/assets/images/dfsp-client.png +0 -0
- package/assets/images/dfsp-p2p-happy-path.png +0 -0
- package/assets/images/dfsp-server-cacert.png +0 -0
- package/assets/images/dfsp-server-cert.png +0 -0
- package/assets/images/download-report.png +0 -0
- package/assets/images/drive_have_not_been_shared.jpg +0 -0
- package/assets/images/event-response-options.png +0 -0
- package/assets/images/expand-monitoring-messages.png +0 -0
- package/assets/images/fixed-response-sample.png +0 -0
- package/assets/images/header-selection.png +0 -0
- package/assets/images/heap_error_windows.jpg +0 -0
- package/assets/images/hosted-mode-docker-compose-intro.png +0 -0
- package/assets/images/hub-client-cert.png +0 -0
- package/assets/images/import-template.png +0 -0
- package/assets/images/inbound-requests-environment.png +0 -0
- package/assets/images/inbound-requests-scripts.png +0 -0
- package/assets/images/jws-certificate-submit.png +0 -0
- package/assets/images/jws-certificate.png +0 -0
- package/assets/images/jws-certs-keys.png +0 -0
- package/assets/images/jws-hub-certs-keys.png +0 -0
- package/assets/images/local-enable-jws-publickey.png +0 -0
- package/assets/images/local-mutual-tls-enabled.png +0 -0
- package/assets/images/local_drives_to_be_available.jpg +0 -0
- package/assets/images/mcm-environment-opening.png +0 -0
- package/assets/images/menu-items.png +0 -0
- package/assets/images/mock-response-sample.png +0 -0
- package/assets/images/monitoring-initial-state.png +0 -0
- package/assets/images/monitoring-messages.png +0 -0
- package/assets/images/new-empty-assertion.png +0 -0
- package/assets/images/opened-imported-template.png +0 -0
- package/assets/images/opening-default-settings.png +0 -0
- package/assets/images/opening-sync-response-rules.png +0 -0
- package/assets/images/opening-view.png +0 -0
- package/assets/images/outbound-display-opening-hub.png +0 -0
- package/assets/images/outbound-display-opening.png +0 -0
- package/assets/images/override-with-environment-variable.png +0 -0
- package/assets/images/populate-with-sample-body.png +0 -0
- package/assets/images/resource-selection.png +0 -0
- package/assets/images/rule-builder-select-api.png +0 -0
- package/assets/images/sample-condition-add-configurable-params.png +0 -0
- package/assets/images/sample-condition.png +0 -0
- package/assets/images/sample-editor.png +0 -0
- package/assets/images/sample-request.png +0 -0
- package/assets/images/sample-test-assertion.png +0 -0
- package/assets/images/send-transfer.png +0 -0
- package/assets/images/sending-single-test-case-1.png +0 -0
- package/assets/images/sending-single-test-case-2.png +0 -0
- package/assets/images/sending-test-cases.png +0 -0
- package/assets/images/server-certificates-submitted.png +0 -0
- package/assets/images/simulator-response.png +0 -0
- package/assets/images/simulator-scheme-adapter-endpoint.png +0 -0
- package/assets/images/summarized-view-of-rule.png +0 -0
- package/assets/images/template-window.png +0 -0
- package/assets/images/test-case-editor-console-log.png +0 -0
- package/assets/images/test-case-editor-environment-state.png +0 -0
- package/assets/images/test-case-editor-scripts.png +0 -0
- package/assets/images/test-case-editor.png +0 -0
- package/assets/images/testcase-definition-download.png +0 -0
- package/assets/images/testcase-definition-edit-meta-info.png +0 -0
- package/assets/images/testing-toolkit-mojaloop-testing-toolkit-endpoint.png +0 -0
- package/assets/images/tls-hub-certs-keys.png +0 -0
- package/assets/images/tls-jws-enabled-on-environment.png +0 -0
- package/assets/images/updated-sample-body-data.png +0 -0
- package/assets/images/using-configurable-parameter.png +0 -0
- package/assets/images/validation-rules-screen.png +0 -0
- package/assets/images/view-response.png +0 -0
- package/audit-ci.jsonc +7 -0
- package/connection-manager/docker-compose.yml +55 -0
- package/database/docker-compose.yml +16 -0
- package/docker/hosted-mode/docker-compose.yaml +107 -0
- package/docker/hosted-mode/keycloak/keycloak-realm.json +2298 -0
- package/docker/hosted-mode/mongo-init.sh +1 -0
- package/docker/hosted-mode-tls/docker-compose.yaml +171 -0
- package/docker/hosted-mode-tls/keycloak/keycloak-realm.json +2298 -0
- package/docker/hosted-mode-tls/mongo-init.sh +1 -0
- package/docker-compose.yml +62 -0
- package/documents/Mojaloop-Testing-Toolkit.md +296 -0
- package/documents/RULES_ENGINE.md +403 -0
- package/documents/User-Guide-API-Provisioning.md +121 -0
- package/documents/User-Guide-CLI.md +218 -0
- package/documents/User-Guide-Connection-Manager.md +282 -0
- package/documents/User-Guide-Frequently-Asked-Questions.md +39 -0
- package/documents/User-Guide-Hosted-Mode-Docker-Compose.md +110 -0
- package/documents/User-Guide-Installation.md +163 -0
- package/documents/User-Guide-Mojaloop-Testing-Toolkit.md +642 -0
- package/documents/User-Guide-OAuth-Server-Deployment.md +283 -0
- package/documents/User-Guide-Onboarding-DFSP.md +197 -0
- package/documents/User-Guide-Onboarding-HUB.md +191 -0
- package/documents/User-Guide.md +53 -0
- package/examples/collections/dfsp/p2p_failed_tests.json +7161 -0
- package/examples/collections/dfsp/p2p_fx_happy_path.json +502 -0
- package/examples/collections/dfsp/p2p_happy_path.json +350 -0
- package/examples/collections/dfsp/p2p_happy_path_extended.json +6106 -0
- package/examples/collections/dfsp/p2p_happy_path_jws.json +511 -0
- package/examples/collections/dfsp/p2p_payee_assertions_websocket.json +441 -0
- package/examples/collections/dfsp/sample.json +5029 -0
- package/examples/collections/dfsp/transaction_request_service.json +240 -0
- package/examples/collections/fxp/FXP.json +264 -0
- package/examples/collections/fxp/SDK_backend.json +98 -0
- package/examples/collections/fxp/SDK_outbound.json +163 -0
- package/examples/collections/hub/hub_01_p2p_happy_path/hub_p2p_receive_quote.json +400 -0
- package/examples/collections/hub/hub_01_p2p_happy_path/hub_p2p_send_quote.json +395 -0
- package/examples/collections/hub/hub_02_block_transfer/hub_block_transfer.json +393 -0
- package/examples/collections/hub/hub_03_funds_in_out/hub_funds_in.json +224 -0
- package/examples/collections/hub/hub_03_funds_in_out/hub_funds_out.json +780 -0
- package/examples/collections/hub/hub_04_settlements/hub_settlements.json +3138 -0
- package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_payee_abort.json +475 -0
- package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_payee_invalid_fulfillment.json +370 -0
- package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_transfer_timeout.json +262 -0
- package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_authorizations.json +117 -0
- package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_error_framework.json +591 -0
- package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_received_state.json +379 -0
- package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_reject_state.json +361 -0
- package/examples/collections/hub/hub_07_quoting_service.json +525 -0
- package/examples/collections/hub/hub_08_participant_inactive_stop_transfers.json +706 -0
- package/examples/collections/hub/hub_09_duplicate_handling_transfers.json +1377 -0
- package/examples/collections/hub/hub_10_on_us_transfers.json +245 -0
- package/examples/collections/hub/hub_11_accented_and_spl_chars.json +629 -0
- package/examples/collections/hub/hub_12_fspiop_version_1.1.json +646 -0
- package/examples/collections/hub/hub_13_bulk_transfers.json +1857 -0
- package/examples/collections/iso20022/self_referencing_iso20022.json +926 -0
- package/examples/collections/provisioning/testingtoolkitdfsp.json +904 -0
- package/examples/environments/dfsp_local_environment.json +46 -0
- package/examples/environments/hub_local_environment.json +57 -0
- package/jest.config.js +17 -0
- package/package.json +199 -0
- package/sbom-v18.12.4.csv +1553 -0
- package/secrets/keygen.sh +5 -0
- package/secrets/privatekey.pem +27 -0
- package/secrets/publickey.cer +21 -0
- package/secrets/tls/01.pem +132 -0
- package/secrets/tls/createSecrets.sh +20 -0
- package/secrets/tls/hub_client.csr +32 -0
- package/secrets/tls/hub_client_cacert.pem +35 -0
- package/secrets/tls/hub_client_cakey.pem +52 -0
- package/secrets/tls/hub_client_key.key +52 -0
- package/secrets/tls/hub_server.csr +31 -0
- package/secrets/tls/hub_server_cacert.pem +35 -0
- package/secrets/tls/hub_server_cakey.pem +52 -0
- package/secrets/tls/hub_server_cert.pem +132 -0
- package/secrets/tls/hub_server_key.key +52 -0
- package/secrets/tls/index.txt +1 -0
- package/secrets/tls/index.txt.attr +1 -0
- package/secrets/tls/openssl-client.cnf +36 -0
- package/secrets/tls/openssl-clientca.cnf +71 -0
- package/secrets/tls/openssl-server.cnf +39 -0
- package/secrets/tls/openssl-serverca.cnf +71 -0
- package/secrets/tls/serial.txt +1 -0
- package/spec_files/api_definitions/als_admin_1.1/api_spec.yaml +804 -0
- package/spec_files/api_definitions/central_admin_1.0/api_spec.yaml +1850 -0
- package/spec_files/api_definitions/central_admin_1.0/response_map.json +96 -0
- package/spec_files/api_definitions/central_admin_old_9.3/api_spec.yaml +2467 -0
- package/spec_files/api_definitions/central_admin_old_9.3/response_map.json +96 -0
- package/spec_files/api_definitions/fspiop_1.0/api_spec.yaml +4187 -0
- package/spec_files/api_definitions/fspiop_1.0/callback_map.json +568 -0
- package/spec_files/api_definitions/fspiop_1.0/mockRef.json +79 -0
- package/spec_files/api_definitions/fspiop_1.0/trigger_templates/transaction_request_followup.json +126 -0
- package/spec_files/api_definitions/fspiop_1.0/trigger_templates/transaction_request_followup_quotes_only.json +97 -0
- package/spec_files/api_definitions/fspiop_1.1/api_spec.yaml +3778 -0
- package/spec_files/api_definitions/fspiop_1.1/callback_map.json +568 -0
- package/spec_files/api_definitions/fspiop_1.1/mockRef.json +79 -0
- package/spec_files/api_definitions/fspiop_1.1/trigger_templates/transaction_request_followup.json +125 -0
- package/spec_files/api_definitions/fspiop_2.0/api_spec.yaml +4839 -0
- package/spec_files/api_definitions/fspiop_2.0/callback_map.json +716 -0
- package/spec_files/api_definitions/fspiop_2.0/mockRef.json +79 -0
- package/spec_files/api_definitions/fspiop_2.0/trigger_templates/transaction_request_followup.json +125 -0
- package/spec_files/api_definitions/fspiop_2.0_iso20022/api_spec.yaml +8331 -0
- package/spec_files/api_definitions/fspiop_2.0_iso20022/callback_map.json +508 -0
- package/spec_files/api_definitions/fspiop_2.0_iso20022/mockRef.json +66 -0
- package/spec_files/api_definitions/fx-api_2.0/api_spec.yaml +1768 -0
- package/spec_files/api_definitions/fx-api_2.0/callback_map.json +188 -0
- package/spec_files/api_definitions/fx-api_2.0/mockRef.json +83 -0
- package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/api_spec.yaml +2612 -0
- package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/mockRef.json +22 -0
- package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/response_map.json +35 -0
- package/spec_files/api_definitions/mojaloop_simulator_0.1/api_spec.yaml +225 -0
- package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/api_spec.yaml +1087 -0
- package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/mockRef.json +75 -0
- package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/response_map.json +55 -0
- package/spec_files/api_definitions/payment_manager_1.4/api_spec.yaml +1389 -0
- package/spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/api_spec.yaml +2834 -0
- package/spec_files/api_definitions/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets_2.1/api_spec.yaml +3449 -0
- package/spec_files/api_definitions/settlements_1.0/api_spec.yaml +983 -0
- package/spec_files/api_definitions/settlements_1.0/mockRef.json +38 -0
- package/spec_files/api_definitions/settlements_1.0/response_map.json +34 -0
- package/spec_files/api_definitions/settlements_2.0/api_spec.yaml +1001 -0
- package/spec_files/api_definitions/settlements_2.0/mockRef.json +38 -0
- package/spec_files/api_definitions/settlements_2.0/response_map.json +34 -0
- package/spec_files/api_definitions/thirdparty_sdk_outbound_0.1/api_spec.yaml +2139 -0
- package/spec_files/reports/templates/newman/html_template.html +1202 -0
- package/spec_files/reports/templates/newman/pdf_template.html +790 -0
- package/spec_files/reports/templates/testcase_definition/table_view.html +1602 -0
- package/spec_files/rules_callback/config.json +3 -0
- package/spec_files/rules_callback/default.json +2698 -0
- package/spec_files/rules_callback/p2p-limit.json +129 -0
- package/spec_files/rules_forward/config.json +3 -0
- package/spec_files/rules_forward/default.json +482 -0
- package/spec_files/rules_response/config.json +3 -0
- package/spec_files/rules_response/default.json +295 -0
- package/spec_files/rules_validation/config.json +3 -0
- package/spec_files/rules_validation/default.json +1 -0
- package/spec_files/rules_validation/p2p-limit.json +55 -0
- package/spec_files/system_config.json +175 -0
- package/spec_files/user_config.json +109 -0
- package/src/index.js +67 -0
- package/src/lib/MyEventEmitter.js +54 -0
- package/src/lib/api-management.js +143 -0
- package/src/lib/api-routes/config.js +83 -0
- package/src/lib/api-routes/history.js +139 -0
- package/src/lib/api-routes/keycloak.js +54 -0
- package/src/lib/api-routes/longpolling.js +70 -0
- package/src/lib/api-routes/oauth2.js +149 -0
- package/src/lib/api-routes/objectstore.js +53 -0
- package/src/lib/api-routes/openapi.js +224 -0
- package/src/lib/api-routes/outbound.js +134 -0
- package/src/lib/api-routes/reports.js +72 -0
- package/src/lib/api-routes/rules.js +356 -0
- package/src/lib/api-routes/samples.js +92 -0
- package/src/lib/api-routes/server-logs.js +44 -0
- package/src/lib/api-routes/settings.js +71 -0
- package/src/lib/api-server.js +135 -0
- package/src/lib/arrayStore.js +101 -0
- package/src/lib/callbackHandler.js +201 -0
- package/src/lib/config.js +177 -0
- package/src/lib/configuration-providers/mb-connection-manager.js +625 -0
- package/src/lib/db/adapters/dbAdapter.js +184 -0
- package/src/lib/db/dfspMockUsers.js +64 -0
- package/src/lib/db/models/mongoDBWrapper.js +78 -0
- package/src/lib/eventListenerClient/inboundEventListener.js +176 -0
- package/src/lib/fileAdapter.js +57 -0
- package/src/lib/httpAgentStore.js +135 -0
- package/src/lib/importExport.js +186 -0
- package/src/lib/jws/JwsSigning.js +141 -0
- package/src/lib/loadSamples.js +128 -0
- package/src/lib/logger.js +20 -0
- package/src/lib/longpollingEmitter.js +56 -0
- package/src/lib/metrics.js +51 -0
- package/src/lib/mocking/custom-functions/generic.js +57 -0
- package/src/lib/mocking/middleware-functions/ilpModel.js +238 -0
- package/src/lib/mocking/middleware-functions/quotesAssociation.js +75 -0
- package/src/lib/mocking/middleware-functions/transactionRequestsService.js +78 -0
- package/src/lib/mocking/openApiDefinitionsModel.js +64 -0
- package/src/lib/mocking/openApiMockHandler.js +466 -0
- package/src/lib/mocking/openApiRulesEngine.js +492 -0
- package/src/lib/mocking/openApiVersionTools.js +136 -0
- package/src/lib/mocking/transformers/fspiopToISO20022.js +230 -0
- package/src/lib/mocking/transformers/index.js +41 -0
- package/src/lib/notificationEmitter.js +64 -0
- package/src/lib/oauth/KeycloakHelper.js +220 -0
- package/src/lib/oauth/LoginService.js +133 -0
- package/src/lib/oauth/OAuthHelper.js +181 -0
- package/src/lib/oauth/OAuthValidator.js +118 -0
- package/src/lib/oauth/Wso2Client.js +64 -0
- package/src/lib/objectStore/inMemoryImpl.js +50 -0
- package/src/lib/objectStore/objectStoreInterface.js +51 -0
- package/src/lib/objectStore.js +122 -0
- package/src/lib/report-generator/generator.js +126 -0
- package/src/lib/report-generator/helpers.js +154 -0
- package/src/lib/requestLogger.js +190 -0
- package/src/lib/resources/wso2carbon-publickey.cert +20 -0
- package/src/lib/rulesEngine.js +95 -0
- package/src/lib/rulesEngineModel.js +463 -0
- package/src/lib/scripting-engines/postman-sandbox.js +142 -0
- package/src/lib/scripting-engines/vm-javascript-sandbox.js +294 -0
- package/src/lib/server-logs/adapters/elastic-search.js +102 -0
- package/src/lib/server-logs/adapters/grafana.js +0 -0
- package/src/lib/server-logs/index.js +75 -0
- package/src/lib/socket-server.js +55 -0
- package/src/lib/storageAdapter.js +109 -0
- package/src/lib/test-outbound/TestCaseRunner.js +173 -0
- package/src/lib/test-outbound/getTracing.js +19 -0
- package/src/lib/test-outbound/outbound-initiator.js +1107 -0
- package/src/lib/uniqueIdGenerator.js +35 -0
- package/src/lib/utils.js +89 -0
- package/src/lib/utilsInternal.js +56 -0
- package/src/lib/webSocketClient/WebSocketClientManager.js +197 -0
- package/src/server.js +218 -0
|
@@ -0,0 +1,1001 @@
|
|
|
1
|
+
openapi: 3.0.1
|
|
2
|
+
info:
|
|
3
|
+
title: MOJALOOP Central Settlements
|
|
4
|
+
description: Mojaloop API for Settlements.
|
|
5
|
+
version: "2.0"
|
|
6
|
+
servers:
|
|
7
|
+
- url: /v2
|
|
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: Closes requested window and opens a new one.
|
|
82
|
+
operationId: closeSettlementWindow
|
|
83
|
+
parameters:
|
|
84
|
+
- name: id
|
|
85
|
+
in: path
|
|
86
|
+
required: true
|
|
87
|
+
schema:
|
|
88
|
+
type: integer
|
|
89
|
+
requestBody:
|
|
90
|
+
description: A JSON object containing settlement window closure info.
|
|
91
|
+
content:
|
|
92
|
+
application/json:
|
|
93
|
+
schema:
|
|
94
|
+
$ref: '#/components/schemas/SettlementWindowClosurePayload'
|
|
95
|
+
required: true
|
|
96
|
+
responses:
|
|
97
|
+
200:
|
|
98
|
+
description: Settlement window closed and new window opened.
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: '#/components/schemas/SettlementWindow'
|
|
103
|
+
400:
|
|
104
|
+
description: Bad request.
|
|
105
|
+
content:
|
|
106
|
+
application/json:
|
|
107
|
+
schema:
|
|
108
|
+
$ref: '#/components/schemas/Error'
|
|
109
|
+
401:
|
|
110
|
+
description: Authorisation information is missing or invalid.
|
|
111
|
+
content:
|
|
112
|
+
application/json:
|
|
113
|
+
schema:
|
|
114
|
+
$ref: '#/components/schemas/Error'
|
|
115
|
+
404:
|
|
116
|
+
description: No data found.
|
|
117
|
+
content:
|
|
118
|
+
application/json:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: '#/components/schemas/Error'
|
|
121
|
+
415:
|
|
122
|
+
description: Unsupported Media Type.
|
|
123
|
+
content:
|
|
124
|
+
application/json:
|
|
125
|
+
schema:
|
|
126
|
+
$ref: '#/components/schemas/Error'
|
|
127
|
+
default:
|
|
128
|
+
description: Unexpected error
|
|
129
|
+
content:
|
|
130
|
+
application/json:
|
|
131
|
+
schema:
|
|
132
|
+
$ref: '#/components/schemas/Error'
|
|
133
|
+
deprecated: false
|
|
134
|
+
x-codegen-request-body-name: payload
|
|
135
|
+
/settlementWindows:
|
|
136
|
+
get:
|
|
137
|
+
tags:
|
|
138
|
+
- getSettlementWindowsByParams
|
|
139
|
+
summary: getSettlementWindowsByParams
|
|
140
|
+
description: Returns Settlement Windows as per parameter(s).
|
|
141
|
+
operationId: getSettlementWindowsByParams
|
|
142
|
+
parameters:
|
|
143
|
+
- name: participantId
|
|
144
|
+
in: query
|
|
145
|
+
description: |
|
|
146
|
+
A valid participant Id to filter on.
|
|
147
|
+
schema:
|
|
148
|
+
type: integer
|
|
149
|
+
- name: state
|
|
150
|
+
in: query
|
|
151
|
+
description: |
|
|
152
|
+
A settlement window state to filter on.
|
|
153
|
+
schema:
|
|
154
|
+
type: string
|
|
155
|
+
enum:
|
|
156
|
+
- OPEN
|
|
157
|
+
- CLOSED
|
|
158
|
+
- PENDING_SETTLEMENT
|
|
159
|
+
- SETTLED
|
|
160
|
+
- ABORTED
|
|
161
|
+
- name: fromDateTime
|
|
162
|
+
in: query
|
|
163
|
+
description: |
|
|
164
|
+
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
165
|
+
schema:
|
|
166
|
+
type: string
|
|
167
|
+
format: date-time
|
|
168
|
+
- name: toDateTime
|
|
169
|
+
in: query
|
|
170
|
+
description: |
|
|
171
|
+
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
172
|
+
schema:
|
|
173
|
+
type: string
|
|
174
|
+
format: date-time
|
|
175
|
+
- name: currency
|
|
176
|
+
in: query
|
|
177
|
+
description: |
|
|
178
|
+
A valid currency to filter on.
|
|
179
|
+
schema:
|
|
180
|
+
type: string
|
|
181
|
+
responses:
|
|
182
|
+
200:
|
|
183
|
+
description: Settlement window(s) returned by the filtering parameters.
|
|
184
|
+
content:
|
|
185
|
+
application/json:
|
|
186
|
+
schema:
|
|
187
|
+
$ref: '#/components/schemas/SettlementWindows'
|
|
188
|
+
400:
|
|
189
|
+
description: Bad request.
|
|
190
|
+
content:
|
|
191
|
+
application/json:
|
|
192
|
+
schema:
|
|
193
|
+
$ref: '#/components/schemas/Error'
|
|
194
|
+
401:
|
|
195
|
+
description: Authorisation information is missing or invalid.
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: '#/components/schemas/Error'
|
|
200
|
+
404:
|
|
201
|
+
description: No data found.
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
$ref: '#/components/schemas/Error'
|
|
206
|
+
415:
|
|
207
|
+
description: Unsupported Media Type.
|
|
208
|
+
content:
|
|
209
|
+
application/json:
|
|
210
|
+
schema:
|
|
211
|
+
$ref: '#/components/schemas/Error'
|
|
212
|
+
default:
|
|
213
|
+
description: Unexpected error
|
|
214
|
+
content:
|
|
215
|
+
application/json:
|
|
216
|
+
schema:
|
|
217
|
+
$ref: '#/components/schemas/Error'
|
|
218
|
+
deprecated: false
|
|
219
|
+
/settlements:
|
|
220
|
+
get:
|
|
221
|
+
tags:
|
|
222
|
+
- getSettlementsByParams
|
|
223
|
+
summary: getSettlementsByParams
|
|
224
|
+
description: Returns Settlements as per parameter(s).
|
|
225
|
+
operationId: getSettlementsByParams
|
|
226
|
+
parameters:
|
|
227
|
+
- name: currency
|
|
228
|
+
in: query
|
|
229
|
+
description: |
|
|
230
|
+
A valid currency to filter on.
|
|
231
|
+
schema:
|
|
232
|
+
type: string
|
|
233
|
+
- name: participantId
|
|
234
|
+
in: query
|
|
235
|
+
description: |
|
|
236
|
+
A valid participant Id to filter on.
|
|
237
|
+
schema:
|
|
238
|
+
type: integer
|
|
239
|
+
- name: settlementWindowId
|
|
240
|
+
in: query
|
|
241
|
+
description: |
|
|
242
|
+
A valid Settlement Window Id to filter on.
|
|
243
|
+
schema:
|
|
244
|
+
type: number
|
|
245
|
+
- name: accountId
|
|
246
|
+
in: query
|
|
247
|
+
description: |
|
|
248
|
+
A valid Account Id to filter on.
|
|
249
|
+
schema:
|
|
250
|
+
type: number
|
|
251
|
+
- name: state
|
|
252
|
+
in: query
|
|
253
|
+
description: "A settlement state to filter on. \n"
|
|
254
|
+
schema:
|
|
255
|
+
type: string
|
|
256
|
+
enum:
|
|
257
|
+
- PENDING_SETTLEMENT
|
|
258
|
+
- PS_TRANSFERS_RECORDED
|
|
259
|
+
- PS_TRANSFERS_RESERVED
|
|
260
|
+
- PS_TRANSFERS_COMMITTED
|
|
261
|
+
- SETTLING
|
|
262
|
+
- SETTLED
|
|
263
|
+
- ABORTED
|
|
264
|
+
- name: fromDateTime
|
|
265
|
+
in: query
|
|
266
|
+
description: |
|
|
267
|
+
The start date for query (relates to central-ledger.settlement.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
268
|
+
schema:
|
|
269
|
+
type: string
|
|
270
|
+
format: date-time
|
|
271
|
+
- name: toDateTime
|
|
272
|
+
in: query
|
|
273
|
+
description: |
|
|
274
|
+
The end date for query (relates to central-ledger.settlement.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
275
|
+
schema:
|
|
276
|
+
type: string
|
|
277
|
+
format: date-time
|
|
278
|
+
- name: fromSettlementWindowDateTime
|
|
279
|
+
in: query
|
|
280
|
+
description: |
|
|
281
|
+
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
282
|
+
schema:
|
|
283
|
+
type: string
|
|
284
|
+
format: date-time
|
|
285
|
+
- name: toSettlementWindowDateTime
|
|
286
|
+
in: query
|
|
287
|
+
description: |
|
|
288
|
+
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
289
|
+
schema:
|
|
290
|
+
type: string
|
|
291
|
+
format: date-time
|
|
292
|
+
responses:
|
|
293
|
+
200:
|
|
294
|
+
description: Settlement window(s) returned by the filtering parameters.
|
|
295
|
+
content:
|
|
296
|
+
application/json:
|
|
297
|
+
schema:
|
|
298
|
+
$ref: '#/components/schemas/Settlements'
|
|
299
|
+
400:
|
|
300
|
+
description: Bad request.
|
|
301
|
+
content:
|
|
302
|
+
application/json:
|
|
303
|
+
schema:
|
|
304
|
+
$ref: '#/components/schemas/Error'
|
|
305
|
+
401:
|
|
306
|
+
description: Authorisation information is missing or invalid.
|
|
307
|
+
content:
|
|
308
|
+
application/json:
|
|
309
|
+
schema:
|
|
310
|
+
$ref: '#/components/schemas/Error'
|
|
311
|
+
404:
|
|
312
|
+
description: No data found.
|
|
313
|
+
content:
|
|
314
|
+
application/json:
|
|
315
|
+
schema:
|
|
316
|
+
$ref: '#/components/schemas/Error'
|
|
317
|
+
415:
|
|
318
|
+
description: Unsupported Media Type.
|
|
319
|
+
content:
|
|
320
|
+
application/json:
|
|
321
|
+
schema:
|
|
322
|
+
$ref: '#/components/schemas/Error'
|
|
323
|
+
default:
|
|
324
|
+
description: Unexpected error
|
|
325
|
+
content:
|
|
326
|
+
application/json:
|
|
327
|
+
schema:
|
|
328
|
+
$ref: '#/components/schemas/Error'
|
|
329
|
+
deprecated: false
|
|
330
|
+
post:
|
|
331
|
+
tags:
|
|
332
|
+
- createSettlement
|
|
333
|
+
summary: createSettlement
|
|
334
|
+
description: Triggers settlement creation. Returns settlement report.
|
|
335
|
+
operationId: createSettlement
|
|
336
|
+
requestBody:
|
|
337
|
+
description: A JSON object containing settlement windows to be included.
|
|
338
|
+
content:
|
|
339
|
+
application/json:
|
|
340
|
+
schema:
|
|
341
|
+
$ref: '#/components/schemas/SettlementEventPayload'
|
|
342
|
+
required: true
|
|
343
|
+
responses:
|
|
344
|
+
200:
|
|
345
|
+
description: Created settlement with all windows and accounts.
|
|
346
|
+
content:
|
|
347
|
+
application/json:
|
|
348
|
+
schema:
|
|
349
|
+
$ref: '#/components/schemas/Settlement'
|
|
350
|
+
400:
|
|
351
|
+
description: Bad request.
|
|
352
|
+
content:
|
|
353
|
+
application/json:
|
|
354
|
+
schema:
|
|
355
|
+
$ref: '#/components/schemas/Error'
|
|
356
|
+
401:
|
|
357
|
+
description: Authorisation information is missing or invalid.
|
|
358
|
+
content:
|
|
359
|
+
application/json:
|
|
360
|
+
schema:
|
|
361
|
+
$ref: '#/components/schemas/Error'
|
|
362
|
+
404:
|
|
363
|
+
description: No data found.
|
|
364
|
+
content:
|
|
365
|
+
application/json:
|
|
366
|
+
schema:
|
|
367
|
+
$ref: '#/components/schemas/Error'
|
|
368
|
+
415:
|
|
369
|
+
description: Unsupported Media Type.
|
|
370
|
+
content:
|
|
371
|
+
application/json:
|
|
372
|
+
schema:
|
|
373
|
+
$ref: '#/components/schemas/Error'
|
|
374
|
+
default:
|
|
375
|
+
description: Unexpected error
|
|
376
|
+
content:
|
|
377
|
+
application/json:
|
|
378
|
+
schema:
|
|
379
|
+
$ref: '#/components/schemas/Error'
|
|
380
|
+
deprecated: false
|
|
381
|
+
x-codegen-request-body-name: payload
|
|
382
|
+
/settlements/{id}:
|
|
383
|
+
get:
|
|
384
|
+
tags:
|
|
385
|
+
- getSettlementById
|
|
386
|
+
summary: getSettlementById
|
|
387
|
+
description: Returns Settlement(s) as per parameters/filter criteria.
|
|
388
|
+
operationId: getSettlementById
|
|
389
|
+
parameters:
|
|
390
|
+
- name: id
|
|
391
|
+
in: path
|
|
392
|
+
description: |
|
|
393
|
+
A valid Settlement Id.
|
|
394
|
+
required: true
|
|
395
|
+
schema:
|
|
396
|
+
type: integer
|
|
397
|
+
responses:
|
|
398
|
+
200:
|
|
399
|
+
description: Settlement successfully returned by the filtering/Query parameters.
|
|
400
|
+
content:
|
|
401
|
+
application/json:
|
|
402
|
+
schema:
|
|
403
|
+
$ref: '#/components/schemas/Settlement'
|
|
404
|
+
400:
|
|
405
|
+
description: Bad request.
|
|
406
|
+
content:
|
|
407
|
+
application/json:
|
|
408
|
+
schema:
|
|
409
|
+
$ref: '#/components/schemas/Error'
|
|
410
|
+
401:
|
|
411
|
+
description: Authorisation information is missing or invalid.
|
|
412
|
+
content:
|
|
413
|
+
application/json:
|
|
414
|
+
schema:
|
|
415
|
+
$ref: '#/components/schemas/Error'
|
|
416
|
+
404:
|
|
417
|
+
description: No data found.
|
|
418
|
+
content:
|
|
419
|
+
application/json:
|
|
420
|
+
schema:
|
|
421
|
+
$ref: '#/components/schemas/Error'
|
|
422
|
+
415:
|
|
423
|
+
description: Unsupported Media Type.
|
|
424
|
+
content:
|
|
425
|
+
application/json:
|
|
426
|
+
schema:
|
|
427
|
+
$ref: '#/components/schemas/Error'
|
|
428
|
+
default:
|
|
429
|
+
description: Unexpected error
|
|
430
|
+
content:
|
|
431
|
+
application/json:
|
|
432
|
+
schema:
|
|
433
|
+
$ref: '#/components/schemas/Error'
|
|
434
|
+
deprecated: false
|
|
435
|
+
put:
|
|
436
|
+
tags:
|
|
437
|
+
- updateSettlementById
|
|
438
|
+
summary: updateSettlementById
|
|
439
|
+
description: Acknowledgement of settlement by updating with Settlement Id.
|
|
440
|
+
operationId: updateSettlementById
|
|
441
|
+
parameters:
|
|
442
|
+
- name: id
|
|
443
|
+
in: path
|
|
444
|
+
description: A valid Settlement Id.
|
|
445
|
+
required: true
|
|
446
|
+
schema:
|
|
447
|
+
type: integer
|
|
448
|
+
requestBody:
|
|
449
|
+
description: A JSON object containing settlement update info.
|
|
450
|
+
content:
|
|
451
|
+
application/json:
|
|
452
|
+
schema:
|
|
453
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdPayload'
|
|
454
|
+
required: true
|
|
455
|
+
responses:
|
|
456
|
+
200:
|
|
457
|
+
description: Settlements updated.
|
|
458
|
+
content:
|
|
459
|
+
application/json:
|
|
460
|
+
schema:
|
|
461
|
+
$ref: '#/components/schemas/Settlement'
|
|
462
|
+
400:
|
|
463
|
+
description: Bad request.
|
|
464
|
+
content:
|
|
465
|
+
application/json:
|
|
466
|
+
schema:
|
|
467
|
+
$ref: '#/components/schemas/Error'
|
|
468
|
+
401:
|
|
469
|
+
description: Authorisation information is missing or invalid.
|
|
470
|
+
content:
|
|
471
|
+
application/json:
|
|
472
|
+
schema:
|
|
473
|
+
$ref: '#/components/schemas/Error'
|
|
474
|
+
404:
|
|
475
|
+
description: No data found.
|
|
476
|
+
content:
|
|
477
|
+
application/json:
|
|
478
|
+
schema:
|
|
479
|
+
$ref: '#/components/schemas/Error'
|
|
480
|
+
415:
|
|
481
|
+
description: Unsupported Media Type.
|
|
482
|
+
content:
|
|
483
|
+
application/json:
|
|
484
|
+
schema:
|
|
485
|
+
$ref: '#/components/schemas/Error'
|
|
486
|
+
default:
|
|
487
|
+
description: Unexpected error
|
|
488
|
+
content:
|
|
489
|
+
application/json:
|
|
490
|
+
schema:
|
|
491
|
+
$ref: '#/components/schemas/Error'
|
|
492
|
+
deprecated: false
|
|
493
|
+
x-codegen-request-body-name: payload
|
|
494
|
+
/settlements/{sid}/participants/{pid}:
|
|
495
|
+
get:
|
|
496
|
+
tags:
|
|
497
|
+
- getSettlementBySettlementParticipant
|
|
498
|
+
summary: getSettlementBySettlementParticipant
|
|
499
|
+
description: Returns Settlement(s) as per filter criteria.
|
|
500
|
+
operationId: getSettlementBySettlementParticipant
|
|
501
|
+
parameters:
|
|
502
|
+
- name: sid
|
|
503
|
+
in: path
|
|
504
|
+
description: |
|
|
505
|
+
A valid Settlement Id.
|
|
506
|
+
required: true
|
|
507
|
+
schema:
|
|
508
|
+
type: integer
|
|
509
|
+
- name: pid
|
|
510
|
+
in: path
|
|
511
|
+
description: |
|
|
512
|
+
A valid Participant Id.
|
|
513
|
+
required: true
|
|
514
|
+
schema:
|
|
515
|
+
type: integer
|
|
516
|
+
responses:
|
|
517
|
+
200:
|
|
518
|
+
description: Settlement, settlement windows and settlement accounts returned
|
|
519
|
+
by the filtering parameters.
|
|
520
|
+
content:
|
|
521
|
+
application/json:
|
|
522
|
+
schema:
|
|
523
|
+
$ref: '#/components/schemas/Settlement'
|
|
524
|
+
400:
|
|
525
|
+
description: Bad request.
|
|
526
|
+
content:
|
|
527
|
+
application/json:
|
|
528
|
+
schema:
|
|
529
|
+
$ref: '#/components/schemas/Error'
|
|
530
|
+
401:
|
|
531
|
+
description: Authorisation information is missing or invalid.
|
|
532
|
+
content:
|
|
533
|
+
application/json:
|
|
534
|
+
schema:
|
|
535
|
+
$ref: '#/components/schemas/Error'
|
|
536
|
+
404:
|
|
537
|
+
description: No data found.
|
|
538
|
+
content:
|
|
539
|
+
application/json:
|
|
540
|
+
schema:
|
|
541
|
+
$ref: '#/components/schemas/Error'
|
|
542
|
+
415:
|
|
543
|
+
description: Unsupported Media Type.
|
|
544
|
+
content:
|
|
545
|
+
application/json:
|
|
546
|
+
schema:
|
|
547
|
+
$ref: '#/components/schemas/Error'
|
|
548
|
+
default:
|
|
549
|
+
description: Unexpected error
|
|
550
|
+
content:
|
|
551
|
+
application/json:
|
|
552
|
+
schema:
|
|
553
|
+
$ref: '#/components/schemas/Error'
|
|
554
|
+
deprecated: false
|
|
555
|
+
put:
|
|
556
|
+
tags:
|
|
557
|
+
- updateSettlementBySettlementParticipant
|
|
558
|
+
summary: updateSettlementBySettlementParticipant
|
|
559
|
+
description: Acknowledgement of settlement by updating the reason and state
|
|
560
|
+
by SP.
|
|
561
|
+
operationId: updateSettlementBySettlementParticipant
|
|
562
|
+
parameters:
|
|
563
|
+
- name: sid
|
|
564
|
+
in: path
|
|
565
|
+
description: A valid Settlement Id.
|
|
566
|
+
required: true
|
|
567
|
+
schema:
|
|
568
|
+
type: integer
|
|
569
|
+
- name: pid
|
|
570
|
+
in: path
|
|
571
|
+
description: A valid Participant Id.
|
|
572
|
+
required: true
|
|
573
|
+
schema:
|
|
574
|
+
type: integer
|
|
575
|
+
requestBody:
|
|
576
|
+
description: A JSON object containing settlement update info.
|
|
577
|
+
content:
|
|
578
|
+
application/json:
|
|
579
|
+
schema:
|
|
580
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementParticipantPayload'
|
|
581
|
+
required: true
|
|
582
|
+
responses:
|
|
583
|
+
200:
|
|
584
|
+
description: Settlements updated.
|
|
585
|
+
content:
|
|
586
|
+
application/json:
|
|
587
|
+
schema:
|
|
588
|
+
$ref: '#/components/schemas/Settlement'
|
|
589
|
+
400:
|
|
590
|
+
description: Bad request.
|
|
591
|
+
content:
|
|
592
|
+
application/json:
|
|
593
|
+
schema:
|
|
594
|
+
$ref: '#/components/schemas/Error'
|
|
595
|
+
401:
|
|
596
|
+
description: Authorisation information is missing or invalid.
|
|
597
|
+
content:
|
|
598
|
+
application/json:
|
|
599
|
+
schema:
|
|
600
|
+
$ref: '#/components/schemas/Error'
|
|
601
|
+
404:
|
|
602
|
+
description: No data found.
|
|
603
|
+
content:
|
|
604
|
+
application/json:
|
|
605
|
+
schema:
|
|
606
|
+
$ref: '#/components/schemas/Error'
|
|
607
|
+
415:
|
|
608
|
+
description: Unsupported Media Type.
|
|
609
|
+
content:
|
|
610
|
+
application/json:
|
|
611
|
+
schema:
|
|
612
|
+
$ref: '#/components/schemas/Error'
|
|
613
|
+
default:
|
|
614
|
+
description: Unexpected error
|
|
615
|
+
content:
|
|
616
|
+
application/json:
|
|
617
|
+
schema:
|
|
618
|
+
$ref: '#/components/schemas/Error'
|
|
619
|
+
deprecated: false
|
|
620
|
+
x-codegen-request-body-name: payload
|
|
621
|
+
/settlements/{sid}/participants/{pid}/accounts/{aid}:
|
|
622
|
+
get:
|
|
623
|
+
tags:
|
|
624
|
+
- getSettlementBySettlementParticipantAccount
|
|
625
|
+
summary: getSettlementBySettlementParticipantAccount
|
|
626
|
+
description: Returns Settlement(s) as per filter criteria.
|
|
627
|
+
operationId: getSettlementBySettlementParticipantAccount
|
|
628
|
+
parameters:
|
|
629
|
+
- name: sid
|
|
630
|
+
in: path
|
|
631
|
+
description: |
|
|
632
|
+
A valid Settlement Id.
|
|
633
|
+
required: true
|
|
634
|
+
schema:
|
|
635
|
+
type: integer
|
|
636
|
+
- name: pid
|
|
637
|
+
in: path
|
|
638
|
+
description: |
|
|
639
|
+
A valid Participant Id.
|
|
640
|
+
required: true
|
|
641
|
+
schema:
|
|
642
|
+
type: integer
|
|
643
|
+
- name: aid
|
|
644
|
+
in: path
|
|
645
|
+
description: |
|
|
646
|
+
A valid Account Id.
|
|
647
|
+
required: true
|
|
648
|
+
schema:
|
|
649
|
+
type: integer
|
|
650
|
+
responses:
|
|
651
|
+
200:
|
|
652
|
+
description: Settlement, settlement windows and settlement accounts returned
|
|
653
|
+
by the filtering parameters.
|
|
654
|
+
content:
|
|
655
|
+
application/json:
|
|
656
|
+
schema:
|
|
657
|
+
$ref: '#/components/schemas/Settlement'
|
|
658
|
+
400:
|
|
659
|
+
description: Bad request.
|
|
660
|
+
content:
|
|
661
|
+
application/json:
|
|
662
|
+
schema:
|
|
663
|
+
$ref: '#/components/schemas/Error'
|
|
664
|
+
401:
|
|
665
|
+
description: Authorisation information is missing or invalid.
|
|
666
|
+
content:
|
|
667
|
+
application/json:
|
|
668
|
+
schema:
|
|
669
|
+
$ref: '#/components/schemas/Error'
|
|
670
|
+
404:
|
|
671
|
+
description: No data found.
|
|
672
|
+
content:
|
|
673
|
+
application/json:
|
|
674
|
+
schema:
|
|
675
|
+
$ref: '#/components/schemas/Error'
|
|
676
|
+
415:
|
|
677
|
+
description: Unsupported Media Type.
|
|
678
|
+
content:
|
|
679
|
+
application/json:
|
|
680
|
+
schema:
|
|
681
|
+
$ref: '#/components/schemas/Error'
|
|
682
|
+
default:
|
|
683
|
+
description: Unexpected error
|
|
684
|
+
content:
|
|
685
|
+
application/json:
|
|
686
|
+
schema:
|
|
687
|
+
$ref: '#/components/schemas/Error'
|
|
688
|
+
deprecated: false
|
|
689
|
+
put:
|
|
690
|
+
tags:
|
|
691
|
+
- updateSettlementBySettlementParticipantAccount
|
|
692
|
+
summary: updateSettlementBySettlementParticipantAccount
|
|
693
|
+
description: Acknowledgement of settlement by updating the reason and state
|
|
694
|
+
by SPA.
|
|
695
|
+
operationId: updateSettlementBySettlementParticipantAccount
|
|
696
|
+
parameters:
|
|
697
|
+
- name: sid
|
|
698
|
+
in: path
|
|
699
|
+
description: A valid Settlement Id.
|
|
700
|
+
required: true
|
|
701
|
+
schema:
|
|
702
|
+
type: integer
|
|
703
|
+
- name: pid
|
|
704
|
+
in: path
|
|
705
|
+
description: A valid Participant Id.
|
|
706
|
+
required: true
|
|
707
|
+
schema:
|
|
708
|
+
type: integer
|
|
709
|
+
- name: aid
|
|
710
|
+
in: path
|
|
711
|
+
description: A valid Account Id.
|
|
712
|
+
required: true
|
|
713
|
+
schema:
|
|
714
|
+
type: integer
|
|
715
|
+
requestBody:
|
|
716
|
+
description: A JSON object containing settlement update info.
|
|
717
|
+
content:
|
|
718
|
+
application/json:
|
|
719
|
+
schema:
|
|
720
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementParticipantAccount'
|
|
721
|
+
required: true
|
|
722
|
+
responses:
|
|
723
|
+
200:
|
|
724
|
+
description: Settlements updated.
|
|
725
|
+
content:
|
|
726
|
+
application/json:
|
|
727
|
+
schema:
|
|
728
|
+
$ref: '#/components/schemas/Settlement'
|
|
729
|
+
400:
|
|
730
|
+
description: Bad request.
|
|
731
|
+
content:
|
|
732
|
+
application/json:
|
|
733
|
+
schema:
|
|
734
|
+
$ref: '#/components/schemas/Error'
|
|
735
|
+
401:
|
|
736
|
+
description: Authorisation information is missing or invalid.
|
|
737
|
+
content:
|
|
738
|
+
application/json:
|
|
739
|
+
schema:
|
|
740
|
+
$ref: '#/components/schemas/Error'
|
|
741
|
+
404:
|
|
742
|
+
description: No data found.
|
|
743
|
+
content:
|
|
744
|
+
application/json:
|
|
745
|
+
schema:
|
|
746
|
+
$ref: '#/components/schemas/Error'
|
|
747
|
+
415:
|
|
748
|
+
description: Unsupported Media Type.
|
|
749
|
+
content:
|
|
750
|
+
application/json:
|
|
751
|
+
schema:
|
|
752
|
+
$ref: '#/components/schemas/Error'
|
|
753
|
+
default:
|
|
754
|
+
description: Unexpected error
|
|
755
|
+
content:
|
|
756
|
+
application/json:
|
|
757
|
+
schema:
|
|
758
|
+
$ref: '#/components/schemas/Error'
|
|
759
|
+
deprecated: false
|
|
760
|
+
x-codegen-request-body-name: payload
|
|
761
|
+
components:
|
|
762
|
+
schemas:
|
|
763
|
+
SettlementUpdateBySettlementIdPayload:
|
|
764
|
+
type: object
|
|
765
|
+
properties:
|
|
766
|
+
state:
|
|
767
|
+
type: string
|
|
768
|
+
enum:
|
|
769
|
+
- ABORTED
|
|
770
|
+
- INVALID
|
|
771
|
+
reason:
|
|
772
|
+
type: string
|
|
773
|
+
externalReference:
|
|
774
|
+
type: string
|
|
775
|
+
participants:
|
|
776
|
+
type: array
|
|
777
|
+
items:
|
|
778
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIDOuterPayload'
|
|
779
|
+
SettlementUpdateBySettlementIDOuterPayload:
|
|
780
|
+
type: object
|
|
781
|
+
properties:
|
|
782
|
+
id:
|
|
783
|
+
type: integer
|
|
784
|
+
description: Participant Id
|
|
785
|
+
accounts:
|
|
786
|
+
type: array
|
|
787
|
+
items:
|
|
788
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
789
|
+
SettlementUpdateBySettlementIdInnerPayload:
|
|
790
|
+
type: object
|
|
791
|
+
properties:
|
|
792
|
+
id:
|
|
793
|
+
type: integer
|
|
794
|
+
description: Participant Currency Id
|
|
795
|
+
reason:
|
|
796
|
+
type: string
|
|
797
|
+
example: reason
|
|
798
|
+
state:
|
|
799
|
+
type: string
|
|
800
|
+
example: SETTLED
|
|
801
|
+
enum:
|
|
802
|
+
- PENDING_SETTLEMENT
|
|
803
|
+
- PS_TRANSFERS_RECORDED
|
|
804
|
+
- PS_TRANSFERS_RESERVED
|
|
805
|
+
- PS_TRANSFERS_COMMITTED
|
|
806
|
+
- SETTLED
|
|
807
|
+
externalReference:
|
|
808
|
+
type: string
|
|
809
|
+
example: external-reference-abc123
|
|
810
|
+
SettlementUpdateBySettlementParticipantPayload:
|
|
811
|
+
type: object
|
|
812
|
+
properties:
|
|
813
|
+
accounts:
|
|
814
|
+
type: array
|
|
815
|
+
items:
|
|
816
|
+
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
817
|
+
Accounts:
|
|
818
|
+
type: object
|
|
819
|
+
properties:
|
|
820
|
+
id:
|
|
821
|
+
type: integer
|
|
822
|
+
description: Participant Currency Id
|
|
823
|
+
reason:
|
|
824
|
+
type: string
|
|
825
|
+
description: TBD
|
|
826
|
+
state:
|
|
827
|
+
type: string
|
|
828
|
+
example: PENDING_SETTLEMENT
|
|
829
|
+
netSettlementAmount:
|
|
830
|
+
$ref: '#/components/schemas/netSettlementAmount'
|
|
831
|
+
SettlementWindowClosurePayload:
|
|
832
|
+
required:
|
|
833
|
+
- reason
|
|
834
|
+
- state
|
|
835
|
+
type: object
|
|
836
|
+
properties:
|
|
837
|
+
state:
|
|
838
|
+
type: string
|
|
839
|
+
example: CLOSED
|
|
840
|
+
enum:
|
|
841
|
+
- CLOSED
|
|
842
|
+
reason:
|
|
843
|
+
type: string
|
|
844
|
+
example: string
|
|
845
|
+
SettlementUpdateBySettlementParticipantAccount:
|
|
846
|
+
required:
|
|
847
|
+
- reason
|
|
848
|
+
- state
|
|
849
|
+
type: object
|
|
850
|
+
properties:
|
|
851
|
+
state:
|
|
852
|
+
type: string
|
|
853
|
+
example: SETTLED
|
|
854
|
+
enum:
|
|
855
|
+
- PENDING_SETTLEMENT
|
|
856
|
+
- PS_TRANSFERS_RECORDED
|
|
857
|
+
- PS_TRANSFERS_RESERVED
|
|
858
|
+
- PS_TRANSFERS_COMMITTED
|
|
859
|
+
- SETTLED
|
|
860
|
+
reason:
|
|
861
|
+
type: string
|
|
862
|
+
example: string
|
|
863
|
+
externalReference:
|
|
864
|
+
type: string
|
|
865
|
+
example: external-reference-abc123
|
|
866
|
+
SettlementEventPayload:
|
|
867
|
+
required:
|
|
868
|
+
- reason
|
|
869
|
+
- settlementModel
|
|
870
|
+
- settlementWindows
|
|
871
|
+
type: object
|
|
872
|
+
properties:
|
|
873
|
+
settlementModel:
|
|
874
|
+
type: string
|
|
875
|
+
reason:
|
|
876
|
+
type: string
|
|
877
|
+
settlementWindows:
|
|
878
|
+
minItems: 1
|
|
879
|
+
uniqueItems: true
|
|
880
|
+
type: array
|
|
881
|
+
items:
|
|
882
|
+
$ref: '#/components/schemas/SettlementWindowId'
|
|
883
|
+
SettlementWindowId:
|
|
884
|
+
required:
|
|
885
|
+
- id
|
|
886
|
+
type: object
|
|
887
|
+
properties:
|
|
888
|
+
id:
|
|
889
|
+
type: integer
|
|
890
|
+
SettlementWindow:
|
|
891
|
+
required:
|
|
892
|
+
- createdDate
|
|
893
|
+
- id
|
|
894
|
+
- state
|
|
895
|
+
type: object
|
|
896
|
+
properties:
|
|
897
|
+
id:
|
|
898
|
+
type: integer
|
|
899
|
+
reason:
|
|
900
|
+
type: string
|
|
901
|
+
state:
|
|
902
|
+
type: string
|
|
903
|
+
createdDate:
|
|
904
|
+
type: string
|
|
905
|
+
changedDate:
|
|
906
|
+
type: string
|
|
907
|
+
content:
|
|
908
|
+
type: array
|
|
909
|
+
items:
|
|
910
|
+
$ref: '#/components/schemas/SettlementWindowContent'
|
|
911
|
+
SettlementWindowContent:
|
|
912
|
+
required:
|
|
913
|
+
- createdDate
|
|
914
|
+
- currencyId
|
|
915
|
+
- id
|
|
916
|
+
- ledgerAccountType
|
|
917
|
+
- state
|
|
918
|
+
type: object
|
|
919
|
+
properties:
|
|
920
|
+
id:
|
|
921
|
+
type: integer
|
|
922
|
+
state:
|
|
923
|
+
type: string
|
|
924
|
+
ledgerAccountType:
|
|
925
|
+
type: string
|
|
926
|
+
currencyId:
|
|
927
|
+
type: string
|
|
928
|
+
createdDate:
|
|
929
|
+
type: string
|
|
930
|
+
changedDate:
|
|
931
|
+
type: string
|
|
932
|
+
settlementId:
|
|
933
|
+
type: integer
|
|
934
|
+
SettlementWindows:
|
|
935
|
+
type: array
|
|
936
|
+
items:
|
|
937
|
+
$ref: '#/components/schemas/SettlementWindow'
|
|
938
|
+
netSettlementAmount:
|
|
939
|
+
type: object
|
|
940
|
+
properties:
|
|
941
|
+
amount:
|
|
942
|
+
type: number
|
|
943
|
+
currency:
|
|
944
|
+
type: string
|
|
945
|
+
Participant:
|
|
946
|
+
type: object
|
|
947
|
+
properties:
|
|
948
|
+
id:
|
|
949
|
+
type: integer
|
|
950
|
+
accounts:
|
|
951
|
+
type: array
|
|
952
|
+
items:
|
|
953
|
+
$ref: '#/components/schemas/Accounts'
|
|
954
|
+
Settlements:
|
|
955
|
+
type: array
|
|
956
|
+
items:
|
|
957
|
+
$ref: '#/components/schemas/Settlement'
|
|
958
|
+
Settlement:
|
|
959
|
+
type: object
|
|
960
|
+
properties:
|
|
961
|
+
id:
|
|
962
|
+
type: integer
|
|
963
|
+
state:
|
|
964
|
+
type: string
|
|
965
|
+
settlementWindows:
|
|
966
|
+
type: array
|
|
967
|
+
items:
|
|
968
|
+
$ref: '#/components/schemas/SettlementWindows'
|
|
969
|
+
participants:
|
|
970
|
+
type: array
|
|
971
|
+
items:
|
|
972
|
+
$ref: '#/components/schemas/Participant'
|
|
973
|
+
Error:
|
|
974
|
+
required:
|
|
975
|
+
- errorInformation
|
|
976
|
+
type: object
|
|
977
|
+
properties:
|
|
978
|
+
errorInformation:
|
|
979
|
+
type: object
|
|
980
|
+
properties:
|
|
981
|
+
errorCode:
|
|
982
|
+
type: integer
|
|
983
|
+
errorDescription:
|
|
984
|
+
type: string
|
|
985
|
+
extensionList:
|
|
986
|
+
type: object
|
|
987
|
+
properties:
|
|
988
|
+
extension:
|
|
989
|
+
type: array
|
|
990
|
+
items:
|
|
991
|
+
$ref: '#/components/schemas/Extension'
|
|
992
|
+
Extension:
|
|
993
|
+
required:
|
|
994
|
+
- key
|
|
995
|
+
- value
|
|
996
|
+
type: object
|
|
997
|
+
properties:
|
|
998
|
+
key:
|
|
999
|
+
type: string
|
|
1000
|
+
value:
|
|
1001
|
+
type: string
|