@mojaloop/sdk-scheme-adapter 18.0.0 → 18.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/.dockerignore +18 -0
- package/.eslintignore +2 -0
- package/CHANGELOG.md +8 -0
- package/audit-resolve.json +5 -0
- package/package.json +2 -2
- package/test/__mocks__/@mojaloop/sdk-standard-components.js +0 -151
- package/test/__mocks__/javascript-state-machine.js +0 -21
- package/test/__mocks__/redis.js +0 -78
- package/test/__mocks__/uuidv4.js +0 -16
- package/test/config/integration.env +0 -146
- package/test/integration/lib/Outbound/data/quotesPostRequest.json +0 -52
- package/test/integration/lib/Outbound/data/transfersPostRequest.json +0 -24
- package/test/integration/lib/Outbound/parties.test.js +0 -31
- package/test/integration/lib/Outbound/quotes.test.js +0 -62
- package/test/integration/lib/Outbound/simpleTransfers.test.js +0 -70
- package/test/integration/lib/cache.test.js +0 -79
- package/test/integration/testEnv.js +0 -4
- package/test/unit/ControlClient.test.js +0 -69
- package/test/unit/ControlServer/events.js +0 -41
- package/test/unit/ControlServer/index.js +0 -227
- package/test/unit/ControlServer.test.js +0 -66
- package/test/unit/InboundServer.test.js +0 -443
- package/test/unit/TestServer.test.js +0 -392
- package/test/unit/api/accounts/accounts.test.js +0 -128
- package/test/unit/api/accounts/data/postAccountsBody.json +0 -7
- package/test/unit/api/accounts/data/postAccountsErrorMojaloopResponse.json +0 -33
- package/test/unit/api/accounts/data/postAccountsErrorTimeoutResponse.json +0 -19
- package/test/unit/api/accounts/data/postAccountsSuccessResponse.json +0 -31
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json +0 -34
- package/test/unit/api/accounts/data/postAccountsSuccessResponseWithError2.json +0 -39
- package/test/unit/api/accounts/utils.js +0 -79
- package/test/unit/api/proxy/data/proxyConfig.yaml +0 -82
- package/test/unit/api/proxy/data/requestBody.json +0 -22
- package/test/unit/api/proxy/data/requestHeaders.json +0 -5
- package/test/unit/api/proxy/data/requestQuery.json +0 -6
- package/test/unit/api/proxy/data/responseBody.json +0 -21
- package/test/unit/api/proxy/data/responseHeaders.json +0 -5
- package/test/unit/api/proxy/proxy.test.js +0 -220
- package/test/unit/api/proxy/utils.js +0 -79
- package/test/unit/api/transfers/data/getTransfersCommittedResponse.json +0 -24
- package/test/unit/api/transfers/data/getTransfersErrorNotFound.json +0 -18
- package/test/unit/api/transfers/data/postQuotesBody.json +0 -52
- package/test/unit/api/transfers/data/postTransfersBadBody.json +0 -17
- package/test/unit/api/transfers/data/postTransfersBody.json +0 -24
- package/test/unit/api/transfers/data/postTransfersErrorMojaloopResponse.json +0 -62
- package/test/unit/api/transfers/data/postTransfersErrorTimeoutResponse.json +0 -48
- package/test/unit/api/transfers/data/postTransfersSimpleBody.json +0 -26
- package/test/unit/api/transfers/data/postTransfersSuccessResponse.json +0 -128
- package/test/unit/api/transfers/data/putPartiesBody.json +0 -20
- package/test/unit/api/transfers/data/putQuotesBody.json +0 -37
- package/test/unit/api/transfers/data/putTransfersBody.json +0 -17
- package/test/unit/api/transfers/transfers.test.js +0 -191
- package/test/unit/api/transfers/utils.js +0 -264
- package/test/unit/api/utils.js +0 -86
- package/test/unit/config.test.js +0 -119
- package/test/unit/data/commonHttpHeaders.json +0 -7
- package/test/unit/data/defaultConfig.json +0 -70
- package/test/unit/data/postQuotesBody.json +0 -52
- package/test/unit/data/putParticipantsBody.json +0 -12
- package/test/unit/data/putPartiesBody.json +0 -20
- package/test/unit/data/testFile.json +0 -29
- package/test/unit/data/testFile.yaml +0 -14
- package/test/unit/inboundApi/data/mockArguments.json +0 -117
- package/test/unit/inboundApi/data/mockTransactionRequest.json +0 -42
- package/test/unit/inboundApi/handlers.test.js +0 -786
- package/test/unit/index.test.js +0 -88
- package/test/unit/lib/cache.test.js +0 -145
- package/test/unit/lib/model/AccountsModel.test.js +0 -124
- package/test/unit/lib/model/InboundTransfersModel.test.js +0 -889
- package/test/unit/lib/model/OutboundBulkQuotesModel.test.js +0 -253
- package/test/unit/lib/model/OutboundBulkTransfersModel.test.js +0 -247
- package/test/unit/lib/model/OutboundRequestToPayModel.test.js +0 -166
- package/test/unit/lib/model/OutboundRequestToPayTransferModel.test.js +0 -245
- package/test/unit/lib/model/OutboundTransfersModel.test.js +0 -1579
- package/test/unit/lib/model/PartiesModel.test.js +0 -478
- package/test/unit/lib/model/QuotesModel.test.js +0 -477
- package/test/unit/lib/model/TransfersModel.test.js +0 -481
- package/test/unit/lib/model/common/PersistentStateMachine.test.js +0 -178
- package/test/unit/lib/model/data/authorizationsResponse.json +0 -13
- package/test/unit/lib/model/data/bulkQuoteRequest.json +0 -27
- package/test/unit/lib/model/data/bulkQuoteResponse.json +0 -35
- package/test/unit/lib/model/data/bulkTransferFulfil.json +0 -13
- package/test/unit/lib/model/data/bulkTransferRequest.json +0 -29
- package/test/unit/lib/model/data/defaultConfig.json +0 -59
- package/test/unit/lib/model/data/getBulkTransfersBackendResponse.json +0 -42
- package/test/unit/lib/model/data/getBulkTransfersMojaloopResponse.json +0 -22
- package/test/unit/lib/model/data/getTransfersBackendResponse.json +0 -34
- package/test/unit/lib/model/data/getTransfersMojaloopResponse.json +0 -17
- package/test/unit/lib/model/data/mockArguments.json +0 -188
- package/test/unit/lib/model/data/mockTxnRequestsArguments.json +0 -63
- package/test/unit/lib/model/data/notificationAbortedToPayee.json +0 -10
- package/test/unit/lib/model/data/notificationReservedToPayee.json +0 -10
- package/test/unit/lib/model/data/notificationToPayee.json +0 -10
- package/test/unit/lib/model/data/payeeParty.json +0 -18
- package/test/unit/lib/model/data/putQuotesResponse.json +0 -33
- package/test/unit/lib/model/data/putTransfersResponse.json +0 -5
- package/test/unit/lib/model/data/quoteResponse.json +0 -42
- package/test/unit/lib/model/data/requestToPayRequest.json +0 -20
- package/test/unit/lib/model/data/requestToPayTransferRequest.json +0 -27
- package/test/unit/lib/model/data/transactionRequestResponse.json +0 -18
- package/test/unit/lib/model/data/transferFulfil.json +0 -10
- package/test/unit/lib/model/data/transferRequest.json +0 -26
- package/test/unit/lib/model/mockedLibRequests.js +0 -74
- package/test/unit/mockLogger.js +0 -39
- package/test/unit/outboundApi/data/bulkQuoteRequest.json +0 -28
- package/test/unit/outboundApi/data/bulkTransferRequest.json +0 -28
- package/test/unit/outboundApi/data/mockBulkQuoteError.json +0 -45
- package/test/unit/outboundApi/data/mockBulkTransferError.json +0 -48
- package/test/unit/outboundApi/data/mockError.json +0 -41
- package/test/unit/outboundApi/data/mockGetPartiesError.json +0 -4
- package/test/unit/outboundApi/data/mockRequestToPayError.json +0 -32
- package/test/unit/outboundApi/data/mockRequestToPayTransferError.json +0 -39
- package/test/unit/outboundApi/data/requestToPay.json +0 -21
- package/test/unit/outboundApi/data/requestToPayTransferRequest.json +0 -20
- package/test/unit/outboundApi/data/transferRequest.json +0 -21
- package/test/unit/outboundApi/handlers.test.js +0 -887
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"homeTransactionId": "{{$guid}}",
|
|
3
|
-
"from": {
|
|
4
|
-
"idType": "BUSINESS",
|
|
5
|
-
"idValue": "Starbucks",
|
|
6
|
-
"displayName": "Starbucks Coffee"
|
|
7
|
-
},
|
|
8
|
-
"to": {
|
|
9
|
-
"idType": "PERSONAL_ID",
|
|
10
|
-
"idValue": "123456789",
|
|
11
|
-
"idSubValue": "PASSPORT"
|
|
12
|
-
},
|
|
13
|
-
"amountType": "SEND",
|
|
14
|
-
"currency": "USD",
|
|
15
|
-
"amount": "10",
|
|
16
|
-
"scenario":"PAYMENT",
|
|
17
|
-
"initiator":"PAYEE",
|
|
18
|
-
"initiatorType":"BUSINESS",
|
|
19
|
-
"note": "test payment"
|
|
20
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"requestToPayTransactionId": "123ABC",
|
|
3
|
-
"from": {
|
|
4
|
-
"displayName": "Customer",
|
|
5
|
-
"idType": "MSISDN",
|
|
6
|
-
"idValue": "447710066017"
|
|
7
|
-
},
|
|
8
|
-
"to": {
|
|
9
|
-
"idType": "BUSINESS",
|
|
10
|
-
"idValue": "Starbucks"
|
|
11
|
-
},
|
|
12
|
-
"amountType": "SEND",
|
|
13
|
-
"currency": "USD",
|
|
14
|
-
"amount": "100",
|
|
15
|
-
"scenario":"PAYMENT",
|
|
16
|
-
"initiator":"PAYEE",
|
|
17
|
-
"initiatorType":"DEVICE",
|
|
18
|
-
"note": "test payment",
|
|
19
|
-
"quoteRequestExtensions": [
|
|
20
|
-
{ "key": "qkey1", "value": "qvalue1" },
|
|
21
|
-
{ "key": "qkey2", "value": "qvalue2" }
|
|
22
|
-
],
|
|
23
|
-
"transferRequestExtensions": [
|
|
24
|
-
{ "key": "tkey1", "value": "tvalue1" },
|
|
25
|
-
{ "key": "tkey2", "value": "tvalue2" }
|
|
26
|
-
]
|
|
27
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "transactionRequestResponse",
|
|
3
|
-
"data": {
|
|
4
|
-
"transactionId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
5
|
-
"transactionRequestState": "RECEIVED",
|
|
6
|
-
"extensionList": {
|
|
7
|
-
"extension": [
|
|
8
|
-
{
|
|
9
|
-
"key": "key1",
|
|
10
|
-
"value": "value1"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"headers": {
|
|
16
|
-
"fspiop-source": "foo"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"from": {
|
|
3
|
-
"displayName": "James Bush",
|
|
4
|
-
"idType": "MSISDN",
|
|
5
|
-
"idValue": "447710066017"
|
|
6
|
-
},
|
|
7
|
-
"to": {
|
|
8
|
-
"idType": "PERSONAL_ID",
|
|
9
|
-
"idValue": "123456789",
|
|
10
|
-
"idSubValue": "PASSPORT"
|
|
11
|
-
},
|
|
12
|
-
"amountType": "SEND",
|
|
13
|
-
"currency": "USD",
|
|
14
|
-
"amount": "100",
|
|
15
|
-
"transactionType": "TRANSFER",
|
|
16
|
-
"note": "test payment",
|
|
17
|
-
"homeTransactionId": "123ABC",
|
|
18
|
-
"quoteRequestExtensions": [
|
|
19
|
-
{ "key": "qkey1", "value": "qvalue1" },
|
|
20
|
-
{ "key": "qkey2", "value": "qvalue2" }
|
|
21
|
-
],
|
|
22
|
-
"transferRequestExtensions": [
|
|
23
|
-
{ "key": "tkey1", "value": "tvalue1" },
|
|
24
|
-
{ "key": "tkey2", "value": "tvalue2" }
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**************************************************************************
|
|
2
|
-
* (C) Copyright ModusBox Inc. 2019 - All rights reserved. *
|
|
3
|
-
* *
|
|
4
|
-
* This file is made available under the terms of the license agreement *
|
|
5
|
-
* specified in the corresponding source code repository. *
|
|
6
|
-
* *
|
|
7
|
-
* ORIGINAL AUTHOR: *
|
|
8
|
-
* James Bush - james.bush@modusbox.com *
|
|
9
|
-
**************************************************************************/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
const util = require('util');
|
|
14
|
-
const { BackendRequests } = jest.requireActual('~/lib/model/lib/requests');
|
|
15
|
-
|
|
16
|
-
const respErrSym = Symbol('ResponseErrorDataSym');
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* A class for making requests to DFSP backend API
|
|
20
|
-
*/
|
|
21
|
-
class MockBackendRequests extends BackendRequests {
|
|
22
|
-
constructor(...args) {
|
|
23
|
-
super(...args);
|
|
24
|
-
MockBackendRequests.__instance = this;
|
|
25
|
-
this.getOTP = MockBackendRequests.__getOTP;
|
|
26
|
-
this.getParties = MockBackendRequests.__getParties;
|
|
27
|
-
this.postTransactionRequests = MockBackendRequests.__postTransactionRequests;
|
|
28
|
-
this.postQuoteRequests = MockBackendRequests.__postQuoteRequests;
|
|
29
|
-
this.getTransfers = MockBackendRequests.__getTransfers;
|
|
30
|
-
this.postTransfers = MockBackendRequests.__postTransfers;
|
|
31
|
-
this.getBulkQuotes = MockBackendRequests.__getBulkQuotes;
|
|
32
|
-
this.postBulkQuotes = MockBackendRequests.__postBulkQuotes;
|
|
33
|
-
this.getBulkTransfers = MockBackendRequests.__getBulkTransfers;
|
|
34
|
-
this.postBulkTransfers = MockBackendRequests.__postBulkTransfers;
|
|
35
|
-
this.putTransfersNotification = MockBackendRequests.__putTransfersNotification;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
MockBackendRequests.__getParties = jest.fn(() => Promise.resolve({body: {}}));
|
|
39
|
-
MockBackendRequests.__getOTP = jest.fn(() => Promise.resolve({body: {}}));
|
|
40
|
-
MockBackendRequests.__postTransactionRequests = jest.fn(() => Promise.resolve({body: {}}));
|
|
41
|
-
MockBackendRequests.__postQuoteRequests = jest.fn(() => Promise.resolve({body: {}}));
|
|
42
|
-
MockBackendRequests.__getTransfers = jest.fn(() => Promise.resolve({body: {}}));
|
|
43
|
-
MockBackendRequests.__postTransfers = jest.fn(() => Promise.resolve({body: {}}));
|
|
44
|
-
MockBackendRequests.__getBulkQuotes = jest.fn(() => Promise.resolve({body: {}}));
|
|
45
|
-
MockBackendRequests.__postBulkQuotes = jest.fn(() => Promise.resolve({body: {}}));
|
|
46
|
-
MockBackendRequests.__getBulkTransfers = jest.fn(() => Promise.resolve({body: {}}));
|
|
47
|
-
MockBackendRequests.__postBulkTransfers = jest.fn(() => Promise.resolve({body: {}}));
|
|
48
|
-
MockBackendRequests.__putTransfersNotification = jest.fn(() => Promise.resolve({body: {}}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class HTTPResponseError extends Error {
|
|
52
|
-
constructor(params) {
|
|
53
|
-
super(params.msg);
|
|
54
|
-
this[respErrSym] = params;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
getData() {
|
|
58
|
-
return this[respErrSym];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
toString() {
|
|
62
|
-
return util.inspect(this[respErrSym]);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
toJSON() {
|
|
66
|
-
return JSON.stringify(this[respErrSym]);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
module.exports = {
|
|
72
|
-
BackendRequests: MockBackendRequests,
|
|
73
|
-
HTTPResponseError: HTTPResponseError
|
|
74
|
-
};
|
package/test/unit/mockLogger.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**************************************************************************
|
|
2
|
-
* (C) Copyright ModusBox Inc. 2020 - All rights reserved. *
|
|
3
|
-
* *
|
|
4
|
-
* This file is made available under the terms of the license agreement *
|
|
5
|
-
* specified in the corresponding source code repository. *
|
|
6
|
-
* *
|
|
7
|
-
* ORIGINAL AUTHOR: *
|
|
8
|
-
* Paweł Marzec - pawel.marzec@modusbox.com *
|
|
9
|
-
**************************************************************************/
|
|
10
|
-
|
|
11
|
-
const { Logger } = require('@mojaloop/sdk-standard-components');
|
|
12
|
-
|
|
13
|
-
function mockLogger(context, keepQuiet) {
|
|
14
|
-
// if keepQuite is undefined then be quiet
|
|
15
|
-
if (keepQuiet || typeof keepQuiet === 'undefined') {
|
|
16
|
-
const methods = {
|
|
17
|
-
// log methods
|
|
18
|
-
log: jest.fn(),
|
|
19
|
-
|
|
20
|
-
configure: jest.fn(),
|
|
21
|
-
|
|
22
|
-
// generated methods from default levels
|
|
23
|
-
verbose: jest.fn(),
|
|
24
|
-
debug: jest.fn(),
|
|
25
|
-
warn: jest.fn(),
|
|
26
|
-
error: jest.fn(),
|
|
27
|
-
trace: jest.fn(),
|
|
28
|
-
info: jest.fn(),
|
|
29
|
-
fatal: jest.fn()
|
|
30
|
-
};
|
|
31
|
-
return {
|
|
32
|
-
...methods,
|
|
33
|
-
push: jest.fn(() => methods)
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return new Logger.Logger();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
module.exports = mockLogger;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"homeTransactionId": "123ABC",
|
|
3
|
-
"from": {
|
|
4
|
-
"displayName": "James Bush",
|
|
5
|
-
"idType": "MSISDN",
|
|
6
|
-
"idValue": "447710066017",
|
|
7
|
-
"extensionList": [
|
|
8
|
-
{
|
|
9
|
-
"key": "accountType",
|
|
10
|
-
"value": "Wallet"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"individualQuotes": [
|
|
15
|
-
{
|
|
16
|
-
"quoteId": "12346789",
|
|
17
|
-
"to": {
|
|
18
|
-
"idType": "MSISDN",
|
|
19
|
-
"idValue": "1234567890"
|
|
20
|
-
},
|
|
21
|
-
"amountType": "SEND",
|
|
22
|
-
"currency": "USD",
|
|
23
|
-
"amount": "100",
|
|
24
|
-
"transactionType": "TRANSFER",
|
|
25
|
-
"note": "test payment"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"homeTransactionId": "123ABC",
|
|
3
|
-
"from": {
|
|
4
|
-
"displayName": "James Bush",
|
|
5
|
-
"idType": "MSISDN",
|
|
6
|
-
"idValue": "447710066017",
|
|
7
|
-
"extensionList": [
|
|
8
|
-
{
|
|
9
|
-
"key": "accountType",
|
|
10
|
-
"value": "Wallet"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"individualTransfers": [
|
|
15
|
-
{
|
|
16
|
-
"transferId": "132435",
|
|
17
|
-
"to": {
|
|
18
|
-
"idType": "MSISDN",
|
|
19
|
-
"idValue": "1234567890"
|
|
20
|
-
},
|
|
21
|
-
"amountType": "SEND",
|
|
22
|
-
"currency": "USD",
|
|
23
|
-
"amount": "100",
|
|
24
|
-
"transactionType": "TRANSFER",
|
|
25
|
-
"note": "test payment"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Mock error",
|
|
3
|
-
"httpStatusCode": 500,
|
|
4
|
-
"bulkQuoteState": {
|
|
5
|
-
"from": {
|
|
6
|
-
"displayName": "James Bush",
|
|
7
|
-
"idType": "MSISDN",
|
|
8
|
-
"idValue": "447710066017"
|
|
9
|
-
},
|
|
10
|
-
"individualQuoteResults": [
|
|
11
|
-
{
|
|
12
|
-
"to": {
|
|
13
|
-
"idType": "MSISDN",
|
|
14
|
-
"idValue": "1234567890"
|
|
15
|
-
},
|
|
16
|
-
"amountType": "SEND",
|
|
17
|
-
"currency": "USD",
|
|
18
|
-
"amount": "100",
|
|
19
|
-
"transactionType": "TRANSFER",
|
|
20
|
-
"note": "test payment",
|
|
21
|
-
"homeTransactionId": "123ABC",
|
|
22
|
-
"transferId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
23
|
-
"currentState": "ERROR_OCCURRED"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"lastError": {
|
|
27
|
-
"httpStatusCode": 500,
|
|
28
|
-
"mojaloopError": {
|
|
29
|
-
"errorInformation": {
|
|
30
|
-
"errorCode": "3204",
|
|
31
|
-
"errorDescription": "Party not found",
|
|
32
|
-
"extensionList": {
|
|
33
|
-
"extension": [{
|
|
34
|
-
"key": "someKey",
|
|
35
|
-
"value": "someValue"
|
|
36
|
-
}, {
|
|
37
|
-
"key": "extErrorKey",
|
|
38
|
-
"value": "9999"
|
|
39
|
-
}]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Mock error",
|
|
3
|
-
"statusCode": 500,
|
|
4
|
-
"bulkTransferState": {
|
|
5
|
-
"from": {
|
|
6
|
-
"displayName": "James Bush",
|
|
7
|
-
"idType": "MSISDN",
|
|
8
|
-
"idValue": "447710066017"
|
|
9
|
-
},
|
|
10
|
-
"to": {
|
|
11
|
-
"idType": "MSISDN",
|
|
12
|
-
"idValue": "1234567890"
|
|
13
|
-
},
|
|
14
|
-
"individualTransferResults": [
|
|
15
|
-
{
|
|
16
|
-
"transferId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
17
|
-
"amountType": "SEND",
|
|
18
|
-
"currency": "USD",
|
|
19
|
-
"amount": "100",
|
|
20
|
-
"transactionType": "TRANSFER",
|
|
21
|
-
"note": "test payment",
|
|
22
|
-
"homeTransactionId": "123ABC",
|
|
23
|
-
"currentState": "ERROR_OCCURRED"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"lastError": {
|
|
27
|
-
"httpStatusCode": 500,
|
|
28
|
-
"mojaloopError": {
|
|
29
|
-
"errorInformation": {
|
|
30
|
-
"errorCode": "3204",
|
|
31
|
-
"errorDescription": "Party not found",
|
|
32
|
-
"extensionList": {
|
|
33
|
-
"extension": [
|
|
34
|
-
{
|
|
35
|
-
"key": "someKey",
|
|
36
|
-
"value": "someValue"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"key": "extErrorKey",
|
|
40
|
-
"value": "9999"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Mock error",
|
|
3
|
-
"httpStatusCode": 500,
|
|
4
|
-
"transferState": {
|
|
5
|
-
"from": {
|
|
6
|
-
"displayName": "James Bush",
|
|
7
|
-
"idType": "MSISDN",
|
|
8
|
-
"idValue": "447710066017"
|
|
9
|
-
},
|
|
10
|
-
"to": {
|
|
11
|
-
"idType": "MSISDN",
|
|
12
|
-
"idValue": "1234567890"
|
|
13
|
-
},
|
|
14
|
-
"amountType": "SEND",
|
|
15
|
-
"currency": "USD",
|
|
16
|
-
"amount": "100",
|
|
17
|
-
"transactionType": "TRANSFER",
|
|
18
|
-
"note": "test payment",
|
|
19
|
-
"homeTransactionId": "123ABC",
|
|
20
|
-
"transferId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
21
|
-
"currentState": "ERROR_OCCURRED",
|
|
22
|
-
"lastError": {
|
|
23
|
-
"httpStatusCode": 500,
|
|
24
|
-
"mojaloopError": {
|
|
25
|
-
"errorInformation": {
|
|
26
|
-
"errorCode": "3204",
|
|
27
|
-
"errorDescription": "Party not found",
|
|
28
|
-
"extensionList": {
|
|
29
|
-
"extension": [{
|
|
30
|
-
"key": "someKey",
|
|
31
|
-
"value": "someValue"
|
|
32
|
-
}, {
|
|
33
|
-
"key": "extErrorKey",
|
|
34
|
-
"value": "9999"
|
|
35
|
-
}]
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Mock error",
|
|
3
|
-
"httpStatusCode": 500,
|
|
4
|
-
"requestToPayState": {
|
|
5
|
-
"from": {
|
|
6
|
-
"displayName": "James Bush",
|
|
7
|
-
"idType": "MSISDN",
|
|
8
|
-
"idValue": "447710066017"
|
|
9
|
-
},
|
|
10
|
-
"to": {
|
|
11
|
-
"idType": "MSISDN",
|
|
12
|
-
"idValue": "1234567890"
|
|
13
|
-
},
|
|
14
|
-
"amountType": "SEND",
|
|
15
|
-
"currency": "USD",
|
|
16
|
-
"amount": "100",
|
|
17
|
-
"transactionType": "TRANSFER",
|
|
18
|
-
"note": "test payment",
|
|
19
|
-
"homeTransactionId": "123ABC",
|
|
20
|
-
"transferId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
21
|
-
"currentState": "ERROR_OCCURRED",
|
|
22
|
-
"lastError": {
|
|
23
|
-
"httpStatusCode": 500,
|
|
24
|
-
"mojaloopError": {
|
|
25
|
-
"errorInformation": {
|
|
26
|
-
"errorCode": "3204",
|
|
27
|
-
"errorDescription": "Party not found"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Mock error",
|
|
3
|
-
"httpStatusCode": 500,
|
|
4
|
-
"requestToPayTransferState": {
|
|
5
|
-
"from": {
|
|
6
|
-
"displayName": "James Bush",
|
|
7
|
-
"idType": "MSISDN",
|
|
8
|
-
"idValue": "447710066017"
|
|
9
|
-
},
|
|
10
|
-
"to": {
|
|
11
|
-
"idType": "MSISDN",
|
|
12
|
-
"idValue": "1234567890"
|
|
13
|
-
},
|
|
14
|
-
"amountType": "SEND",
|
|
15
|
-
"currency": "USD",
|
|
16
|
-
"amount": "100",
|
|
17
|
-
"transactionType": "TRANSFER",
|
|
18
|
-
"note": "test payment",
|
|
19
|
-
"homeTransactionId": "123ABC",
|
|
20
|
-
"transferId": "5a2ad5dc-4ab1-4a22-8c5b-62f75252a8d5",
|
|
21
|
-
"currentState": "ERROR_OCCURRED",
|
|
22
|
-
"lastError": {
|
|
23
|
-
"httpStatusCode": 500,
|
|
24
|
-
"mojaloopError": {
|
|
25
|
-
"errorInformation": {
|
|
26
|
-
"errorCode": "3204",
|
|
27
|
-
"errorDescription": "Quote failed",
|
|
28
|
-
"extensionList": [{
|
|
29
|
-
"key": "someKey",
|
|
30
|
-
"value": "someValue"
|
|
31
|
-
}, {
|
|
32
|
-
"key": "extErrorKey",
|
|
33
|
-
"value": "9999"
|
|
34
|
-
}]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"from": {
|
|
3
|
-
"displayName": "Murthy Kakarlamudi",
|
|
4
|
-
"idType": "MSISDN",
|
|
5
|
-
"idValue": "17855501914",
|
|
6
|
-
"extensionList": [
|
|
7
|
-
{"key": "accountType",
|
|
8
|
-
"value": "Wallet"}
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"to": {
|
|
12
|
-
"idType": "MSISDN",
|
|
13
|
-
"idValue": "1234567890"
|
|
14
|
-
},
|
|
15
|
-
"amountType": "SEND",
|
|
16
|
-
"currency": "USD",
|
|
17
|
-
"amount": "100",
|
|
18
|
-
"transactionType": "TRANSFER",
|
|
19
|
-
"note": "test payment",
|
|
20
|
-
"homeTransactionId": "123ABC"
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"requestToPayTransactionId": "c85e581e-fccf-4f55-8bea-96192ee2a32b",
|
|
3
|
-
"from": {
|
|
4
|
-
"displayName": "CustomerName",
|
|
5
|
-
"idType": "MSISDN",
|
|
6
|
-
"idValue": "17855501914"
|
|
7
|
-
},
|
|
8
|
-
"to": {
|
|
9
|
-
"idType": "BUSINESS",
|
|
10
|
-
"idValue": "Starbucks",
|
|
11
|
-
"fspId": "payeefsp"
|
|
12
|
-
},
|
|
13
|
-
"amountType": "SEND",
|
|
14
|
-
"currency": "USD",
|
|
15
|
-
"amount": "100",
|
|
16
|
-
"scenario":"PAYMENT",
|
|
17
|
-
"initiator":"PAYEE",
|
|
18
|
-
"initiatorType":"DEVICE",
|
|
19
|
-
"note": "test payment"
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"from": {
|
|
3
|
-
"displayName": "James Bush",
|
|
4
|
-
"idType": "MSISDN",
|
|
5
|
-
"idValue": "447710066017",
|
|
6
|
-
"extensionList": [
|
|
7
|
-
{"key": "accountType",
|
|
8
|
-
"value": "Wallet"}
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"to": {
|
|
12
|
-
"idType": "MSISDN",
|
|
13
|
-
"idValue": "1234567890"
|
|
14
|
-
},
|
|
15
|
-
"amountType": "SEND",
|
|
16
|
-
"currency": "USD",
|
|
17
|
-
"amount": "100",
|
|
18
|
-
"transactionType": "TRANSFER",
|
|
19
|
-
"note": "test payment",
|
|
20
|
-
"homeTransactionId": "123ABC"
|
|
21
|
-
}
|