@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.
Files changed (20) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml +554 -10
  3. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ActiveCurrencyCode.yaml +169 -1
  4. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ActiveOrHistoricCurrencyCode.yaml +169 -1
  5. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/AmountTypeEnum.yaml +9 -0
  6. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/CreditTransferTransaction68_Put_FX_Quotes_ID.yaml +136 -0
  7. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/Exact32HexBinaryText.yaml +5 -2
  8. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ExternalPaymentTransactionStatus1Code.yaml +7 -0
  9. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FxResponse_FICreditTransferConfirmation.yaml +2 -2
  10. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/InstructionForCreditorAgent3.yaml +1 -1
  11. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/InstructionForCreditorAgent3_Put_FX_Quotes_ID.yaml +25 -0
  12. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/PaymentIdentification13.yaml +9 -3
  13. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/ULIDIdentifier.yaml +4 -0
  14. package/lib/fspiop/v2_0_ISO20022/json-schemas.json +32924 -1781
  15. package/lib/fspiop/v2_0_ISO20022/openapi.d.ts +116 -9
  16. package/lib/fspiop/v2_0_ISO20022/schemas.d.ts +10296 -448
  17. package/lib/fspiop/v2_0_ISO20022/schemas.js +4 -0
  18. package/lib/fspiop/v2_0_ISO20022/schemas.js.map +1 -1
  19. package/lib/fspiop/v2_0_ISO20022/types.d.ts +4 -0
  20. package/package.json +7 -7
@@ -1,8 +1,176 @@
1
1
  title: ActiveCurrencyCode
2
2
  type: string
3
- pattern: ^[A-Z]{3,3}$
4
3
  description: >-
5
4
  A code allocated to a currency by a Maintenance Agency under an international
6
5
  identification scheme as described in the latest edition of the international standard ISO
7
6
  4217 "Codes for the representation of currencies and funds".
7
+
8
+ NOTE: This has been modified away from the original ISO20022 pattern to enums.
8
9
  example: USD
10
+ minLength: 3
11
+ maxLength: 3
12
+ enum:
13
+ - AED
14
+ - AFN
15
+ - ALL
16
+ - AMD
17
+ - ANG
18
+ - AOA
19
+ - ARS
20
+ - AUD
21
+ - AWG
22
+ - AZN
23
+ - BAM
24
+ - BBD
25
+ - BDT
26
+ - BGN
27
+ - BHD
28
+ - BIF
29
+ - BMD
30
+ - BND
31
+ - BOB
32
+ - BRL
33
+ - BSD
34
+ - BTN
35
+ - BWP
36
+ - BYN
37
+ - BZD
38
+ - CAD
39
+ - CDF
40
+ - CHF
41
+ - CLP
42
+ - CNY
43
+ - COP
44
+ - CRC
45
+ - CUC
46
+ - CUP
47
+ - CVE
48
+ - CZK
49
+ - DJF
50
+ - DKK
51
+ - DOP
52
+ - DZD
53
+ - EGP
54
+ - ERN
55
+ - ETB
56
+ - EUR
57
+ - FJD
58
+ - FKP
59
+ - GBP
60
+ - GEL
61
+ - GGP
62
+ - GHS
63
+ - GIP
64
+ - GMD
65
+ - GNF
66
+ - GTQ
67
+ - GYD
68
+ - HKD
69
+ - HNL
70
+ - HRK
71
+ - HTG
72
+ - HUF
73
+ - IDR
74
+ - ILS
75
+ - IMP
76
+ - INR
77
+ - IQD
78
+ - IRR
79
+ - ISK
80
+ - JEP
81
+ - JMD
82
+ - JOD
83
+ - JPY
84
+ - KES
85
+ - KGS
86
+ - KHR
87
+ - KMF
88
+ - KPW
89
+ - KRW
90
+ - KWD
91
+ - KYD
92
+ - KZT
93
+ - LAK
94
+ - LBP
95
+ - LKR
96
+ - LRD
97
+ - LSL
98
+ - LYD
99
+ - MAD
100
+ - MDL
101
+ - MGA
102
+ - MKD
103
+ - MMK
104
+ - MNT
105
+ - MOP
106
+ - MRO
107
+ - MUR
108
+ - MVR
109
+ - MWK
110
+ - MXN
111
+ - MYR
112
+ - MZN
113
+ - NAD
114
+ - NGN
115
+ - NIO
116
+ - NOK
117
+ - NPR
118
+ - NZD
119
+ - OMR
120
+ - PAB
121
+ - PEN
122
+ - PGK
123
+ - PHP
124
+ - PKR
125
+ - PLN
126
+ - PYG
127
+ - QAR
128
+ - RON
129
+ - RSD
130
+ - RUB
131
+ - RWF
132
+ - SAR
133
+ - SBD
134
+ - SCR
135
+ - SDG
136
+ - SEK
137
+ - SGD
138
+ - SHP
139
+ - SLL
140
+ - SOS
141
+ - SPL
142
+ - SRD
143
+ - STD
144
+ - SVC
145
+ - SYP
146
+ - SZL
147
+ - THB
148
+ - TJS
149
+ - TMT
150
+ - TND
151
+ - TOP
152
+ - TRY
153
+ - TTD
154
+ - TVD
155
+ - TWD
156
+ - TZS
157
+ - UAH
158
+ - UGX
159
+ - USD
160
+ - UYU
161
+ - UZS
162
+ - VEF
163
+ - VND
164
+ - VUV
165
+ - WST
166
+ - XAF
167
+ - XCD
168
+ - XDR
169
+ - XOF
170
+ - XPF
171
+ - XTS
172
+ - XXX
173
+ - YER
174
+ - ZAR
175
+ - ZMW
176
+ - ZWD
@@ -4,5 +4,173 @@ description: >
4
4
  A code allocated to a currency by a Maintenance Agency under an international
5
5
  identification scheme, as described in the latest edition of the international standard ISO
6
6
  4217 "Codes for the representation of currencies and funds".
7
- pattern: ^[A-Z]{3,3}$
7
+
8
+ NOTE: This has been modified away from the original ISO20022 pattern to enums.
8
9
  example: USD
10
+ minLength: 3
11
+ maxLength: 3
12
+ enum:
13
+ - AED
14
+ - AFN
15
+ - ALL
16
+ - AMD
17
+ - ANG
18
+ - AOA
19
+ - ARS
20
+ - AUD
21
+ - AWG
22
+ - AZN
23
+ - BAM
24
+ - BBD
25
+ - BDT
26
+ - BGN
27
+ - BHD
28
+ - BIF
29
+ - BMD
30
+ - BND
31
+ - BOB
32
+ - BRL
33
+ - BSD
34
+ - BTN
35
+ - BWP
36
+ - BYN
37
+ - BZD
38
+ - CAD
39
+ - CDF
40
+ - CHF
41
+ - CLP
42
+ - CNY
43
+ - COP
44
+ - CRC
45
+ - CUC
46
+ - CUP
47
+ - CVE
48
+ - CZK
49
+ - DJF
50
+ - DKK
51
+ - DOP
52
+ - DZD
53
+ - EGP
54
+ - ERN
55
+ - ETB
56
+ - EUR
57
+ - FJD
58
+ - FKP
59
+ - GBP
60
+ - GEL
61
+ - GGP
62
+ - GHS
63
+ - GIP
64
+ - GMD
65
+ - GNF
66
+ - GTQ
67
+ - GYD
68
+ - HKD
69
+ - HNL
70
+ - HRK
71
+ - HTG
72
+ - HUF
73
+ - IDR
74
+ - ILS
75
+ - IMP
76
+ - INR
77
+ - IQD
78
+ - IRR
79
+ - ISK
80
+ - JEP
81
+ - JMD
82
+ - JOD
83
+ - JPY
84
+ - KES
85
+ - KGS
86
+ - KHR
87
+ - KMF
88
+ - KPW
89
+ - KRW
90
+ - KWD
91
+ - KYD
92
+ - KZT
93
+ - LAK
94
+ - LBP
95
+ - LKR
96
+ - LRD
97
+ - LSL
98
+ - LYD
99
+ - MAD
100
+ - MDL
101
+ - MGA
102
+ - MKD
103
+ - MMK
104
+ - MNT
105
+ - MOP
106
+ - MRO
107
+ - MUR
108
+ - MVR
109
+ - MWK
110
+ - MXN
111
+ - MYR
112
+ - MZN
113
+ - NAD
114
+ - NGN
115
+ - NIO
116
+ - NOK
117
+ - NPR
118
+ - NZD
119
+ - OMR
120
+ - PAB
121
+ - PEN
122
+ - PGK
123
+ - PHP
124
+ - PKR
125
+ - PLN
126
+ - PYG
127
+ - QAR
128
+ - RON
129
+ - RSD
130
+ - RUB
131
+ - RWF
132
+ - SAR
133
+ - SBD
134
+ - SCR
135
+ - SDG
136
+ - SEK
137
+ - SGD
138
+ - SHP
139
+ - SLL
140
+ - SOS
141
+ - SPL
142
+ - SRD
143
+ - STD
144
+ - SVC
145
+ - SYP
146
+ - SZL
147
+ - THB
148
+ - TJS
149
+ - TMT
150
+ - TND
151
+ - TOP
152
+ - TRY
153
+ - TTD
154
+ - TVD
155
+ - TWD
156
+ - TZS
157
+ - UAH
158
+ - UGX
159
+ - USD
160
+ - UYU
161
+ - UZS
162
+ - VEF
163
+ - VND
164
+ - VUV
165
+ - WST
166
+ - XAF
167
+ - XCD
168
+ - XDR
169
+ - XOF
170
+ - XPF
171
+ - XTS
172
+ - XXX
173
+ - YER
174
+ - ZAR
175
+ - ZMW
176
+ - ZWD
@@ -0,0 +1,9 @@
1
+ title: AmountTypeEnum
2
+ description: |
3
+ NOTE: This pattern is not the original ISO20022 specification.
4
+ This represents the enum values when mapping to and from FSPIOP specification.
5
+ type: string
6
+ enum:
7
+ - SEND
8
+ - RECEIVE
9
+ example: SEND
@@ -0,0 +1,136 @@
1
+ title: CreditTransferTransaction68_Put_FX_Quotes_ID
2
+ description: >
3
+ Provides further details specific to the individual transaction(s) included in
4
+ the message.
5
+ type: object
6
+ properties:
7
+ PmtId:
8
+ allOf:
9
+ - $ref: ./PaymentIdentification13.yaml
10
+ - description: >
11
+ PaymentIdentification
12
+
13
+ Set of elements used to reference a payment instruction.
14
+ PmtTpInf:
15
+ allOf:
16
+ - $ref: ./PaymentTypeInformation28.yaml
17
+ - description: >
18
+ PaymentTypeInformation
19
+
20
+ Set of elements used to further specify the type of transaction.
21
+ UndrlygCstmrCdtTrf:
22
+ allOf:
23
+ - $ref: ./UnderlyingCustomerCreditTransfer.yaml
24
+ - description: >
25
+ Underlying Customer Credit Transfer
26
+
27
+ TBD
28
+ IntrBkSttlmAmt:
29
+ allOf:
30
+ - $ref: ./ActiveCurrencyAndAmount.yaml
31
+ - description: >
32
+ InterbankSettlementAmount
33
+
34
+ Amount of money moved between the instructing agent and the instructed agent.
35
+ Dbtr:
36
+ allOf:
37
+ - $ref: ./BranchAndFinancialInstitutionIdentification8.yaml
38
+ - description: >
39
+ Debtor
40
+
41
+ Party that owes an amount of money to the (ultimate) creditor.
42
+ DbtrAcct:
43
+ allOf:
44
+ - $ref: ./CashAccount40.yaml
45
+ - description: >
46
+ DebtorAccount
47
+
48
+ Account used to process a payment.
49
+ DbtrAgt:
50
+ allOf:
51
+ - $ref: ./BranchAndFinancialInstitutionIdentification8.yaml
52
+ - description: >
53
+ DebtorAgent
54
+
55
+ Financial institution servicing an account for the debtor.
56
+ CdtrAgt:
57
+ allOf:
58
+ - $ref: ./BranchAndFinancialInstitutionIdentification8.yaml
59
+ - description: >
60
+ CreditorAgent
61
+
62
+ Financial institution servicing an account for the creditor.
63
+ Cdtr:
64
+ allOf:
65
+ - $ref: ./BranchAndFinancialInstitutionIdentification8.yaml
66
+ - description: >
67
+ Creditor
68
+
69
+ Party to which an amount of money is due.
70
+ CdtrAcct:
71
+ allOf:
72
+ - $ref: ./CashAccount40.yaml
73
+ - description: >
74
+ CreditorAccount
75
+
76
+ Account to which a credit entry is made.
77
+ InstrForCdtrAgt:
78
+ allOf:
79
+ - $ref: ./InstructionForCreditorAgent3_Put_FX_Quotes_ID.yaml
80
+ - description: >
81
+ InstructionForCreditorAgent
82
+
83
+ Set of elements used to provide information on the remittance advice.
84
+ Purp:
85
+ allOf:
86
+ - $ref: ./Purpose2Choice.yaml
87
+ - description: >
88
+ Purpose
89
+
90
+ Underlying reason for the payment transaction.
91
+ VrfctnOfTerms:
92
+ allOf:
93
+ - $ref: ./CryptographicLockChoice.yaml
94
+ - description: >
95
+ VerificationOfTerms
96
+
97
+ Set of elements used to provide information on the underlying terms of the transaction.
98
+ required:
99
+ - PmtId
100
+ - IntrBkSttlmAmt
101
+ - Dbtr
102
+ - Cdtr
103
+ example:
104
+ PmtId:
105
+ InstrId: INSTRID
106
+ EndToEndId: ENDTOENDID
107
+ PmtTpInf:
108
+ LclInstrm:
109
+ Cd: CHQB
110
+ Prtry: PROPRIETARY
111
+ IntrBkSttlmAmt:
112
+ Amount: 123.45
113
+ Ccy: EUR
114
+ Dbtr:
115
+ Nm: Debtor Name
116
+ DbtrAcct:
117
+ Id:
118
+ IBAN: IBAN
119
+ DbtrAgt:
120
+ FinInstnId:
121
+ BICFI: BICFI
122
+ CdtrAgt:
123
+ FinInstnId:
124
+ BICFI: BICFI
125
+ Cdtr:
126
+ Nm: Creditor Name
127
+ CdtrAcct:
128
+ Id:
129
+ IBAN: IBAN
130
+ InstrForCdtrAgt:
131
+ Cd: INSTRUCTION
132
+ Purp:
133
+ Cd: CHAR
134
+ VrfctnOfTerms:
135
+ Cntt: CONTENT
136
+ CnttTp: PROPRIETARY
@@ -1,5 +1,8 @@
1
1
  title: Exact32HexBinaryText
2
2
  description: |
3
- Specifies a hexadecimal string with a length of 32 characters.
3
+ Specifies a hexadecimal string.
4
+
5
+ NOTE: This pattern is not the original ISO20022 specification.
4
6
  type: string
5
- example: 1234567890ABCDEF1234567890ABCDEF
7
+ pattern: '^[A-Za-z0-9-_]{43}$'
8
+ maxLength: 48
@@ -9,7 +9,14 @@ description: |
9
9
  "RECV": "RECEIVED",
10
10
  "ABOR": "ABORTED"
11
11
  }
12
+
13
+ NOTE: enum enforcement is not apart of the ISO20022 specification, but is added here for FSPIOP mappings.
12
14
  type: string
13
15
  minLength: 1
14
16
  maxLength: 4
15
17
  example: COMM
18
+ enum:
19
+ - COMM
20
+ - RESV
21
+ - RECV
22
+ - ABOR
@@ -14,9 +14,9 @@ properties:
14
14
  Set of characteristics shared by all individual transactions included in the message.
15
15
  CdtTrfTxInf:
16
16
  allOf:
17
- - $ref: ./CreditTransferTransaction68.yaml
17
+ - $ref: ./CreditTransferTransaction68_Put_FX_Quotes_ID.yaml
18
18
  - description: >
19
- CreditTransferTransactionInformation
19
+ CreditTransferTransaction68_Put_FX_Quotes_ID
20
20
 
21
21
  Set of elements providing information specific to the individual credit transfer(s).
22
22
  required:
@@ -22,4 +22,4 @@ properties:
22
22
  that is bilaterally agreed or specific to a user community.
23
23
  example:
24
24
  Cd: PHOA
25
- InstrInf: Please advise/contact next agent by phone.
25
+ InstrInf: Please advise/contact next agent by phone.
@@ -0,0 +1,25 @@
1
+ title: InstructionForCreditorAgent3_Put_FX_Quotes_ID
2
+ description: >
3
+ Further information related to the processing of the payment instruction,
4
+ provided by the initiating party, and intended for the creditor agent.
5
+ type: object
6
+ properties:
7
+ Cd:
8
+ allOf:
9
+ - $ref: ./ExternalCreditorAgentInstruction1Code.yaml
10
+ - description: >
11
+ Code
12
+
13
+ Coded information related to the processing of the payment instruction, provided by the
14
+ initiating party, and intended for the creditor's agent.
15
+ InstrInf:
16
+ allOf:
17
+ - $ref: ./AmountTypeEnum.yaml
18
+ - description: >
19
+ InstructionInformation
20
+
21
+ Further information complementing the coded instruction or instruction to the creditor's agent
22
+ that is bilaterally agreed or specific to a user community.
23
+ example:
24
+ Cd: PHOA
25
+ InstrInf: Please advise/contact next agent by phone.
@@ -5,7 +5,7 @@ type: object
5
5
  properties:
6
6
  InstrId:
7
7
  allOf:
8
- - $ref: ./Max35Text.yaml
8
+ - $ref: ./ULIDIdentifier.yaml
9
9
  - description: |
10
10
  InstructionIdentification (FSPIOP equivalent: transactionRequestId)
11
11
 
@@ -15,9 +15,11 @@ properties:
15
15
  Usage: The instruction identification is a point to point reference that can be used between the
16
16
  instructing party and the instructed party to refer to the individual instruction. It can be included in
17
17
  several messages related to the instruction.
18
+
19
+ This field has been changed from the original ISO20022 `Max35Text`` schema to a ULIDIdentifier schema.
18
20
  EndToEndId:
19
21
  allOf:
20
- - $ref: ./Max35Text.yaml
22
+ - $ref: ./ULIDIdentifier.yaml
21
23
  - description: |
22
24
  EndToEndIdentification (FSPIOP equivalent: transactionId)
23
25
 
@@ -29,9 +31,11 @@ properties:
29
31
 
30
32
  Usage: In case there are technical limitations to pass on multiple references, the end-to-end
31
33
  identification must be passed on throughout the entire end-to-end chain.
34
+
35
+ This field has been changed from the original ISO20022 `Max35Text`` schema to a ULIDIdentifier schema.
32
36
  TxId:
33
37
  allOf:
34
- - $ref: ./Max35Text.yaml
38
+ - $ref: ./ULIDIdentifier.yaml
35
39
  - description: |
36
40
  TransactionIdentification (FSPIOP equivalent: quoteId in quote request, transferId in transfer request)
37
41
 
@@ -42,6 +46,8 @@ properties:
42
46
  the transaction on the interbank level.
43
47
 
44
48
  Usage: The instructing agent has to make sure that the transaction identification is unique for a preagreed period.
49
+
50
+ This field has been changed from the original ISO20022 `Max35Text`` schema to a ULIDIdentifier schema.
45
51
  UETR:
46
52
  allOf:
47
53
  - $ref: ./UUIDv4Identifier.yaml
@@ -0,0 +1,4 @@
1
+ title: ULIDIdentifier
2
+ type: string
3
+ pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
4
+ example: 01AN4Z07BY79KA1307SR9X4MV3