@stripe/stripe-js 1.24.0 → 1.25.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/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +1 -1
- package/types/stripe-js/elements/shipping-address.d.ts +33 -8
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -95,6 +95,31 @@ export interface StripeShippingAddressElementOptions {
|
|
|
95
95
|
* Control which countries are displayed in the shippingAddress Element.
|
|
96
96
|
*/
|
|
97
97
|
allowedCountries?: string[] | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Whether or not ShippingAddressElement accepts PO boxes
|
|
101
|
+
*/
|
|
102
|
+
blockPoBox?: boolean;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Default value for ShippingAddressElement fields
|
|
106
|
+
*/
|
|
107
|
+
defaultValues?: {
|
|
108
|
+
name?: string | null;
|
|
109
|
+
address?: {
|
|
110
|
+
line1?: string | null;
|
|
111
|
+
line2?: string | null;
|
|
112
|
+
city?: string | null;
|
|
113
|
+
state?: string | null;
|
|
114
|
+
postal_code?: string | null;
|
|
115
|
+
country: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Whether or not ShippingAddressElement provides autocomplete suggestions
|
|
121
|
+
*/
|
|
122
|
+
disableAutocomplete?: boolean;
|
|
98
123
|
}
|
|
99
124
|
|
|
100
125
|
export interface StripeShippingAddressElementChangeEvent
|
|
@@ -124,13 +149,13 @@ export interface StripeShippingAddressElementChangeEvent
|
|
|
124
149
|
*/
|
|
125
150
|
value: {
|
|
126
151
|
name: string;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
152
|
+
address: {
|
|
153
|
+
line1: string;
|
|
154
|
+
line2: string;
|
|
155
|
+
city: string;
|
|
156
|
+
state: string;
|
|
157
|
+
postal_code: string;
|
|
158
|
+
country: string;
|
|
159
|
+
};
|
|
135
160
|
};
|
|
136
161
|
}
|