@mojaloop/sdk-scheme-adapter 12.2.3 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +3 -0
- package/CHANGELOG.md +26 -0
- package/audit-resolve.json +71 -1
- package/docker/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.1/trigger_templates/transaction_request_followup.json +2 -2
- package/docker/ml-testing-toolkit/spec_files/rules_callback/default.json +7 -7
- package/docker/ml-testing-toolkit/spec_files/rules_response/default.json +16 -16
- package/docker/ml-testing-toolkit/spec_files/rules_response/default_pisp_rules.json +5 -5
- package/docker/ml-testing-toolkit/spec_files/rules_validation/default.json +10 -10
- package/package.json +5 -3
- package/src/InboundServer/handlers.js +114 -52
- package/src/OutboundServer/api.yaml +54 -3
- package/src/OutboundServer/api_interfaces/openapi.d.ts +24 -3
- package/src/OutboundServer/api_template/components/schemas/accountsResponse.yaml +9 -0
- package/src/OutboundServer/api_template/components/schemas/transferRequest.yaml +3 -0
- package/src/OutboundServer/api_template/components/schemas/transferResponse.yaml +28 -2
- package/src/OutboundServer/api_template/components/schemas/transferStatusResponse.yaml +8 -1
- package/src/OutboundServer/handlers.js +4 -1
- package/src/OutboundServer/index.js +6 -4
- package/src/config.js +1 -1
- package/src/index.js +198 -8
- package/src/lib/cache.js +110 -52
- package/src/lib/metrics.js +148 -0
- package/src/lib/model/AccountsModel.js +13 -11
- package/src/lib/model/InboundTransfersModel.js +166 -24
- package/src/lib/model/OutboundRequestToPayModel.js +5 -6
- package/src/lib/model/OutboundRequestToPayTransferModel.js +2 -2
- package/src/lib/model/OutboundTransfersModel.js +314 -52
- package/src/lib/model/PartiesModel.js +1 -1
- package/src/lib/model/common/BackendError.js +28 -4
- package/src/lib/model/common/index.js +2 -1
- package/test/__mocks__/@mojaloop/sdk-standard-components.js +3 -2
- package/test/__mocks__/redis.js +4 -0
- package/test/integration/lib/Outbound/parties.test.js +1 -1
- package/test/unit/InboundServer.test.js +9 -9
- package/test/unit/TestServer.test.js +11 -13
- package/test/unit/api/accounts/data/postAccountsErrorMojaloopResponse.json +11 -3
- package/test/unit/api/accounts/data/postAccountsSuccessResponse.json +14 -0
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json +13 -0
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError2.json +18 -0
- package/test/unit/api/accounts/utils.js +15 -1
- package/test/unit/api/transfers/data/getTransfersCommittedResponse.json +18 -15
- package/test/unit/api/transfers/data/getTransfersErrorNotFound.json +1 -0
- package/test/unit/api/transfers/data/postTransfersErrorMojaloopResponse.json +9 -0
- package/test/unit/api/transfers/data/postTransfersErrorTimeoutResponse.json +1 -0
- package/test/unit/api/transfers/data/postTransfersSuccessResponse.json +74 -47
- package/test/unit/api/transfers/utils.js +85 -4
- package/test/unit/api/utils.js +4 -1
- package/test/unit/data/commonHttpHeaders.json +1 -0
- package/test/unit/inboundApi/handlers.test.js +45 -14
- package/test/unit/index.test.js +95 -3
- package/test/unit/lib/model/AccountsModel.test.js +9 -6
- package/test/unit/lib/model/InboundTransfersModel.test.js +210 -30
- package/test/unit/lib/model/OutboundRequestToPayModel.test.js +1 -1
- package/test/unit/lib/model/OutboundRequestToPayTransferModel.test.js +3 -3
- package/test/unit/lib/model/OutboundTransfersModel.test.js +862 -157
- package/test/unit/lib/model/data/defaultConfig.json +9 -9
- package/test/unit/lib/model/data/mockArguments.json +97 -40
- package/test/unit/lib/model/data/payeeParty.json +13 -11
- package/test/unit/lib/model/data/quoteResponse.json +36 -25
- package/test/unit/lib/model/data/transferFulfil.json +5 -3
package/.env.example
CHANGED
|
@@ -136,6 +136,9 @@ ALS_ENDPOINT=127.0.0.1:6500
|
|
|
136
136
|
# To allow transfer without a previous quote request, set this value to true.
|
|
137
137
|
# The incoming transfer request should consists of an ILP packet and a matching condition in this case.
|
|
138
138
|
# The fulfilment will be generated from the provided ILP packet, and must hash to the provided condition.
|
|
139
|
+
# If using the sdk-scheme-adapter in place of the deprecated `mojaloop-connector`
|
|
140
|
+
# make sure this is false. Scenarios that use `mojaloop-connector`
|
|
141
|
+
# absolutely requires a previous quote before allowing a transfer to proceed.
|
|
139
142
|
ALLOW_TRANSFER_WITHOUT_QUOTE=false
|
|
140
143
|
|
|
141
144
|
# To enable request for notification on fulfiled transfer
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
# Changelog: [mojaloop/thirdparty-api-svc](https://github.com/mojaloop/thirdparty-api-svc)
|
|
2
|
+
### [13.0.1](https://github.com/mojaloop/sdk-scheme-adapter/compare/v13.0.0...v13.0.1) (2022-05-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* update package.json with main and type correct path ([#315](https://github.com/mojaloop/sdk-scheme-adapter/issues/315)) ([6d0f9b5](https://github.com/mojaloop/sdk-scheme-adapter/commit/6d0f9b541f79fa50cb6c89a3ac47cf97155f60ae))
|
|
8
|
+
|
|
9
|
+
## [13.0.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v12.3.0...v13.0.0) (2022-05-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### ⚠ BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* merge in mojaloop-connector differences (#314)
|
|
15
|
+
|
|
16
|
+
### Refactors
|
|
17
|
+
|
|
18
|
+
* merge in mojaloop-connector differences ([#314](https://github.com/mojaloop/sdk-scheme-adapter/issues/314)) ([e2626f9](https://github.com/mojaloop/sdk-scheme-adapter/commit/e2626f97cd13da7dc3d6d5aaf1d8cadd82fcffcc))
|
|
19
|
+
|
|
20
|
+
## [12.3.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v12.2.3...v12.3.0) (2022-05-04)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* port over prom client metrics ([#312](https://github.com/mojaloop/sdk-scheme-adapter/issues/312)) ([8de66d5](https://github.com/mojaloop/sdk-scheme-adapter/commit/8de66d505b94cddb5e3b8e857ae491f85058d395))
|
|
26
|
+
* pull in live reconfiguration logic ([#313](https://github.com/mojaloop/sdk-scheme-adapter/issues/313)) ([ae5648a](https://github.com/mojaloop/sdk-scheme-adapter/commit/ae5648a500eaab80804db0298facc1e352482fb9))
|
|
27
|
+
|
|
2
28
|
### [12.2.3](https://github.com/mojaloop/sdk-scheme-adapter/compare/v12.2.2...v12.2.3) (2022-04-26)
|
|
3
29
|
|
|
4
30
|
|
package/audit-resolve.json
CHANGED
|
@@ -434,8 +434,78 @@
|
|
|
434
434
|
"decision": "ignore",
|
|
435
435
|
"madeAt": 1650459475376,
|
|
436
436
|
"expiresAt": 1653051469252
|
|
437
|
+
},
|
|
438
|
+
"1070245|@mojaloop/central-services-shared>@mojaloop/event-sdk>moment": {
|
|
439
|
+
"decision": "ignore",
|
|
440
|
+
"madeAt": 1651072086111,
|
|
441
|
+
"expiresAt": 1653664079920
|
|
442
|
+
},
|
|
443
|
+
"1070245|@mojaloop/event-sdk>moment": {
|
|
444
|
+
"decision": "ignore",
|
|
445
|
+
"madeAt": 1651072086111,
|
|
446
|
+
"expiresAt": 1653664079920
|
|
447
|
+
},
|
|
448
|
+
"1070030|@mojaloop/central-services-shared>@mojaloop/event-sdk>moment>shins>markdown-it": {
|
|
449
|
+
"decision": "ignore",
|
|
450
|
+
"madeAt": 1651072088351,
|
|
451
|
+
"expiresAt": 1653664079920
|
|
452
|
+
},
|
|
453
|
+
"1070030|widdershins>markdown-it": {
|
|
454
|
+
"decision": "ignore",
|
|
455
|
+
"madeAt": 1651072088351,
|
|
456
|
+
"expiresAt": 1653664079920
|
|
457
|
+
},
|
|
458
|
+
"1068154|@mojaloop/central-services-shared>@mojaloop/event-sdk>moment>shins>markdown-it>sanitize-html": {
|
|
459
|
+
"decision": "ignore",
|
|
460
|
+
"madeAt": 1651072089481,
|
|
461
|
+
"expiresAt": 1653664079920
|
|
462
|
+
},
|
|
463
|
+
"1068155|@mojaloop/central-services-shared>@mojaloop/event-sdk>moment>shins>markdown-it>sanitize-html": {
|
|
464
|
+
"decision": "ignore",
|
|
465
|
+
"madeAt": 1651072090420,
|
|
466
|
+
"expiresAt": 1653664079920
|
|
467
|
+
},
|
|
468
|
+
"1070250|ansi-regex": {
|
|
469
|
+
"decision": "ignore",
|
|
470
|
+
"madeAt": 1651072091389,
|
|
471
|
+
"expiresAt": 1653664079920
|
|
472
|
+
},
|
|
473
|
+
"1070252|ansi-regex": {
|
|
474
|
+
"decision": "ignore",
|
|
475
|
+
"madeAt": 1651072092335,
|
|
476
|
+
"expiresAt": 1653664079920
|
|
477
|
+
},
|
|
478
|
+
"1070256|ejs": {
|
|
479
|
+
"decision": "ignore",
|
|
480
|
+
"madeAt": 1651072093304,
|
|
481
|
+
"expiresAt": 1653664079920
|
|
482
|
+
},
|
|
483
|
+
"1067536|json-pointer": {
|
|
484
|
+
"decision": "ignore",
|
|
485
|
+
"madeAt": 1651072094695,
|
|
486
|
+
"expiresAt": 1653664079920
|
|
487
|
+
},
|
|
488
|
+
"1067553|swagger2openapi>better-ajv-errors>jsonpointer": {
|
|
489
|
+
"decision": "ignore",
|
|
490
|
+
"madeAt": 1651072095680,
|
|
491
|
+
"expiresAt": 1653664079920
|
|
492
|
+
},
|
|
493
|
+
"1067946|swagger2openapi>better-ajv-errors>jsonpointer>oas-validator>ajv": {
|
|
494
|
+
"decision": "ignore",
|
|
495
|
+
"madeAt": 1651072096735,
|
|
496
|
+
"expiresAt": 1653664079920
|
|
497
|
+
},
|
|
498
|
+
"1068310|widdershins>markdown-it>yargs>yargs-parser": {
|
|
499
|
+
"decision": "ignore",
|
|
500
|
+
"madeAt": 1651072098082,
|
|
501
|
+
"expiresAt": 1653664079920
|
|
502
|
+
},
|
|
503
|
+
"1070260|@mojaloop/central-services-shared>shins>sanitize-html": {
|
|
504
|
+
"decision": "ignore",
|
|
505
|
+
"madeAt": 1651249549067,
|
|
506
|
+
"expiresAt": 1653841542147
|
|
437
507
|
}
|
|
438
508
|
},
|
|
439
509
|
"rules": {},
|
|
440
510
|
"version": 1
|
|
441
|
-
}
|
|
511
|
+
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"payerFirstName": "Vijay",
|
|
5
5
|
"payerLastName": "Kumar",
|
|
6
6
|
"payerDOB": "1984-01-01",
|
|
7
|
-
"accept": "application/vnd.interoperability.parties+json;version=1.
|
|
8
|
-
"contentType": "application/vnd.interoperability.parties+json;version=1.
|
|
7
|
+
"accept": "application/vnd.interoperability.parties+json;version=1.1",
|
|
8
|
+
"contentType": "application/vnd.interoperability.parties+json;version=1.1",
|
|
9
9
|
"transactionId": "e8c4572c-0826-22f4-aa3e-f5bbe928afa6",
|
|
10
10
|
"TrsNote": "note",
|
|
11
11
|
"TrsCurrency": "USD",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"path": "/parties/{Type}/{ID}",
|
|
41
41
|
"params": {
|
|
42
42
|
"headers": {
|
|
43
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
43
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
44
44
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
45
45
|
"X-Forwarded-For": "sed eiusmod sunt",
|
|
46
46
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"path": "/parties/{Type}/{ID}",
|
|
120
120
|
"params": {
|
|
121
121
|
"headers": {
|
|
122
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
122
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
123
123
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
124
124
|
"X-Forwarded-For": "sed eiusmod sunt",
|
|
125
125
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"path": "/quotes/{ID}",
|
|
193
193
|
"params": {
|
|
194
194
|
"headers": {
|
|
195
|
-
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.
|
|
195
|
+
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.1",
|
|
196
196
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
197
197
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
198
198
|
"FSPIOP-Destination": "mojaloop-sdk",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"path": "/quotes/{ID}",
|
|
273
273
|
"params": {
|
|
274
274
|
"headers": {
|
|
275
|
-
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.
|
|
275
|
+
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.1",
|
|
276
276
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
277
277
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
278
278
|
"FSPIOP-Destination": "mojaloop-sdk",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"path": "/transfers/{ID}",
|
|
358
358
|
"params": {
|
|
359
359
|
"headers": {
|
|
360
|
-
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.
|
|
360
|
+
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.1",
|
|
361
361
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
362
362
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
363
363
|
"FSPIOP-Destination": "mojaloop-sdk",
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"path": "/transfers/{ID}",
|
|
406
406
|
"params": {
|
|
407
407
|
"headers": {
|
|
408
|
-
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.
|
|
408
|
+
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.1",
|
|
409
409
|
"Date": "Wed, 27 May 2020 11:13:34 GMT",
|
|
410
410
|
"FSPIOP-Source": "{$config.FSPID}",
|
|
411
411
|
"FSPIOP-Destination": "mojaloop-sdk",
|
|
@@ -423,4 +423,4 @@
|
|
|
423
423
|
"type": "callback",
|
|
424
424
|
"version": 1
|
|
425
425
|
}
|
|
426
|
-
]
|
|
426
|
+
]
|
|
@@ -261,8 +261,8 @@
|
|
|
261
261
|
"method: 'post',",
|
|
262
262
|
"header: {",
|
|
263
263
|
" 'FSPIOP-Source': 'dfspA',",
|
|
264
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
265
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
264
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
265
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
266
266
|
" 'Date': curDate",
|
|
267
267
|
"},",
|
|
268
268
|
"body: {",
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
"method: 'put',",
|
|
343
343
|
"header: {",
|
|
344
344
|
" 'FSPIOP-Source': 'auth.dfspA',",
|
|
345
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
346
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
345
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
346
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
347
347
|
" 'Date': curDate",
|
|
348
348
|
"},",
|
|
349
349
|
"body: {",
|
|
@@ -828,8 +828,8 @@
|
|
|
828
828
|
" method: 'put',",
|
|
829
829
|
" header: {",
|
|
830
830
|
" 'FSPIOP-Source': 'pispA',",
|
|
831
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
832
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
831
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
832
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
833
833
|
" 'Date': curDate",
|
|
834
834
|
" },",
|
|
835
835
|
" body: {",
|
|
@@ -909,8 +909,8 @@
|
|
|
909
909
|
" method: 'put',",
|
|
910
910
|
" header: {",
|
|
911
911
|
" 'FSPIOP-Source': 'pispA',",
|
|
912
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
913
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
912
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
913
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
914
914
|
" 'Date': curDate",
|
|
915
915
|
" },",
|
|
916
916
|
" body: {",
|
|
@@ -997,8 +997,8 @@
|
|
|
997
997
|
"method: 'put',",
|
|
998
998
|
"header: {",
|
|
999
999
|
" 'FSPIOP-Source': 'auth.dfspA',",
|
|
1000
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
1001
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
1000
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
1001
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
1002
1002
|
" 'Date': curDate",
|
|
1003
1003
|
"},",
|
|
1004
1004
|
"body: {",
|
|
@@ -1092,8 +1092,8 @@
|
|
|
1092
1092
|
"method: 'delete',",
|
|
1093
1093
|
"header: {",
|
|
1094
1094
|
" 'FSPIOP-Source': 'dfspa',",
|
|
1095
|
-
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.
|
|
1096
|
-
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.
|
|
1095
|
+
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1096
|
+
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1097
1097
|
" 'Date': curDate",
|
|
1098
1098
|
"}",
|
|
1099
1099
|
"}",
|
|
@@ -1153,8 +1153,8 @@
|
|
|
1153
1153
|
"method: 'post',",
|
|
1154
1154
|
"header: {",
|
|
1155
1155
|
" 'FSPIOP-Source': 'dfspa',",
|
|
1156
|
-
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.
|
|
1157
|
-
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.
|
|
1156
|
+
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1157
|
+
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1158
1158
|
" 'Date': curDate",
|
|
1159
1159
|
"},",
|
|
1160
1160
|
"body: {",
|
|
@@ -1220,8 +1220,8 @@
|
|
|
1220
1220
|
"method: 'delete',",
|
|
1221
1221
|
"header: {",
|
|
1222
1222
|
" 'FSPIOP-Source': 'dfspa',",
|
|
1223
|
-
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.
|
|
1224
|
-
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.
|
|
1223
|
+
" 'Accept': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1224
|
+
" 'Content-Type': 'application/vnd.interoperability.participants+json;version=1.1',",
|
|
1225
1225
|
" 'Date': curDate",
|
|
1226
1226
|
"}",
|
|
1227
1227
|
"}",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
" method: 'POST',",
|
|
37
37
|
" header: {",
|
|
38
38
|
" 'FSPIOP-Source': 'switch',",
|
|
39
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
40
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
39
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
40
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
41
41
|
" 'Date': curDate",
|
|
42
42
|
" },",
|
|
43
43
|
" body: {",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"method: 'patch',",
|
|
136
136
|
"header: {",
|
|
137
137
|
" 'FSPIOP-Source': 'switch',",
|
|
138
|
-
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
139
|
-
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.
|
|
138
|
+
" 'Accept': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
139
|
+
" 'Content-Type': 'application/vnd.interoperability.thirdparty+json;version=1.1',",
|
|
140
140
|
" 'Date': curDate",
|
|
141
141
|
"},",
|
|
142
142
|
"body: {",
|
|
@@ -158,4 +158,4 @@
|
|
|
158
158
|
"type": "response",
|
|
159
159
|
"version": 1
|
|
160
160
|
}
|
|
161
|
-
]
|
|
161
|
+
]
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"path": "/parties/{Type}/{ID}/error",
|
|
41
41
|
"params": {
|
|
42
42
|
"headers": {
|
|
43
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
43
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
44
44
|
"Date": "Fri, 02 Feb 1996 03:04:05 GMT",
|
|
45
45
|
"FSPIOP-Source": "switch"
|
|
46
46
|
},
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"path": "/parties/{Type}/{ID}/error",
|
|
111
111
|
"params": {
|
|
112
112
|
"headers": {
|
|
113
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
113
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
114
114
|
"Date": "Fri, 02 Feb 1996 03:04:05 GMT",
|
|
115
115
|
"FSPIOP-Source": "switch"
|
|
116
116
|
},
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"path": "/parties/{Type}/{ID}/error",
|
|
181
181
|
"params": {
|
|
182
182
|
"headers": {
|
|
183
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
183
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
184
184
|
"Date": "Fri, 02 Feb 1996 03:04:05 GMT",
|
|
185
185
|
"FSPIOP-Source": "switch"
|
|
186
186
|
},
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"path": "/parties/{Type}/{ID}/error",
|
|
251
251
|
"params": {
|
|
252
252
|
"headers": {
|
|
253
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
253
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
254
254
|
"Date": "Fri, 02 Feb 1996 03:04:05 GMT",
|
|
255
255
|
"FSPIOP-Source": "switch"
|
|
256
256
|
},
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"path": "/parties/{Type}/{ID}/error",
|
|
321
321
|
"params": {
|
|
322
322
|
"headers": {
|
|
323
|
-
"Content-Type": "application/vnd.interoperability.parties+json;version=1.
|
|
323
|
+
"Content-Type": "application/vnd.interoperability.parties+json;version=1.1",
|
|
324
324
|
"Date": "Fri, 02 Feb 1996 03:04:05 GMT",
|
|
325
325
|
"FSPIOP-Source": "switch"
|
|
326
326
|
},
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
"path": "/thirdpartyRequests/transactions/{ID}/error",
|
|
385
385
|
"params": {
|
|
386
386
|
"headers": {
|
|
387
|
-
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.
|
|
387
|
+
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.1",
|
|
388
388
|
"Date": "Fri, 02 Feb 2020 03:04:05 GMT",
|
|
389
389
|
"FSPIOP-Source": "switch"
|
|
390
390
|
},
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"path": "/thirdpartyRequests/transactions/{ID}/error",
|
|
449
449
|
"params": {
|
|
450
450
|
"headers": {
|
|
451
|
-
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.
|
|
451
|
+
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.1",
|
|
452
452
|
"Date": "Fri, 02 Feb 2020 03:04:05 GMT",
|
|
453
453
|
"FSPIOP-Source": "switch"
|
|
454
454
|
},
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
"path": "/thirdpartyRequests/transactions/{ID}/error",
|
|
513
513
|
"params": {
|
|
514
514
|
"headers": {
|
|
515
|
-
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.
|
|
515
|
+
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.1",
|
|
516
516
|
"Date": "Fri, 02 Feb 2020 03:04:05 GMT",
|
|
517
517
|
"FSPIOP-Source": "switch"
|
|
518
518
|
},
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
"path": "/thirdpartyRequests/transactions/{ID}/error",
|
|
577
577
|
"params": {
|
|
578
578
|
"headers": {
|
|
579
|
-
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.
|
|
579
|
+
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.1",
|
|
580
580
|
"Date": "Fri, 02 Feb 2020 03:04:05 GMT",
|
|
581
581
|
"FSPIOP-Source": "switch"
|
|
582
582
|
},
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
"path": "/thirdpartyRequests/transactions/{ID}/error",
|
|
641
641
|
"params": {
|
|
642
642
|
"headers": {
|
|
643
|
-
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.
|
|
643
|
+
"Content-Type": "application/vnd.interoperability.thirdparty+json;version=1.1",
|
|
644
644
|
"Date": "Fri, 02 Feb 2020 03:04:05 GMT",
|
|
645
645
|
"FSPIOP-Source": "switch"
|
|
646
646
|
},
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.1",
|
|
4
4
|
"description": "An adapter for connecting to Mojaloop API enabled switches.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"types": "src/index.d.ts",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "=16.x"
|
|
9
9
|
},
|
|
@@ -74,9 +74,11 @@
|
|
|
74
74
|
"json-schema-ref-parser": "^9.0.9",
|
|
75
75
|
"koa": "^2.13.1",
|
|
76
76
|
"koa-body": "^4.2.0",
|
|
77
|
+
"lodash": "^4.17.21",
|
|
77
78
|
"module-alias": "^2.2.2",
|
|
78
79
|
"oauth2-server": "^4.0.0-dev.2",
|
|
79
80
|
"openapi-jsonschema-parameters": "^9.3.0",
|
|
81
|
+
"prom-client": "^12.0.0",
|
|
80
82
|
"promise-timeout": "^1.3.0",
|
|
81
83
|
"random-word-slugs": "^0.1.6",
|
|
82
84
|
"redis": "^3.1.2",
|