@odus/checkout 0.17.0 → 0.18.0-beta.0
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/dist/checkout.d.ts +240 -16
- package/dist/checkout.es.js +3978 -3365
- package/dist/index.css +1 -1
- package/dist/package.json +22 -1
- package/package.json +22 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare type Appearance = {
|
|
|
10
10
|
order: number;
|
|
11
11
|
displayName?: string;
|
|
12
12
|
countries?: string[];
|
|
13
|
+
requiredBillingContactFields?: ApplePayContactField[];
|
|
14
|
+
requiredShippingContactFields?: ApplePayContactField[];
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
styles?: {
|
|
@@ -25,9 +27,73 @@ declare type Appearance = {
|
|
|
25
27
|
actionButton?: {
|
|
26
28
|
translationKey: string;
|
|
27
29
|
};
|
|
30
|
+
billingFields?: {
|
|
31
|
+
street?: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
label?: string;
|
|
34
|
+
};
|
|
35
|
+
city?: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
label?: string;
|
|
38
|
+
};
|
|
39
|
+
state?: {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
label?: string;
|
|
42
|
+
};
|
|
43
|
+
zipCode?: {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
label?: string;
|
|
46
|
+
};
|
|
47
|
+
firstName?: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
label?: string;
|
|
50
|
+
};
|
|
51
|
+
lastName?: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
label?: string;
|
|
54
|
+
};
|
|
55
|
+
country?: {
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
label?: string;
|
|
58
|
+
options?: string[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
shippingFields?: {
|
|
62
|
+
street?: {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
label?: string;
|
|
65
|
+
};
|
|
66
|
+
firstName?: {
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
label?: string;
|
|
69
|
+
};
|
|
70
|
+
lastName?: {
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
label?: string;
|
|
73
|
+
};
|
|
74
|
+
city?: {
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
label?: string;
|
|
77
|
+
};
|
|
78
|
+
state?: {
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
label?: string;
|
|
81
|
+
};
|
|
82
|
+
zipCode?: {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
label?: string;
|
|
85
|
+
};
|
|
86
|
+
country?: {
|
|
87
|
+
enabled: boolean;
|
|
88
|
+
label?: string;
|
|
89
|
+
options?: string[];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
28
92
|
};
|
|
29
93
|
};
|
|
30
94
|
|
|
95
|
+
declare type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName';
|
|
96
|
+
|
|
31
97
|
declare type CheckoutCallbacks = {
|
|
32
98
|
onPaymentSucceeded?: (result: PaymentResult) => void;
|
|
33
99
|
onPaymentFailed?: (result: string) => void;
|
|
@@ -71,6 +137,19 @@ export declare const deLocale: {
|
|
|
71
137
|
"book": "jetzt buchen",
|
|
72
138
|
"order": "jetzt bestellen"
|
|
73
139
|
},
|
|
140
|
+
"address": {
|
|
141
|
+
"billingTitle": "Rechnungsadresse",
|
|
142
|
+
"shippingTitle": "Lieferadresse",
|
|
143
|
+
"sameAsBilling": "Meine Rechnungsadresse verwenden",
|
|
144
|
+
"street": "Straße und Hausnummer",
|
|
145
|
+
"firstName": "Vorname",
|
|
146
|
+
"lastName": "Nachname",
|
|
147
|
+
"state": "Bundesland / Region",
|
|
148
|
+
"city": "Stadt",
|
|
149
|
+
"zipCode": "Postleitzahl",
|
|
150
|
+
"country": "Land",
|
|
151
|
+
"chooseCountry": "Land auswählen"
|
|
152
|
+
},
|
|
74
153
|
"validation": {
|
|
75
154
|
"emailSuggestion": "Meinten Sie {{email}}?",
|
|
76
155
|
"emailInvalid": "Ihre E-Mail-Adresse ist nicht korrekt",
|
|
@@ -81,7 +160,14 @@ export declare const deLocale: {
|
|
|
81
160
|
"cardSecurityFormat": "Der Sicherheitscode Ihrer Karte ist unvollständig",
|
|
82
161
|
"nameRequired": "Gib deinen Namen genau so ein, wie er auf deiner Karte steht",
|
|
83
162
|
"cardNumberInvalid": "Die Kartennummer ist unvollständig",
|
|
84
|
-
"invalid-checkout": "Checkout konnte nicht initialisiert werden"
|
|
163
|
+
"invalid-checkout": "Checkout konnte nicht initialisiert werden",
|
|
164
|
+
"streetRequired": "Straße ist erforderlich",
|
|
165
|
+
"firstNameRequired": "Vorname ist erforderlich",
|
|
166
|
+
"lastNameRequired": "Nachname ist erforderlich",
|
|
167
|
+
"stateRequired": "Bundesland / Region ist erforderlich",
|
|
168
|
+
"cityRequired": "Stadt ist erforderlich",
|
|
169
|
+
"zipCodeRequired": "Postleitzahl ist erforderlich",
|
|
170
|
+
"zipCodeInvalid": "Bitte geben Sie eine gültige Postleitzahl ein"
|
|
85
171
|
}
|
|
86
172
|
};
|
|
87
173
|
|
|
@@ -101,18 +187,37 @@ export declare const enLocale: {
|
|
|
101
187
|
"book": "BOOK NOW",
|
|
102
188
|
"order": "ORDER NOW"
|
|
103
189
|
},
|
|
190
|
+
"address": {
|
|
191
|
+
"billingTitle": "Billing Address",
|
|
192
|
+
"shippingTitle": "Shipping Address",
|
|
193
|
+
"sameAsBilling": "Use my billing address",
|
|
194
|
+
"street": "Street Address",
|
|
195
|
+
"firstName": "First Name",
|
|
196
|
+
"lastName": "Last Name",
|
|
197
|
+
"state": "State / Region",
|
|
198
|
+
"city": "City",
|
|
199
|
+
"zipCode": "Zip Code",
|
|
200
|
+
"country": "Country",
|
|
201
|
+
"chooseCountry": "Choose country"
|
|
202
|
+
},
|
|
104
203
|
"validation": {
|
|
105
204
|
"emailSuggestion": "Did you mean {{email}}?",
|
|
106
205
|
"emailInvalid": "Your email is incomplete",
|
|
107
206
|
"emailRequired": "Email is required",
|
|
108
207
|
"cardNumberRequired": "Card number is required",
|
|
109
208
|
"cardExpiryInvalid": "Your card's expiration date is in the past",
|
|
110
|
-
"cardExpiryFormat": "Your card
|
|
111
|
-
"cardSecurityFormat": "Your card
|
|
209
|
+
"cardExpiryFormat": "Your card's expiration date is incomplete",
|
|
210
|
+
"cardSecurityFormat": "Your card's security code is incomplete",
|
|
112
211
|
"nameRequired": "Please enter the name as it appears on your card",
|
|
113
|
-
|
|
114
212
|
"cardNumberInvalid": "Your card number is incomplete",
|
|
115
|
-
"invalid-checkout": "Failed to initialize checkout"
|
|
213
|
+
"invalid-checkout": "Failed to initialize checkout",
|
|
214
|
+
"streetRequired": "Street address is required",
|
|
215
|
+
"firstNameRequired": "First name is required",
|
|
216
|
+
"lastNameRequired": "Last name is required",
|
|
217
|
+
"stateRequired": "State / Region is required",
|
|
218
|
+
"cityRequired": "City is required",
|
|
219
|
+
"zipCodeRequired": "Zip code is required",
|
|
220
|
+
"zipCodeInvalid": "Please enter a valid zip code"
|
|
116
221
|
}
|
|
117
222
|
};
|
|
118
223
|
|
|
@@ -134,6 +239,19 @@ export declare const esLocale: {
|
|
|
134
239
|
"book": "RESERVAR AHORA",
|
|
135
240
|
"order": "ORDENAR AHORA"
|
|
136
241
|
},
|
|
242
|
+
"address": {
|
|
243
|
+
"billingTitle": "Dirección de facturación",
|
|
244
|
+
"shippingTitle": "Dirección de envío",
|
|
245
|
+
"sameAsBilling": "Usar mi dirección de facturación",
|
|
246
|
+
"street": "Dirección",
|
|
247
|
+
"firstName": "Nombre",
|
|
248
|
+
"lastName": "Apellido",
|
|
249
|
+
"state": "Estado / Región",
|
|
250
|
+
"city": "Ciudad",
|
|
251
|
+
"zipCode": "Código postal",
|
|
252
|
+
"country": "País",
|
|
253
|
+
"chooseCountry": "Seleccionar país"
|
|
254
|
+
},
|
|
137
255
|
"validation": {
|
|
138
256
|
"emailSuggestion": "¿Quisiste decir {{email}}?",
|
|
139
257
|
"emailInvalid": "Su correo electrónico no es válido",
|
|
@@ -144,7 +262,14 @@ export declare const esLocale: {
|
|
|
144
262
|
"cardSecurityFormat": "El código de seguridad de su tarjeta está incompleto",
|
|
145
263
|
"nameRequired": "Por favor, ingrese el nombre tal como aparece en su tarjeta",
|
|
146
264
|
"cardNumberInvalid": "Su número de tarjeta no es válido",
|
|
147
|
-
"invalid-checkout": "No se pudo inicializar el checkout"
|
|
265
|
+
"invalid-checkout": "No se pudo inicializar el checkout",
|
|
266
|
+
"streetRequired": "La dirección es obligatoria",
|
|
267
|
+
"firstNameRequired": "El nombre es obligatorio",
|
|
268
|
+
"lastNameRequired": "El apellido es obligatorio",
|
|
269
|
+
"stateRequired": "El estado / región es obligatorio",
|
|
270
|
+
"cityRequired": "La ciudad es obligatoria",
|
|
271
|
+
"zipCodeRequired": "El código postal es obligatorio",
|
|
272
|
+
"zipCodeInvalid": "Por favor, ingrese un código postal válido"
|
|
148
273
|
}
|
|
149
274
|
};
|
|
150
275
|
|
|
@@ -164,18 +289,37 @@ export declare const frLocale: {
|
|
|
164
289
|
"book": "RÉSERVER MAINTENANT",
|
|
165
290
|
"order": "COMMANDER MAINTENANT"
|
|
166
291
|
},
|
|
292
|
+
"address": {
|
|
293
|
+
"billingTitle": "Adresse de facturation",
|
|
294
|
+
"shippingTitle": "Adresse de livraison",
|
|
295
|
+
"sameAsBilling": "Utiliser mon adresse de facturation",
|
|
296
|
+
"street": "Adresse",
|
|
297
|
+
"firstName": "Prénom",
|
|
298
|
+
"lastName": "Nom",
|
|
299
|
+
"state": "État / Région",
|
|
300
|
+
"city": "Ville",
|
|
301
|
+
"zipCode": "Code postal",
|
|
302
|
+
"country": "Pays",
|
|
303
|
+
"chooseCountry": "Choisir un pays"
|
|
304
|
+
},
|
|
167
305
|
"validation": {
|
|
168
306
|
"emailSuggestion": "Vouliez-vous dire {{email}}?",
|
|
169
|
-
"emailInvalid": "Votre adresse e-mail n
|
|
170
|
-
"emailRequired": "L
|
|
307
|
+
"emailInvalid": "Votre adresse e-mail n'est pas valide",
|
|
308
|
+
"emailRequired": "L'adresse e-mail est requise",
|
|
171
309
|
"cardNumberRequired": "Le numéro de carte est requis",
|
|
172
310
|
"cardExpiryInvalid": "La date d'expiration de votre carte est dans le passé",
|
|
173
|
-
"cardExpiryFormat": "La date d
|
|
311
|
+
"cardExpiryFormat": "La date d'expiration de votre carte est incomplète",
|
|
174
312
|
"cardSecurityFormat": "Le code de sécurité de votre carte est incomplet",
|
|
175
|
-
"nameRequired": "Veuillez saisir le nom tel qu
|
|
176
|
-
|
|
313
|
+
"nameRequired": "Veuillez saisir le nom tel qu'il figure sur votre carte",
|
|
177
314
|
"cardNumberInvalid": "Votre numéro de carte est invalide",
|
|
178
|
-
"invalid-checkout": "Échec de l'initialisation du checkout"
|
|
315
|
+
"invalid-checkout": "Échec de l'initialisation du checkout",
|
|
316
|
+
"streetRequired": "L'adresse est requise",
|
|
317
|
+
"firstNameRequired": "Le prénom est requis",
|
|
318
|
+
"lastNameRequired": "Le nom est requis",
|
|
319
|
+
"stateRequired": "L'état / région est requis",
|
|
320
|
+
"cityRequired": "La ville est requise",
|
|
321
|
+
"zipCodeRequired": "Le code postal est requis",
|
|
322
|
+
"zipCodeInvalid": "Veuillez saisir un code postal valide"
|
|
179
323
|
}
|
|
180
324
|
};
|
|
181
325
|
|
|
@@ -195,6 +339,19 @@ export declare const itLocale: {
|
|
|
195
339
|
"book": "PRENOTA ORA",
|
|
196
340
|
"order": "ORDINA ORA"
|
|
197
341
|
},
|
|
342
|
+
"address": {
|
|
343
|
+
"billingTitle": "Indirizzo di fatturazione",
|
|
344
|
+
"shippingTitle": "Indirizzo di spedizione",
|
|
345
|
+
"sameAsBilling": "Usa il mio indirizzo di fatturazione",
|
|
346
|
+
"street": "Indirizzo",
|
|
347
|
+
"firstName": "Nome",
|
|
348
|
+
"lastName": "Cognome",
|
|
349
|
+
"state": "Stato / Regione",
|
|
350
|
+
"city": "Città",
|
|
351
|
+
"zipCode": "Codice postale",
|
|
352
|
+
"country": "Paese",
|
|
353
|
+
"chooseCountry": "Scegli paese"
|
|
354
|
+
},
|
|
198
355
|
"validation": {
|
|
199
356
|
"emailSuggestion": "Intendevi {{email}}?",
|
|
200
357
|
"emailInvalid": "La tua email non è corretta",
|
|
@@ -205,7 +362,14 @@ export declare const itLocale: {
|
|
|
205
362
|
"cardSecurityFormat": "Il codice di sicurezza della tua carta è incompleto",
|
|
206
363
|
"nameRequired": "Inserisci il nome come appare sulla tua carta",
|
|
207
364
|
"cardNumberInvalid": "Il numero della tua carta non è valido",
|
|
208
|
-
"invalid-checkout": "Impossibile inizializzare il checkout"
|
|
365
|
+
"invalid-checkout": "Impossibile inizializzare il checkout",
|
|
366
|
+
"streetRequired": "L'indirizzo è obbligatorio",
|
|
367
|
+
"firstNameRequired": "Il nome è obbligatorio",
|
|
368
|
+
"lastNameRequired": "Il cognome è obbligatorio",
|
|
369
|
+
"stateRequired": "Lo stato / regione è obbligatorio",
|
|
370
|
+
"cityRequired": "La città è obbligatoria",
|
|
371
|
+
"zipCodeRequired": "Il codice postale è obbligatorio",
|
|
372
|
+
"zipCodeInvalid": "Inserisci un codice postale valido"
|
|
209
373
|
}
|
|
210
374
|
};
|
|
211
375
|
|
|
@@ -247,6 +411,19 @@ export declare const plLocale: {
|
|
|
247
411
|
"book": "ZAREZERWUJ TERAZ",
|
|
248
412
|
"order": "ZAMÓW TERAZ"
|
|
249
413
|
},
|
|
414
|
+
"address": {
|
|
415
|
+
"billingTitle": "Adres rozliczeniowy",
|
|
416
|
+
"shippingTitle": "Adres dostawy",
|
|
417
|
+
"sameAsBilling": "Użyj mojego adresu rozliczeniowego",
|
|
418
|
+
"street": "Ulica i numer",
|
|
419
|
+
"firstName": "Imię",
|
|
420
|
+
"lastName": "Nazwisko",
|
|
421
|
+
"state": "Województwo / Region",
|
|
422
|
+
"city": "Miasto",
|
|
423
|
+
"zipCode": "Kod pocztowy",
|
|
424
|
+
"country": "Kraj",
|
|
425
|
+
"chooseCountry": "Wybierz kraj"
|
|
426
|
+
},
|
|
250
427
|
"validation": {
|
|
251
428
|
"emailSuggestion": "Czy chodziło Ci o {{email}}?",
|
|
252
429
|
"emailInvalid": "Państwa adres e-mail jest nieprawidłowy",
|
|
@@ -257,7 +434,14 @@ export declare const plLocale: {
|
|
|
257
434
|
"cardSecurityFormat": "Kod zabezpieczający Państwa karty jest niekompletny",
|
|
258
435
|
"nameRequired": "Proszę wpisać imię i nazwisko tak, jak widnieje na karcie",
|
|
259
436
|
"cardNumberInvalid": "Numer Państwa karty jest nieprawidłowy",
|
|
260
|
-
"invalid-checkout": "Nie udało się zainicjować procesu płatności"
|
|
437
|
+
"invalid-checkout": "Nie udało się zainicjować procesu płatności",
|
|
438
|
+
"streetRequired": "Adres jest wymagany",
|
|
439
|
+
"firstNameRequired": "Imię jest wymagane",
|
|
440
|
+
"lastNameRequired": "Nazwisko jest wymagane",
|
|
441
|
+
"stateRequired": "Województwo / Region jest wymagane",
|
|
442
|
+
"cityRequired": "Miasto jest wymagane",
|
|
443
|
+
"zipCodeRequired": "Kod pocztowy jest wymagany",
|
|
444
|
+
"zipCodeInvalid": "Proszę wpisać prawidłowy kod pocztowy"
|
|
261
445
|
}
|
|
262
446
|
};
|
|
263
447
|
|
|
@@ -277,6 +461,19 @@ export declare const ptLocale: {
|
|
|
277
461
|
"book": "RESERVAR AGORA",
|
|
278
462
|
"order": "FAZER PEDIDO"
|
|
279
463
|
},
|
|
464
|
+
"address": {
|
|
465
|
+
"billingTitle": "Endereço de faturação",
|
|
466
|
+
"shippingTitle": "Endereço de envio",
|
|
467
|
+
"sameAsBilling": "Usar o meu endereço de faturação",
|
|
468
|
+
"street": "Morada",
|
|
469
|
+
"firstName": "Nome",
|
|
470
|
+
"lastName": "Apelido",
|
|
471
|
+
"state": "Estado / Região",
|
|
472
|
+
"city": "Cidade",
|
|
473
|
+
"zipCode": "Código postal",
|
|
474
|
+
"country": "País",
|
|
475
|
+
"chooseCountry": "Escolher país"
|
|
476
|
+
},
|
|
280
477
|
"validation": {
|
|
281
478
|
"emailSuggestion": "Você quis dizer {{email}}?",
|
|
282
479
|
"emailInvalid": "O seu endereço de e-mail não é válido",
|
|
@@ -287,7 +484,14 @@ export declare const ptLocale: {
|
|
|
287
484
|
"cardSecurityFormat": "O código de segurança do seu cartão está incompleto",
|
|
288
485
|
"nameRequired": "Por favor, insira o nome conforme aparece no cartão",
|
|
289
486
|
"cardNumberInvalid": "O número do seu cartão é inválido",
|
|
290
|
-
"invalid-checkout": "Falha ao inicializar o checkout"
|
|
487
|
+
"invalid-checkout": "Falha ao inicializar o checkout",
|
|
488
|
+
"streetRequired": "A morada é obrigatória",
|
|
489
|
+
"firstNameRequired": "O nome é obrigatório",
|
|
490
|
+
"lastNameRequired": "O apelido é obrigatório",
|
|
491
|
+
"stateRequired": "O estado / região é obrigatório",
|
|
492
|
+
"cityRequired": "A cidade é obrigatória",
|
|
493
|
+
"zipCodeRequired": "O código postal é obrigatório",
|
|
494
|
+
"zipCodeInvalid": "Por favor, insira um código postal válido"
|
|
291
495
|
}
|
|
292
496
|
};
|
|
293
497
|
|
|
@@ -315,6 +519,19 @@ export declare const trLocale: {
|
|
|
315
519
|
"book": "ŞİMDİ REZERVASYON YAP",
|
|
316
520
|
"order": "ŞİMDİ SİPARİŞ VER"
|
|
317
521
|
},
|
|
522
|
+
"address": {
|
|
523
|
+
"billingTitle": "Fatura Adresi",
|
|
524
|
+
"shippingTitle": "Teslimat Adresi",
|
|
525
|
+
"sameAsBilling": "Fatura adresimi kullan",
|
|
526
|
+
"street": "Sokak Adresi",
|
|
527
|
+
"firstName": "Ad",
|
|
528
|
+
"lastName": "Soyad",
|
|
529
|
+
"state": "İl / Bölge",
|
|
530
|
+
"city": "Şehir",
|
|
531
|
+
"zipCode": "Posta Kodu",
|
|
532
|
+
"country": "Ülke",
|
|
533
|
+
"chooseCountry": "Ülke seçin"
|
|
534
|
+
},
|
|
318
535
|
"validation": {
|
|
319
536
|
"emailSuggestion": "{{email}} demek mi istediniz?",
|
|
320
537
|
"emailInvalid": "E-posta adresiniz geçerli değil",
|
|
@@ -325,7 +542,14 @@ export declare const trLocale: {
|
|
|
325
542
|
"cardSecurityFormat": "Kartınızın güvenlik kodu eksik",
|
|
326
543
|
"nameRequired": "Lütfen kart üzerindeki ismi girin",
|
|
327
544
|
"cardNumberInvalid": "Kart numaranız geçersiz",
|
|
328
|
-
"invalid-checkout": "Checkout başlatılamadı"
|
|
545
|
+
"invalid-checkout": "Checkout başlatılamadı",
|
|
546
|
+
"streetRequired": "Sokak adresi gerekli",
|
|
547
|
+
"firstNameRequired": "Ad gerekli",
|
|
548
|
+
"lastNameRequired": "Soyad gerekli",
|
|
549
|
+
"stateRequired": "İl / Bölge gerekli",
|
|
550
|
+
"cityRequired": "Şehir gerekli",
|
|
551
|
+
"zipCodeRequired": "Posta kodu gerekli",
|
|
552
|
+
"zipCodeInvalid": "Lütfen geçerli bir posta kodu girin"
|
|
329
553
|
}
|
|
330
554
|
};
|
|
331
555
|
|