@mojaloop/api-snippets 17.7.4 → 17.7.5
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/CHANGELOG.md +7 -0
- package/docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml +216 -9
- package/docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml +1 -1
- package/lib/sdk-scheme-adapter/v2_1_0/backend/json-schemas.json +12778 -1915
- package/lib/sdk-scheme-adapter/v2_1_0/backend/openapi.d.ts +133 -9
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.d.ts +7721 -4313
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js +11 -0
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_1_0/backend/types.d.ts +11 -0
- package/lib/sdk-scheme-adapter/v2_1_0/outbound/json-schemas.json +1569 -881
- package/lib/sdk-scheme-adapter/v2_1_0/outbound/openapi.d.ts +1 -1
- package/lib/sdk-scheme-adapter/v2_1_0/outbound/schemas.d.ts +320 -0
- package/package.json +10 -10
- package/sdk-scheme-adapter/v2_1_0/backend/openapi.yaml +9 -9
- package/sdk-scheme-adapter/v2_1_0/components/schemas/transferResponse.yaml +1 -1
@@ -552,28 +552,28 @@ export interface components {
|
|
552
552
|
transferState: components["schemas"]["transferState"];
|
553
553
|
};
|
554
554
|
fulfil?: {
|
555
|
-
body?:
|
555
|
+
body?: components["schemas"]["TransfersIDPutResponse"];
|
556
556
|
headers?: Record<string, never>;
|
557
557
|
};
|
558
558
|
initiatedTimestamp?: components["schemas"]["timestamp"];
|
559
559
|
lastError?: components["schemas"]["transferError"];
|
560
560
|
prepare?: {
|
561
|
-
body?:
|
561
|
+
body?: components["schemas"]["TransfersPostRequest"];
|
562
562
|
headers?: Record<string, never>;
|
563
563
|
};
|
564
564
|
quote?: {
|
565
|
-
fulfilment?:
|
566
|
-
internalRequest?:
|
567
|
-
mojaloopResponse?:
|
568
|
-
request?:
|
569
|
-
response?:
|
565
|
+
fulfilment?: components["schemas"]["IlpFulfilment"];
|
566
|
+
internalRequest?: components["schemas"]["quoteRequest"];
|
567
|
+
mojaloopResponse?: components["schemas"]["QuotesIDPutResponse"];
|
568
|
+
request?: components["schemas"]["QuotesPostRequest"];
|
569
|
+
response?: components["schemas"]["quoteResponse"];
|
570
570
|
};
|
571
571
|
quoteRequest?: {
|
572
|
-
body?:
|
572
|
+
body?: components["schemas"]["QuotesPostRequest"];
|
573
573
|
headers?: Record<string, never>;
|
574
574
|
};
|
575
575
|
quoteResponse?: {
|
576
|
-
body?:
|
576
|
+
body?: components["schemas"]["QuotesIDPutResponse"];
|
577
577
|
headers?: Record<string, never>;
|
578
578
|
};
|
579
579
|
transferId?: components["schemas"]["transferId"];
|
@@ -1164,6 +1164,130 @@ export interface components {
|
|
1164
1164
|
* @enum {string}
|
1165
1165
|
*/
|
1166
1166
|
AuthenticationType: "OTP" | "QRCODE" | "U2F";
|
1167
|
+
/**
|
1168
|
+
* TransfersIDPutResponse
|
1169
|
+
* @description The object sent in the PUT /transfers/{ID} callback.
|
1170
|
+
*/
|
1171
|
+
TransfersIDPutResponse: {
|
1172
|
+
fulfilment?: components["schemas"]["IlpFulfilment"];
|
1173
|
+
completedTimestamp?: components["schemas"]["DateTime"];
|
1174
|
+
transferState: components["schemas"]["TransferState"];
|
1175
|
+
extensionList?: components["schemas"]["ExtensionList"];
|
1176
|
+
};
|
1177
|
+
/**
|
1178
|
+
* TransfersPostRequest
|
1179
|
+
* @description The object sent in the POST /transfers request.
|
1180
|
+
*/
|
1181
|
+
TransfersPostRequest: {
|
1182
|
+
transferId: components["schemas"]["CorrelationId"];
|
1183
|
+
payeeFsp: components["schemas"]["FspId"];
|
1184
|
+
payerFsp: components["schemas"]["FspId"];
|
1185
|
+
amount: components["schemas"]["Money"];
|
1186
|
+
ilpPacket: components["schemas"]["IlpPacket"];
|
1187
|
+
condition: components["schemas"]["IlpCondition"];
|
1188
|
+
expiration: components["schemas"]["DateTime"];
|
1189
|
+
extensionList?: components["schemas"]["ExtensionList"];
|
1190
|
+
};
|
1191
|
+
/**
|
1192
|
+
* QuotesIDPutResponse
|
1193
|
+
* @description The object sent in the PUT /quotes/{ID} callback.
|
1194
|
+
*/
|
1195
|
+
QuotesIDPutResponse: {
|
1196
|
+
transferAmount: components["schemas"]["Money"];
|
1197
|
+
payeeReceiveAmount?: components["schemas"]["Money"];
|
1198
|
+
payeeFspFee?: components["schemas"]["Money"];
|
1199
|
+
payeeFspCommission?: components["schemas"]["Money"];
|
1200
|
+
expiration: components["schemas"]["DateTime"];
|
1201
|
+
geoCode?: components["schemas"]["GeoCode"];
|
1202
|
+
ilpPacket: components["schemas"]["IlpPacket"];
|
1203
|
+
condition: components["schemas"]["IlpCondition"];
|
1204
|
+
extensionList?: components["schemas"]["ExtensionList"];
|
1205
|
+
};
|
1206
|
+
/**
|
1207
|
+
* TransactionScenario
|
1208
|
+
* @description Below are the allowed values for the enumeration.
|
1209
|
+
* - DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.
|
1210
|
+
* - WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.
|
1211
|
+
* - TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.
|
1212
|
+
* - PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.
|
1213
|
+
* - REFUND - Used for performing a refund of transaction.
|
1214
|
+
* @example DEPOSIT
|
1215
|
+
* @enum {string}
|
1216
|
+
*/
|
1217
|
+
TransactionScenario: "DEPOSIT" | "WITHDRAWAL" | "TRANSFER" | "PAYMENT" | "REFUND";
|
1218
|
+
/**
|
1219
|
+
* TransactionInitiator
|
1220
|
+
* @description Below are the allowed values for the enumeration.
|
1221
|
+
* - PAYER - Sender of funds is initiating the transaction. The account to send from is either owned by the Payer or is connected to the Payer in some way.
|
1222
|
+
* - PAYEE - Recipient of the funds is initiating the transaction by sending a transaction request. The Payer must approve the transaction, either automatically by a pre-generated OTP or by pre-approval of the Payee, or by manually approving in his or her own Device.
|
1223
|
+
* @example PAYEE
|
1224
|
+
* @enum {string}
|
1225
|
+
*/
|
1226
|
+
TransactionInitiator: "PAYER" | "PAYEE";
|
1227
|
+
/**
|
1228
|
+
* TransactionInitiatorType
|
1229
|
+
* @description Below are the allowed values for the enumeration.
|
1230
|
+
* - CONSUMER - Consumer is the initiator of the transaction.
|
1231
|
+
* - AGENT - Agent is the initiator of the transaction.
|
1232
|
+
* - BUSINESS - Business is the initiator of the transaction.
|
1233
|
+
* - DEVICE - Device is the initiator of the transaction.
|
1234
|
+
* @example CONSUMER
|
1235
|
+
* @enum {string}
|
1236
|
+
*/
|
1237
|
+
TransactionInitiatorType: "CONSUMER" | "AGENT" | "BUSINESS" | "DEVICE";
|
1238
|
+
/**
|
1239
|
+
* RefundReason
|
1240
|
+
* @description Reason for the refund.
|
1241
|
+
* @example Free text indicating reason for the refund.
|
1242
|
+
*/
|
1243
|
+
RefundReason: string;
|
1244
|
+
/**
|
1245
|
+
* Refund
|
1246
|
+
* @description Data model for the complex type Refund.
|
1247
|
+
*/
|
1248
|
+
Refund: {
|
1249
|
+
originalTransactionId: components["schemas"]["CorrelationId"];
|
1250
|
+
refundReason?: components["schemas"]["RefundReason"];
|
1251
|
+
};
|
1252
|
+
/**
|
1253
|
+
* BalanceOfPayments
|
1254
|
+
* @description (BopCode) The API data type [BopCode](https://www.imf.org/external/np/sta/bopcode/) is a JSON String of 3 characters, consisting of digits only. Negative numbers are not allowed. A leading zero is not allowed.
|
1255
|
+
* @example 123
|
1256
|
+
*/
|
1257
|
+
BalanceOfPayments: string;
|
1258
|
+
/**
|
1259
|
+
* TransactionType
|
1260
|
+
* @description Data model for the complex type TransactionType.
|
1261
|
+
*/
|
1262
|
+
TransactionType: {
|
1263
|
+
scenario: components["schemas"]["TransactionScenario"];
|
1264
|
+
subScenario?: components["schemas"]["TransactionSubScenario"];
|
1265
|
+
initiator: components["schemas"]["TransactionInitiator"];
|
1266
|
+
initiatorType: components["schemas"]["TransactionInitiatorType"];
|
1267
|
+
refundInfo?: components["schemas"]["Refund"];
|
1268
|
+
balanceOfPayments?: components["schemas"]["BalanceOfPayments"];
|
1269
|
+
};
|
1270
|
+
/**
|
1271
|
+
* QuotesPostRequest
|
1272
|
+
* @description The object sent in the POST /quotes request.
|
1273
|
+
*/
|
1274
|
+
QuotesPostRequest: {
|
1275
|
+
quoteId: components["schemas"]["CorrelationId"];
|
1276
|
+
transactionId: components["schemas"]["CorrelationId"];
|
1277
|
+
transactionRequestId?: components["schemas"]["CorrelationId"];
|
1278
|
+
payee: components["schemas"]["Party"];
|
1279
|
+
payer: components["schemas"]["Party"];
|
1280
|
+
amountType: components["schemas"]["AmountType"];
|
1281
|
+
amount: components["schemas"]["Money"];
|
1282
|
+
fees?: components["schemas"]["Money"];
|
1283
|
+
transactionType: components["schemas"]["TransactionType"];
|
1284
|
+
converter?: components["schemas"]["CurrencyConverter"] & unknown;
|
1285
|
+
currencyConversion?: components["schemas"]["FxRate"] & unknown;
|
1286
|
+
geoCode?: components["schemas"]["GeoCode"];
|
1287
|
+
note?: components["schemas"]["Note"];
|
1288
|
+
expiration?: components["schemas"]["DateTime"];
|
1289
|
+
extensionList?: components["schemas"]["ExtensionList"];
|
1290
|
+
};
|
1167
1291
|
/**
|
1168
1292
|
* FxMoney
|
1169
1293
|
* @description Data model for the complex type FxMoney; This is based on the type Money but allows the amount to be optional to support FX quotations.
|