@odus/checkout 0.18.0-beta.2 → 0.18.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 +18 -3
- package/dist/checkout.es.js +968 -930
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
declare type AddressData = {
|
|
2
|
+
street: string;
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
state: string;
|
|
6
|
+
city: string;
|
|
7
|
+
zipCode: string;
|
|
8
|
+
country: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
1
11
|
declare type Appearance = {
|
|
2
12
|
additionalPaymentMethods?: {
|
|
3
13
|
paypal?: {
|
|
@@ -112,9 +122,7 @@ export declare type CheckoutConfig = {
|
|
|
112
122
|
disableErrorMessages?: boolean;
|
|
113
123
|
manualActionHandling?: boolean;
|
|
114
124
|
appearance?: Appearance;
|
|
115
|
-
initialValues?:
|
|
116
|
-
email?: string;
|
|
117
|
-
};
|
|
125
|
+
initialValues?: InitialValues;
|
|
118
126
|
};
|
|
119
127
|
|
|
120
128
|
export declare interface CheckoutInstance {
|
|
@@ -333,6 +341,13 @@ export declare const frLocale: {
|
|
|
333
341
|
}
|
|
334
342
|
};
|
|
335
343
|
|
|
344
|
+
declare type InitialValues = {
|
|
345
|
+
email?: string;
|
|
346
|
+
name?: string;
|
|
347
|
+
billingAddress?: Partial<AddressData>;
|
|
348
|
+
shippingAddress?: Partial<AddressData>;
|
|
349
|
+
};
|
|
350
|
+
|
|
336
351
|
export declare const itLocale: {
|
|
337
352
|
"email": "Email",
|
|
338
353
|
"cardholderNameLabel": "Nome del titolare della carta",
|