Skip to content

Commit 3b64750

Browse files
committed
Adding currency object
1 parent a2f687e commit 3b64750

File tree

2 files changed

+171
-17
lines changed

2 files changed

+171
-17
lines changed

fixtures/_models/currency.json

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "string",
4+
"enum": [
5+
"AED",
6+
"AFN",
7+
"ALL",
8+
"AMD",
9+
"ANG",
10+
"AOA",
11+
"ARS",
12+
"AUD",
13+
"AWG",
14+
"AZN",
15+
"BAM",
16+
"BBD",
17+
"BDT",
18+
"BGN",
19+
"BHD",
20+
"BIF",
21+
"BMD",
22+
"BND",
23+
"BOB",
24+
"BRL",
25+
"BSD",
26+
"BWP",
27+
"BYR",
28+
"BZD",
29+
"CAD",
30+
"CDF",
31+
"CHF",
32+
"CLP",
33+
"CNY",
34+
"COP",
35+
"CRC",
36+
"CUC",
37+
"CVE",
38+
"CZK",
39+
"DJF",
40+
"DKK",
41+
"DOP",
42+
"DZD",
43+
"EEK",
44+
"EGP",
45+
"ERN",
46+
"ETB",
47+
"EUR",
48+
"FJD",
49+
"FKP",
50+
"GBP",
51+
"GEL",
52+
"GHS",
53+
"GIP",
54+
"GMD",
55+
"GNF",
56+
"GQE",
57+
"GTQ",
58+
"GYD",
59+
"HKD",
60+
"HNL",
61+
"HRK",
62+
"HTG",
63+
"HUF",
64+
"IDR",
65+
"ILS",
66+
"INR",
67+
"IQD",
68+
"IRR",
69+
"ISK",
70+
"JMD",
71+
"JOD",
72+
"JPY",
73+
"KES",
74+
"KGS",
75+
"KHR",
76+
"KMF",
77+
"KPW",
78+
"KRW",
79+
"KWD",
80+
"KYD",
81+
"KZT",
82+
"LAK",
83+
"LBP",
84+
"LKR",
85+
"LRD",
86+
"LSL",
87+
"LTL",
88+
"LVL",
89+
"LYD",
90+
"MAD",
91+
"MDL",
92+
"MGA",
93+
"MKD",
94+
"MMK",
95+
"MNT",
96+
"MOP",
97+
"MRO",
98+
"MUR",
99+
"MVR",
100+
"MWK",
101+
"MXN",
102+
"MYR",
103+
"MZM",
104+
"NAD",
105+
"NGN",
106+
"NIO",
107+
"NOK",
108+
"NPR",
109+
"NZD",
110+
"OMR",
111+
"PAB",
112+
"PEN",
113+
"PGK",
114+
"PHP",
115+
"PKR",
116+
"PLN",
117+
"PYG",
118+
"QAR",
119+
"RON",
120+
"RSD",
121+
"RUB",
122+
"RWF",
123+
"SAR",
124+
"SBD",
125+
"SCR",
126+
"SDG",
127+
"SEK",
128+
"SGD",
129+
"SHP",
130+
"SLL",
131+
"SOS",
132+
"SRD",
133+
"STD",
134+
"SYP",
135+
"SZL",
136+
"THB",
137+
"TJS",
138+
"TMM",
139+
"TMT",
140+
"TND",
141+
"TOP",
142+
"TRY",
143+
"TTD",
144+
"TWD",
145+
"TZS",
146+
"UAH",
147+
"UGX",
148+
"USD",
149+
"UYU",
150+
"UZS",
151+
"VEB",
152+
"VND",
153+
"VUV",
154+
"WST",
155+
"XAF",
156+
"XCD",
157+
"XOF",
158+
"XPF",
159+
"YER",
160+
"ZAR",
161+
"ZMK",
162+
"ZWR"
163+
]
164+
}

fixtures/_models/debit.json

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,21 @@
1919
"type": "string",
2020
"format": "date-time"
2121
},
22+
"currency": {
23+
"$ref": "_models/debit.json"
24+
},
2225
"amount": {
2326
"description": "The amount of the debit in cents.",
2427
"type": "integer",
2528
"minimum": 1
2629
},
27-
"currency": {
28-
"type": "string",
29-
"enum": [
30-
"USD",
31-
"EUR",
32-
"GBP"
33-
]
34-
},
35-
"amount_in_order_currency": {
36-
"description": "The amount of the debit in cents, denominated in the order_currency.",
30+
"amount_in_captured_currency": {
31+
"description": "The amount of the debit in cents, denominated in the captured_currency.",
3732
"type": "integer",
3833
"minimum": 1
3934
},
40-
"order_currency": {
41-
"type": "string",
42-
"enum": [
43-
"USD",
44-
"EUR",
45-
"GBP"
46-
]
35+
"captured_currency": {
36+
"$ref": "_models/debit.json"
4737
},
4838
"appears_on_statement_as": {
4939
"$ref": "appears_on_statement_as.json"

0 commit comments

Comments
 (0)