@stripe/stripe-js 1.31.0 → 1.32.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/link-authentication.d.ts +26 -0
- package/types/stripe-js/elements/shipping-address.d.ts +27 -1
- package/types/stripe-js/setup-intents.d.ts +5 -0
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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {StripeElementBase, StripeElementChangeEvent} from './base';
|
|
2
|
+
import {StripeError} from '../stripe';
|
|
2
3
|
|
|
3
4
|
export type StripeLinkAuthenticationElement = StripeElementBase & {
|
|
4
5
|
/**
|
|
@@ -80,6 +81,31 @@ export type StripeLinkAuthenticationElement = StripeElementBase & {
|
|
|
80
81
|
eventType: 'escape',
|
|
81
82
|
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
82
83
|
): StripeLinkAuthenticationElement;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Triggered when the element fails to load.
|
|
87
|
+
*/
|
|
88
|
+
on(
|
|
89
|
+
eventType: 'loaderror',
|
|
90
|
+
handler: (event: {
|
|
91
|
+
elementType: 'linkAuthentication';
|
|
92
|
+
error: StripeError;
|
|
93
|
+
}) => any
|
|
94
|
+
): StripeLinkAuthenticationElement;
|
|
95
|
+
once(
|
|
96
|
+
eventType: 'loaderror',
|
|
97
|
+
handler: (event: {
|
|
98
|
+
elementType: 'linkAuthentication';
|
|
99
|
+
error: StripeError;
|
|
100
|
+
}) => any
|
|
101
|
+
): StripeLinkAuthenticationElement;
|
|
102
|
+
off(
|
|
103
|
+
eventType: 'loaderror',
|
|
104
|
+
handler?: (event: {
|
|
105
|
+
elementType: 'linkAuthentication';
|
|
106
|
+
error: StripeError;
|
|
107
|
+
}) => any
|
|
108
|
+
): StripeLinkAuthenticationElement;
|
|
83
109
|
};
|
|
84
110
|
|
|
85
111
|
export interface StripeLinkAuthenticationElementOptions {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {StripeElementBase, StripeElementChangeEvent} from './base';
|
|
2
|
+
import {StripeError} from '../stripe';
|
|
2
3
|
|
|
3
4
|
export type StripeShippingAddressElement = StripeElementBase & {
|
|
4
5
|
/**
|
|
@@ -80,6 +81,31 @@ export type StripeShippingAddressElement = StripeElementBase & {
|
|
|
80
81
|
eventType: 'escape',
|
|
81
82
|
handler?: (event: {elementType: 'shippingAddress'}) => any
|
|
82
83
|
): StripeShippingAddressElement;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Triggered when the element fails to load.
|
|
87
|
+
*/
|
|
88
|
+
on(
|
|
89
|
+
eventType: 'loaderror',
|
|
90
|
+
handler: (event: {
|
|
91
|
+
elementType: 'shippingAddress';
|
|
92
|
+
error: StripeError;
|
|
93
|
+
}) => any
|
|
94
|
+
): StripeShippingAddressElement;
|
|
95
|
+
once(
|
|
96
|
+
eventType: 'loaderror',
|
|
97
|
+
handler: (event: {
|
|
98
|
+
elementType: 'shippingAddress';
|
|
99
|
+
error: StripeError;
|
|
100
|
+
}) => any
|
|
101
|
+
): StripeShippingAddressElement;
|
|
102
|
+
off(
|
|
103
|
+
eventType: 'loaderror',
|
|
104
|
+
handler?: (event: {
|
|
105
|
+
elementType: 'shippingAddress';
|
|
106
|
+
error: StripeError;
|
|
107
|
+
}) => any
|
|
108
|
+
): StripeShippingAddressElement;
|
|
83
109
|
};
|
|
84
110
|
|
|
85
111
|
export interface StripeShippingAddressElementOptions {
|
|
@@ -143,7 +169,7 @@ export interface StripeShippingAddressElementChangeEvent
|
|
|
143
169
|
name: string;
|
|
144
170
|
address: {
|
|
145
171
|
line1: string;
|
|
146
|
-
line2: string;
|
|
172
|
+
line2: string | null;
|
|
147
173
|
city: string;
|
|
148
174
|
state: string;
|
|
149
175
|
postal_code: string;
|
|
@@ -187,6 +187,11 @@ export interface VerifyMicrodepositsForSetupData {
|
|
|
187
187
|
* An array of two positive integers, in cents, equal to the values of the microdeposits sent to the bank account.
|
|
188
188
|
*/
|
|
189
189
|
amounts?: Array<number>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* A six-character code starting with SM present in the microdeposit sent to the bank account.
|
|
193
|
+
*/
|
|
194
|
+
descriptor_code?: string;
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
export interface ConfirmUsBankAccountSetupData
|