Skip to content

Commit 120fdd9

Browse files
authored
fix: updating names from enum to human readable description (#270)
### TL;DR Updated payment rail names from snake_case constants to human-readable display names across all currency configurations. ### What changed? Converted payment rail identifiers from technical constants to user-friendly display names: - `FEDNOW` → `FedNow` - `WIRE` → `Wire` - `SEPA_INSTANT` → `SEPA Instant` - `FASTER_PAYMENTS` → `Faster Payments` - `BANK_TRANSFER` → `Bank Transfer` - `MOBILE_MONEY` → `Mobile Money` - `PAYNOW` → `PayNow` This affects both `instantRails` and `allRails` arrays across all 22 supported currencies in the grid visualizer. ### How to test? 1. Load the grid visualizer component 2. Verify that payment rail names display as proper human-readable text instead of technical constants 3. Check that all currency entries show the updated rail names correctly 4. Ensure functionality remains unchanged - only display names should be different ### Why make this change? Improves user experience by displaying payment methods with proper capitalization and spacing that users would recognize, rather than technical snake_case identifiers that are harder to read and understand.
1 parent cd58890 commit 120fdd9

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

components/grid-visualizer/src/data/currencies.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export const currencies: FiatCurrency[] = [
2121
countryCode: 'us',
2222
accountType: 'USD_ACCOUNT',
2323
accountLabel: 'US Bank Account',
24-
instantRails: ['RTP', 'FEDNOW'],
25-
allRails: ['ACH', 'WIRE', 'RTP', 'FEDNOW'],
24+
instantRails: ['RTP', 'FedNow'],
25+
allRails: ['ACH', 'Wire', 'RTP', 'FedNow'],
2626
examplePerson: { fullName: 'Jane Doe', nationality: 'US' },
2727
},
2828
{
@@ -31,8 +31,8 @@ export const currencies: FiatCurrency[] = [
3131
countryCode: 'eu',
3232
accountType: 'EUR_ACCOUNT',
3333
accountLabel: 'IBAN',
34-
instantRails: ['SEPA_INSTANT'],
35-
allRails: ['SEPA', 'SEPA_INSTANT'],
34+
instantRails: ['SEPA Instant'],
35+
allRails: ['SEPA', 'SEPA Instant'],
3636
examplePerson: { fullName: 'Anna Müller', nationality: 'DE' },
3737
},
3838
{
@@ -41,8 +41,8 @@ export const currencies: FiatCurrency[] = [
4141
countryCode: 'gb',
4242
accountType: 'GBP_ACCOUNT',
4343
accountLabel: 'UK Bank Account',
44-
instantRails: ['FASTER_PAYMENTS'],
45-
allRails: ['FASTER_PAYMENTS'],
44+
instantRails: ['Faster Payments'],
45+
allRails: ['Faster Payments'],
4646
examplePerson: { fullName: 'James Wilson', nationality: 'GB' },
4747
},
4848
{
@@ -81,8 +81,8 @@ export const currencies: FiatCurrency[] = [
8181
countryCode: 'dk',
8282
accountType: 'DKK_ACCOUNT',
8383
accountLabel: 'IBAN',
84-
instantRails: ['SEPA_INSTANT'],
85-
allRails: ['SEPA', 'SEPA_INSTANT'],
84+
instantRails: ['SEPA Instant'],
85+
allRails: ['SEPA', 'SEPA Instant'],
8686
examplePerson: { fullName: 'Lars Jensen', nationality: 'DK' },
8787
},
8888
{
@@ -92,7 +92,7 @@ export const currencies: FiatCurrency[] = [
9292
accountType: 'NGN_ACCOUNT',
9393
accountLabel: 'Nigerian Bank Account',
9494
instantRails: [],
95-
allRails: ['BANK_TRANSFER'],
95+
allRails: ['Bank Transfer'],
9696
examplePerson: { fullName: 'Chioma Okafor', nationality: 'NG' },
9797
},
9898
{
@@ -102,7 +102,7 @@ export const currencies: FiatCurrency[] = [
102102
accountType: 'CAD_ACCOUNT',
103103
accountLabel: 'Canadian Bank Account',
104104
instantRails: [],
105-
allRails: ['BANK_TRANSFER'],
105+
allRails: ['Bank Transfer'],
106106
examplePerson: { fullName: 'Sophie Tremblay', nationality: 'CA' },
107107
},
108108
{
@@ -112,7 +112,7 @@ export const currencies: FiatCurrency[] = [
112112
accountType: 'PHP_ACCOUNT',
113113
accountLabel: 'Philippine Bank Account',
114114
instantRails: [],
115-
allRails: ['BANK_TRANSFER'],
115+
allRails: ['Bank Transfer'],
116116
examplePerson: { fullName: 'Maria Santos', nationality: 'PH' },
117117
},
118118
{
@@ -121,8 +121,8 @@ export const currencies: FiatCurrency[] = [
121121
countryCode: 'sg',
122122
accountType: 'SGD_ACCOUNT',
123123
accountLabel: 'Singapore Bank Account',
124-
instantRails: ['PAYNOW', 'FAST'],
125-
allRails: ['PAYNOW', 'FAST', 'BANK_TRANSFER'],
124+
instantRails: ['PayNow', 'FAST'],
125+
allRails: ['PayNow', 'FAST', 'Bank Transfer'],
126126
examplePerson: { fullName: 'Wei Lin Tan', nationality: 'SG' },
127127
},
128128
{
@@ -132,7 +132,7 @@ export const currencies: FiatCurrency[] = [
132132
accountType: 'HKD_ACCOUNT',
133133
accountLabel: 'Hong Kong Bank Account',
134134
instantRails: [],
135-
allRails: ['BANK_TRANSFER'],
135+
allRails: ['Bank Transfer'],
136136
examplePerson: { fullName: 'Emily Chan', nationality: 'HK' },
137137
},
138138
{
@@ -142,7 +142,7 @@ export const currencies: FiatCurrency[] = [
142142
accountType: 'IDR_ACCOUNT',
143143
accountLabel: 'Indonesian Bank Account',
144144
instantRails: [],
145-
allRails: ['BANK_TRANSFER'],
145+
allRails: ['Bank Transfer'],
146146
examplePerson: { fullName: 'Siti Rahayu', nationality: 'ID' },
147147
},
148148
{
@@ -152,7 +152,7 @@ export const currencies: FiatCurrency[] = [
152152
accountType: 'KES_ACCOUNT',
153153
accountLabel: 'M-Pesa',
154154
instantRails: [],
155-
allRails: ['MOBILE_MONEY'],
155+
allRails: ['Mobile Money'],
156156
examplePerson: { fullName: 'Wanjiku Kamau', nationality: 'KE' },
157157
},
158158
{
@@ -162,7 +162,7 @@ export const currencies: FiatCurrency[] = [
162162
accountType: 'MYR_ACCOUNT',
163163
accountLabel: 'Malaysian Bank Account',
164164
instantRails: [],
165-
allRails: ['BANK_TRANSFER'],
165+
allRails: ['Bank Transfer'],
166166
examplePerson: { fullName: 'Nurul Aisyah', nationality: 'MY' },
167167
},
168168
{
@@ -172,7 +172,7 @@ export const currencies: FiatCurrency[] = [
172172
accountType: 'RWF_ACCOUNT',
173173
accountLabel: 'Mobile Money',
174174
instantRails: [],
175-
allRails: ['MOBILE_MONEY'],
175+
allRails: ['Mobile Money'],
176176
examplePerson: { fullName: 'Jean Uwimana', nationality: 'RW' },
177177
},
178178
{
@@ -182,7 +182,7 @@ export const currencies: FiatCurrency[] = [
182182
accountType: 'THB_ACCOUNT',
183183
accountLabel: 'Thai Bank Account',
184184
instantRails: [],
185-
allRails: ['BANK_TRANSFER'],
185+
allRails: ['Bank Transfer'],
186186
examplePerson: { fullName: 'Somchai Prasert', nationality: 'TH' },
187187
},
188188
{
@@ -192,7 +192,7 @@ export const currencies: FiatCurrency[] = [
192192
accountType: 'TZS_ACCOUNT',
193193
accountLabel: 'Mobile Money',
194194
instantRails: [],
195-
allRails: ['MOBILE_MONEY'],
195+
allRails: ['Mobile Money'],
196196
examplePerson: { fullName: 'Halima Mwanga', nationality: 'TZ' },
197197
},
198198
{
@@ -202,7 +202,7 @@ export const currencies: FiatCurrency[] = [
202202
accountType: 'VND_ACCOUNT',
203203
accountLabel: 'Vietnamese Bank Account',
204204
instantRails: [],
205-
allRails: ['BANK_TRANSFER'],
205+
allRails: ['Bank Transfer'],
206206
examplePerson: { fullName: 'Nguyen Thi Lan', nationality: 'VN' },
207207
},
208208
{
@@ -212,7 +212,7 @@ export const currencies: FiatCurrency[] = [
212212
accountType: 'ZAR_ACCOUNT',
213213
accountLabel: 'South African Bank Account',
214214
instantRails: [],
215-
allRails: ['BANK_TRANSFER'],
215+
allRails: ['Bank Transfer'],
216216
examplePerson: { fullName: 'Thabo Nkosi', nationality: 'ZA' },
217217
},
218218
{
@@ -222,7 +222,7 @@ export const currencies: FiatCurrency[] = [
222222
accountType: 'ZMW_ACCOUNT',
223223
accountLabel: 'Mobile Money',
224224
instantRails: [],
225-
allRails: ['MOBILE_MONEY'],
225+
allRails: ['Mobile Money'],
226226
examplePerson: { fullName: 'Mwila Tembo', nationality: 'ZM' },
227227
},
228228
{
@@ -232,7 +232,7 @@ export const currencies: FiatCurrency[] = [
232232
accountType: 'MWK_ACCOUNT',
233233
accountLabel: 'Mobile Money',
234234
instantRails: [],
235-
allRails: ['MOBILE_MONEY'],
235+
allRails: ['Mobile Money'],
236236
examplePerson: { fullName: 'Chimwemwe Banda', nationality: 'MW' },
237237
},
238238
{
@@ -242,7 +242,7 @@ export const currencies: FiatCurrency[] = [
242242
accountType: 'UGX_ACCOUNT',
243243
accountLabel: 'Mobile Money',
244244
instantRails: [],
245-
allRails: ['MOBILE_MONEY'],
245+
allRails: ['Mobile Money'],
246246
examplePerson: { fullName: 'Grace Namugga', nationality: 'UG' },
247247
},
248248
{
@@ -252,7 +252,7 @@ export const currencies: FiatCurrency[] = [
252252
accountType: 'XOF_ACCOUNT',
253253
accountLabel: 'Mobile Money',
254254
instantRails: [],
255-
allRails: ['MOBILE_MONEY'],
255+
allRails: ['Mobile Money'],
256256
examplePerson: { fullName: 'Amadou Diallo', nationality: 'SN' },
257257
},
258258
];

0 commit comments

Comments
 (0)