@mojaloop/api-snippets 17.7.2 → 17.7.3
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/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml +554 -10
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ActiveCurrencyCode.yaml +169 -1
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ActiveOrHistoricCurrencyCode.yaml +169 -1
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/AmountTypeEnum.yaml +9 -0
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/CreditTransferTransaction68_Put_FX_Quotes_ID.yaml +136 -0
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/Exact32HexBinaryText.yaml +5 -2
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ExternalPaymentTransactionStatus1Code.yaml +7 -0
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FxResponse_FICreditTransferConfirmation.yaml +2 -2
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/InstructionForCreditorAgent3.yaml +1 -1
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/InstructionForCreditorAgent3_Put_FX_Quotes_ID.yaml +25 -0
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/PaymentIdentification13.yaml +9 -3
- package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ULIDIdentifier.yaml +4 -0
- package/lib/fspiop/v2_0_ISO20022/json-schemas.json +32924 -1781
- package/lib/fspiop/v2_0_ISO20022/openapi.d.ts +116 -9
- package/lib/fspiop/v2_0_ISO20022/schemas.d.ts +10296 -448
- package/lib/fspiop/v2_0_ISO20022/schemas.js +4 -0
- package/lib/fspiop/v2_0_ISO20022/schemas.js.map +1 -1
- package/lib/fspiop/v2_0_ISO20022/types.d.ts +4 -0
- package/package.json +7 -7
@@ -556,9 +556,11 @@ export interface components {
|
|
556
556
|
/**
|
557
557
|
* ActiveCurrencyCode
|
558
558
|
* @description A code allocated to a currency by a Maintenance Agency under an international identification scheme as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds".
|
559
|
+
* NOTE: This has been modified away from the original ISO20022 pattern to enums.
|
559
560
|
* @example USD
|
561
|
+
* @enum {string}
|
560
562
|
*/
|
561
|
-
ActiveCurrencyCode:
|
563
|
+
ActiveCurrencyCode: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SPL" | "SRD" | "STD" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "XTS" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWD";
|
562
564
|
/**
|
563
565
|
* ActiveOrHistoricCurrencyAndAmount
|
564
566
|
* @description A number of monetary units specified in an active or a historic currency where the unit of currency is explicit and compliant with ISO 4217.
|
@@ -580,10 +582,12 @@ export interface components {
|
|
580
582
|
/**
|
581
583
|
* ActiveOrHistoricCurrencyCode
|
582
584
|
* @description A code allocated to a currency by a Maintenance Agency under an international identification scheme, as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds".
|
585
|
+
* NOTE: This has been modified away from the original ISO20022 pattern to enums.
|
583
586
|
*
|
584
587
|
* @example USD
|
588
|
+
* @enum {string}
|
585
589
|
*/
|
586
|
-
ActiveOrHistoricCurrencyCode:
|
590
|
+
ActiveOrHistoricCurrencyCode: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SPL" | "SRD" | "STD" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "XTS" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWD";
|
587
591
|
/**
|
588
592
|
* @description AddressType2Code
|
589
593
|
* Specifies the type of address.
|
@@ -611,6 +615,15 @@ export interface components {
|
|
611
615
|
} | {
|
612
616
|
Prtry: components["schemas"]["GenericIdentification30"] & unknown;
|
613
617
|
};
|
618
|
+
/**
|
619
|
+
* AmountTypeEnum
|
620
|
+
* @description NOTE: This pattern is not the original ISO20022 specification.
|
621
|
+
* This represents the enum values when mapping to and from FSPIOP specification.
|
622
|
+
*
|
623
|
+
* @example SEND
|
624
|
+
* @enum {string}
|
625
|
+
*/
|
626
|
+
AmountTypeEnum: "SEND" | "RECEIVE";
|
614
627
|
/**
|
615
628
|
* AnyBICDec2014Identifier
|
616
629
|
* @description AnyBICDec2014Identifier
|
@@ -1165,6 +1178,78 @@ export interface components {
|
|
1165
1178
|
Purp?: components["schemas"]["Purpose2Choice"] & unknown;
|
1166
1179
|
VrfctnOfTerms?: components["schemas"]["CryptographicLockChoice"] & unknown;
|
1167
1180
|
};
|
1181
|
+
/**
|
1182
|
+
* CreditTransferTransaction68_Put_FX_Quotes_ID
|
1183
|
+
* @description Provides further details specific to the individual transaction(s) included in the message.
|
1184
|
+
*
|
1185
|
+
* @example {
|
1186
|
+
* "PmtId": {
|
1187
|
+
* "InstrId": "INSTRID",
|
1188
|
+
* "EndToEndId": "ENDTOENDID"
|
1189
|
+
* },
|
1190
|
+
* "PmtTpInf": {
|
1191
|
+
* "LclInstrm": {
|
1192
|
+
* "Cd": "CHQB",
|
1193
|
+
* "Prtry": "PROPRIETARY"
|
1194
|
+
* }
|
1195
|
+
* },
|
1196
|
+
* "IntrBkSttlmAmt": {
|
1197
|
+
* "Amount": 123.45,
|
1198
|
+
* "Ccy": "EUR"
|
1199
|
+
* },
|
1200
|
+
* "Dbtr": {
|
1201
|
+
* "Nm": "Debtor Name"
|
1202
|
+
* },
|
1203
|
+
* "DbtrAcct": {
|
1204
|
+
* "Id": {
|
1205
|
+
* "IBAN": "IBAN"
|
1206
|
+
* }
|
1207
|
+
* },
|
1208
|
+
* "DbtrAgt": {
|
1209
|
+
* "FinInstnId": {
|
1210
|
+
* "BICFI": "BICFI"
|
1211
|
+
* }
|
1212
|
+
* },
|
1213
|
+
* "CdtrAgt": {
|
1214
|
+
* "FinInstnId": {
|
1215
|
+
* "BICFI": "BICFI"
|
1216
|
+
* }
|
1217
|
+
* },
|
1218
|
+
* "Cdtr": {
|
1219
|
+
* "Nm": "Creditor Name"
|
1220
|
+
* },
|
1221
|
+
* "CdtrAcct": {
|
1222
|
+
* "Id": {
|
1223
|
+
* "IBAN": "IBAN"
|
1224
|
+
* }
|
1225
|
+
* },
|
1226
|
+
* "InstrForCdtrAgt": {
|
1227
|
+
* "Cd": "INSTRUCTION"
|
1228
|
+
* },
|
1229
|
+
* "Purp": {
|
1230
|
+
* "Cd": "CHAR"
|
1231
|
+
* },
|
1232
|
+
* "VrfctnOfTerms": {
|
1233
|
+
* "Cntt": "CONTENT",
|
1234
|
+
* "CnttTp": "PROPRIETARY"
|
1235
|
+
* }
|
1236
|
+
* }
|
1237
|
+
*/
|
1238
|
+
CreditTransferTransaction68_Put_FX_Quotes_ID: {
|
1239
|
+
PmtId: components["schemas"]["PaymentIdentification13"] & unknown;
|
1240
|
+
PmtTpInf?: components["schemas"]["PaymentTypeInformation28"] & unknown;
|
1241
|
+
UndrlygCstmrCdtTrf?: components["schemas"]["UnderlyingCustomerCreditTransfer"] & unknown;
|
1242
|
+
IntrBkSttlmAmt: components["schemas"]["ActiveCurrencyAndAmount"] & unknown;
|
1243
|
+
Dbtr: components["schemas"]["BranchAndFinancialInstitutionIdentification8"] & unknown;
|
1244
|
+
DbtrAcct?: components["schemas"]["CashAccount40"] & unknown;
|
1245
|
+
DbtrAgt?: components["schemas"]["BranchAndFinancialInstitutionIdentification8"] & unknown;
|
1246
|
+
CdtrAgt?: components["schemas"]["BranchAndFinancialInstitutionIdentification8"] & unknown;
|
1247
|
+
Cdtr: components["schemas"]["BranchAndFinancialInstitutionIdentification8"] & unknown;
|
1248
|
+
CdtrAcct?: components["schemas"]["CashAccount40"] & unknown;
|
1249
|
+
InstrForCdtrAgt?: components["schemas"]["InstructionForCreditorAgent3_Put_FX_Quotes_ID"] & unknown;
|
1250
|
+
Purp?: components["schemas"]["Purpose2Choice"] & unknown;
|
1251
|
+
VrfctnOfTerms?: components["schemas"]["CryptographicLockChoice"] & unknown;
|
1252
|
+
};
|
1168
1253
|
/**
|
1169
1254
|
* CryptographicLockChoice
|
1170
1255
|
* @description Cryptographically signed terms
|
@@ -1251,9 +1336,10 @@ export interface components {
|
|
1251
1336
|
};
|
1252
1337
|
/**
|
1253
1338
|
* Exact32HexBinaryText
|
1254
|
-
* @description Specifies a hexadecimal string
|
1339
|
+
* @description Specifies a hexadecimal string.
|
1340
|
+
*
|
1341
|
+
* NOTE: This pattern is not the original ISO20022 specification.
|
1255
1342
|
*
|
1256
|
-
* @example 1234567890ABCDEF1234567890ABCDEF
|
1257
1343
|
*/
|
1258
1344
|
Exact32HexBinaryText: string;
|
1259
1345
|
/**
|
@@ -1420,9 +1506,12 @@ export interface components {
|
|
1420
1506
|
* "ABOR": "ABORTED"
|
1421
1507
|
* }
|
1422
1508
|
*
|
1509
|
+
* NOTE: enum enforcement is not apart of the ISO20022 specification, but is added here for FSPIOP mappings.
|
1510
|
+
*
|
1423
1511
|
* @example COMM
|
1512
|
+
* @enum {string}
|
1424
1513
|
*/
|
1425
|
-
ExternalPaymentTransactionStatus1Code:
|
1514
|
+
ExternalPaymentTransactionStatus1Code: "COMM" | "RESV" | "RECV" | "ABOR";
|
1426
1515
|
/**
|
1427
1516
|
* ExternalPersonIdentification1Code
|
1428
1517
|
* @description Specifies the external person identification code.
|
@@ -1788,7 +1877,7 @@ export interface components {
|
|
1788
1877
|
*/
|
1789
1878
|
FxResponse_FICreditTransferConfirmation: {
|
1790
1879
|
GrpHdr: components["schemas"]["GroupHeader113"] & unknown;
|
1791
|
-
CdtTrfTxInf: components["schemas"]["
|
1880
|
+
CdtTrfTxInf: components["schemas"]["CreditTransferTransaction68_Put_FX_Quotes_ID"] & unknown;
|
1792
1881
|
};
|
1793
1882
|
/**
|
1794
1883
|
* Fxecute_FinancialInstitutionCreditTransferV12
|
@@ -2395,6 +2484,19 @@ export interface components {
|
|
2395
2484
|
Cd?: components["schemas"]["ExternalCreditorAgentInstruction1Code"] & unknown;
|
2396
2485
|
InstrInf?: components["schemas"]["Max140Text"] & unknown;
|
2397
2486
|
};
|
2487
|
+
/**
|
2488
|
+
* InstructionForCreditorAgent3_Put_FX_Quotes_ID
|
2489
|
+
* @description Further information related to the processing of the payment instruction, provided by the initiating party, and intended for the creditor agent.
|
2490
|
+
*
|
2491
|
+
* @example {
|
2492
|
+
* "Cd": "PHOA",
|
2493
|
+
* "InstrInf": "Please advise/contact next agent by phone."
|
2494
|
+
* }
|
2495
|
+
*/
|
2496
|
+
InstructionForCreditorAgent3_Put_FX_Quotes_ID: {
|
2497
|
+
Cd?: components["schemas"]["ExternalCreditorAgentInstruction1Code"] & unknown;
|
2498
|
+
InstrInf?: components["schemas"]["AmountTypeEnum"] & unknown;
|
2499
|
+
};
|
2398
2500
|
/**
|
2399
2501
|
* InstructionForNextAgent1
|
2400
2502
|
* @description Further information related to the processing of the payment instruction, provided by the initiating party, and intended for the next agent in the payment chain.
|
@@ -2884,9 +2986,9 @@ export interface components {
|
|
2884
2986
|
* }
|
2885
2987
|
*/
|
2886
2988
|
PaymentIdentification13: {
|
2887
|
-
InstrId?: components["schemas"]["
|
2888
|
-
EndToEndId?: components["schemas"]["
|
2889
|
-
TxId: components["schemas"]["
|
2989
|
+
InstrId?: components["schemas"]["ULIDIdentifier"] & unknown;
|
2990
|
+
EndToEndId?: components["schemas"]["ULIDIdentifier"] & unknown;
|
2991
|
+
TxId: components["schemas"]["ULIDIdentifier"] & unknown;
|
2890
2992
|
UETR?: components["schemas"]["UUIDv4Identifier"] & unknown;
|
2891
2993
|
ClrSysRef?: components["schemas"]["Max35Text"] & unknown;
|
2892
2994
|
};
|
@@ -3748,6 +3850,11 @@ export interface components {
|
|
3748
3850
|
GrpHdr: components["schemas"]["GroupHeader129"] & unknown;
|
3749
3851
|
CdtTrfTxInf: components["schemas"]["CreditTransferTransaction67"] & unknown;
|
3750
3852
|
};
|
3853
|
+
/**
|
3854
|
+
* ULIDIdentifier
|
3855
|
+
* @example 01AN4Z07BY79KA1307SR9X4MV3
|
3856
|
+
*/
|
3857
|
+
ULIDIdentifier: string;
|
3751
3858
|
/**
|
3752
3859
|
* UUIDv4Identifier
|
3753
3860
|
* @example 8f3a3b2d-3b0a-4b3f-8e4e-1b2f3f4c5d6e
|