@odus/checkout 0.25.0 → 0.26.0-beta.1
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/Alert-CeFsv_tJ.js +7926 -0
- package/dist/checkout.d.ts +14 -673
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.es.js +2513 -10343
- package/dist/elements.d.ts +19 -0
- package/dist/elements.d.ts.map +1 -0
- package/dist/elements.es.js +1496 -0
- package/dist/index.css +1 -1
- package/dist/package.json +8 -4
- package/package.json +8 -4
package/dist/checkout.d.ts
CHANGED
|
@@ -1,673 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
order: number;
|
|
16
|
-
countries?: string[];
|
|
17
|
-
};
|
|
18
|
-
applePay?: {
|
|
19
|
-
enabled: boolean;
|
|
20
|
-
order: number;
|
|
21
|
-
displayName?: string;
|
|
22
|
-
countries?: string[];
|
|
23
|
-
requiredBillingContactFields?: ApplePayContactField[];
|
|
24
|
-
requiredShippingContactFields?: ApplePayContactField[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
styles?: {
|
|
28
|
-
borderRadius: number;
|
|
29
|
-
buttonColor: string;
|
|
30
|
-
buttonFontSize: number;
|
|
31
|
-
buttonTextColor: string;
|
|
32
|
-
fontFamily: string;
|
|
33
|
-
fontSize: number;
|
|
34
|
-
textColor: string;
|
|
35
|
-
};
|
|
36
|
-
layout?: {
|
|
37
|
-
grouped?: boolean;
|
|
38
|
-
actionButton?: {
|
|
39
|
-
translationKey: string;
|
|
40
|
-
};
|
|
41
|
-
phoneNumber?: {
|
|
42
|
-
enabled: boolean;
|
|
43
|
-
label?: string;
|
|
44
|
-
defaultCountry?: string;
|
|
45
|
-
allowedCountries?: string[];
|
|
46
|
-
};
|
|
47
|
-
billingFields?: {
|
|
48
|
-
street?: {
|
|
49
|
-
enabled: boolean;
|
|
50
|
-
label?: string;
|
|
51
|
-
};
|
|
52
|
-
city?: {
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
label?: string;
|
|
55
|
-
};
|
|
56
|
-
state?: {
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
label?: string;
|
|
59
|
-
options?: string[];
|
|
60
|
-
};
|
|
61
|
-
zipCode?: {
|
|
62
|
-
enabled: boolean;
|
|
63
|
-
label?: string;
|
|
64
|
-
};
|
|
65
|
-
firstName?: {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
label?: string;
|
|
68
|
-
};
|
|
69
|
-
lastName?: {
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
label?: string;
|
|
72
|
-
};
|
|
73
|
-
country?: {
|
|
74
|
-
enabled: boolean;
|
|
75
|
-
label?: string;
|
|
76
|
-
options?: string[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
shippingFields?: {
|
|
80
|
-
street?: {
|
|
81
|
-
enabled: boolean;
|
|
82
|
-
label?: string;
|
|
83
|
-
};
|
|
84
|
-
firstName?: {
|
|
85
|
-
enabled: boolean;
|
|
86
|
-
label?: string;
|
|
87
|
-
};
|
|
88
|
-
lastName?: {
|
|
89
|
-
enabled: boolean;
|
|
90
|
-
label?: string;
|
|
91
|
-
};
|
|
92
|
-
city?: {
|
|
93
|
-
enabled: boolean;
|
|
94
|
-
label?: string;
|
|
95
|
-
};
|
|
96
|
-
state?: {
|
|
97
|
-
enabled: boolean;
|
|
98
|
-
label?: string;
|
|
99
|
-
options?: string[];
|
|
100
|
-
};
|
|
101
|
-
zipCode?: {
|
|
102
|
-
enabled: boolean;
|
|
103
|
-
label?: string;
|
|
104
|
-
};
|
|
105
|
-
country?: {
|
|
106
|
-
enabled: boolean;
|
|
107
|
-
label?: string;
|
|
108
|
-
options?: string[];
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
declare type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName';
|
|
115
|
-
|
|
116
|
-
declare type CheckoutCallbacks = {
|
|
117
|
-
onPaymentSucceeded?: (result: PaymentResult) => void;
|
|
118
|
-
onPaymentFailed?: (result: string) => void;
|
|
119
|
-
onActionRequired?: (redirectUrl: string) => void;
|
|
120
|
-
onLoadingStateChange?: (isLoading: boolean) => void;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export declare type CheckoutConfig = {
|
|
124
|
-
apiKey: string;
|
|
125
|
-
returnUrl: string;
|
|
126
|
-
environment: Environment;
|
|
127
|
-
callbacks?: CheckoutCallbacks;
|
|
128
|
-
locale?: Locale;
|
|
129
|
-
disableErrorMessages?: boolean;
|
|
130
|
-
manualActionHandling?: boolean;
|
|
131
|
-
appearance?: Appearance;
|
|
132
|
-
initialValues?: InitialValues;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export declare interface CheckoutInstance {
|
|
136
|
-
mount: (containerId: string) => CheckoutInstance;
|
|
137
|
-
unmount: () => void;
|
|
138
|
-
associatePayment: (paymentId: string, checkoutKey: string) => Promise<void>;
|
|
139
|
-
displayError: (message: string) => void;
|
|
140
|
-
clearError: () => void;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export declare const deLocale: {
|
|
144
|
-
"email": "E-Mail",
|
|
145
|
-
"phoneNumber": "Telefonnummer",
|
|
146
|
-
"countrySearch": "Länder suchen",
|
|
147
|
-
"countryNoResults": "Keine Ergebnisse gefunden",
|
|
148
|
-
"cardholderNameLabel": "Name des/der Karteninhaber/in",
|
|
149
|
-
"cardInformation": "Kartendaten",
|
|
150
|
-
"cardholderNamePlaceholder": "Vollständiger Name",
|
|
151
|
-
"cardExpiry": "MM / JJ",
|
|
152
|
-
"loading": "Das Fenster nicht schließen",
|
|
153
|
-
"pay-with-card": "oder mit Karte bezahlen",
|
|
154
|
-
"buttonTexts": {
|
|
155
|
-
"pay": "ZAHLEN",
|
|
156
|
-
"submit": "ABSENDEN",
|
|
157
|
-
"getPlan": "MEINEN PLAN ERHALTEN",
|
|
158
|
-
"donate": "spenden",
|
|
159
|
-
"book": "jetzt buchen",
|
|
160
|
-
"order": "jetzt bestellen"
|
|
161
|
-
},
|
|
162
|
-
"address": {
|
|
163
|
-
"billingTitle": "Rechnungsadresse",
|
|
164
|
-
"shippingTitle": "Lieferadresse",
|
|
165
|
-
"sameAsBilling": "Meine Rechnungsadresse verwenden",
|
|
166
|
-
"street": "Straße und Hausnummer",
|
|
167
|
-
"addressLine1": "Adresszeile 1",
|
|
168
|
-
"firstName": "Vorname",
|
|
169
|
-
"lastName": "Nachname",
|
|
170
|
-
"state": "Bundesland / Region",
|
|
171
|
-
"city": "Stadt",
|
|
172
|
-
"townCity": "Stadt/Gemeinde",
|
|
173
|
-
"zipCode": "Postleitzahl",
|
|
174
|
-
"postalCode": "Postleitzahl",
|
|
175
|
-
"country": "Land",
|
|
176
|
-
"chooseCountry": "Land auswählen",
|
|
177
|
-
"chooseState": "Bundesland auswählen",
|
|
178
|
-
"chooseProvince": "Provinz auswählen"
|
|
179
|
-
},
|
|
180
|
-
"validation": {
|
|
181
|
-
"emailSuggestion": "Meinten Sie {{email}}?",
|
|
182
|
-
"emailInvalid": "Ihre E-Mail-Adresse ist nicht korrekt",
|
|
183
|
-
"emailRequired": "E-Mail-Adresse ist erforderlich",
|
|
184
|
-
"cardNumberRequired": "Kartennummer ist erforderlich",
|
|
185
|
-
"cardExpiryInvalid": "Das Ablaufdatum Ihrer Karte liegt in der Vergangenheit",
|
|
186
|
-
"cardExpiryFormat": "Das Ablaufdatum Ihrer Karte ist unvollständig",
|
|
187
|
-
"cardSecurityFormat": "Der Sicherheitscode Ihrer Karte ist unvollständig",
|
|
188
|
-
"nameRequired": "Gib deinen Namen genau so ein, wie er auf deiner Karte steht",
|
|
189
|
-
"cardNumberInvalid": "Die Kartennummer ist unvollständig",
|
|
190
|
-
"phoneNumberRequired": "Telefonnummer ist erforderlich",
|
|
191
|
-
"phoneNumberInvalid": "Bitte geben Sie eine gültige Telefonnummer ein",
|
|
192
|
-
"invalid-checkout": "Checkout konnte nicht initialisiert werden",
|
|
193
|
-
"streetRequired": "Straße ist erforderlich",
|
|
194
|
-
"firstNameRequired": "Vorname ist erforderlich",
|
|
195
|
-
"lastNameRequired": "Nachname ist erforderlich",
|
|
196
|
-
"stateRequired": "Bundesland / Region ist erforderlich",
|
|
197
|
-
"cityRequired": "Stadt ist erforderlich",
|
|
198
|
-
"zipCodeRequired": "Postleitzahl ist erforderlich",
|
|
199
|
-
"zipCodeInvalid": "Bitte geben Sie eine gültige Postleitzahl ein",
|
|
200
|
-
"countryRequired": "Land ist erforderlich"
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
export declare const enLocale: {
|
|
205
|
-
"email": "Email",
|
|
206
|
-
"phoneNumber": "Phone Number",
|
|
207
|
-
"countrySearch": "Search countries",
|
|
208
|
-
"countryNoResults": "No results found",
|
|
209
|
-
"cardholderNameLabel": "Cardholder name",
|
|
210
|
-
"cardInformation": "Card information",
|
|
211
|
-
"cardholderNamePlaceholder": "Full name on card",
|
|
212
|
-
"cardExpiry": "MM / YY",
|
|
213
|
-
"loading": "Do not close the window",
|
|
214
|
-
"pay-with-card": "or pay with card",
|
|
215
|
-
"buttonTexts": {
|
|
216
|
-
"pay": "PAY",
|
|
217
|
-
"submit": "SUBMIT",
|
|
218
|
-
"getPlan": "GET MY PLAN",
|
|
219
|
-
"donate": "DONATE",
|
|
220
|
-
"book": "BOOK NOW",
|
|
221
|
-
"order": "ORDER NOW"
|
|
222
|
-
},
|
|
223
|
-
"address": {
|
|
224
|
-
"billingTitle": "Billing Address",
|
|
225
|
-
"shippingTitle": "Shipping Address",
|
|
226
|
-
"sameAsBilling": "Use my billing address",
|
|
227
|
-
"street": "Street Address",
|
|
228
|
-
"addressLine1": "Address Line 1",
|
|
229
|
-
"firstName": "First Name",
|
|
230
|
-
"lastName": "Last Name",
|
|
231
|
-
"state": "State / Region",
|
|
232
|
-
"city": "City",
|
|
233
|
-
"townCity": "Town/City",
|
|
234
|
-
"zipCode": "Zip Code",
|
|
235
|
-
"postalCode": "Postal/Zip Code",
|
|
236
|
-
"country": "Country",
|
|
237
|
-
"chooseCountry": "Choose country",
|
|
238
|
-
"chooseState": "Choose state",
|
|
239
|
-
"chooseProvince": "Choose province"
|
|
240
|
-
},
|
|
241
|
-
"validation": {
|
|
242
|
-
"emailSuggestion": "Did you mean {{email}}?",
|
|
243
|
-
"emailInvalid": "Your email is incomplete",
|
|
244
|
-
"emailRequired": "Email is required",
|
|
245
|
-
"cardNumberRequired": "Card number is required",
|
|
246
|
-
"cardExpiryInvalid": "Your card's expiration date is in the past",
|
|
247
|
-
"cardExpiryFormat": "Your card's expiration date is incomplete",
|
|
248
|
-
"cardSecurityFormat": "Your card's security code is incomplete",
|
|
249
|
-
"nameRequired": "Please enter the name as it appears on your card",
|
|
250
|
-
"cardNumberInvalid": "Your card number is incomplete",
|
|
251
|
-
"phoneNumberRequired": "Phone number is required",
|
|
252
|
-
"phoneNumberInvalid": "Please enter a valid phone number",
|
|
253
|
-
"invalid-checkout": "Failed to initialize checkout",
|
|
254
|
-
"streetRequired": "Street address is required",
|
|
255
|
-
"firstNameRequired": "First name is required",
|
|
256
|
-
"lastNameRequired": "Last name is required",
|
|
257
|
-
"stateRequired": "State / Region is required",
|
|
258
|
-
"cityRequired": "City is required",
|
|
259
|
-
"zipCodeRequired": "Zip code is required",
|
|
260
|
-
"zipCodeInvalid": "Please enter a valid zip code",
|
|
261
|
-
"countryRequired": "Country is required"
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
declare type Environment = 'test' | 'live';
|
|
266
|
-
|
|
267
|
-
export declare const esLocale: {
|
|
268
|
-
"email": "Correo electrónico",
|
|
269
|
-
"phoneNumber": "Número de teléfono",
|
|
270
|
-
"countrySearch": "Buscar países",
|
|
271
|
-
"countryNoResults": "No se encontraron resultados",
|
|
272
|
-
"cardholderNameLabel": "Nombre del titular de la tarjeta",
|
|
273
|
-
"cardInformation": "Información de la tarjeta",
|
|
274
|
-
"cardholderNamePlaceholder": "Nombre completo en la tarjeta",
|
|
275
|
-
"cardExpiry": "MM / AA",
|
|
276
|
-
"loading": "Por favor, no cierre esta ventana",
|
|
277
|
-
"pay-with-card": "o paga con tarjeta",
|
|
278
|
-
"buttonTexts": {
|
|
279
|
-
"pay": "PAGAR",
|
|
280
|
-
"submit": "ENVIAR",
|
|
281
|
-
"getPlan": "OBTENER MI PLAN",
|
|
282
|
-
"donate": "DONAR",
|
|
283
|
-
"book": "RESERVAR AHORA",
|
|
284
|
-
"order": "ORDENAR AHORA"
|
|
285
|
-
},
|
|
286
|
-
"address": {
|
|
287
|
-
"billingTitle": "Dirección de facturación",
|
|
288
|
-
"shippingTitle": "Dirección de envío",
|
|
289
|
-
"sameAsBilling": "Usar mi dirección de facturación",
|
|
290
|
-
"street": "Dirección",
|
|
291
|
-
"addressLine1": "Dirección línea 1",
|
|
292
|
-
"firstName": "Nombre",
|
|
293
|
-
"lastName": "Apellido",
|
|
294
|
-
"state": "Estado / Región",
|
|
295
|
-
"city": "Ciudad",
|
|
296
|
-
"townCity": "Localidad/Ciudad",
|
|
297
|
-
"zipCode": "Código postal",
|
|
298
|
-
"postalCode": "Código postal",
|
|
299
|
-
"country": "País",
|
|
300
|
-
"chooseCountry": "Seleccionar país",
|
|
301
|
-
"chooseState": "Seleccionar estado",
|
|
302
|
-
"chooseProvince": "Seleccionar provincia"
|
|
303
|
-
},
|
|
304
|
-
"validation": {
|
|
305
|
-
"emailSuggestion": "¿Quisiste decir {{email}}?",
|
|
306
|
-
"emailInvalid": "Su correo electrónico no es válido",
|
|
307
|
-
"emailRequired": "El correo electrónico es obligatorio",
|
|
308
|
-
"cardNumberRequired": "El número de tarjeta es obligatorio",
|
|
309
|
-
"cardExpiryInvalid": "La fecha de vencimiento de la tarjeta ya pasó",
|
|
310
|
-
"cardExpiryFormat": "La fecha de vencimiento de su tarjeta está incompleta",
|
|
311
|
-
"cardSecurityFormat": "El código de seguridad de su tarjeta está incompleto",
|
|
312
|
-
"nameRequired": "Por favor, ingrese el nombre tal como aparece en su tarjeta",
|
|
313
|
-
"cardNumberInvalid": "Su número de tarjeta no es válido",
|
|
314
|
-
"phoneNumberRequired": "El número de teléfono es obligatorio",
|
|
315
|
-
"phoneNumberInvalid": "Por favor, ingrese un número de teléfono válido",
|
|
316
|
-
"invalid-checkout": "No se pudo inicializar el checkout",
|
|
317
|
-
"streetRequired": "La dirección es obligatoria",
|
|
318
|
-
"firstNameRequired": "El nombre es obligatorio",
|
|
319
|
-
"lastNameRequired": "El apellido es obligatorio",
|
|
320
|
-
"stateRequired": "El estado / región es obligatorio",
|
|
321
|
-
"cityRequired": "La ciudad es obligatoria",
|
|
322
|
-
"zipCodeRequired": "El código postal es obligatorio",
|
|
323
|
-
"zipCodeInvalid": "Por favor, ingrese un código postal válido",
|
|
324
|
-
"countryRequired": "El país es obligatorio"
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
export declare const frLocale: {
|
|
329
|
-
"email": "E-mail",
|
|
330
|
-
"phoneNumber": "Numéro de téléphone",
|
|
331
|
-
"countrySearch": "Rechercher des pays",
|
|
332
|
-
"countryNoResults": "Aucun résultat trouvé",
|
|
333
|
-
"cardholderNameLabel": "Nom du titulaire de la carte",
|
|
334
|
-
"cardInformation": "Informations de la carte",
|
|
335
|
-
"cardholderNamePlaceholder": "Nom complet figurant sur la carte",
|
|
336
|
-
"cardExpiry": "MM / AA",
|
|
337
|
-
"loading": "Veuillez ne pas fermer cette fenêtre",
|
|
338
|
-
"pay-with-card": "ou payez avec une carte",
|
|
339
|
-
"buttonTexts": {
|
|
340
|
-
"pay": "PAYER",
|
|
341
|
-
"submit": "ENVOYER",
|
|
342
|
-
"getPlan": "OBTENIR MON PLAN",
|
|
343
|
-
"donate": "FAIRE UN DON",
|
|
344
|
-
"book": "RÉSERVER MAINTENANT",
|
|
345
|
-
"order": "COMMANDER MAINTENANT"
|
|
346
|
-
},
|
|
347
|
-
"address": {
|
|
348
|
-
"billingTitle": "Adresse de facturation",
|
|
349
|
-
"shippingTitle": "Adresse de livraison",
|
|
350
|
-
"sameAsBilling": "Utiliser mon adresse de facturation",
|
|
351
|
-
"street": "Adresse",
|
|
352
|
-
"addressLine1": "Adresse ligne 1",
|
|
353
|
-
"firstName": "Prénom",
|
|
354
|
-
"lastName": "Nom",
|
|
355
|
-
"state": "État / Région",
|
|
356
|
-
"city": "Ville",
|
|
357
|
-
"townCity": "Ville/Commune",
|
|
358
|
-
"zipCode": "Code postal",
|
|
359
|
-
"postalCode": "Code postal",
|
|
360
|
-
"country": "Pays",
|
|
361
|
-
"chooseCountry": "Choisir un pays",
|
|
362
|
-
"chooseState": "Choisir un état",
|
|
363
|
-
"chooseProvince": "Choisir une province"
|
|
364
|
-
},
|
|
365
|
-
"validation": {
|
|
366
|
-
"emailSuggestion": "Vouliez-vous dire {{email}}?",
|
|
367
|
-
"emailInvalid": "Votre adresse e-mail n'est pas valide",
|
|
368
|
-
"emailRequired": "L'adresse e-mail est requise",
|
|
369
|
-
"cardNumberRequired": "Le numéro de carte est requis",
|
|
370
|
-
"cardExpiryInvalid": "La date d'expiration de votre carte est dans le passé",
|
|
371
|
-
"cardExpiryFormat": "La date d'expiration de votre carte est incomplète",
|
|
372
|
-
"cardSecurityFormat": "Le code de sécurité de votre carte est incomplet",
|
|
373
|
-
"nameRequired": "Veuillez saisir le nom tel qu'il figure sur votre carte",
|
|
374
|
-
"cardNumberInvalid": "Votre numéro de carte est invalide",
|
|
375
|
-
"phoneNumberRequired": "Le numéro de téléphone est requis",
|
|
376
|
-
"phoneNumberInvalid": "Veuillez saisir un numéro de téléphone valide",
|
|
377
|
-
"invalid-checkout": "Échec de l'initialisation du checkout",
|
|
378
|
-
"streetRequired": "L'adresse est requise",
|
|
379
|
-
"firstNameRequired": "Le prénom est requis",
|
|
380
|
-
"lastNameRequired": "Le nom est requis",
|
|
381
|
-
"stateRequired": "L'état / région est requis",
|
|
382
|
-
"cityRequired": "La ville est requise",
|
|
383
|
-
"zipCodeRequired": "Le code postal est requis",
|
|
384
|
-
"zipCodeInvalid": "Veuillez saisir un code postal valide",
|
|
385
|
-
"countryRequired": "Le pays est requis"
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
declare type InitialValues = {
|
|
390
|
-
email?: string;
|
|
391
|
-
name?: string;
|
|
392
|
-
phoneNumber?: string;
|
|
393
|
-
billingAddress?: Partial<AddressData>;
|
|
394
|
-
shippingAddress?: Partial<AddressData>;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
export declare const itLocale: {
|
|
398
|
-
"email": "Email",
|
|
399
|
-
"phoneNumber": "Numero di telefono",
|
|
400
|
-
"countrySearch": "Cerca paesi",
|
|
401
|
-
"countryNoResults": "Nessun risultato trovato",
|
|
402
|
-
"cardholderNameLabel": "Nome del titolare della carta",
|
|
403
|
-
"cardInformation": "Informazioni sulla carta",
|
|
404
|
-
"cardholderNamePlaceholder": "Nome completo sulla carta",
|
|
405
|
-
"cardExpiry": "MM / AA",
|
|
406
|
-
"loading": "Non chiudere la finestra",
|
|
407
|
-
"pay-with-card": "o paga con carta",
|
|
408
|
-
"buttonTexts": {
|
|
409
|
-
"pay": "PAGA",
|
|
410
|
-
"submit": "INVIA",
|
|
411
|
-
"getPlan": "OTTIENI IL MIO PIANO",
|
|
412
|
-
"donate": "DONARE",
|
|
413
|
-
"book": "PRENOTA ORA",
|
|
414
|
-
"order": "ORDINA ORA"
|
|
415
|
-
},
|
|
416
|
-
"address": {
|
|
417
|
-
"billingTitle": "Indirizzo di fatturazione",
|
|
418
|
-
"shippingTitle": "Indirizzo di spedizione",
|
|
419
|
-
"sameAsBilling": "Usa il mio indirizzo di fatturazione",
|
|
420
|
-
"street": "Indirizzo",
|
|
421
|
-
"addressLine1": "Indirizzo riga 1",
|
|
422
|
-
"firstName": "Nome",
|
|
423
|
-
"lastName": "Cognome",
|
|
424
|
-
"state": "Stato / Regione",
|
|
425
|
-
"city": "Città",
|
|
426
|
-
"townCity": "Città/Comune",
|
|
427
|
-
"zipCode": "Codice postale",
|
|
428
|
-
"postalCode": "Codice postale",
|
|
429
|
-
"country": "Paese",
|
|
430
|
-
"chooseCountry": "Scegli paese",
|
|
431
|
-
"chooseState": "Scegli stato",
|
|
432
|
-
"chooseProvince": "Scegli provincia"
|
|
433
|
-
},
|
|
434
|
-
"validation": {
|
|
435
|
-
"emailSuggestion": "Intendevi {{email}}?",
|
|
436
|
-
"emailInvalid": "La tua email non è corretta",
|
|
437
|
-
"emailRequired": "L'indirizzo email è obbligatorio",
|
|
438
|
-
"cardNumberRequired": "Il numero della carta è obbligatorio",
|
|
439
|
-
"cardExpiryInvalid": "La data di scadenza della tua carta è nel passato",
|
|
440
|
-
"cardExpiryFormat": "La data di scadenza della tua carta è incompleta",
|
|
441
|
-
"cardSecurityFormat": "Il codice di sicurezza della tua carta è incompleto",
|
|
442
|
-
"nameRequired": "Inserisci il nome come appare sulla tua carta",
|
|
443
|
-
"cardNumberInvalid": "Il numero della tua carta non è valido",
|
|
444
|
-
"phoneNumberRequired": "Il numero di telefono è obbligatorio",
|
|
445
|
-
"phoneNumberInvalid": "Inserisci un numero di telefono valido",
|
|
446
|
-
"invalid-checkout": "Impossibile inizializzare il checkout",
|
|
447
|
-
"streetRequired": "L'indirizzo è obbligatorio",
|
|
448
|
-
"firstNameRequired": "Il nome è obbligatorio",
|
|
449
|
-
"lastNameRequired": "Il cognome è obbligatorio",
|
|
450
|
-
"stateRequired": "Lo stato / regione è obbligatorio",
|
|
451
|
-
"cityRequired": "La città è obbligatoria",
|
|
452
|
-
"zipCodeRequired": "Il codice postale è obbligatorio",
|
|
453
|
-
"zipCodeInvalid": "Inserisci un codice postale valido",
|
|
454
|
-
"countryRequired": "Il paese è obbligatorio"
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export declare type Locale = 'en' | 'de' | 'es' | 'fr' | 'pl' | 'pt' | 'it' | 'tr';
|
|
459
|
-
|
|
460
|
-
export declare class OdusCheckout {
|
|
461
|
-
private config;
|
|
462
|
-
private paymentState;
|
|
463
|
-
private apiService;
|
|
464
|
-
private formManager;
|
|
465
|
-
private stateManager;
|
|
466
|
-
private sessionId;
|
|
467
|
-
constructor(config: CheckoutConfig);
|
|
468
|
-
private validateConfig;
|
|
469
|
-
mount(containerId: string): this;
|
|
470
|
-
unmount(): void;
|
|
471
|
-
private handleSubmit;
|
|
472
|
-
private handlePaymentResponse;
|
|
473
|
-
private handleAuthorizationError;
|
|
474
|
-
private getPaymentMethod;
|
|
475
|
-
displayError(message: string): void;
|
|
476
|
-
clearError(): void;
|
|
477
|
-
associatePayment(paymentId: string, checkoutKey: string): Promise<void>;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
declare type PaymentResult = 'pending' | 'three_ds_requested' | 'authorized' | 'failed';
|
|
481
|
-
|
|
482
|
-
export declare const plLocale: {
|
|
483
|
-
"email": "Adres e-mail",
|
|
484
|
-
"phoneNumber": "Numer telefonu",
|
|
485
|
-
"countrySearch": "Szukaj krajów",
|
|
486
|
-
"countryNoResults": "Brak wyników",
|
|
487
|
-
"cardholderNameLabel": "Imię i nazwisko posiadacza karty",
|
|
488
|
-
"cardInformation": "Informacje o karcie",
|
|
489
|
-
"cardholderNamePlaceholder": "Imię i nazwisko na karcie",
|
|
490
|
-
"cardExpiry": "MM / RR",
|
|
491
|
-
"loading": "Proszę nie zamykać tego okna",
|
|
492
|
-
"pay-with-card": "albo zapłać kartą",
|
|
493
|
-
"buttonTexts": {
|
|
494
|
-
"pay": "ZAPŁAĆ",
|
|
495
|
-
"submit": "WYŚLIJ",
|
|
496
|
-
"getPlan": "POBIERZ MÓJ PLAN",
|
|
497
|
-
"donate": "PRZEKAŻ DAROWIZNĘ",
|
|
498
|
-
"book": "ZAREZERWUJ TERAZ",
|
|
499
|
-
"order": "ZAMÓW TERAZ"
|
|
500
|
-
},
|
|
501
|
-
"address": {
|
|
502
|
-
"billingTitle": "Adres rozliczeniowy",
|
|
503
|
-
"shippingTitle": "Adres dostawy",
|
|
504
|
-
"sameAsBilling": "Użyj mojego adresu rozliczeniowego",
|
|
505
|
-
"street": "Ulica i numer",
|
|
506
|
-
"addressLine1": "Adres - linia 1",
|
|
507
|
-
"firstName": "Imię",
|
|
508
|
-
"lastName": "Nazwisko",
|
|
509
|
-
"state": "Województwo / Region",
|
|
510
|
-
"city": "Miasto",
|
|
511
|
-
"townCity": "Miejscowość/Miasto",
|
|
512
|
-
"zipCode": "Kod pocztowy",
|
|
513
|
-
"postalCode": "Kod pocztowy",
|
|
514
|
-
"country": "Kraj",
|
|
515
|
-
"chooseCountry": "Wybierz kraj",
|
|
516
|
-
"chooseState": "Wybierz województwo",
|
|
517
|
-
"chooseProvince": "Wybierz prowincję"
|
|
518
|
-
},
|
|
519
|
-
"validation": {
|
|
520
|
-
"emailSuggestion": "Czy chodziło Ci o {{email}}?",
|
|
521
|
-
"emailInvalid": "Państwa adres e-mail jest nieprawidłowy",
|
|
522
|
-
"emailRequired": "Adres e-mail jest wymagany",
|
|
523
|
-
"cardNumberRequired": "Numer karty jest wymagany",
|
|
524
|
-
"cardExpiryInvalid": "Data ważności Państwa karty jest w przeszłości",
|
|
525
|
-
"cardExpiryFormat": "Data ważności Państwa karty jest niekompletna",
|
|
526
|
-
"cardSecurityFormat": "Kod zabezpieczający Państwa karty jest niekompletny",
|
|
527
|
-
"nameRequired": "Proszę wpisać imię i nazwisko tak, jak widnieje na karcie",
|
|
528
|
-
"cardNumberInvalid": "Numer Państwa karty jest nieprawidłowy",
|
|
529
|
-
"phoneNumberRequired": "Numer telefonu jest wymagany",
|
|
530
|
-
"phoneNumberInvalid": "Proszę wpisać prawidłowy numer telefonu",
|
|
531
|
-
"invalid-checkout": "Nie udało się zainicjować procesu płatności",
|
|
532
|
-
"streetRequired": "Adres jest wymagany",
|
|
533
|
-
"firstNameRequired": "Imię jest wymagane",
|
|
534
|
-
"lastNameRequired": "Nazwisko jest wymagane",
|
|
535
|
-
"stateRequired": "Województwo / Region jest wymagane",
|
|
536
|
-
"cityRequired": "Miasto jest wymagane",
|
|
537
|
-
"zipCodeRequired": "Kod pocztowy jest wymagany",
|
|
538
|
-
"zipCodeInvalid": "Proszę wpisać prawidłowy kod pocztowy",
|
|
539
|
-
"countryRequired": "Kraj jest wymagany"
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
export declare const ptLocale: {
|
|
544
|
-
"email": "E-mail",
|
|
545
|
-
"phoneNumber": "Número de telefone",
|
|
546
|
-
"countrySearch": "Pesquisar países",
|
|
547
|
-
"countryNoResults": "Nenhum resultado encontrado",
|
|
548
|
-
"cardholderNameLabel": "Nome do titular do cartão",
|
|
549
|
-
"cardInformation": "Informações do cartão",
|
|
550
|
-
"cardholderNamePlaceholder": "Nome completo no cartão",
|
|
551
|
-
"cardExpiry": "MM / AA",
|
|
552
|
-
"loading": "Por favor, não feche esta janela",
|
|
553
|
-
"pay-with-card": "ou pagar com cartão",
|
|
554
|
-
"buttonTexts": {
|
|
555
|
-
"pay": "PAGAR",
|
|
556
|
-
"submit": "ENVIAR",
|
|
557
|
-
"getPlan": "OBTER MEU PLANO",
|
|
558
|
-
"donate": "DOAR",
|
|
559
|
-
"book": "RESERVAR AGORA",
|
|
560
|
-
"order": "FAZER PEDIDO"
|
|
561
|
-
},
|
|
562
|
-
"address": {
|
|
563
|
-
"billingTitle": "Endereço de faturação",
|
|
564
|
-
"shippingTitle": "Endereço de envio",
|
|
565
|
-
"sameAsBilling": "Usar o meu endereço de faturação",
|
|
566
|
-
"street": "Morada",
|
|
567
|
-
"addressLine1": "Morada linha 1",
|
|
568
|
-
"firstName": "Nome",
|
|
569
|
-
"lastName": "Apelido",
|
|
570
|
-
"state": "Estado / Região",
|
|
571
|
-
"city": "Cidade",
|
|
572
|
-
"townCity": "Localidade/Cidade",
|
|
573
|
-
"zipCode": "Código postal",
|
|
574
|
-
"postalCode": "Código postal",
|
|
575
|
-
"country": "País",
|
|
576
|
-
"chooseCountry": "Escolher país",
|
|
577
|
-
"chooseState": "Escolher estado",
|
|
578
|
-
"chooseProvince": "Escolher província"
|
|
579
|
-
},
|
|
580
|
-
"validation": {
|
|
581
|
-
"emailSuggestion": "Você quis dizer {{email}}?",
|
|
582
|
-
"emailInvalid": "O seu endereço de e-mail não é válido",
|
|
583
|
-
"emailRequired": "O endereço de e-mail é obrigatório",
|
|
584
|
-
"cardNumberRequired": "O número do cartão é obrigatório",
|
|
585
|
-
"cardExpiryInvalid": "A data de validade do seu cartão está no passado",
|
|
586
|
-
"cardExpiryFormat": "A data de validade do seu cartão está incompleta",
|
|
587
|
-
"cardSecurityFormat": "O código de segurança do seu cartão está incompleto",
|
|
588
|
-
"nameRequired": "Por favor, insira o nome conforme aparece no cartão",
|
|
589
|
-
"cardNumberInvalid": "O número do seu cartão é inválido",
|
|
590
|
-
"phoneNumberRequired": "O número de telefone é obrigatório",
|
|
591
|
-
"phoneNumberInvalid": "Por favor, insira um número de telefone válido",
|
|
592
|
-
"invalid-checkout": "Falha ao inicializar o checkout",
|
|
593
|
-
"streetRequired": "A morada é obrigatória",
|
|
594
|
-
"firstNameRequired": "O nome é obrigatório",
|
|
595
|
-
"lastNameRequired": "O apelido é obrigatório",
|
|
596
|
-
"stateRequired": "O estado / região é obrigatório",
|
|
597
|
-
"cityRequired": "A cidade é obrigatória",
|
|
598
|
-
"zipCodeRequired": "O código postal é obrigatório",
|
|
599
|
-
"zipCodeInvalid": "Por favor, insira um código postal válido",
|
|
600
|
-
"countryRequired": "O país é obrigatório"
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
export declare const pushError: (error: Error, context?: Record<string, string>) => void;
|
|
605
|
-
|
|
606
|
-
export declare const pushEvent: (name: string, attributes?: Record<string, string>) => void;
|
|
607
|
-
|
|
608
|
-
export declare const pushLog: (message: string, level?: "info" | "warn" | "error", context?: Record<string, string>) => void;
|
|
609
|
-
|
|
610
|
-
export declare const pushMeasurement: (name: string, value: number, unit?: string, context?: Record<string, string>) => void;
|
|
611
|
-
|
|
612
|
-
export declare const trLocale: {
|
|
613
|
-
"email": "E-posta",
|
|
614
|
-
"phoneNumber": "Telefon Numarası",
|
|
615
|
-
"countrySearch": "Ülkeleri ara",
|
|
616
|
-
"countryNoResults": "Sonuç bulunamadı",
|
|
617
|
-
"cardholderNameLabel": "Kart sahibinin adı",
|
|
618
|
-
"cardInformation": "Kart bilgileri",
|
|
619
|
-
"cardholderNamePlaceholder": "Kart üzerindeki tam ad",
|
|
620
|
-
"cardExpiry": "AA / YY",
|
|
621
|
-
"loading": "Lütfen pencereyi kapatmayın",
|
|
622
|
-
"pay-with-card": "veya bir kartla ödeyin",
|
|
623
|
-
"buttonTexts": {
|
|
624
|
-
"pay": "ÖDE",
|
|
625
|
-
"submit": "GÖNDER",
|
|
626
|
-
"getPlan": "PLANIMI AL",
|
|
627
|
-
"donate": "BAĞIŞ YAP",
|
|
628
|
-
"book": "ŞİMDİ REZERVASYON YAP",
|
|
629
|
-
"order": "ŞİMDİ SİPARİŞ VER"
|
|
630
|
-
},
|
|
631
|
-
"address": {
|
|
632
|
-
"billingTitle": "Fatura Adresi",
|
|
633
|
-
"shippingTitle": "Teslimat Adresi",
|
|
634
|
-
"sameAsBilling": "Fatura adresimi kullan",
|
|
635
|
-
"street": "Sokak Adresi",
|
|
636
|
-
"addressLine1": "Adres Satırı 1",
|
|
637
|
-
"firstName": "Ad",
|
|
638
|
-
"lastName": "Soyad",
|
|
639
|
-
"state": "İl / Bölge",
|
|
640
|
-
"city": "Şehir",
|
|
641
|
-
"townCity": "Şehir/İlçe",
|
|
642
|
-
"zipCode": "Posta Kodu",
|
|
643
|
-
"postalCode": "Posta Kodu",
|
|
644
|
-
"country": "Ülke",
|
|
645
|
-
"chooseCountry": "Ülke seçin",
|
|
646
|
-
"chooseState": "İl seçin",
|
|
647
|
-
"chooseProvince": "Eyalet seçin"
|
|
648
|
-
},
|
|
649
|
-
"validation": {
|
|
650
|
-
"emailSuggestion": "{{email}} demek mi istediniz?",
|
|
651
|
-
"emailInvalid": "E-posta adresiniz geçerli değil",
|
|
652
|
-
"emailRequired": "E-posta adresi gerekli",
|
|
653
|
-
"cardNumberRequired": "Kart numarası gerekli",
|
|
654
|
-
"cardExpiryInvalid": "Kartınızın son kullanma tarihi geçmiş",
|
|
655
|
-
"cardExpiryFormat": "Kartınızın son kullanma tarihi eksik",
|
|
656
|
-
"cardSecurityFormat": "Kartınızın güvenlik kodu eksik",
|
|
657
|
-
"nameRequired": "Lütfen kart üzerindeki ismi girin",
|
|
658
|
-
"cardNumberInvalid": "Kart numaranız geçersiz",
|
|
659
|
-
"phoneNumberRequired": "Telefon numarası gerekli",
|
|
660
|
-
"phoneNumberInvalid": "Lütfen geçerli bir telefon numarası girin",
|
|
661
|
-
"invalid-checkout": "Checkout başlatılamadı",
|
|
662
|
-
"streetRequired": "Sokak adresi gerekli",
|
|
663
|
-
"firstNameRequired": "Ad gerekli",
|
|
664
|
-
"lastNameRequired": "Soyad gerekli",
|
|
665
|
-
"stateRequired": "İl / Bölge gerekli",
|
|
666
|
-
"cityRequired": "Şehir gerekli",
|
|
667
|
-
"zipCodeRequired": "Posta kodu gerekli",
|
|
668
|
-
"zipCodeInvalid": "Lütfen geçerli bir posta kodu girin",
|
|
669
|
-
"countryRequired": "Ülke gerekli"
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
export { }
|
|
1
|
+
export { Checkout as OdusCheckout } from './services/checkout/Checkout.service';
|
|
2
|
+
export { pushError, pushEvent, pushLog, pushMeasurement, } from './services/telemetry/Telemetry.service';
|
|
3
|
+
export type { CheckoutConfig } from './types/checkout/CheckoutConfig.type';
|
|
4
|
+
export type { CheckoutInstance } from './types/checkout/CheckoutInstance.type';
|
|
5
|
+
export type { Locale } from './types/common/Locale.type';
|
|
6
|
+
export { default as deLocale } from './locales/de.json';
|
|
7
|
+
export { default as enLocale } from './locales/en.json';
|
|
8
|
+
export { default as esLocale } from './locales/es.json';
|
|
9
|
+
export { default as frLocale } from './locales/fr.json';
|
|
10
|
+
export { default as itLocale } from './locales/it.json';
|
|
11
|
+
export { default as plLocale } from './locales/pl.json';
|
|
12
|
+
export { default as ptLocale } from './locales/pt.json';
|
|
13
|
+
export { default as trLocale } from './locales/tr.json';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|