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,240 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Test1",
|
|
3
|
+
"inputValues": {
|
|
4
|
+
"payerIdType": "MSISDN",
|
|
5
|
+
"payerIdValue": "44123456789",
|
|
6
|
+
"payeeFirstName": "Vijay",
|
|
7
|
+
"payeeMiddleName": "Kumar",
|
|
8
|
+
"payeeLastName": "Guthi",
|
|
9
|
+
"payeeDOB": "1984-01-01",
|
|
10
|
+
"note": "Test Payment",
|
|
11
|
+
"currency": "USD",
|
|
12
|
+
"amount": "100",
|
|
13
|
+
"homeTransactionId": "123ABC",
|
|
14
|
+
"accept": "application/vnd.interoperability.parties+json;version=1.0",
|
|
15
|
+
"contentType": "application/vnd.interoperability.parties+json;version=1.0",
|
|
16
|
+
"payeeIdType": "MSISDN",
|
|
17
|
+
"payeeIdValue": "9876543210",
|
|
18
|
+
"payeeFspId": "userdfsp",
|
|
19
|
+
"scenario": "PAYMENT",
|
|
20
|
+
"initiator": "PAYEE",
|
|
21
|
+
"initiatorType": "BUSINESS",
|
|
22
|
+
"refundReason": "userdfsp"
|
|
23
|
+
},
|
|
24
|
+
"test_cases": [
|
|
25
|
+
{
|
|
26
|
+
"id": 1,
|
|
27
|
+
"name": "P2P Transfer Happy Path",
|
|
28
|
+
"requests": [
|
|
29
|
+
{
|
|
30
|
+
"id": 1,
|
|
31
|
+
"description": "Get party information",
|
|
32
|
+
"apiVersion": {
|
|
33
|
+
"minorVersion": 0,
|
|
34
|
+
"majorVersion": 1,
|
|
35
|
+
"type": "fspiop",
|
|
36
|
+
"asynchronous": true
|
|
37
|
+
},
|
|
38
|
+
"operationPath": "/parties/{Type}/{ID}",
|
|
39
|
+
"method": "get",
|
|
40
|
+
"headers": {
|
|
41
|
+
"Accept": "{$inputs.accept}",
|
|
42
|
+
"Content-Type": "{$inputs.contentType}",
|
|
43
|
+
"Date": "{$function.generic.curDate}",
|
|
44
|
+
"FSPIOP-Source": "{$inputs.payeeFspId}"
|
|
45
|
+
},
|
|
46
|
+
"params": {
|
|
47
|
+
"Type": "{$inputs.payerIdType}",
|
|
48
|
+
"ID": "{$inputs.payerIdValue}"
|
|
49
|
+
},
|
|
50
|
+
"tests": {
|
|
51
|
+
"assertions": [
|
|
52
|
+
{
|
|
53
|
+
"id": 1,
|
|
54
|
+
"description": "Response status to be 202",
|
|
55
|
+
"exec": [
|
|
56
|
+
"expect(response.status).to.equal(202)"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": 2,
|
|
61
|
+
"description": "Response statusText to be Accepted",
|
|
62
|
+
"exec": [
|
|
63
|
+
"expect(response.statusText).to.equal('Accepted')"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": 3,
|
|
68
|
+
"description": "Callback Content Length not 0",
|
|
69
|
+
"exec": [
|
|
70
|
+
"expect(callback.headers['Content-Length']).to.not.equal('0')"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": 4,
|
|
75
|
+
"description": "Callback FSP Destination equal to request FSP Source",
|
|
76
|
+
"exec": [
|
|
77
|
+
"expect(callback.headers['fspiop-destination']).to.equal('{$request.headers['FSPIOP-Source']}')"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": 5,
|
|
82
|
+
"description": "Callback content-type to be parties",
|
|
83
|
+
"exec": [
|
|
84
|
+
"expect(callback.headers['content-type']).to.equal('{$request.headers['Accept']}')"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": 6,
|
|
89
|
+
"description": "Callback body should contain party",
|
|
90
|
+
"exec": [
|
|
91
|
+
"expect(callback.body).to.have.property('party')"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": 7,
|
|
96
|
+
"description": "Callback body partyIdentifier equal to request param ID",
|
|
97
|
+
"exec": [
|
|
98
|
+
"expect(callback.body.party.partyIdInfo.partyIdentifier).to.equal('{$request.params['ID']}')"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": 8,
|
|
103
|
+
"description": "Callback body partyIdType equal to request param Type",
|
|
104
|
+
"exec": [
|
|
105
|
+
"expect(callback.body.party.partyIdInfo.partyIdType).to.equal('{$request.params['Type']}')"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": 2,
|
|
113
|
+
"description": "Send Transaction Request to Payer",
|
|
114
|
+
"apiVersion": {
|
|
115
|
+
"minorVersion": 0,
|
|
116
|
+
"majorVersion": 1,
|
|
117
|
+
"type": "fspiop",
|
|
118
|
+
"asynchronous": true
|
|
119
|
+
},
|
|
120
|
+
"operationPath": "/transactionRequests",
|
|
121
|
+
"path": "/transactionRequests",
|
|
122
|
+
"method": "post",
|
|
123
|
+
"body": {
|
|
124
|
+
"transactionRequestId": "{$function.generic.generateID}",
|
|
125
|
+
"payee": {
|
|
126
|
+
"partyIdInfo": {
|
|
127
|
+
"partyIdType": "{$inputs.payeeIdType}",
|
|
128
|
+
"partyIdentifier": "{$inputs.payeeIdValue}",
|
|
129
|
+
"fspId": "{$inputs.payeeFspId}"
|
|
130
|
+
},
|
|
131
|
+
"merchantClassificationCode": "98",
|
|
132
|
+
"name": "nisi in",
|
|
133
|
+
"personalInfo": {
|
|
134
|
+
"complexName": {
|
|
135
|
+
"firstName": "{$inputs.payeeFirstName}",
|
|
136
|
+
"middleName": "{$inputs.payeeMiddleName}",
|
|
137
|
+
"lastName": "{$inputs.payeeFirstName}"
|
|
138
|
+
},
|
|
139
|
+
"dateOfBirth": "{$inputs.payeeDOB}"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"payer": {
|
|
143
|
+
"partyIdType": "{$inputs.payerIdType}",
|
|
144
|
+
"partyIdentifier": "{$inputs.payerIdValue}",
|
|
145
|
+
"fspId": "{$prev.1.callback.body.party.partyIdInfo.fspId}"
|
|
146
|
+
},
|
|
147
|
+
"amount": {
|
|
148
|
+
"currency": "{$inputs.currency}",
|
|
149
|
+
"amount": "{$inputs.amount}"
|
|
150
|
+
},
|
|
151
|
+
"transactionType": {
|
|
152
|
+
"scenario": "{$inputs.scenario}",
|
|
153
|
+
"initiator": "{$inputs.initiator}",
|
|
154
|
+
"initiatorType": "{$inputs.initiatorType}",
|
|
155
|
+
"refundInfo": {
|
|
156
|
+
"originalTransactionId": "{$function.generic.generateID}",
|
|
157
|
+
"refundReason": "{$inputs.refundReason}"
|
|
158
|
+
},
|
|
159
|
+
"balanceOfPayments": "968"
|
|
160
|
+
},
|
|
161
|
+
"note": "{$inputs.note}"
|
|
162
|
+
},
|
|
163
|
+
"headers": {
|
|
164
|
+
"Accept": "{$inputs.accept}",
|
|
165
|
+
"Content-Type": "{$inputs.contentType}",
|
|
166
|
+
"Date": "{$function.generic.curDate}",
|
|
167
|
+
"FSPIOP-Source": "{$inputs.payeeFspId}"
|
|
168
|
+
},
|
|
169
|
+
"tests": {
|
|
170
|
+
"assertions": [
|
|
171
|
+
{
|
|
172
|
+
"id": 1,
|
|
173
|
+
"description": "Response status to be 202",
|
|
174
|
+
"exec": [
|
|
175
|
+
"expect(response.status).to.equal(202)"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": 2,
|
|
180
|
+
"description": "Response statusText to be Accepted",
|
|
181
|
+
"exec": [
|
|
182
|
+
"expect(response.statusText).to.equal('Accepted')"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": 3,
|
|
187
|
+
"description": "Callback Content Length not 0",
|
|
188
|
+
"exec": [
|
|
189
|
+
"expect(callback.headers['Content-Length']).to.not.equal('0')"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": 4,
|
|
194
|
+
"description": "Callback FSP Destination equal to request FSP Source",
|
|
195
|
+
"exec": [
|
|
196
|
+
"expect(callback.headers['fspiop-destination']).to.equal('{$request.headers['FSPIOP-Source']}')"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"id": 5,
|
|
201
|
+
"description": "Callback FSP Source equal to request body payer fspId",
|
|
202
|
+
"exec": [
|
|
203
|
+
"expect(callback.headers['fspiop-source']).to.equal('{$request.body.payer.fspId}')"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": 6,
|
|
208
|
+
"description": "Callback content-type to be parties",
|
|
209
|
+
"exec": [
|
|
210
|
+
"expect(callback.headers['content-type']).to.equal('{$request.headers['Accept']}')"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": 7,
|
|
215
|
+
"description": "Callback body should contain transactionRequestState",
|
|
216
|
+
"exec": [
|
|
217
|
+
"expect(callback.body).to.have.property('transactionRequestState')"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": 8,
|
|
222
|
+
"description": "Callback body should contain transactionId",
|
|
223
|
+
"exec": [
|
|
224
|
+
"expect(callback.body).to.have.property('transactionId')"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": 9,
|
|
229
|
+
"description": "Callback body transactionRequestState to be RECEIVED ",
|
|
230
|
+
"exec": [
|
|
231
|
+
"expect(callback.body.transactionRequestState).to.equal('RECEIVED')"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
{
|
|
2
|
+
"options": {},
|
|
3
|
+
"name": "multi",
|
|
4
|
+
"test_cases": [
|
|
5
|
+
{
|
|
6
|
+
"id": 1,
|
|
7
|
+
"name": "fxQuotes",
|
|
8
|
+
"fileInfo": {
|
|
9
|
+
"path": "fxp/FXP.json"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"info": "fxQuotes"
|
|
13
|
+
},
|
|
14
|
+
"requests": [
|
|
15
|
+
{
|
|
16
|
+
"id": 1,
|
|
17
|
+
"description": "POST /fxQuotes",
|
|
18
|
+
"apiVersion": {
|
|
19
|
+
"minorVersion": 0,
|
|
20
|
+
"majorVersion": 2,
|
|
21
|
+
"type": "fspiop",
|
|
22
|
+
"asynchronous": true,
|
|
23
|
+
"additionalApi": true,
|
|
24
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
25
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
26
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
27
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
28
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
29
|
+
},
|
|
30
|
+
"operationPath": "/fxQuotes",
|
|
31
|
+
"path": "/fxQuotes",
|
|
32
|
+
"method": "post",
|
|
33
|
+
"url": null,
|
|
34
|
+
"body": {
|
|
35
|
+
"conversionRequestId": "b51ec534-ee48-4575-b6a9-ead2955b8069",
|
|
36
|
+
"conversionTerms": {
|
|
37
|
+
"conversionId": "b51ec534-ee48-4575-b6a9-ead2955b8069",
|
|
38
|
+
"determiningTransferId": "b51ec534-ee48-4575-b6a9-ead2955b8069",
|
|
39
|
+
"initiatingFsp": "{$inputs.fromFspId}",
|
|
40
|
+
"counterPartyFsp": "{$inputs.fxpId}",
|
|
41
|
+
"amountType": "RECEIVE",
|
|
42
|
+
"sourceAmount": {
|
|
43
|
+
"currency": "{$inputs.currency}"
|
|
44
|
+
},
|
|
45
|
+
"targetAmount": {
|
|
46
|
+
"currency": "EUR",
|
|
47
|
+
"amount": "100"
|
|
48
|
+
},
|
|
49
|
+
"expiration": "2024-05-24T08:38:08.699-04:00"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"headers": {
|
|
53
|
+
"Accept": "{$inputs.acceptFxQuotes}",
|
|
54
|
+
"Content-Type": "{$inputs.contentTypeFxQuotes}",
|
|
55
|
+
"Date": "{$function.generic.curDate}",
|
|
56
|
+
"FSPIOP-Source": "{$inputs.fromFspId}"
|
|
57
|
+
},
|
|
58
|
+
"disabled": false
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": 2,
|
|
64
|
+
"name": "GET /fxQuotes",
|
|
65
|
+
"requests": [
|
|
66
|
+
{
|
|
67
|
+
"id": 1,
|
|
68
|
+
"description": "GET /fxQuotes",
|
|
69
|
+
"apiVersion": {
|
|
70
|
+
"minorVersion": 0,
|
|
71
|
+
"majorVersion": 2,
|
|
72
|
+
"type": "fspiop",
|
|
73
|
+
"asynchronous": true,
|
|
74
|
+
"additionalApi": true,
|
|
75
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
76
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
77
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
78
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
79
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
80
|
+
},
|
|
81
|
+
"operationPath": "/fxQuotes/{ID}",
|
|
82
|
+
"path": "/fxQuotes/{$function.generic.generateID}",
|
|
83
|
+
"method": "get",
|
|
84
|
+
"params": {
|
|
85
|
+
"ID": "{$function.generic.generateID}"
|
|
86
|
+
},
|
|
87
|
+
"url": null,
|
|
88
|
+
"headers": {
|
|
89
|
+
"Content-Type": "{$inputs.contentTypeFxQuotes}",
|
|
90
|
+
"Date": "{$function.generic.curDate}",
|
|
91
|
+
"FSPIOP-Source": "{$inputs.fromFspId}",
|
|
92
|
+
"Accept": "{$inputs.acceptFxQuotes}"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"fileInfo": {
|
|
97
|
+
"path": "fxp/FXP.json"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": 3,
|
|
102
|
+
"name": "FX Transfers",
|
|
103
|
+
"requests": [
|
|
104
|
+
{
|
|
105
|
+
"id": 1,
|
|
106
|
+
"description": "POST /fxTransfers",
|
|
107
|
+
"apiVersion": {
|
|
108
|
+
"minorVersion": 0,
|
|
109
|
+
"majorVersion": 2,
|
|
110
|
+
"type": "fspiop",
|
|
111
|
+
"asynchronous": true,
|
|
112
|
+
"additionalApi": true,
|
|
113
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
114
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
115
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
116
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
117
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
118
|
+
},
|
|
119
|
+
"operationPath": "/fxTransfers",
|
|
120
|
+
"path": "/fxTransfers",
|
|
121
|
+
"method": "post",
|
|
122
|
+
"url": null,
|
|
123
|
+
"body": {
|
|
124
|
+
"commitRequestId": "b51ec534-ee48-4575-b6a9-ead2955b8069",
|
|
125
|
+
"determiningTransferId": "b51ec534-ee48-4575-b6a9-ead2955b8069",
|
|
126
|
+
"initiatingFsp": "{$inputs.fromFspId}",
|
|
127
|
+
"counterPartyFsp": "{$inputs.fxpId}",
|
|
128
|
+
"sourceAmount": {
|
|
129
|
+
"currency": "USD",
|
|
130
|
+
"amount": "105.23"
|
|
131
|
+
},
|
|
132
|
+
"targetAmount": {
|
|
133
|
+
"currency": "EUR",
|
|
134
|
+
"amount": "100"
|
|
135
|
+
},
|
|
136
|
+
"condition": "HOr33-H3AfTDHrSkPjJtVPRdKouuMkDXTR4ejlQa8Ks",
|
|
137
|
+
"expiration": "2016-05-24T08:38:08.699-04:00"
|
|
138
|
+
},
|
|
139
|
+
"headers": {
|
|
140
|
+
"Accept": "{$inputs.acceptFxTransfers}",
|
|
141
|
+
"Content-Type": "{$inputs.contentTypeFxTransfers}",
|
|
142
|
+
"Date": "{$function.generic.curDate}",
|
|
143
|
+
"FSPIOP-Source": "{$inputs.fromFspId}"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"fileInfo": {
|
|
148
|
+
"path": "fxp/FXP.json"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": 4,
|
|
153
|
+
"name": "GET /fxTransfers/{ID}",
|
|
154
|
+
"requests": [
|
|
155
|
+
{
|
|
156
|
+
"id": 1,
|
|
157
|
+
"description": "GET /fxTransfers/{ID}",
|
|
158
|
+
"apiVersion": {
|
|
159
|
+
"minorVersion": 0,
|
|
160
|
+
"majorVersion": 2,
|
|
161
|
+
"type": "fspiop",
|
|
162
|
+
"asynchronous": true,
|
|
163
|
+
"additionalApi": true,
|
|
164
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
165
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
166
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
167
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
168
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
169
|
+
},
|
|
170
|
+
"operationPath": "/fxTransfers/{ID}",
|
|
171
|
+
"path": "/fxTransfers/{$function.generic.generateID}",
|
|
172
|
+
"method": "get",
|
|
173
|
+
"params": {
|
|
174
|
+
"ID": "{$function.generic.generateID}"
|
|
175
|
+
},
|
|
176
|
+
"url": null,
|
|
177
|
+
"headers": {
|
|
178
|
+
"Content-Type": "{$inputs.contentTypeFxTransfers}",
|
|
179
|
+
"Date": "{$function.generic.curDate}",
|
|
180
|
+
"FSPIOP-Source": "{$inputs.fromFspId}",
|
|
181
|
+
"Accept": "{$inputs.acceptFxTransfers}"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"fileInfo": {
|
|
186
|
+
"path": "fxp/FXP.json"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": 5,
|
|
191
|
+
"name": "GET /services/FXP",
|
|
192
|
+
"requests": [
|
|
193
|
+
{
|
|
194
|
+
"id": 1,
|
|
195
|
+
"description": "GET /services/FXP",
|
|
196
|
+
"apiVersion": {
|
|
197
|
+
"minorVersion": 0,
|
|
198
|
+
"majorVersion": 2,
|
|
199
|
+
"type": "fspiop",
|
|
200
|
+
"asynchronous": true,
|
|
201
|
+
"additionalApi": true,
|
|
202
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
203
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
204
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
205
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
206
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
207
|
+
},
|
|
208
|
+
"operationPath": "/services/FXP",
|
|
209
|
+
"path": "/services/FXP",
|
|
210
|
+
"method": "get",
|
|
211
|
+
"url": null,
|
|
212
|
+
"headers": {
|
|
213
|
+
"Content-Type": "{$inputs.contentTypeServicesFxp}",
|
|
214
|
+
"Date": "{$function.generic.curDate}",
|
|
215
|
+
"FSPIOP-Source": "{$inputs.fromFspId}",
|
|
216
|
+
"Accept": "{$inputs.acceptServicesFxp}"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"fileInfo": {
|
|
221
|
+
"path": "fxp/FXP.json"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": 6,
|
|
226
|
+
"name": "GET /services/FXP/{SourceCurrency}/{TargetCurrency}",
|
|
227
|
+
"requests": [
|
|
228
|
+
{
|
|
229
|
+
"id": 1,
|
|
230
|
+
"description": "/services/FXP/{SourceCurrency}/{TargetCurrency}",
|
|
231
|
+
"apiVersion": {
|
|
232
|
+
"minorVersion": 0,
|
|
233
|
+
"majorVersion": 2,
|
|
234
|
+
"type": "fspiop",
|
|
235
|
+
"asynchronous": true,
|
|
236
|
+
"additionalApi": true,
|
|
237
|
+
"specFile": "spec_files/api_definitions/fspiop_2.0/api_spec.yaml",
|
|
238
|
+
"callbackMapFile": "spec_files/api_definitions/fspiop_2.0/callback_map.json",
|
|
239
|
+
"responseMapFile": "spec_files/api_definitions/fspiop_2.0/response_map.json",
|
|
240
|
+
"jsfRefFile": "spec_files/api_definitions/fspiop_2.0/mockRef.json",
|
|
241
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_2.0/trigger_templates"
|
|
242
|
+
},
|
|
243
|
+
"operationPath": "/services/FXP/{SourceCurrency}/{TargetCurrency}",
|
|
244
|
+
"path": "/services/FXP/USD/EUR",
|
|
245
|
+
"method": "get",
|
|
246
|
+
"params": {
|
|
247
|
+
"SourceCurrency": "USD",
|
|
248
|
+
"TargetCurrency": "EUR"
|
|
249
|
+
},
|
|
250
|
+
"url": null,
|
|
251
|
+
"headers": {
|
|
252
|
+
"Content-Type": "{$inputs.contentTypeServicesFxp}",
|
|
253
|
+
"Date": "{$function.generic.curDate}",
|
|
254
|
+
"FSPIOP-Source": "{$inputs.fromFspId}",
|
|
255
|
+
"Accept": "{$inputs.acceptServicesFxp}"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"fileInfo": {
|
|
260
|
+
"path": "fxp/FXP.json"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"test_cases": [
|
|
3
|
+
{
|
|
4
|
+
"id": 1,
|
|
5
|
+
"name": "POST /fxQuotes",
|
|
6
|
+
"requests": [
|
|
7
|
+
{
|
|
8
|
+
"id": 1,
|
|
9
|
+
"description": "post /fxQuotes",
|
|
10
|
+
"apiVersion": {
|
|
11
|
+
"minorVersion": 1,
|
|
12
|
+
"majorVersion": 2,
|
|
13
|
+
"type": "sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets",
|
|
14
|
+
"asynchronous": false,
|
|
15
|
+
"additionalApi": true,
|
|
16
|
+
"specFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/api_spec.yaml",
|
|
17
|
+
"callbackMapFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/callback_map.json",
|
|
18
|
+
"responseMapFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/response_map.json",
|
|
19
|
+
"jsfRefFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/mockRef.json",
|
|
20
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/trigger_templates"
|
|
21
|
+
},
|
|
22
|
+
"operationPath": "/fxQuotes",
|
|
23
|
+
"path": "/fxQuotes",
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "http://localhost:4040/sdk-backend",
|
|
26
|
+
"body": {
|
|
27
|
+
"conversionRequestId": "828cc75f-1654-415e-8fcd-df76cc9329b9",
|
|
28
|
+
"conversionTerms": {
|
|
29
|
+
"conversionId": "581f68ef-b54f-416f-9161-ac34e889a84b",
|
|
30
|
+
"initiatingFsp": "PayerFSP",
|
|
31
|
+
"counterPartyFsp": "FDH_FX",
|
|
32
|
+
"amountType": "SEND",
|
|
33
|
+
"sourceAmount": {
|
|
34
|
+
"currency": "BWP",
|
|
35
|
+
"amount": "300"
|
|
36
|
+
},
|
|
37
|
+
"targetAmount": {
|
|
38
|
+
"currency": "TZS"
|
|
39
|
+
},
|
|
40
|
+
"expiration": "2021-08-25T14:17:09.663+01:00"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"headers": {},
|
|
44
|
+
"ignoreCallbacks": true
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"fileInfo": {
|
|
48
|
+
"path": "fxp/SDK_backend.json"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": 2,
|
|
53
|
+
"name": "POST /fxTransfers",
|
|
54
|
+
"requests": [
|
|
55
|
+
{
|
|
56
|
+
"id": 1,
|
|
57
|
+
"description": "post /fxTransfers (backend)",
|
|
58
|
+
"apiVersion": {
|
|
59
|
+
"minorVersion": 1,
|
|
60
|
+
"majorVersion": 2,
|
|
61
|
+
"type": "sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets",
|
|
62
|
+
"asynchronous": false,
|
|
63
|
+
"prefix": "/sdk-backend",
|
|
64
|
+
"additionalApi": true,
|
|
65
|
+
"specFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/api_spec.yaml",
|
|
66
|
+
"callbackMapFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/callback_map.json",
|
|
67
|
+
"responseMapFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/response_map.json",
|
|
68
|
+
"jsfRefFile": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/mockRef.json",
|
|
69
|
+
"triggerTemplatesFolder": "spec_files/api_definitions/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets_2.1/trigger_templates"
|
|
70
|
+
},
|
|
71
|
+
"operationPath": "/fxTransfers",
|
|
72
|
+
"path": "/fxTransfers",
|
|
73
|
+
"method": "post",
|
|
74
|
+
"url": "http://localhost:4040/sdk-backend",
|
|
75
|
+
"body": {
|
|
76
|
+
"commitRequestId": "77c9d78d-c26a-4474-8b3c-99b96a814bfc",
|
|
77
|
+
"determiningTransferId": "d9ce59d4-3598-4396-8630-581bb0551451",
|
|
78
|
+
"initiatingFsp": "PayerFSP",
|
|
79
|
+
"counterPartyFsp": "FDH_FX",
|
|
80
|
+
"amountType": "SEND",
|
|
81
|
+
"sourceAmount": {
|
|
82
|
+
"currency": "BWP",
|
|
83
|
+
"amount": "300"
|
|
84
|
+
},
|
|
85
|
+
"targetAmount": {
|
|
86
|
+
"currency": "TZS",
|
|
87
|
+
"amount": "48000"
|
|
88
|
+
},
|
|
89
|
+
"condition": "{$inputs.condition}"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"fileInfo": {
|
|
94
|
+
"path": "fxp/SDK_backend.json"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|