@stripe/stripe-js 3.0.7 → 3.0.9
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/api/bank-accounts.d.mts +61 -0
- package/dist/api/bank-accounts.d.ts +61 -0
- package/dist/api/cards.d.mts +130 -0
- package/dist/api/cards.d.ts +130 -0
- package/dist/api/financial-connections.d.mts +232 -0
- package/dist/api/financial-connections.d.ts +232 -0
- package/dist/api/index.d.mts +11 -0
- package/dist/api/index.d.ts +11 -0
- package/dist/api/orders.d.mts +122 -0
- package/dist/api/orders.d.ts +122 -0
- package/dist/api/payment-intents.d.mts +330 -0
- package/dist/api/payment-intents.d.ts +330 -0
- package/dist/api/payment-methods.d.mts +452 -0
- package/dist/api/payment-methods.d.ts +452 -0
- package/dist/api/setup-intents.d.mts +184 -0
- package/dist/api/setup-intents.d.ts +184 -0
- package/dist/api/shared.d.mts +125 -0
- package/dist/api/shared.d.ts +125 -0
- package/dist/api/sources.d.mts +1045 -0
- package/dist/api/sources.d.ts +1045 -0
- package/dist/api/tokens.d.mts +639 -0
- package/dist/api/tokens.d.ts +639 -0
- package/dist/api/verification-sessions.d.mts +9 -0
- package/dist/api/verification-sessions.d.ts +9 -0
- package/dist/index.d.mts +4 -12782
- package/dist/index.d.ts +4 -12782
- package/dist/{stripe.js → index.js} +1 -1
- package/dist/{stripe.mjs → index.mjs} +1 -1
- package/dist/pure.d.mts +5 -0
- package/dist/pure.d.ts +5 -0
- package/dist/pure.js +204 -0
- package/dist/pure.mjs +200 -0
- package/dist/shared.d.mts +6 -0
- package/dist/shared.d.ts +6 -0
- package/dist/stripe-js/checkout.d.mts +153 -0
- package/dist/stripe-js/checkout.d.ts +153 -0
- package/dist/stripe-js/custom-checkout.d.mts +402 -0
- package/dist/stripe-js/custom-checkout.d.ts +402 -0
- package/dist/stripe-js/elements/address.d.mts +261 -0
- package/dist/stripe-js/elements/address.d.ts +261 -0
- package/dist/stripe-js/elements/affirm-message.d.mts +65 -0
- package/dist/stripe-js/elements/affirm-message.d.ts +65 -0
- package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +119 -0
- package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +119 -0
- package/dist/stripe-js/elements/apple-pay.d.mts +156 -0
- package/dist/stripe-js/elements/apple-pay.d.ts +156 -0
- package/dist/stripe-js/elements/au-bank-account.d.mts +138 -0
- package/dist/stripe-js/elements/au-bank-account.d.ts +138 -0
- package/dist/stripe-js/elements/base.d.mts +264 -0
- package/dist/stripe-js/elements/base.d.ts +264 -0
- package/dist/stripe-js/elements/card-cvc.d.mts +119 -0
- package/dist/stripe-js/elements/card-cvc.d.ts +119 -0
- package/dist/stripe-js/elements/card-expiry.d.mts +119 -0
- package/dist/stripe-js/elements/card-expiry.d.ts +119 -0
- package/dist/stripe-js/elements/card-number.d.mts +200 -0
- package/dist/stripe-js/elements/card-number.d.ts +200 -0
- package/dist/stripe-js/elements/card.d.mts +226 -0
- package/dist/stripe-js/elements/card.d.ts +226 -0
- package/dist/stripe-js/elements/cart.d.mts +224 -0
- package/dist/stripe-js/elements/cart.d.ts +224 -0
- package/dist/stripe-js/elements/eps-bank.d.mts +140 -0
- package/dist/stripe-js/elements/eps-bank.d.ts +140 -0
- package/dist/stripe-js/elements/express-checkout.d.mts +446 -0
- package/dist/stripe-js/elements/express-checkout.d.ts +446 -0
- package/dist/stripe-js/elements/fpx-bank.d.mts +134 -0
- package/dist/stripe-js/elements/fpx-bank.d.ts +134 -0
- package/dist/stripe-js/elements/iban.d.mts +135 -0
- package/dist/stripe-js/elements/iban.d.ts +135 -0
- package/dist/stripe-js/elements/ideal-bank.d.mts +140 -0
- package/dist/stripe-js/elements/ideal-bank.d.ts +140 -0
- package/dist/stripe-js/elements/index.d.mts +22 -0
- package/dist/stripe-js/elements/index.d.ts +22 -0
- package/dist/stripe-js/elements/issuing/index.d.mts +5 -0
- package/dist/stripe-js/elements/issuing/index.d.ts +5 -0
- package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +37 -0
- package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +37 -0
- package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +32 -0
- package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +32 -0
- package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +32 -0
- package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +32 -0
- package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +40 -0
- package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +40 -0
- package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +32 -0
- package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +32 -0
- package/dist/stripe-js/elements/link-authentication.d.mts +158 -0
- package/dist/stripe-js/elements/link-authentication.d.ts +158 -0
- package/dist/stripe-js/elements/p24-bank.d.mts +140 -0
- package/dist/stripe-js/elements/p24-bank.d.ts +140 -0
- package/dist/stripe-js/elements/payment-method-messaging.d.mts +98 -0
- package/dist/stripe-js/elements/payment-method-messaging.d.ts +98 -0
- package/dist/stripe-js/elements/payment-request-button.d.mts +151 -0
- package/dist/stripe-js/elements/payment-request-button.d.ts +151 -0
- package/dist/stripe-js/elements/payment.d.mts +275 -0
- package/dist/stripe-js/elements/payment.d.ts +275 -0
- package/dist/stripe-js/elements/shipping-address.d.mts +215 -0
- package/dist/stripe-js/elements/shipping-address.d.ts +215 -0
- package/dist/stripe-js/elements-group.d.mts +1129 -0
- package/dist/stripe-js/elements-group.d.ts +1129 -0
- package/dist/stripe-js/embedded-checkout.d.mts +35 -0
- package/dist/stripe-js/embedded-checkout.d.ts +35 -0
- package/dist/stripe-js/ephemeral-keys.d.mts +3 -0
- package/dist/stripe-js/ephemeral-keys.d.ts +3 -0
- package/dist/stripe-js/financial-connections.d.mts +19 -0
- package/dist/stripe-js/financial-connections.d.ts +19 -0
- package/dist/stripe-js/index.d.mts +13 -0
- package/dist/stripe-js/index.d.ts +13 -0
- package/dist/stripe-js/orders.d.mts +9 -0
- package/dist/stripe-js/orders.d.ts +9 -0
- package/dist/stripe-js/payment-intents.d.mts +1470 -0
- package/dist/stripe-js/payment-intents.d.ts +1470 -0
- package/dist/stripe-js/payment-request.d.mts +529 -0
- package/dist/stripe-js/payment-request.d.ts +529 -0
- package/dist/stripe-js/setup-intents.d.mts +250 -0
- package/dist/stripe-js/setup-intents.d.ts +250 -0
- package/dist/stripe-js/stripe.d.mts +1472 -0
- package/dist/stripe-js/stripe.d.ts +1472 -0
- package/dist/stripe-js/token-and-sources.d.mts +110 -0
- package/dist/stripe-js/token-and-sources.d.ts +110 -0
- package/dist/utils.d.mts +2 -0
- package/dist/utils.d.ts +2 -0
- package/lib/index.d.mts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/index.mjs +1 -0
- package/package.json +11 -10
- package/pure/index.d.mts +1 -12761
- package/pure/index.d.ts +1 -12761
- package/pure/index.js +1 -204
- package/pure/index.mjs +1 -200
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardCvcDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardCvcDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardCvcDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardCvcDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardCvcDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardCvcDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardCvcDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardCvcDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardCvcDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardCvcDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardExpiryDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardExpiryDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardExpiryDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardExpiryDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardExpiryDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardExpiryDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardExpiryDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardExpiryDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardExpiryDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardExpiryDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardNumberDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardNumberDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardNumberDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Triggered when the element is fully rendered and can accept `element.focus` calls.
|
|
15
|
+
*/
|
|
16
|
+
on(
|
|
17
|
+
eventType: 'ready',
|
|
18
|
+
handler: (event: {elementType: 'issuingCardNumberDisplay'}) => any
|
|
19
|
+
): StripeIssuingCardNumberDisplayElement;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface StripeIssuingCardNumberDisplayElementOptions {
|
|
23
|
+
/**
|
|
24
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
25
|
+
*/
|
|
26
|
+
issuingCard: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
30
|
+
* card details request
|
|
31
|
+
*/
|
|
32
|
+
ephemeralKeySecret?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
36
|
+
*/
|
|
37
|
+
nonce?: string;
|
|
38
|
+
|
|
39
|
+
style?: StripeElementStyle;
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardNumberDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardNumberDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardNumberDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Triggered when the element is fully rendered and can accept `element.focus` calls.
|
|
15
|
+
*/
|
|
16
|
+
on(
|
|
17
|
+
eventType: 'ready',
|
|
18
|
+
handler: (event: {elementType: 'issuingCardNumberDisplay'}) => any
|
|
19
|
+
): StripeIssuingCardNumberDisplayElement;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface StripeIssuingCardNumberDisplayElementOptions {
|
|
23
|
+
/**
|
|
24
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
25
|
+
*/
|
|
26
|
+
issuingCard: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
30
|
+
* card details request
|
|
31
|
+
*/
|
|
32
|
+
ephemeralKeySecret?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
36
|
+
*/
|
|
37
|
+
nonce?: string;
|
|
38
|
+
|
|
39
|
+
style?: StripeElementStyle;
|
|
40
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardPinDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardPinDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardPinDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardPinDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardPinDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {StripeElementBase, StripeElementStyle} from '../base';
|
|
2
|
+
|
|
3
|
+
export type StripeIssuingCardPinDisplayElement = StripeElementBase & {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the options the `IssuingCardPinDisplayElement` was initialized with.
|
|
6
|
+
* Updates are merged into the existing configuration.
|
|
7
|
+
*
|
|
8
|
+
* The styles of an `IssuingCardPinDisplayElement` can be dynamically changed using `element.update`.
|
|
9
|
+
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
|
|
10
|
+
*/
|
|
11
|
+
update(options: Partial<StripeIssuingCardPinDisplayElementOptions>): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface StripeIssuingCardPinDisplayElementOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The token (e.g. `ic_abc123`) of the issued card to display in this Element
|
|
17
|
+
*/
|
|
18
|
+
issuingCard: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The secret component of the ephemeral key with which to authenticate this sensitive
|
|
22
|
+
* card details request
|
|
23
|
+
*/
|
|
24
|
+
ephemeralKeySecret?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
|
|
28
|
+
*/
|
|
29
|
+
nonce?: string;
|
|
30
|
+
|
|
31
|
+
style?: StripeElementStyle;
|
|
32
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import {StripeElementBase} from './base';
|
|
2
|
+
import {StripeError} from '../stripe';
|
|
3
|
+
|
|
4
|
+
export type StripeLinkAuthenticationElement = StripeElementBase & {
|
|
5
|
+
/**
|
|
6
|
+
* The change event is triggered when the `Element`'s value changes.
|
|
7
|
+
*/
|
|
8
|
+
on(
|
|
9
|
+
eventType: 'change',
|
|
10
|
+
handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
11
|
+
): StripeLinkAuthenticationElement;
|
|
12
|
+
once(
|
|
13
|
+
eventType: 'change',
|
|
14
|
+
handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
15
|
+
): StripeLinkAuthenticationElement;
|
|
16
|
+
off(
|
|
17
|
+
eventType: 'change',
|
|
18
|
+
handler?: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
19
|
+
): StripeLinkAuthenticationElement;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Triggered when the element is fully rendered and can accept `element.focus` calls.
|
|
23
|
+
*/
|
|
24
|
+
on(
|
|
25
|
+
eventType: 'ready',
|
|
26
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
27
|
+
): StripeLinkAuthenticationElement;
|
|
28
|
+
once(
|
|
29
|
+
eventType: 'ready',
|
|
30
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
31
|
+
): StripeLinkAuthenticationElement;
|
|
32
|
+
off(
|
|
33
|
+
eventType: 'ready',
|
|
34
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
35
|
+
): StripeLinkAuthenticationElement;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Triggered when the element gains focus.
|
|
39
|
+
*/
|
|
40
|
+
on(
|
|
41
|
+
eventType: 'focus',
|
|
42
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
43
|
+
): StripeLinkAuthenticationElement;
|
|
44
|
+
once(
|
|
45
|
+
eventType: 'focus',
|
|
46
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
47
|
+
): StripeLinkAuthenticationElement;
|
|
48
|
+
off(
|
|
49
|
+
eventType: 'focus',
|
|
50
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
51
|
+
): StripeLinkAuthenticationElement;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when the element loses focus.
|
|
55
|
+
*/
|
|
56
|
+
on(
|
|
57
|
+
eventType: 'blur',
|
|
58
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
59
|
+
): StripeLinkAuthenticationElement;
|
|
60
|
+
once(
|
|
61
|
+
eventType: 'blur',
|
|
62
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
63
|
+
): StripeLinkAuthenticationElement;
|
|
64
|
+
off(
|
|
65
|
+
eventType: 'blur',
|
|
66
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
67
|
+
): StripeLinkAuthenticationElement;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Triggered when the escape key is pressed within the element.
|
|
71
|
+
*/
|
|
72
|
+
on(
|
|
73
|
+
eventType: 'escape',
|
|
74
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
75
|
+
): StripeLinkAuthenticationElement;
|
|
76
|
+
once(
|
|
77
|
+
eventType: 'escape',
|
|
78
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
79
|
+
): StripeLinkAuthenticationElement;
|
|
80
|
+
off(
|
|
81
|
+
eventType: 'escape',
|
|
82
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
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;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Triggered when the loader UI is mounted to the DOM and ready to be displayed.
|
|
112
|
+
*/
|
|
113
|
+
on(
|
|
114
|
+
eventType: 'loaderstart',
|
|
115
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
116
|
+
): StripeLinkAuthenticationElement;
|
|
117
|
+
once(
|
|
118
|
+
eventType: 'loaderstart',
|
|
119
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
120
|
+
): StripeLinkAuthenticationElement;
|
|
121
|
+
off(
|
|
122
|
+
eventType: 'loaderstart',
|
|
123
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
124
|
+
): StripeLinkAuthenticationElement;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export interface StripeLinkAuthenticationElementOptions {
|
|
128
|
+
/**
|
|
129
|
+
* Default value for LinkAuthenticationElement fields
|
|
130
|
+
*/
|
|
131
|
+
defaultValues?: {
|
|
132
|
+
email: string;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface StripeLinkAuthenticationElementChangeEvent {
|
|
137
|
+
/**
|
|
138
|
+
* The type of element that emitted this event.
|
|
139
|
+
*/
|
|
140
|
+
elementType: 'linkAuthentication';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Whether or not the LinkAuthentication Element is currently empty.
|
|
144
|
+
*/
|
|
145
|
+
empty: boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Whether or not the LinkAuthentication Element is complete.
|
|
149
|
+
*/
|
|
150
|
+
complete: boolean;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* An object containing the current email.
|
|
154
|
+
*/
|
|
155
|
+
value: {
|
|
156
|
+
email: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import {StripeElementBase} from './base';
|
|
2
|
+
import {StripeError} from '../stripe';
|
|
3
|
+
|
|
4
|
+
export type StripeLinkAuthenticationElement = StripeElementBase & {
|
|
5
|
+
/**
|
|
6
|
+
* The change event is triggered when the `Element`'s value changes.
|
|
7
|
+
*/
|
|
8
|
+
on(
|
|
9
|
+
eventType: 'change',
|
|
10
|
+
handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
11
|
+
): StripeLinkAuthenticationElement;
|
|
12
|
+
once(
|
|
13
|
+
eventType: 'change',
|
|
14
|
+
handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
15
|
+
): StripeLinkAuthenticationElement;
|
|
16
|
+
off(
|
|
17
|
+
eventType: 'change',
|
|
18
|
+
handler?: (event: StripeLinkAuthenticationElementChangeEvent) => any
|
|
19
|
+
): StripeLinkAuthenticationElement;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Triggered when the element is fully rendered and can accept `element.focus` calls.
|
|
23
|
+
*/
|
|
24
|
+
on(
|
|
25
|
+
eventType: 'ready',
|
|
26
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
27
|
+
): StripeLinkAuthenticationElement;
|
|
28
|
+
once(
|
|
29
|
+
eventType: 'ready',
|
|
30
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
31
|
+
): StripeLinkAuthenticationElement;
|
|
32
|
+
off(
|
|
33
|
+
eventType: 'ready',
|
|
34
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
35
|
+
): StripeLinkAuthenticationElement;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Triggered when the element gains focus.
|
|
39
|
+
*/
|
|
40
|
+
on(
|
|
41
|
+
eventType: 'focus',
|
|
42
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
43
|
+
): StripeLinkAuthenticationElement;
|
|
44
|
+
once(
|
|
45
|
+
eventType: 'focus',
|
|
46
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
47
|
+
): StripeLinkAuthenticationElement;
|
|
48
|
+
off(
|
|
49
|
+
eventType: 'focus',
|
|
50
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
51
|
+
): StripeLinkAuthenticationElement;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when the element loses focus.
|
|
55
|
+
*/
|
|
56
|
+
on(
|
|
57
|
+
eventType: 'blur',
|
|
58
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
59
|
+
): StripeLinkAuthenticationElement;
|
|
60
|
+
once(
|
|
61
|
+
eventType: 'blur',
|
|
62
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
63
|
+
): StripeLinkAuthenticationElement;
|
|
64
|
+
off(
|
|
65
|
+
eventType: 'blur',
|
|
66
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
67
|
+
): StripeLinkAuthenticationElement;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Triggered when the escape key is pressed within the element.
|
|
71
|
+
*/
|
|
72
|
+
on(
|
|
73
|
+
eventType: 'escape',
|
|
74
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
75
|
+
): StripeLinkAuthenticationElement;
|
|
76
|
+
once(
|
|
77
|
+
eventType: 'escape',
|
|
78
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
79
|
+
): StripeLinkAuthenticationElement;
|
|
80
|
+
off(
|
|
81
|
+
eventType: 'escape',
|
|
82
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
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;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Triggered when the loader UI is mounted to the DOM and ready to be displayed.
|
|
112
|
+
*/
|
|
113
|
+
on(
|
|
114
|
+
eventType: 'loaderstart',
|
|
115
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
116
|
+
): StripeLinkAuthenticationElement;
|
|
117
|
+
once(
|
|
118
|
+
eventType: 'loaderstart',
|
|
119
|
+
handler: (event: {elementType: 'linkAuthentication'}) => any
|
|
120
|
+
): StripeLinkAuthenticationElement;
|
|
121
|
+
off(
|
|
122
|
+
eventType: 'loaderstart',
|
|
123
|
+
handler?: (event: {elementType: 'linkAuthentication'}) => any
|
|
124
|
+
): StripeLinkAuthenticationElement;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export interface StripeLinkAuthenticationElementOptions {
|
|
128
|
+
/**
|
|
129
|
+
* Default value for LinkAuthenticationElement fields
|
|
130
|
+
*/
|
|
131
|
+
defaultValues?: {
|
|
132
|
+
email: string;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface StripeLinkAuthenticationElementChangeEvent {
|
|
137
|
+
/**
|
|
138
|
+
* The type of element that emitted this event.
|
|
139
|
+
*/
|
|
140
|
+
elementType: 'linkAuthentication';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Whether or not the LinkAuthentication Element is currently empty.
|
|
144
|
+
*/
|
|
145
|
+
empty: boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Whether or not the LinkAuthentication Element is complete.
|
|
149
|
+
*/
|
|
150
|
+
complete: boolean;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* An object containing the current email.
|
|
154
|
+
*/
|
|
155
|
+
value: {
|
|
156
|
+
email: string;
|
|
157
|
+
};
|
|
158
|
+
}
|