@mojaloop/api-snippets 17.0.4 → 17.0.5-snapshot.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/docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml +1 -1
- package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +169 -135
- package/lib/sdk-scheme-adapter/v2_0_0/backend/json-schemas.json +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/backend/openapi.d.ts +1 -3
- package/lib/sdk-scheme-adapter/v2_0_0/backend/schemas.d.ts +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/json-schemas.json +2438 -2369
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/openapi.d.ts +88 -69
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.d.ts +1969 -1897
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js +3 -5
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/types.d.ts +3 -5
- package/package.json +1 -1
- package/sdk-scheme-adapter/v2_0_0/backend/openapi.yaml +1 -1
- package/sdk-scheme-adapter/v2_0_0/components/parameters/requestToPayId.yaml +8 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/requestToPayResponse.yaml +27 -6
- package/sdk-scheme-adapter/v2_0_0/outbound/openapi.yaml +2 -0
- package/sdk-scheme-adapter/v2_0_0/outbound/paths/requestToPay_requestToPayId.yaml +30 -0
@@ -210,6 +210,32 @@ export interface paths {
|
|
210
210
|
};
|
211
211
|
};
|
212
212
|
};
|
213
|
+
"/requestToPay/{requestToPayId}": {
|
214
|
+
/**
|
215
|
+
* The HTTP request `PUT /requestToPay/{requestToPayId}` is used to continue a transfer initiated via the `POST /requestToPay` method that has halted after party lookup stage.
|
216
|
+
*
|
217
|
+
* The request body should contain the "acceptParty" property set to `true` as required to continue the transfer.
|
218
|
+
* See the description of the `POST /requestToPay` HTTP method for more information on modes of transfer.
|
219
|
+
*/
|
220
|
+
put: {
|
221
|
+
parameters: {
|
222
|
+
path: {
|
223
|
+
/** Identifier of the merchant request to pay to continue as returned in the response to a `POST /requestToPay` request. */
|
224
|
+
requestToPayId: components["parameters"]["requestToPayId"];
|
225
|
+
};
|
226
|
+
};
|
227
|
+
responses: {
|
228
|
+
200: components["responses"]["requestToPaySuccess"];
|
229
|
+
500: components["responses"]["transferServerError"];
|
230
|
+
504: components["responses"]["transferTimeout"];
|
231
|
+
};
|
232
|
+
requestBody: {
|
233
|
+
content: {
|
234
|
+
"application/json": components["schemas"]["transferContinuationAcceptParty"];
|
235
|
+
};
|
236
|
+
};
|
237
|
+
};
|
238
|
+
};
|
213
239
|
"/requestToPayTransfer": {
|
214
240
|
/**
|
215
241
|
* The HTTP request `POST /requestToPayTransfer` is used to request the movement of funds from payer DFSP to payee DFSP.
|
@@ -1053,29 +1079,13 @@ export interface components {
|
|
1053
1079
|
transactionType: components["schemas"]["TransactionScenario"];
|
1054
1080
|
subScenario?: components["schemas"]["TransactionSubScenario"];
|
1055
1081
|
};
|
1056
|
-
/**
|
1057
|
-
|
1058
|
-
* @description Below are the allowed values for the enumeration AuthenticationType.
|
1059
|
-
* - OTP - One-time password generated by the Payer FSP.
|
1060
|
-
* - QRCODE - QR code used as One Time Password.
|
1061
|
-
* - U2F - U2F is a new addition isolated to Thirdparty stream.
|
1062
|
-
* @example OTP
|
1063
|
-
* @enum {string}
|
1064
|
-
*/
|
1065
|
-
AuthenticationType: "OTP" | "QRCODE" | "U2F";
|
1066
|
-
/**
|
1067
|
-
* TransactionRequestState
|
1068
|
-
* @description Below are the allowed values for the enumeration.
|
1069
|
-
* - RECEIVED - Payer FSP has received the transaction from the Payee FSP.
|
1070
|
-
* - PENDING - Payer FSP has sent the transaction request to the Payer.
|
1071
|
-
* - ACCEPTED - Payer has approved the transaction.
|
1072
|
-
* - REJECTED - Payer has rejected the transaction.
|
1073
|
-
* @example RECEIVED
|
1074
|
-
* @enum {string}
|
1075
|
-
*/
|
1076
|
-
TransactionRequestState: "RECEIVED" | "PENDING" | "ACCEPTED" | "REJECTED";
|
1082
|
+
/** @enum {string} */
|
1083
|
+
transferStatus: "ERROR_OCCURRED" | "WAITING_FOR_PARTY_ACCEPTANCE" | "WAITING_FOR_QUOTE_ACCEPTANCE" | "COMPLETED";
|
1077
1084
|
requestToPayResponse: {
|
1078
|
-
|
1085
|
+
requestToPayId: components["schemas"]["CorrelationId"];
|
1086
|
+
transactionRequestId?: components["schemas"]["CorrelationId"];
|
1087
|
+
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
1088
|
+
homeTransactionId?: string;
|
1079
1089
|
from: components["schemas"]["transferParty"];
|
1080
1090
|
to: components["schemas"]["transferParty"];
|
1081
1091
|
amountType: components["schemas"]["AmountType"];
|
@@ -1083,24 +1093,18 @@ export interface components {
|
|
1083
1093
|
amount: components["schemas"]["Amount"];
|
1084
1094
|
transactionType: components["schemas"]["TransactionScenario"];
|
1085
1095
|
subScenario?: components["schemas"]["TransactionSubScenario"];
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
scenario: components["schemas"]["TransactionType"];
|
1098
|
-
initiator: components["schemas"]["TransactionInitiator"];
|
1099
|
-
initiatorType: components["schemas"]["TransactionInitiatorType"];
|
1100
|
-
note?: components["schemas"]["Note"];
|
1096
|
+
currentState: components["schemas"]["transferStatus"];
|
1097
|
+
getPartiesResponse?: {
|
1098
|
+
body: {
|
1099
|
+
[key: string]: unknown;
|
1100
|
+
};
|
1101
|
+
headers?: {
|
1102
|
+
[key: string]: unknown;
|
1103
|
+
};
|
1104
|
+
};
|
1105
|
+
/** @description Object representing the last error to occur during a transfer process. This may be a Mojaloop API error returned from another entity in the scheme or an object representing other types of error e.g. exceptions that may occur inside the scheme adapter. */
|
1106
|
+
lastError?: components["schemas"]["transferError"];
|
1101
1107
|
};
|
1102
|
-
/** @enum {string} */
|
1103
|
-
transferStatus: "ERROR_OCCURRED" | "WAITING_FOR_PARTY_ACCEPTANCE" | "WAITING_FOR_QUOTE_ACCEPTANCE" | "COMPLETED";
|
1104
1108
|
/**
|
1105
1109
|
* QuotesIDPutResponse
|
1106
1110
|
* @description The object sent in the PUT /quotes/{ID} callback.
|
@@ -1126,26 +1130,6 @@ export interface components {
|
|
1126
1130
|
transferState: components["schemas"]["TransferState"];
|
1127
1131
|
extensionList?: components["schemas"]["ExtensionList"];
|
1128
1132
|
};
|
1129
|
-
requestToPayTransferResponse: {
|
1130
|
-
transferId?: components["schemas"]["CorrelationId"];
|
1131
|
-
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
1132
|
-
requestToPayTransactionId: string;
|
1133
|
-
from: components["schemas"]["transferParty"];
|
1134
|
-
to: components["schemas"]["transferParty"];
|
1135
|
-
amountType: components["schemas"]["AmountType"];
|
1136
|
-
currency: components["schemas"]["Currency"];
|
1137
|
-
amount: components["schemas"]["Amount"];
|
1138
|
-
transactionType: components["schemas"]["transferTransactionType"];
|
1139
|
-
note?: components["schemas"]["Note"];
|
1140
|
-
currentState?: components["schemas"]["transferStatus"];
|
1141
|
-
quoteId?: components["schemas"]["CorrelationId"];
|
1142
|
-
quoteResponse?: components["schemas"]["QuotesIDPutResponse"];
|
1143
|
-
/** @description FSPID of the entity that supplied the quote response. This may not be the same as the FSPID of the entity which owns the end user account in the case of a FOREX transfer. i.e. it may be a FOREX gateway. */
|
1144
|
-
quoteResponseSource?: string;
|
1145
|
-
fulfil?: components["schemas"]["TransfersIDPutResponse"];
|
1146
|
-
/** @description Object representing the last error to occur during a transfer process. This may be a Mojaloop API error returned from another entity in the scheme or an object representing other types of error e.g. exceptions that may occur inside the scheme adapter. */
|
1147
|
-
lastError?: components["schemas"]["transferError"];
|
1148
|
-
};
|
1149
1133
|
transferResponse: {
|
1150
1134
|
transferId?: components["schemas"]["CorrelationId"];
|
1151
1135
|
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
@@ -1190,6 +1174,39 @@ export interface components {
|
|
1190
1174
|
errorTransferResponse: components["schemas"]["errorResponse"] & {
|
1191
1175
|
transferState: components["schemas"]["transferResponse"];
|
1192
1176
|
};
|
1177
|
+
requestToPayTransferRequest: {
|
1178
|
+
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
1179
|
+
requestToPayTransactionId: string;
|
1180
|
+
from: components["schemas"]["transferParty"];
|
1181
|
+
to: components["schemas"]["transferParty"];
|
1182
|
+
amountType: components["schemas"]["AmountType"];
|
1183
|
+
currency: components["schemas"]["Currency"];
|
1184
|
+
amount: components["schemas"]["Amount"];
|
1185
|
+
scenario: components["schemas"]["TransactionType"];
|
1186
|
+
initiator: components["schemas"]["TransactionInitiator"];
|
1187
|
+
initiatorType: components["schemas"]["TransactionInitiatorType"];
|
1188
|
+
note?: components["schemas"]["Note"];
|
1189
|
+
};
|
1190
|
+
requestToPayTransferResponse: {
|
1191
|
+
transferId?: components["schemas"]["CorrelationId"];
|
1192
|
+
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
1193
|
+
requestToPayTransactionId: string;
|
1194
|
+
from: components["schemas"]["transferParty"];
|
1195
|
+
to: components["schemas"]["transferParty"];
|
1196
|
+
amountType: components["schemas"]["AmountType"];
|
1197
|
+
currency: components["schemas"]["Currency"];
|
1198
|
+
amount: components["schemas"]["Amount"];
|
1199
|
+
transactionType: components["schemas"]["transferTransactionType"];
|
1200
|
+
note?: components["schemas"]["Note"];
|
1201
|
+
currentState?: components["schemas"]["transferStatus"];
|
1202
|
+
quoteId?: components["schemas"]["CorrelationId"];
|
1203
|
+
quoteResponse?: components["schemas"]["QuotesIDPutResponse"];
|
1204
|
+
/** @description FSPID of the entity that supplied the quote response. This may not be the same as the FSPID of the entity which owns the end user account in the case of a FOREX transfer. i.e. it may be a FOREX gateway. */
|
1205
|
+
quoteResponseSource?: string;
|
1206
|
+
fulfil?: components["schemas"]["TransfersIDPutResponse"];
|
1207
|
+
/** @description Object representing the last error to occur during a transfer process. This may be a Mojaloop API error returned from another entity in the scheme or an object representing other types of error e.g. exceptions that may occur inside the scheme adapter. */
|
1208
|
+
lastError?: components["schemas"]["transferError"];
|
1209
|
+
};
|
1193
1210
|
transferContinuationAcceptOTP: {
|
1194
1211
|
/** @enum {boolean} */
|
1195
1212
|
acceptOTP: true | false;
|
@@ -1354,26 +1371,26 @@ export interface components {
|
|
1354
1371
|
"application/json": components["schemas"]["requestToPayResponse"];
|
1355
1372
|
};
|
1356
1373
|
};
|
1357
|
-
/**
|
1358
|
-
|
1374
|
+
/** An error occurred processing the transfer */
|
1375
|
+
transferServerError: {
|
1359
1376
|
content: {
|
1360
|
-
"application/json": components["schemas"]["
|
1377
|
+
"application/json": components["schemas"]["errorTransferResponse"];
|
1361
1378
|
};
|
1362
1379
|
};
|
1363
|
-
/**
|
1364
|
-
|
1380
|
+
/** Timeout occurred processing the transfer */
|
1381
|
+
transferTimeout: {
|
1365
1382
|
content: {
|
1366
1383
|
"application/json": components["schemas"]["errorTransferResponse"];
|
1367
1384
|
};
|
1368
1385
|
};
|
1369
|
-
/**
|
1370
|
-
|
1386
|
+
/** Transfer completed successfully */
|
1387
|
+
requestToPayTransferSuccess: {
|
1371
1388
|
content: {
|
1372
|
-
"application/json": components["schemas"]["
|
1389
|
+
"application/json": components["schemas"]["requestToPayTransferResponse"];
|
1373
1390
|
};
|
1374
1391
|
};
|
1375
|
-
/**
|
1376
|
-
|
1392
|
+
/** Malformed or missing required body, headers or parameters */
|
1393
|
+
requestToPayTransferBadRequest: {
|
1377
1394
|
content: {
|
1378
1395
|
"application/json": components["schemas"]["errorTransferResponse"];
|
1379
1396
|
};
|
@@ -1416,6 +1433,8 @@ export interface components {
|
|
1416
1433
|
ID: string;
|
1417
1434
|
/** @description A sub-identifier of the party identifier, or a sub-type of the party identifier's type. For example, `PASSPORT`, `DRIVING_LICENSE`. */
|
1418
1435
|
SubId: string;
|
1436
|
+
/** @description Identifier of the merchant request to pay to continue as returned in the response to a `POST /requestToPay` request. */
|
1437
|
+
requestToPayId: components["schemas"]["CorrelationId"];
|
1419
1438
|
/** @description Identifier of the merchant request to pay transfer to continue as returned in the response to a `POST /requestToPayTransfer` request. */
|
1420
1439
|
requestToPayTransactionId: components["schemas"]["CorrelationId"];
|
1421
1440
|
/** @description Identifier of the transfer to continue as returned in the response to a `POST /transfers` request. */
|