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.
Files changed (319) hide show
  1. package/.dockerignore +10 -0
  2. package/.grype.yaml +16 -0
  3. package/.ncurc.yaml +9 -0
  4. package/.nvmrc +1 -0
  5. package/.versionrc.js +16 -0
  6. package/CHANGELOG.md +504 -0
  7. package/CODEOWNERS +30 -0
  8. package/Dockerfile +42 -0
  9. package/Dockerfile-newman +13 -0
  10. package/LICENSE.md +9 -0
  11. package/README.md +119 -0
  12. package/assets/diagrams/architectural/architectural-diagram.svg +3 -0
  13. package/assets/diagrams/flow/flow-diagram.svg +3 -0
  14. package/assets/images/Sample-Response-Failure.png +0 -0
  15. package/assets/images/Screenshot 2020-04-16 at 22.58.04.png +0 -0
  16. package/assets/images/TLS-Enabled-on-Environment.png +0 -0
  17. package/assets/images/adapter-mutual-tls-enabled.png +0 -0
  18. package/assets/images/add-additional-input-values.png +0 -0
  19. package/assets/images/add-condition-button.png +0 -0
  20. package/assets/images/add-new-assertion.png +0 -0
  21. package/assets/images/add-new-input-value.png +0 -0
  22. package/assets/images/add-new-input-variable.png +0 -0
  23. package/assets/images/additional-transfers.png +0 -0
  24. package/assets/images/api-provisioning-add-new-api-confirmation.png +0 -0
  25. package/assets/images/api-provisioning-file-input-window.png +0 -0
  26. package/assets/images/api-provisioning-list-apis-view.png +0 -0
  27. package/assets/images/api-provisioning-menu-item.png +0 -0
  28. package/assets/images/apply_and_restart.jpg +0 -0
  29. package/assets/images/assess-request-or-response.png +0 -0
  30. package/assets/images/assess-response-equation-save.png +0 -0
  31. package/assets/images/assess-response-equation.png +0 -0
  32. package/assets/images/assess-response-status.png +0 -0
  33. package/assets/images/building-new-rules-file.png +0 -0
  34. package/assets/images/callback-rules-screen.png +0 -0
  35. package/assets/images/configurable-parameter-assertion.png +0 -0
  36. package/assets/images/configurable-parameter-currency.png +0 -0
  37. package/assets/images/configurable-parameter.png +0 -0
  38. package/assets/images/connection-manager-ui-opening.png +0 -0
  39. package/assets/images/create-inbound-user-simulator.png +0 -0
  40. package/assets/images/creating-new-rule-file.png +0 -0
  41. package/assets/images/dfsp-client-cacert.png +0 -0
  42. package/assets/images/dfsp-client-submit.png +0 -0
  43. package/assets/images/dfsp-client.png +0 -0
  44. package/assets/images/dfsp-p2p-happy-path.png +0 -0
  45. package/assets/images/dfsp-server-cacert.png +0 -0
  46. package/assets/images/dfsp-server-cert.png +0 -0
  47. package/assets/images/download-report.png +0 -0
  48. package/assets/images/drive_have_not_been_shared.jpg +0 -0
  49. package/assets/images/event-response-options.png +0 -0
  50. package/assets/images/expand-monitoring-messages.png +0 -0
  51. package/assets/images/fixed-response-sample.png +0 -0
  52. package/assets/images/header-selection.png +0 -0
  53. package/assets/images/heap_error_windows.jpg +0 -0
  54. package/assets/images/hosted-mode-docker-compose-intro.png +0 -0
  55. package/assets/images/hub-client-cert.png +0 -0
  56. package/assets/images/import-template.png +0 -0
  57. package/assets/images/inbound-requests-environment.png +0 -0
  58. package/assets/images/inbound-requests-scripts.png +0 -0
  59. package/assets/images/jws-certificate-submit.png +0 -0
  60. package/assets/images/jws-certificate.png +0 -0
  61. package/assets/images/jws-certs-keys.png +0 -0
  62. package/assets/images/jws-hub-certs-keys.png +0 -0
  63. package/assets/images/local-enable-jws-publickey.png +0 -0
  64. package/assets/images/local-mutual-tls-enabled.png +0 -0
  65. package/assets/images/local_drives_to_be_available.jpg +0 -0
  66. package/assets/images/mcm-environment-opening.png +0 -0
  67. package/assets/images/menu-items.png +0 -0
  68. package/assets/images/mock-response-sample.png +0 -0
  69. package/assets/images/monitoring-initial-state.png +0 -0
  70. package/assets/images/monitoring-messages.png +0 -0
  71. package/assets/images/new-empty-assertion.png +0 -0
  72. package/assets/images/opened-imported-template.png +0 -0
  73. package/assets/images/opening-default-settings.png +0 -0
  74. package/assets/images/opening-sync-response-rules.png +0 -0
  75. package/assets/images/opening-view.png +0 -0
  76. package/assets/images/outbound-display-opening-hub.png +0 -0
  77. package/assets/images/outbound-display-opening.png +0 -0
  78. package/assets/images/override-with-environment-variable.png +0 -0
  79. package/assets/images/populate-with-sample-body.png +0 -0
  80. package/assets/images/resource-selection.png +0 -0
  81. package/assets/images/rule-builder-select-api.png +0 -0
  82. package/assets/images/sample-condition-add-configurable-params.png +0 -0
  83. package/assets/images/sample-condition.png +0 -0
  84. package/assets/images/sample-editor.png +0 -0
  85. package/assets/images/sample-request.png +0 -0
  86. package/assets/images/sample-test-assertion.png +0 -0
  87. package/assets/images/send-transfer.png +0 -0
  88. package/assets/images/sending-single-test-case-1.png +0 -0
  89. package/assets/images/sending-single-test-case-2.png +0 -0
  90. package/assets/images/sending-test-cases.png +0 -0
  91. package/assets/images/server-certificates-submitted.png +0 -0
  92. package/assets/images/simulator-response.png +0 -0
  93. package/assets/images/simulator-scheme-adapter-endpoint.png +0 -0
  94. package/assets/images/summarized-view-of-rule.png +0 -0
  95. package/assets/images/template-window.png +0 -0
  96. package/assets/images/test-case-editor-console-log.png +0 -0
  97. package/assets/images/test-case-editor-environment-state.png +0 -0
  98. package/assets/images/test-case-editor-scripts.png +0 -0
  99. package/assets/images/test-case-editor.png +0 -0
  100. package/assets/images/testcase-definition-download.png +0 -0
  101. package/assets/images/testcase-definition-edit-meta-info.png +0 -0
  102. package/assets/images/testing-toolkit-mojaloop-testing-toolkit-endpoint.png +0 -0
  103. package/assets/images/tls-hub-certs-keys.png +0 -0
  104. package/assets/images/tls-jws-enabled-on-environment.png +0 -0
  105. package/assets/images/updated-sample-body-data.png +0 -0
  106. package/assets/images/using-configurable-parameter.png +0 -0
  107. package/assets/images/validation-rules-screen.png +0 -0
  108. package/assets/images/view-response.png +0 -0
  109. package/audit-ci.jsonc +7 -0
  110. package/connection-manager/docker-compose.yml +55 -0
  111. package/database/docker-compose.yml +16 -0
  112. package/docker/hosted-mode/docker-compose.yaml +107 -0
  113. package/docker/hosted-mode/keycloak/keycloak-realm.json +2298 -0
  114. package/docker/hosted-mode/mongo-init.sh +1 -0
  115. package/docker/hosted-mode-tls/docker-compose.yaml +171 -0
  116. package/docker/hosted-mode-tls/keycloak/keycloak-realm.json +2298 -0
  117. package/docker/hosted-mode-tls/mongo-init.sh +1 -0
  118. package/docker-compose.yml +62 -0
  119. package/documents/Mojaloop-Testing-Toolkit.md +296 -0
  120. package/documents/RULES_ENGINE.md +403 -0
  121. package/documents/User-Guide-API-Provisioning.md +121 -0
  122. package/documents/User-Guide-CLI.md +218 -0
  123. package/documents/User-Guide-Connection-Manager.md +282 -0
  124. package/documents/User-Guide-Frequently-Asked-Questions.md +39 -0
  125. package/documents/User-Guide-Hosted-Mode-Docker-Compose.md +110 -0
  126. package/documents/User-Guide-Installation.md +163 -0
  127. package/documents/User-Guide-Mojaloop-Testing-Toolkit.md +642 -0
  128. package/documents/User-Guide-OAuth-Server-Deployment.md +283 -0
  129. package/documents/User-Guide-Onboarding-DFSP.md +197 -0
  130. package/documents/User-Guide-Onboarding-HUB.md +191 -0
  131. package/documents/User-Guide.md +53 -0
  132. package/examples/collections/dfsp/p2p_failed_tests.json +7161 -0
  133. package/examples/collections/dfsp/p2p_fx_happy_path.json +502 -0
  134. package/examples/collections/dfsp/p2p_happy_path.json +350 -0
  135. package/examples/collections/dfsp/p2p_happy_path_extended.json +6106 -0
  136. package/examples/collections/dfsp/p2p_happy_path_jws.json +511 -0
  137. package/examples/collections/dfsp/p2p_payee_assertions_websocket.json +441 -0
  138. package/examples/collections/dfsp/sample.json +5029 -0
  139. package/examples/collections/dfsp/transaction_request_service.json +240 -0
  140. package/examples/collections/fxp/FXP.json +264 -0
  141. package/examples/collections/fxp/SDK_backend.json +98 -0
  142. package/examples/collections/fxp/SDK_outbound.json +163 -0
  143. package/examples/collections/hub/hub_01_p2p_happy_path/hub_p2p_receive_quote.json +400 -0
  144. package/examples/collections/hub/hub_01_p2p_happy_path/hub_p2p_send_quote.json +395 -0
  145. package/examples/collections/hub/hub_02_block_transfer/hub_block_transfer.json +393 -0
  146. package/examples/collections/hub/hub_03_funds_in_out/hub_funds_in.json +224 -0
  147. package/examples/collections/hub/hub_03_funds_in_out/hub_funds_out.json +780 -0
  148. package/examples/collections/hub/hub_04_settlements/hub_settlements.json +3138 -0
  149. package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_payee_abort.json +475 -0
  150. package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_payee_invalid_fulfillment.json +370 -0
  151. package/examples/collections/hub/hub_05_transfer_negative_scenarios/hub_transfer_negative_transfer_timeout.json +262 -0
  152. package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_authorizations.json +117 -0
  153. package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_error_framework.json +591 -0
  154. package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_received_state.json +379 -0
  155. package/examples/collections/hub/hub_06_transaction_requests_service/hub_trs_reject_state.json +361 -0
  156. package/examples/collections/hub/hub_07_quoting_service.json +525 -0
  157. package/examples/collections/hub/hub_08_participant_inactive_stop_transfers.json +706 -0
  158. package/examples/collections/hub/hub_09_duplicate_handling_transfers.json +1377 -0
  159. package/examples/collections/hub/hub_10_on_us_transfers.json +245 -0
  160. package/examples/collections/hub/hub_11_accented_and_spl_chars.json +629 -0
  161. package/examples/collections/hub/hub_12_fspiop_version_1.1.json +646 -0
  162. package/examples/collections/hub/hub_13_bulk_transfers.json +1857 -0
  163. package/examples/collections/iso20022/self_referencing_iso20022.json +926 -0
  164. package/examples/collections/provisioning/testingtoolkitdfsp.json +904 -0
  165. package/examples/environments/dfsp_local_environment.json +46 -0
  166. package/examples/environments/hub_local_environment.json +57 -0
  167. package/jest.config.js +17 -0
  168. package/package.json +199 -0
  169. package/sbom-v18.12.4.csv +1553 -0
  170. package/secrets/keygen.sh +5 -0
  171. package/secrets/privatekey.pem +27 -0
  172. package/secrets/publickey.cer +21 -0
  173. package/secrets/tls/01.pem +132 -0
  174. package/secrets/tls/createSecrets.sh +20 -0
  175. package/secrets/tls/hub_client.csr +32 -0
  176. package/secrets/tls/hub_client_cacert.pem +35 -0
  177. package/secrets/tls/hub_client_cakey.pem +52 -0
  178. package/secrets/tls/hub_client_key.key +52 -0
  179. package/secrets/tls/hub_server.csr +31 -0
  180. package/secrets/tls/hub_server_cacert.pem +35 -0
  181. package/secrets/tls/hub_server_cakey.pem +52 -0
  182. package/secrets/tls/hub_server_cert.pem +132 -0
  183. package/secrets/tls/hub_server_key.key +52 -0
  184. package/secrets/tls/index.txt +1 -0
  185. package/secrets/tls/index.txt.attr +1 -0
  186. package/secrets/tls/openssl-client.cnf +36 -0
  187. package/secrets/tls/openssl-clientca.cnf +71 -0
  188. package/secrets/tls/openssl-server.cnf +39 -0
  189. package/secrets/tls/openssl-serverca.cnf +71 -0
  190. package/secrets/tls/serial.txt +1 -0
  191. package/spec_files/api_definitions/als_admin_1.1/api_spec.yaml +804 -0
  192. package/spec_files/api_definitions/central_admin_1.0/api_spec.yaml +1850 -0
  193. package/spec_files/api_definitions/central_admin_1.0/response_map.json +96 -0
  194. package/spec_files/api_definitions/central_admin_old_9.3/api_spec.yaml +2467 -0
  195. package/spec_files/api_definitions/central_admin_old_9.3/response_map.json +96 -0
  196. package/spec_files/api_definitions/fspiop_1.0/api_spec.yaml +4187 -0
  197. package/spec_files/api_definitions/fspiop_1.0/callback_map.json +568 -0
  198. package/spec_files/api_definitions/fspiop_1.0/mockRef.json +79 -0
  199. package/spec_files/api_definitions/fspiop_1.0/trigger_templates/transaction_request_followup.json +126 -0
  200. package/spec_files/api_definitions/fspiop_1.0/trigger_templates/transaction_request_followup_quotes_only.json +97 -0
  201. package/spec_files/api_definitions/fspiop_1.1/api_spec.yaml +3778 -0
  202. package/spec_files/api_definitions/fspiop_1.1/callback_map.json +568 -0
  203. package/spec_files/api_definitions/fspiop_1.1/mockRef.json +79 -0
  204. package/spec_files/api_definitions/fspiop_1.1/trigger_templates/transaction_request_followup.json +125 -0
  205. package/spec_files/api_definitions/fspiop_2.0/api_spec.yaml +4839 -0
  206. package/spec_files/api_definitions/fspiop_2.0/callback_map.json +716 -0
  207. package/spec_files/api_definitions/fspiop_2.0/mockRef.json +79 -0
  208. package/spec_files/api_definitions/fspiop_2.0/trigger_templates/transaction_request_followup.json +125 -0
  209. package/spec_files/api_definitions/fspiop_2.0_iso20022/api_spec.yaml +8331 -0
  210. package/spec_files/api_definitions/fspiop_2.0_iso20022/callback_map.json +508 -0
  211. package/spec_files/api_definitions/fspiop_2.0_iso20022/mockRef.json +66 -0
  212. package/spec_files/api_definitions/fx-api_2.0/api_spec.yaml +1768 -0
  213. package/spec_files/api_definitions/fx-api_2.0/callback_map.json +188 -0
  214. package/spec_files/api_definitions/fx-api_2.0/mockRef.json +83 -0
  215. package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/api_spec.yaml +2612 -0
  216. package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/mockRef.json +22 -0
  217. package/spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/response_map.json +35 -0
  218. package/spec_files/api_definitions/mojaloop_simulator_0.1/api_spec.yaml +225 -0
  219. package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/api_spec.yaml +1087 -0
  220. package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/mockRef.json +75 -0
  221. package/spec_files/api_definitions/mojaloop_simulator_sim_1.4/response_map.json +55 -0
  222. package/spec_files/api_definitions/payment_manager_1.4/api_spec.yaml +1389 -0
  223. package/spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/api_spec.yaml +2834 -0
  224. package/spec_files/api_definitions/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets_2.1/api_spec.yaml +3449 -0
  225. package/spec_files/api_definitions/settlements_1.0/api_spec.yaml +983 -0
  226. package/spec_files/api_definitions/settlements_1.0/mockRef.json +38 -0
  227. package/spec_files/api_definitions/settlements_1.0/response_map.json +34 -0
  228. package/spec_files/api_definitions/settlements_2.0/api_spec.yaml +1001 -0
  229. package/spec_files/api_definitions/settlements_2.0/mockRef.json +38 -0
  230. package/spec_files/api_definitions/settlements_2.0/response_map.json +34 -0
  231. package/spec_files/api_definitions/thirdparty_sdk_outbound_0.1/api_spec.yaml +2139 -0
  232. package/spec_files/reports/templates/newman/html_template.html +1202 -0
  233. package/spec_files/reports/templates/newman/pdf_template.html +790 -0
  234. package/spec_files/reports/templates/testcase_definition/table_view.html +1602 -0
  235. package/spec_files/rules_callback/config.json +3 -0
  236. package/spec_files/rules_callback/default.json +2698 -0
  237. package/spec_files/rules_callback/p2p-limit.json +129 -0
  238. package/spec_files/rules_forward/config.json +3 -0
  239. package/spec_files/rules_forward/default.json +482 -0
  240. package/spec_files/rules_response/config.json +3 -0
  241. package/spec_files/rules_response/default.json +295 -0
  242. package/spec_files/rules_validation/config.json +3 -0
  243. package/spec_files/rules_validation/default.json +1 -0
  244. package/spec_files/rules_validation/p2p-limit.json +55 -0
  245. package/spec_files/system_config.json +175 -0
  246. package/spec_files/user_config.json +109 -0
  247. package/src/index.js +67 -0
  248. package/src/lib/MyEventEmitter.js +54 -0
  249. package/src/lib/api-management.js +143 -0
  250. package/src/lib/api-routes/config.js +83 -0
  251. package/src/lib/api-routes/history.js +139 -0
  252. package/src/lib/api-routes/keycloak.js +54 -0
  253. package/src/lib/api-routes/longpolling.js +70 -0
  254. package/src/lib/api-routes/oauth2.js +149 -0
  255. package/src/lib/api-routes/objectstore.js +53 -0
  256. package/src/lib/api-routes/openapi.js +224 -0
  257. package/src/lib/api-routes/outbound.js +134 -0
  258. package/src/lib/api-routes/reports.js +72 -0
  259. package/src/lib/api-routes/rules.js +356 -0
  260. package/src/lib/api-routes/samples.js +92 -0
  261. package/src/lib/api-routes/server-logs.js +44 -0
  262. package/src/lib/api-routes/settings.js +71 -0
  263. package/src/lib/api-server.js +135 -0
  264. package/src/lib/arrayStore.js +101 -0
  265. package/src/lib/callbackHandler.js +201 -0
  266. package/src/lib/config.js +177 -0
  267. package/src/lib/configuration-providers/mb-connection-manager.js +625 -0
  268. package/src/lib/db/adapters/dbAdapter.js +184 -0
  269. package/src/lib/db/dfspMockUsers.js +64 -0
  270. package/src/lib/db/models/mongoDBWrapper.js +78 -0
  271. package/src/lib/eventListenerClient/inboundEventListener.js +176 -0
  272. package/src/lib/fileAdapter.js +57 -0
  273. package/src/lib/httpAgentStore.js +135 -0
  274. package/src/lib/importExport.js +186 -0
  275. package/src/lib/jws/JwsSigning.js +141 -0
  276. package/src/lib/loadSamples.js +128 -0
  277. package/src/lib/logger.js +20 -0
  278. package/src/lib/longpollingEmitter.js +56 -0
  279. package/src/lib/metrics.js +51 -0
  280. package/src/lib/mocking/custom-functions/generic.js +57 -0
  281. package/src/lib/mocking/middleware-functions/ilpModel.js +238 -0
  282. package/src/lib/mocking/middleware-functions/quotesAssociation.js +75 -0
  283. package/src/lib/mocking/middleware-functions/transactionRequestsService.js +78 -0
  284. package/src/lib/mocking/openApiDefinitionsModel.js +64 -0
  285. package/src/lib/mocking/openApiMockHandler.js +466 -0
  286. package/src/lib/mocking/openApiRulesEngine.js +492 -0
  287. package/src/lib/mocking/openApiVersionTools.js +136 -0
  288. package/src/lib/mocking/transformers/fspiopToISO20022.js +230 -0
  289. package/src/lib/mocking/transformers/index.js +41 -0
  290. package/src/lib/notificationEmitter.js +64 -0
  291. package/src/lib/oauth/KeycloakHelper.js +220 -0
  292. package/src/lib/oauth/LoginService.js +133 -0
  293. package/src/lib/oauth/OAuthHelper.js +181 -0
  294. package/src/lib/oauth/OAuthValidator.js +118 -0
  295. package/src/lib/oauth/Wso2Client.js +64 -0
  296. package/src/lib/objectStore/inMemoryImpl.js +50 -0
  297. package/src/lib/objectStore/objectStoreInterface.js +51 -0
  298. package/src/lib/objectStore.js +122 -0
  299. package/src/lib/report-generator/generator.js +126 -0
  300. package/src/lib/report-generator/helpers.js +154 -0
  301. package/src/lib/requestLogger.js +190 -0
  302. package/src/lib/resources/wso2carbon-publickey.cert +20 -0
  303. package/src/lib/rulesEngine.js +95 -0
  304. package/src/lib/rulesEngineModel.js +463 -0
  305. package/src/lib/scripting-engines/postman-sandbox.js +142 -0
  306. package/src/lib/scripting-engines/vm-javascript-sandbox.js +294 -0
  307. package/src/lib/server-logs/adapters/elastic-search.js +102 -0
  308. package/src/lib/server-logs/adapters/grafana.js +0 -0
  309. package/src/lib/server-logs/index.js +75 -0
  310. package/src/lib/socket-server.js +55 -0
  311. package/src/lib/storageAdapter.js +109 -0
  312. package/src/lib/test-outbound/TestCaseRunner.js +173 -0
  313. package/src/lib/test-outbound/getTracing.js +19 -0
  314. package/src/lib/test-outbound/outbound-initiator.js +1107 -0
  315. package/src/lib/uniqueIdGenerator.js +35 -0
  316. package/src/lib/utils.js +89 -0
  317. package/src/lib/utilsInternal.js +56 -0
  318. package/src/lib/webSocketClient/WebSocketClientManager.js +197 -0
  319. package/src/server.js +218 -0
@@ -0,0 +1,1850 @@
1
+ openapi: 3.0.1
2
+ info:
3
+ title: Central Ledger API Documentation
4
+ version: "1.0"
5
+ servers:
6
+ - url: http://127.0.0.1:3001/
7
+ tags: []
8
+ paths:
9
+ /enums:
10
+ get:
11
+ tags:
12
+ - enums
13
+ operationId: getEnums
14
+ responses:
15
+ default:
16
+ description: Successful
17
+ content:
18
+ '*/*':
19
+ schema:
20
+ type: string
21
+ /health:
22
+ get:
23
+ tags:
24
+ - health
25
+ operationId: getHealth
26
+ responses:
27
+ default:
28
+ description: Successful
29
+ content:
30
+ '*/*':
31
+ schema:
32
+ type: string
33
+ /metrics:
34
+ get:
35
+ tags:
36
+ - metrics
37
+ summary: Prometheus metrics endpoint
38
+ operationId: getMetrics
39
+ responses:
40
+ default:
41
+ description: Successful
42
+ content:
43
+ '*/*':
44
+ schema:
45
+ type: string
46
+ /participants:
47
+ get:
48
+ tags:
49
+ - participants
50
+ operationId: getParticipants
51
+ responses:
52
+ default:
53
+ description: Successful
54
+ content:
55
+ '*/*':
56
+ schema:
57
+ type: string
58
+ post:
59
+ tags:
60
+ - participants
61
+ operationId: postParticipants
62
+ requestBody:
63
+ content:
64
+ '*/*':
65
+ schema:
66
+ $ref: '#/components/schemas/PostParticipantsRequest'
67
+ required: false
68
+ responses:
69
+ default:
70
+ description: Successful
71
+ content:
72
+ '*/*':
73
+ schema:
74
+ type: string
75
+ x-codegen-request-body-name: body
76
+ /participants/limits:
77
+ get:
78
+ tags:
79
+ - participants
80
+ summary: View limits for all participants
81
+ operationId: getParticipantsLimits
82
+ parameters:
83
+ - name: currency
84
+ in: query
85
+ description: Currency code
86
+ schema:
87
+ type: string
88
+ enum:
89
+ - AED
90
+ - AFA
91
+ - AFN
92
+ - ALL
93
+ - AMD
94
+ - ANG
95
+ - AOA
96
+ - AOR
97
+ - ARS
98
+ - AUD
99
+ - AWG
100
+ - AZN
101
+ - BAM
102
+ - BBD
103
+ - BDT
104
+ - BGN
105
+ - BHD
106
+ - BIF
107
+ - BMD
108
+ - BND
109
+ - BOB
110
+ - BRL
111
+ - BSD
112
+ - BTN
113
+ - BWP
114
+ - BYN
115
+ - BZD
116
+ - CAD
117
+ - CDF
118
+ - CHF
119
+ - CLP
120
+ - CNY
121
+ - COP
122
+ - CRC
123
+ - CUC
124
+ - CUP
125
+ - CVE
126
+ - CZK
127
+ - DJF
128
+ - DKK
129
+ - DOP
130
+ - DZD
131
+ - EEK
132
+ - EGP
133
+ - ERN
134
+ - ETB
135
+ - EUR
136
+ - FJD
137
+ - FKP
138
+ - GBP
139
+ - GEL
140
+ - GGP
141
+ - GHS
142
+ - GIP
143
+ - GMD
144
+ - GNF
145
+ - GTQ
146
+ - GYD
147
+ - HKD
148
+ - HNL
149
+ - HRK
150
+ - HTG
151
+ - HUF
152
+ - IDR
153
+ - ILS
154
+ - IMP
155
+ - INR
156
+ - IQD
157
+ - IRR
158
+ - ISK
159
+ - JEP
160
+ - JMD
161
+ - JOD
162
+ - JPY
163
+ - KES
164
+ - KGS
165
+ - KHR
166
+ - KMF
167
+ - KPW
168
+ - KRW
169
+ - KWD
170
+ - KYD
171
+ - KZT
172
+ - LAK
173
+ - LBP
174
+ - LKR
175
+ - LRD
176
+ - LSL
177
+ - LTL
178
+ - LVL
179
+ - LYD
180
+ - MAD
181
+ - MDL
182
+ - MGA
183
+ - MKD
184
+ - MMK
185
+ - MNT
186
+ - MOP
187
+ - MRO
188
+ - MUR
189
+ - MVR
190
+ - MWK
191
+ - MXN
192
+ - MYR
193
+ - MZN
194
+ - NAD
195
+ - NGN
196
+ - NIO
197
+ - NOK
198
+ - NPR
199
+ - NZD
200
+ - OMR
201
+ - PAB
202
+ - PEN
203
+ - PGK
204
+ - PHP
205
+ - PKR
206
+ - PLN
207
+ - PYG
208
+ - QAR
209
+ - RON
210
+ - RSD
211
+ - RUB
212
+ - RWF
213
+ - SAR
214
+ - SBD
215
+ - SCR
216
+ - SDG
217
+ - SEK
218
+ - SGD
219
+ - SHP
220
+ - SLL
221
+ - SOS
222
+ - SPL
223
+ - SRD
224
+ - STD
225
+ - SVC
226
+ - SYP
227
+ - SZL
228
+ - THB
229
+ - TJS
230
+ - TMT
231
+ - TND
232
+ - TOP
233
+ - TRY
234
+ - TTD
235
+ - TVD
236
+ - TWD
237
+ - TZS
238
+ - UAH
239
+ - UGX
240
+ - USD
241
+ - UYU
242
+ - UZS
243
+ - VEF
244
+ - VND
245
+ - VUV
246
+ - WST
247
+ - XAF
248
+ - XAG
249
+ - XAU
250
+ - XCD
251
+ - XDR
252
+ - XFO
253
+ - XFU
254
+ - XOF
255
+ - XPD
256
+ - XPF
257
+ - XPT
258
+ - XTS
259
+ - XXX
260
+ - YER
261
+ - ZAR
262
+ - ZMK
263
+ - ZMW
264
+ - ZWD
265
+ - ZWL
266
+ - ZWN
267
+ - ZWR
268
+ - name: type
269
+ in: query
270
+ description: Limit Type
271
+ schema:
272
+ type: string
273
+ responses:
274
+ default:
275
+ description: Successful
276
+ content:
277
+ '*/*':
278
+ schema:
279
+ type: string
280
+ /participants/{name}:
281
+ get:
282
+ tags:
283
+ - participants
284
+ operationId: getParticipantsName
285
+ parameters:
286
+ - name: name
287
+ in: path
288
+ description: Participant name
289
+ required: true
290
+ schema:
291
+ type: string
292
+ responses:
293
+ default:
294
+ description: Successful
295
+ content:
296
+ '*/*':
297
+ schema:
298
+ type: string
299
+ put:
300
+ tags:
301
+ - participants
302
+ operationId: putParticipantsName
303
+ parameters:
304
+ - name: name
305
+ in: path
306
+ description: Participant name
307
+ required: true
308
+ schema:
309
+ type: string
310
+ requestBody:
311
+ content:
312
+ '*/*':
313
+ schema:
314
+ $ref: '#/components/schemas/ParticipantIsActive'
315
+ required: false
316
+ responses:
317
+ default:
318
+ description: Successful
319
+ content:
320
+ '*/*':
321
+ schema:
322
+ type: string
323
+ x-codegen-request-body-name: body
324
+ /participants/{name}/endpoints:
325
+ get:
326
+ tags:
327
+ - participants
328
+ summary: View participant endpoints
329
+ operationId: getParticipantsNameEndpoints
330
+ parameters:
331
+ - name: name
332
+ in: path
333
+ description: Name of the participant
334
+ required: true
335
+ schema:
336
+ maxLength: 30
337
+ minLength: 2
338
+ type: string
339
+ x-format:
340
+ alphanum: true
341
+ x-format:
342
+ alphanum: true
343
+ responses:
344
+ default:
345
+ description: Successful
346
+ content:
347
+ '*/*':
348
+ schema:
349
+ type: string
350
+ post:
351
+ tags:
352
+ - participants
353
+ summary: Add/Update participant endpoints
354
+ operationId: postParticipantsNameEndpoints
355
+ parameters:
356
+ - name: name
357
+ in: path
358
+ description: Name of the participant
359
+ required: true
360
+ schema:
361
+ maxLength: 30
362
+ minLength: 2
363
+ type: string
364
+ x-format:
365
+ alphanum: true
366
+ x-format:
367
+ alphanum: true
368
+ requestBody:
369
+ content:
370
+ '*/*':
371
+ schema:
372
+ $ref: '#/components/schemas/PostParticipantsNameEndpointsRequest'
373
+ required: false
374
+ responses:
375
+ default:
376
+ description: Successful
377
+ content:
378
+ '*/*':
379
+ schema:
380
+ type: string
381
+ x-codegen-request-body-name: body
382
+ /participants/{name}/limits:
383
+ get:
384
+ tags:
385
+ - participants
386
+ summary: View participant limits
387
+ operationId: getParticipantsNameLimits
388
+ parameters:
389
+ - name: name
390
+ in: path
391
+ description: Name of the participant
392
+ required: true
393
+ schema:
394
+ maxLength: 30
395
+ minLength: 2
396
+ type: string
397
+ x-format:
398
+ alphanum: true
399
+ x-format:
400
+ alphanum: true
401
+ - name: currency
402
+ in: query
403
+ description: Currency code
404
+ schema:
405
+ type: string
406
+ enum:
407
+ - AED
408
+ - AFA
409
+ - AFN
410
+ - ALL
411
+ - AMD
412
+ - ANG
413
+ - AOA
414
+ - AOR
415
+ - ARS
416
+ - AUD
417
+ - AWG
418
+ - AZN
419
+ - BAM
420
+ - BBD
421
+ - BDT
422
+ - BGN
423
+ - BHD
424
+ - BIF
425
+ - BMD
426
+ - BND
427
+ - BOB
428
+ - BRL
429
+ - BSD
430
+ - BTN
431
+ - BWP
432
+ - BYN
433
+ - BZD
434
+ - CAD
435
+ - CDF
436
+ - CHF
437
+ - CLP
438
+ - CNY
439
+ - COP
440
+ - CRC
441
+ - CUC
442
+ - CUP
443
+ - CVE
444
+ - CZK
445
+ - DJF
446
+ - DKK
447
+ - DOP
448
+ - DZD
449
+ - EEK
450
+ - EGP
451
+ - ERN
452
+ - ETB
453
+ - EUR
454
+ - FJD
455
+ - FKP
456
+ - GBP
457
+ - GEL
458
+ - GGP
459
+ - GHS
460
+ - GIP
461
+ - GMD
462
+ - GNF
463
+ - GTQ
464
+ - GYD
465
+ - HKD
466
+ - HNL
467
+ - HRK
468
+ - HTG
469
+ - HUF
470
+ - IDR
471
+ - ILS
472
+ - IMP
473
+ - INR
474
+ - IQD
475
+ - IRR
476
+ - ISK
477
+ - JEP
478
+ - JMD
479
+ - JOD
480
+ - JPY
481
+ - KES
482
+ - KGS
483
+ - KHR
484
+ - KMF
485
+ - KPW
486
+ - KRW
487
+ - KWD
488
+ - KYD
489
+ - KZT
490
+ - LAK
491
+ - LBP
492
+ - LKR
493
+ - LRD
494
+ - LSL
495
+ - LTL
496
+ - LVL
497
+ - LYD
498
+ - MAD
499
+ - MDL
500
+ - MGA
501
+ - MKD
502
+ - MMK
503
+ - MNT
504
+ - MOP
505
+ - MRO
506
+ - MUR
507
+ - MVR
508
+ - MWK
509
+ - MXN
510
+ - MYR
511
+ - MZN
512
+ - NAD
513
+ - NGN
514
+ - NIO
515
+ - NOK
516
+ - NPR
517
+ - NZD
518
+ - OMR
519
+ - PAB
520
+ - PEN
521
+ - PGK
522
+ - PHP
523
+ - PKR
524
+ - PLN
525
+ - PYG
526
+ - QAR
527
+ - RON
528
+ - RSD
529
+ - RUB
530
+ - RWF
531
+ - SAR
532
+ - SBD
533
+ - SCR
534
+ - SDG
535
+ - SEK
536
+ - SGD
537
+ - SHP
538
+ - SLL
539
+ - SOS
540
+ - SPL
541
+ - SRD
542
+ - STD
543
+ - SVC
544
+ - SYP
545
+ - SZL
546
+ - THB
547
+ - TJS
548
+ - TMT
549
+ - TND
550
+ - TOP
551
+ - TRY
552
+ - TTD
553
+ - TVD
554
+ - TWD
555
+ - TZS
556
+ - UAH
557
+ - UGX
558
+ - USD
559
+ - UYU
560
+ - UZS
561
+ - VEF
562
+ - VND
563
+ - VUV
564
+ - WST
565
+ - XAF
566
+ - XAG
567
+ - XAU
568
+ - XCD
569
+ - XDR
570
+ - XFO
571
+ - XFU
572
+ - XOF
573
+ - XPD
574
+ - XPF
575
+ - XPT
576
+ - XTS
577
+ - XXX
578
+ - YER
579
+ - ZAR
580
+ - ZMK
581
+ - ZMW
582
+ - ZWD
583
+ - ZWL
584
+ - ZWN
585
+ - ZWR
586
+ - name: type
587
+ in: query
588
+ description: Limit Type
589
+ schema:
590
+ type: string
591
+ responses:
592
+ default:
593
+ description: Successful
594
+ content:
595
+ '*/*':
596
+ schema:
597
+ type: string
598
+ put:
599
+ tags:
600
+ - participants
601
+ summary: Adjust participant limits
602
+ operationId: putParticipantsNameLimits
603
+ parameters:
604
+ - name: name
605
+ in: path
606
+ description: Name of the participant
607
+ required: true
608
+ schema:
609
+ maxLength: 30
610
+ minLength: 2
611
+ type: string
612
+ x-format:
613
+ alphanum: true
614
+ x-format:
615
+ alphanum: true
616
+ requestBody:
617
+ content:
618
+ '*/*':
619
+ schema:
620
+ $ref: '#/components/schemas/PutParticipantsNameLimitsRequest'
621
+ required: false
622
+ responses:
623
+ default:
624
+ description: Successful
625
+ content:
626
+ '*/*':
627
+ schema:
628
+ type: string
629
+ x-codegen-request-body-name: body
630
+ /participants/{name}/positions:
631
+ get:
632
+ tags:
633
+ - participants
634
+ summary: View participant positions
635
+ operationId: getParticipantsNamePositions
636
+ parameters:
637
+ - name: name
638
+ in: path
639
+ description: Name of the participant
640
+ required: true
641
+ schema:
642
+ maxLength: 30
643
+ minLength: 2
644
+ type: string
645
+ x-format:
646
+ alphanum: true
647
+ x-format:
648
+ alphanum: true
649
+ - name: currency
650
+ in: query
651
+ description: Currency code
652
+ schema:
653
+ type: string
654
+ enum:
655
+ - AED
656
+ - AFA
657
+ - AFN
658
+ - ALL
659
+ - AMD
660
+ - ANG
661
+ - AOA
662
+ - AOR
663
+ - ARS
664
+ - AUD
665
+ - AWG
666
+ - AZN
667
+ - BAM
668
+ - BBD
669
+ - BDT
670
+ - BGN
671
+ - BHD
672
+ - BIF
673
+ - BMD
674
+ - BND
675
+ - BOB
676
+ - BRL
677
+ - BSD
678
+ - BTN
679
+ - BWP
680
+ - BYN
681
+ - BZD
682
+ - CAD
683
+ - CDF
684
+ - CHF
685
+ - CLP
686
+ - CNY
687
+ - COP
688
+ - CRC
689
+ - CUC
690
+ - CUP
691
+ - CVE
692
+ - CZK
693
+ - DJF
694
+ - DKK
695
+ - DOP
696
+ - DZD
697
+ - EEK
698
+ - EGP
699
+ - ERN
700
+ - ETB
701
+ - EUR
702
+ - FJD
703
+ - FKP
704
+ - GBP
705
+ - GEL
706
+ - GGP
707
+ - GHS
708
+ - GIP
709
+ - GMD
710
+ - GNF
711
+ - GTQ
712
+ - GYD
713
+ - HKD
714
+ - HNL
715
+ - HRK
716
+ - HTG
717
+ - HUF
718
+ - IDR
719
+ - ILS
720
+ - IMP
721
+ - INR
722
+ - IQD
723
+ - IRR
724
+ - ISK
725
+ - JEP
726
+ - JMD
727
+ - JOD
728
+ - JPY
729
+ - KES
730
+ - KGS
731
+ - KHR
732
+ - KMF
733
+ - KPW
734
+ - KRW
735
+ - KWD
736
+ - KYD
737
+ - KZT
738
+ - LAK
739
+ - LBP
740
+ - LKR
741
+ - LRD
742
+ - LSL
743
+ - LTL
744
+ - LVL
745
+ - LYD
746
+ - MAD
747
+ - MDL
748
+ - MGA
749
+ - MKD
750
+ - MMK
751
+ - MNT
752
+ - MOP
753
+ - MRO
754
+ - MUR
755
+ - MVR
756
+ - MWK
757
+ - MXN
758
+ - MYR
759
+ - MZN
760
+ - NAD
761
+ - NGN
762
+ - NIO
763
+ - NOK
764
+ - NPR
765
+ - NZD
766
+ - OMR
767
+ - PAB
768
+ - PEN
769
+ - PGK
770
+ - PHP
771
+ - PKR
772
+ - PLN
773
+ - PYG
774
+ - QAR
775
+ - RON
776
+ - RSD
777
+ - RUB
778
+ - RWF
779
+ - SAR
780
+ - SBD
781
+ - SCR
782
+ - SDG
783
+ - SEK
784
+ - SGD
785
+ - SHP
786
+ - SLL
787
+ - SOS
788
+ - SPL
789
+ - SRD
790
+ - STD
791
+ - SVC
792
+ - SYP
793
+ - SZL
794
+ - THB
795
+ - TJS
796
+ - TMT
797
+ - TND
798
+ - TOP
799
+ - TRY
800
+ - TTD
801
+ - TVD
802
+ - TWD
803
+ - TZS
804
+ - UAH
805
+ - UGX
806
+ - USD
807
+ - UYU
808
+ - UZS
809
+ - VEF
810
+ - VND
811
+ - VUV
812
+ - WST
813
+ - XAF
814
+ - XAG
815
+ - XAU
816
+ - XCD
817
+ - XDR
818
+ - XFO
819
+ - XFU
820
+ - XOF
821
+ - XPD
822
+ - XPF
823
+ - XPT
824
+ - XTS
825
+ - XXX
826
+ - YER
827
+ - ZAR
828
+ - ZMK
829
+ - ZMW
830
+ - ZWD
831
+ - ZWL
832
+ - ZWN
833
+ - ZWR
834
+ responses:
835
+ default:
836
+ description: Successful
837
+ content:
838
+ '*/*':
839
+ schema:
840
+ type: string
841
+ /participants/{name}/accounts:
842
+ get:
843
+ tags:
844
+ - participants
845
+ summary: View participant accounts and balances
846
+ operationId: getParticipantsNameAccounts
847
+ parameters:
848
+ - name: name
849
+ in: path
850
+ description: Name of the participant
851
+ required: true
852
+ schema:
853
+ maxLength: 30
854
+ minLength: 2
855
+ type: string
856
+ x-format:
857
+ alphanum: true
858
+ x-format:
859
+ alphanum: true
860
+ responses:
861
+ default:
862
+ description: Successful
863
+ content:
864
+ '*/*':
865
+ schema:
866
+ type: string
867
+ post:
868
+ tags:
869
+ - participants
870
+ summary: Create hub accounts
871
+ operationId: postParticipantsNameAccounts
872
+ parameters:
873
+ - name: name
874
+ in: path
875
+ description: Participant name
876
+ required: true
877
+ schema:
878
+ type: string
879
+ requestBody:
880
+ content:
881
+ '*/*':
882
+ schema:
883
+ $ref: '#/components/schemas/PostParticipantsNameAccountsRequest'
884
+ required: false
885
+ responses:
886
+ default:
887
+ description: Successful
888
+ content:
889
+ '*/*':
890
+ schema:
891
+ type: string
892
+ x-codegen-request-body-name: body
893
+ /participants/{name}/initialPositionAndLimits:
894
+ post:
895
+ tags:
896
+ - participants
897
+ summary: Add initial participant limits and position
898
+ operationId: postParticipantsNameInitialpositionandlimits
899
+ parameters:
900
+ - name: name
901
+ in: path
902
+ description: Name of the participant
903
+ required: true
904
+ schema:
905
+ maxLength: 30
906
+ minLength: 2
907
+ type: string
908
+ x-format:
909
+ alphanum: true
910
+ x-format:
911
+ alphanum: true
912
+ requestBody:
913
+ content:
914
+ '*/*':
915
+ schema:
916
+ $ref: '#/components/schemas/PostInitialPositionAndLimitsRequest'
917
+ required: false
918
+ responses:
919
+ default:
920
+ description: Successful
921
+ content:
922
+ '*/*':
923
+ schema:
924
+ type: string
925
+ x-codegen-request-body-name: body
926
+ /participants/{name}/accounts/{id}:
927
+ put:
928
+ tags:
929
+ - participants
930
+ summary: Update participant accounts
931
+ operationId: putParticipantsNameAccountsId
932
+ parameters:
933
+ - name: name
934
+ in: path
935
+ description: Name of the participant
936
+ required: true
937
+ schema:
938
+ maxLength: 30
939
+ minLength: 2
940
+ type: string
941
+ x-format:
942
+ alphanum: true
943
+ x-format:
944
+ alphanum: true
945
+ - name: id
946
+ in: path
947
+ required: true
948
+ schema:
949
+ type: integer
950
+ x-constraint:
951
+ positive: true
952
+ x-constraint:
953
+ positive: true
954
+ requestBody:
955
+ content:
956
+ '*/*':
957
+ schema:
958
+ $ref: '#/components/schemas/CurrencyIsActive'
959
+ required: false
960
+ responses:
961
+ default:
962
+ description: Successful
963
+ content:
964
+ '*/*':
965
+ schema:
966
+ type: string
967
+ x-codegen-request-body-name: body
968
+ post:
969
+ tags:
970
+ - participants
971
+ summary: Record Funds In or Out of participant account
972
+ operationId: postParticipantsNameAccountsId
973
+ parameters:
974
+ - name: name
975
+ in: path
976
+ description: Name of the participant
977
+ required: true
978
+ schema:
979
+ maxLength: 30
980
+ minLength: 2
981
+ type: string
982
+ x-format:
983
+ alphanum: true
984
+ x-format:
985
+ alphanum: true
986
+ - name: id
987
+ in: path
988
+ required: true
989
+ schema:
990
+ type: integer
991
+ x-constraint:
992
+ positive: true
993
+ x-constraint:
994
+ positive: true
995
+ requestBody:
996
+ content:
997
+ '*/*':
998
+ schema:
999
+ $ref: '#/components/schemas/Participants'
1000
+ required: false
1001
+ responses:
1002
+ default:
1003
+ description: Successful
1004
+ content:
1005
+ '*/*':
1006
+ schema:
1007
+ type: string
1008
+ x-codegen-request-body-name: body
1009
+ /participants/{name}/accounts/{id}/transfers/{transferId}:
1010
+ put:
1011
+ tags:
1012
+ - participants
1013
+ summary: Record Funds In or Out of participant account
1014
+ operationId: putParticipantsNameAccountsIdTransfersTransferid
1015
+ parameters:
1016
+ - name: name
1017
+ in: path
1018
+ description: Name of the participant
1019
+ required: true
1020
+ schema:
1021
+ maxLength: 30
1022
+ minLength: 2
1023
+ type: string
1024
+ x-format:
1025
+ alphanum: true
1026
+ x-format:
1027
+ alphanum: true
1028
+ - name: id
1029
+ in: path
1030
+ required: true
1031
+ schema:
1032
+ type: integer
1033
+ x-constraint:
1034
+ positive: true
1035
+ x-constraint:
1036
+ positive: true
1037
+ - name: transferId
1038
+ in: path
1039
+ required: true
1040
+ schema:
1041
+ type: string
1042
+ x-format:
1043
+ guid: true
1044
+ x-format:
1045
+ guid: true
1046
+ requestBody:
1047
+ content:
1048
+ '*/*':
1049
+ schema:
1050
+ $ref: '#/components/schemas/RecordFundsOut'
1051
+ required: false
1052
+ responses:
1053
+ default:
1054
+ description: Successful
1055
+ content:
1056
+ '*/*':
1057
+ schema:
1058
+ type: string
1059
+ x-codegen-request-body-name: body
1060
+ /ledgerAccountTypes:
1061
+ get:
1062
+ tags:
1063
+ - ledgerAccountTypes
1064
+ summary: View all ledger account types
1065
+ operationId: getLedgerAccountTypes
1066
+ responses:
1067
+ default:
1068
+ description: Successful
1069
+ content:
1070
+ '*/*':
1071
+ schema:
1072
+ type: array
1073
+ items:
1074
+ $ref: '#/components/schemas/LedgerAccountType'
1075
+ post:
1076
+ tags:
1077
+ - ledgerAccountType
1078
+ summary: Create a ledgerAccount type
1079
+ operationId: postLedgerAccountType
1080
+ requestBody:
1081
+ content:
1082
+ '*/*':
1083
+ schema:
1084
+ $ref: '#/components/schemas/LedgerAccountType'
1085
+ required: true
1086
+ responses:
1087
+ default:
1088
+ description: Successful
1089
+ content:
1090
+ '*/*':
1091
+ schema:
1092
+ type: string
1093
+ x-codegen-request-body-name: body
1094
+ /settlementModels:
1095
+ get:
1096
+ tags:
1097
+ - settlementModels
1098
+ summary: View all settlement models
1099
+ operationId: getSettlementmodels
1100
+ responses:
1101
+ default:
1102
+ description: Successful
1103
+ content:
1104
+ '*/*':
1105
+ schema:
1106
+ type: string
1107
+ post:
1108
+ tags:
1109
+ - settlementModels
1110
+ summary: Create a settlement model. This will create any associated ledgerAccountTypes
1111
+ for every participant that matches the settlementModel's currency
1112
+ operationId: postSettlementmodels
1113
+ requestBody:
1114
+ content:
1115
+ '*/*':
1116
+ schema:
1117
+ $ref: '#/components/schemas/SettlementModel'
1118
+ required: false
1119
+ responses:
1120
+ default:
1121
+ description: Successful
1122
+ content:
1123
+ '*/*':
1124
+ schema:
1125
+ type: string
1126
+ x-codegen-request-body-name: body
1127
+ /settlementModels/{name}:
1128
+ get:
1129
+ tags:
1130
+ - settlementModels
1131
+ summary: View settlement model by name
1132
+ operationId: getSettlementmodelsName
1133
+ parameters:
1134
+ - name: name
1135
+ in: path
1136
+ description: SettlementModel name
1137
+ required: true
1138
+ schema:
1139
+ type: string
1140
+ responses:
1141
+ default:
1142
+ description: Successful
1143
+ content:
1144
+ '*/*':
1145
+ schema:
1146
+ type: string
1147
+ put:
1148
+ tags:
1149
+ - settlementModels
1150
+ summary: Update a settlement model
1151
+ operationId: putSettlementmodelsName
1152
+ parameters:
1153
+ - name: name
1154
+ in: path
1155
+ description: settlementModel name
1156
+ required: true
1157
+ schema:
1158
+ type: string
1159
+ requestBody:
1160
+ content:
1161
+ '*/*':
1162
+ schema:
1163
+ $ref: '#/components/schemas/SettlementModelIsActive'
1164
+ required: false
1165
+ responses:
1166
+ default:
1167
+ description: Successful
1168
+ content:
1169
+ '*/*':
1170
+ schema:
1171
+ type: string
1172
+ x-codegen-request-body-name: body
1173
+ /transactions/{id}:
1174
+ get:
1175
+ tags:
1176
+ - transaction
1177
+ summary: Retrieve transaction details by a transferId
1178
+ operationId: getTransfer
1179
+ parameters:
1180
+ - name: id
1181
+ in: path
1182
+ description: Transfer Id
1183
+ required: true
1184
+ schema:
1185
+ type: string
1186
+ responses:
1187
+ default:
1188
+ description: Successful
1189
+ content:
1190
+ '*/*':
1191
+ schema:
1192
+ $ref: '#/components/schemas/GetTransactionResponse'
1193
+ components:
1194
+ schemas:
1195
+ PostParticipantsRequest:
1196
+ required:
1197
+ - name
1198
+ type: object
1199
+ properties:
1200
+ name:
1201
+ maxLength: 30
1202
+ minLength: 2
1203
+ type: string
1204
+ description: Name of the participant
1205
+ x-format:
1206
+ alphanum: true
1207
+ currency:
1208
+ $ref: '#/components/schemas/Currency'
1209
+ PostParticipantsNameEndpointsRequest:
1210
+ required:
1211
+ - type
1212
+ - value
1213
+ type: object
1214
+ properties:
1215
+ type:
1216
+ type: string
1217
+ description: Endpoint Type
1218
+ value:
1219
+ type: string
1220
+ description: Endpoint Value
1221
+ Limit:
1222
+ required:
1223
+ - type
1224
+ - value
1225
+ type: object
1226
+ properties:
1227
+ type:
1228
+ type: string
1229
+ description: Limit Type
1230
+ value:
1231
+ type: number
1232
+ description: Limit Value
1233
+ x-constraint:
1234
+ positive: true
1235
+ description: Participant Limit
1236
+ PostInitialPositionAndLimitsRequest:
1237
+ required:
1238
+ - limit
1239
+ type: object
1240
+ properties:
1241
+ currency:
1242
+ $ref: '#/components/schemas/Currency'
1243
+ limit:
1244
+ $ref: '#/components/schemas/Limit'
1245
+ initialPosition:
1246
+ type: number
1247
+ description: Initial Position Value
1248
+ PostParticipantsNameAccountsRequest:
1249
+ required:
1250
+ - type
1251
+ type: object
1252
+ properties:
1253
+ currency:
1254
+ $ref: '#/components/schemas/Currency'
1255
+ type:
1256
+ type: string
1257
+ description: Account type
1258
+ NoAmountProvided:
1259
+ required:
1260
+ - amount
1261
+ type: object
1262
+ properties:
1263
+ amount:
1264
+ type: number
1265
+ x-constraint:
1266
+ precision: 4
1267
+ positive: true
1268
+ currency:
1269
+ $ref: '#/components/schemas/Currency'
1270
+ Participants:
1271
+ required:
1272
+ - action
1273
+ - amount
1274
+ - externalReference
1275
+ - reason
1276
+ - transferId
1277
+ type: object
1278
+ properties:
1279
+ transferId:
1280
+ type: string
1281
+ x-format:
1282
+ guid: true
1283
+ externalReference:
1284
+ type: string
1285
+ action:
1286
+ type: string
1287
+ enum:
1288
+ - recordFundsIn
1289
+ - recordFundsOutPrepareReserve
1290
+ reason:
1291
+ type: string
1292
+ amount:
1293
+ $ref: '#/components/schemas/NoAmountProvided'
1294
+ extensionList:
1295
+ $ref: '#/components/schemas/ExtensionList'
1296
+ ParticipantIsActive:
1297
+ required:
1298
+ - isActive
1299
+ type: object
1300
+ properties:
1301
+ isActive:
1302
+ type: boolean
1303
+ description: Participant isActive boolean
1304
+ ParticipantLimit:
1305
+ required:
1306
+ - alarmPercentage
1307
+ - type
1308
+ - value
1309
+ type: object
1310
+ properties:
1311
+ type:
1312
+ type: string
1313
+ description: Limit Type
1314
+ value:
1315
+ type: number
1316
+ description: Limit Value
1317
+ alarmPercentage:
1318
+ type: number
1319
+ description: limit threshold alarm percentage value
1320
+ description: Participant Limit
1321
+ PutParticipantsNameLimitsRequest:
1322
+ required:
1323
+ - limit
1324
+ type: object
1325
+ properties:
1326
+ currency:
1327
+ $ref: '#/components/schemas/Currency'
1328
+ limit:
1329
+ $ref: '#/components/schemas/ParticipantLimit'
1330
+ CurrencyIsActive:
1331
+ required:
1332
+ - isActive
1333
+ type: object
1334
+ properties:
1335
+ isActive:
1336
+ type: boolean
1337
+ description: Participant currency isActive boolean
1338
+ RecordFundsOut:
1339
+ required:
1340
+ - reason
1341
+ type: object
1342
+ properties:
1343
+ action:
1344
+ type: string
1345
+ enum:
1346
+ - recordFundsOutCommit
1347
+ - recordFundsOutAbort
1348
+ reason:
1349
+ type: string
1350
+ LedgerAccountType:
1351
+ required:
1352
+ - description
1353
+ - isActive
1354
+ - isSettleable
1355
+ - name
1356
+ type: object
1357
+ properties:
1358
+ name:
1359
+ maxLength: 30
1360
+ minLength: 2
1361
+ pattern: ^\w+$
1362
+ type: string
1363
+ description: Name of the ledger account type
1364
+ description:
1365
+ type: string
1366
+ description: Description of the ledger account type
1367
+ isActive:
1368
+ type: boolean
1369
+ description: Determines whether the ledger account is active
1370
+ isSettleable:
1371
+ type: boolean
1372
+ description: Determines whether the ledger account is settleable
1373
+ SettlementModel:
1374
+ required:
1375
+ - autoPositionReset
1376
+ - currency
1377
+ - ledgerAccountType
1378
+ - name
1379
+ - requireLiquidityCheck
1380
+ - settlementAccountType
1381
+ - settlementDelay
1382
+ - settlementGranularity
1383
+ - settlementInterchange
1384
+ type: object
1385
+ properties:
1386
+ name:
1387
+ maxLength: 30
1388
+ minLength: 2
1389
+ type: string
1390
+ description: Name of the settlement model
1391
+ x-format:
1392
+ alphanum: true
1393
+ settlementGranularity:
1394
+ type: string
1395
+ description: Granularity type for the settlement model GROSS or NET
1396
+ enum:
1397
+ - GROSS
1398
+ - NET
1399
+ settlementInterchange:
1400
+ type: string
1401
+ description: Interchange type for the settlement model BILATERAL or MULTILATERAL
1402
+ enum:
1403
+ - BILATERAL
1404
+ - MULTILATERAL
1405
+ settlementDelay:
1406
+ type: string
1407
+ description: Delay type for the settlement model IMMEDIATE or DEFERRED
1408
+ enum:
1409
+ - DEFERRED
1410
+ - IMMEDIATE
1411
+ currency:
1412
+ $ref: '#/components/schemas/Currency'
1413
+ requireLiquidityCheck:
1414
+ type: boolean
1415
+ description: Liquidity Check boolean
1416
+ ledgerAccountType:
1417
+ type: string
1418
+ description: Account type for the settlement model
1419
+ enum:
1420
+ - INTERCHANGE_FEE
1421
+ - POSITION
1422
+ settlementAccountType:
1423
+ type: string
1424
+ description: 'Account type into which the settlement should be settled into
1425
+ : POSITION, SETTLEMENT or INTERCHANGE_FEE_SETTLEMENT'
1426
+ autoPositionReset:
1427
+ type: boolean
1428
+ description: Automatic position reset setting, which determines whether
1429
+ to execute the settlement transfer or not
1430
+ SettlementModelIsActive:
1431
+ required:
1432
+ - isActive
1433
+ type: object
1434
+ properties:
1435
+ isActive:
1436
+ type: boolean
1437
+ description: settlementModel isActive boolean
1438
+ GetTransactionResponse:
1439
+ title: GetTransactionResponse
1440
+ type: object
1441
+ properties:
1442
+ quoteId:
1443
+ $ref: '#/components/schemas/QuoteId'
1444
+ transactionId:
1445
+ $ref: '#/components/schemas/TransactionId'
1446
+ transactionRequestId:
1447
+ type: string
1448
+ description: Identifies an optional previously-sent transaction request.
1449
+ payee:
1450
+ $ref: '#/components/schemas/Party'
1451
+ payer:
1452
+ $ref: '#/components/schemas/Party'
1453
+ amount:
1454
+ $ref: '#/components/schemas/Money'
1455
+ transactionType:
1456
+ $ref: '#/components/schemas/TransactionType'
1457
+ note:
1458
+ type: string
1459
+ description: A memo that will be attached to the transaction.
1460
+ extensionList:
1461
+ $ref: '#/components/schemas/ExtensionList'
1462
+ description: GET /transaction/{id} response object
1463
+ QuoteId:
1464
+ title: QuoteId
1465
+ minLength: 1
1466
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$|^[0-9A-HJKMNP-TV-Z]{26}$
1467
+ type: string
1468
+ description: Quote Identifier.
1469
+ The supported identifiers formats are for
1470
+ lowercase [UUID](https://datatracker.ietf.org/doc/html/rfc9562) and
1471
+ uppercase [ULID](https://github.com/ulid/spec)
1472
+ TransactionId:
1473
+ title: TransactionId
1474
+ minLength: 1
1475
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$|^[0-9A-HJKMNP-TV-Z]{26}$
1476
+ type: string
1477
+ description: Transaction Identifier.
1478
+ The supported identifiers formats are for
1479
+ lowercase [UUID](https://datatracker.ietf.org/doc/html/rfc9562) and
1480
+ uppercase [ULID](https://github.com/ulid/spec)
1481
+ Party:
1482
+ title: Party
1483
+ required:
1484
+ - partyIdInfo
1485
+ type: object
1486
+ properties:
1487
+ partyIdInfo:
1488
+ $ref: '#/components/schemas/PartyIdInfo'
1489
+ merchantClassificationCode:
1490
+ type: string
1491
+ description: Used in the context of Payee Information, where the Payee happens
1492
+ to be a merchant accepting merchant payments.
1493
+ name:
1494
+ type: string
1495
+ description: Display name of the Party, could be a real name or a nick name.
1496
+ personalInfo:
1497
+ $ref: '#/components/schemas/PartyPersonalInfo'
1498
+ description: Data model for the complex type Party.
1499
+ PartyIdInfo:
1500
+ title: PartyIdInfo
1501
+ required:
1502
+ - partyIdType
1503
+ - partyIdentifier
1504
+ type: object
1505
+ properties:
1506
+ partyIdType:
1507
+ $ref: '#/components/schemas/PartyIdType'
1508
+ partyIdentifier:
1509
+ $ref: '#/components/schemas/PartyIdentifier'
1510
+ partySubIdOrType:
1511
+ type: string
1512
+ description: A sub-identifier or sub-type for the Party.
1513
+ fspId:
1514
+ type: string
1515
+ description: FSP id (if known)
1516
+ extensionList:
1517
+ $ref: '#/components/schemas/ExtensionList'
1518
+ description: Data model for the complex type PartyIdInfo.
1519
+ PartyIdType:
1520
+ title: PartyIdTypeEnum
1521
+ type: string
1522
+ description: Below are the allowed values for the enumeration - MSISDN An MSISDN
1523
+ (Mobile Station International Subscriber Directory Number, that is, the phone
1524
+ number) is used as reference to a participant. The MSISDN identifier should
1525
+ be in international format according to the ITU-T E.164 standard. Optionally,
1526
+ the MSISDN may be prefixed by a single plus sign, indicating the international
1527
+ prefix. - EMAIL An email is used as reference to a participant. The format
1528
+ of the email should be according to the informational RFC 3696. - PERSONAL_ID
1529
+ A personal identifier is used as reference to a participant. Examples of personal
1530
+ identification are passport number, birth certificate number, and national
1531
+ registration number. The identifier number is added in the PartyIdentifier
1532
+ element. The personal identifier type is added in the PartySubIdOrType element.
1533
+ - BUSINESS A specific Business (for example, an organization or a company)
1534
+ is used as reference to a participant. The BUSINESS identifier can be in any
1535
+ format. To make a transaction connected to a specific username or bill number
1536
+ in a Business, the PartySubIdOrType element should be used. - DEVICE A specific
1537
+ device (for example, a POS or ATM) id connected to a specific business or
1538
+ organization is used as reference to a Party. For referencing a specific device
1539
+ under a specific business or organization, use the PartySubIdOrType element.
1540
+ - ACCOUNT_ID A bank account number or FSP account id should be used as reference
1541
+ to a participant. The ACCOUNT_ID identifier can be in any format, as formats
1542
+ can greatly differ depending on country and FSP. - IBAN A bank account number
1543
+ or FSP account id is used as reference to a participant. The IBAN identifier
1544
+ can consist of up to 34 alphanumeric characters and should be entered without
1545
+ whitespace. - ALIAS An alias is used as reference to a participant. The alias
1546
+ should be created in the FSP as an alternative reference to an account owner.
1547
+ Another example of an alias is a username in the FSP system. The ALIAS identifier
1548
+ can be in any format. It is also possible to use the PartySubIdOrType element
1549
+ for identifying an account under an Alias defined by the PartyIdentifier.
1550
+ enum:
1551
+ - MSISDN
1552
+ - EMAIL
1553
+ - PERSONAL_ID
1554
+ - BUSINESS
1555
+ - DEVICE
1556
+ - ACCOUNT_ID
1557
+ - IBAN
1558
+ - ALIAS
1559
+ PartyIdentifier:
1560
+ title: PartyIdentifier
1561
+ maxLength: 128
1562
+ minLength: 1
1563
+ type: string
1564
+ description: Identifier of the Party.
1565
+ ExtensionList:
1566
+ title: ExtensionList
1567
+ required:
1568
+ - extension
1569
+ type: object
1570
+ properties:
1571
+ extension:
1572
+ maxItems: 16
1573
+ minItems: 1
1574
+ type: array
1575
+ description: Number of Extension elements
1576
+ items:
1577
+ $ref: '#/components/schemas/Extension'
1578
+ description: Data model for the complex type ExtensionList
1579
+ Extension:
1580
+ title: Extension
1581
+ required:
1582
+ - key
1583
+ - value
1584
+ type: object
1585
+ properties:
1586
+ key:
1587
+ type: string
1588
+ description: Extension key.
1589
+ value:
1590
+ type: string
1591
+ description: Extension value.
1592
+ description: Data model for the complex type Extension
1593
+ PartyPersonalInfo:
1594
+ title: PartyPersonalInfo
1595
+ type: object
1596
+ properties:
1597
+ complexName:
1598
+ $ref: '#/components/schemas/PartyComplexName'
1599
+ dateOfBirth:
1600
+ type: string
1601
+ description: Date of birth for the Party.
1602
+ description: Data model for the complex type PartyPersonalInfo.
1603
+ PartyComplexName:
1604
+ title: PartyComplexName
1605
+ type: object
1606
+ properties:
1607
+ firstName:
1608
+ type: string
1609
+ description: Party’s first name.
1610
+ middleName:
1611
+ type: string
1612
+ description: Party’s middle name.
1613
+ lastName:
1614
+ type: string
1615
+ description: Party’s last name.
1616
+ description: Data model for the complex type PartyComplexName.
1617
+ TransactionType:
1618
+ title: TransactionType
1619
+ required:
1620
+ - initiator
1621
+ - initiatorType
1622
+ - scenario
1623
+ type: object
1624
+ properties:
1625
+ scenario:
1626
+ type: string
1627
+ description: Deposit, withdrawal, refund, …
1628
+ subScenario:
1629
+ type: string
1630
+ description: Possible sub-scenario, defined locally within the scheme.
1631
+ initiator:
1632
+ type: string
1633
+ description: Who is initiating the transaction - Payer or Payee
1634
+ initiatorType:
1635
+ type: string
1636
+ description: Consumer, agent, business, …
1637
+ refundInfo:
1638
+ $ref: '#/components/schemas/Refund'
1639
+ balanceOfPayments:
1640
+ type: string
1641
+ description: Balance of Payments code.
1642
+ description: Data model for the complex type TransactionType.
1643
+ Refund:
1644
+ title: Refund
1645
+ required:
1646
+ - originalTransactionId
1647
+ type: object
1648
+ properties:
1649
+ originalTransactionId:
1650
+ type: string
1651
+ description: Reference to the original transaction id that is requested
1652
+ to be refunded.
1653
+ refundReason:
1654
+ type: string
1655
+ description: Free text indicating the reason for the refund.
1656
+ description: Data model for the complex type Refund.
1657
+ Money:
1658
+ title: Money
1659
+ required:
1660
+ - amount
1661
+ - currency
1662
+ type: object
1663
+ properties:
1664
+ currency:
1665
+ $ref: '#/components/schemas/Currency'
1666
+ amount:
1667
+ $ref: '#/components/schemas/Amount'
1668
+ description: Data model for the complex type Money.
1669
+ Currency:
1670
+ title: CurrencyEnum
1671
+ maxLength: 3
1672
+ minLength: 3
1673
+ type: string
1674
+ description: The currency codes defined in ISO 4217 as three-letter alphabetic
1675
+ codes are used as the standard naming representation for currencies.
1676
+ enum:
1677
+ - AED
1678
+ - AFN
1679
+ - ALL
1680
+ - AMD
1681
+ - ANG
1682
+ - AOA
1683
+ - ARS
1684
+ - AUD
1685
+ - AWG
1686
+ - AZN
1687
+ - BAM
1688
+ - BBD
1689
+ - BDT
1690
+ - BGN
1691
+ - BHD
1692
+ - BIF
1693
+ - BMD
1694
+ - BND
1695
+ - BOB
1696
+ - BRL
1697
+ - BSD
1698
+ - BTN
1699
+ - BWP
1700
+ - BYN
1701
+ - BZD
1702
+ - CAD
1703
+ - CDF
1704
+ - CHF
1705
+ - CLP
1706
+ - CNY
1707
+ - COP
1708
+ - CRC
1709
+ - CUC
1710
+ - CUP
1711
+ - CVE
1712
+ - CZK
1713
+ - DJF
1714
+ - DKK
1715
+ - DOP
1716
+ - DZD
1717
+ - EGP
1718
+ - ERN
1719
+ - ETB
1720
+ - EUR
1721
+ - FJD
1722
+ - FKP
1723
+ - GBP
1724
+ - GEL
1725
+ - GGP
1726
+ - GHS
1727
+ - GIP
1728
+ - GMD
1729
+ - GNF
1730
+ - GTQ
1731
+ - GYD
1732
+ - HKD
1733
+ - HNL
1734
+ - HRK
1735
+ - HTG
1736
+ - HUF
1737
+ - IDR
1738
+ - ILS
1739
+ - IMP
1740
+ - INR
1741
+ - IQD
1742
+ - IRR
1743
+ - ISK
1744
+ - JEP
1745
+ - JMD
1746
+ - JOD
1747
+ - JPY
1748
+ - KES
1749
+ - KGS
1750
+ - KHR
1751
+ - KMF
1752
+ - KPW
1753
+ - KRW
1754
+ - KWD
1755
+ - KYD
1756
+ - KZT
1757
+ - LAK
1758
+ - LBP
1759
+ - LKR
1760
+ - LRD
1761
+ - LSL
1762
+ - LYD
1763
+ - MAD
1764
+ - MDL
1765
+ - MGA
1766
+ - MKD
1767
+ - MMK
1768
+ - MNT
1769
+ - MOP
1770
+ - MRO
1771
+ - MUR
1772
+ - MVR
1773
+ - MWK
1774
+ - MXN
1775
+ - MYR
1776
+ - MZN
1777
+ - NAD
1778
+ - NGN
1779
+ - NIO
1780
+ - NOK
1781
+ - NPR
1782
+ - NZD
1783
+ - OMR
1784
+ - PAB
1785
+ - PEN
1786
+ - PGK
1787
+ - PHP
1788
+ - PKR
1789
+ - PLN
1790
+ - PYG
1791
+ - QAR
1792
+ - RON
1793
+ - RSD
1794
+ - RUB
1795
+ - RWF
1796
+ - SAR
1797
+ - SBD
1798
+ - SCR
1799
+ - SDG
1800
+ - SEK
1801
+ - SGD
1802
+ - SHP
1803
+ - SLL
1804
+ - SOS
1805
+ - SPL
1806
+ - SRD
1807
+ - STD
1808
+ - SVC
1809
+ - SYP
1810
+ - SZL
1811
+ - THB
1812
+ - TJS
1813
+ - TMT
1814
+ - TND
1815
+ - TOP
1816
+ - TRY
1817
+ - TTD
1818
+ - TVD
1819
+ - TWD
1820
+ - TZS
1821
+ - UAH
1822
+ - UGX
1823
+ - USD
1824
+ - UYU
1825
+ - UZS
1826
+ - VEF
1827
+ - VND
1828
+ - VUV
1829
+ - WST
1830
+ - XAF
1831
+ - XCD
1832
+ - XDR
1833
+ - XOF
1834
+ - XPF
1835
+ - XTS
1836
+ - XXX
1837
+ - YER
1838
+ - ZAR
1839
+ - ZMW
1840
+ - ZWD
1841
+ Amount:
1842
+ title: Amount
1843
+ pattern: ^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,3}[1-9])?$
1844
+ type: string
1845
+ description: The API data type Amount is a JSON String in a canonical format
1846
+ that is restricted by a regular expression for interoperability reasons. This
1847
+ pattern does not allow any trailing zeroes at all, but allows an amount without
1848
+ a minor currency unit. It also only allows four digits in the minor currency
1849
+ unit; a negative value is not allowed. Using more than 18 digits in the major
1850
+ currency unit is not allowed.