@stripe/stripe-js 3.0.3 → 3.0.5
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/README.md +10 -23
- package/dist/stripe.js +1 -1
- package/dist/stripe.mjs +1 -1
- package/package.json +4 -26
- package/{dist/pure.d.mts → pure/index.d.mts} +9536 -9567
- package/{dist/pure.d.ts → pure/index.d.ts} +9536 -9567
- package/{dist/pure.js → pure/index.js} +1 -1
- package/{dist/pure.mjs → pure/index.mjs} +1 -1
- package/types/.eslintrc.yml +0 -3
- package/types/api/bank-accounts.d.ts +0 -61
- package/types/api/cards.d.ts +0 -130
- package/types/api/financial-connections.d.ts +0 -232
- package/types/api/index.d.ts +0 -11
- package/types/api/orders.d.ts +0 -122
- package/types/api/payment-intents.d.ts +0 -330
- package/types/api/payment-methods.d.ts +0 -452
- package/types/api/setup-intents.d.ts +0 -184
- package/types/api/shared.d.ts +0 -125
- package/types/api/sources.d.ts +0 -1045
- package/types/api/tokens.d.ts +0 -639
- package/types/api/verification-sessions.d.ts +0 -9
- package/types/index.d.ts +0 -17
- package/types/pure.d.ts +0 -5
- package/types/stripe-js/checkout.d.ts +0 -153
- package/types/stripe-js/custom-checkout.d.ts +0 -220
- package/types/stripe-js/elements/address.d.ts +0 -261
- package/types/stripe-js/elements/affirm-message.d.ts +0 -65
- package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
- package/types/stripe-js/elements/apple-pay.d.ts +0 -156
- package/types/stripe-js/elements/au-bank-account.d.ts +0 -138
- package/types/stripe-js/elements/base.d.ts +0 -264
- package/types/stripe-js/elements/card-cvc.d.ts +0 -119
- package/types/stripe-js/elements/card-expiry.d.ts +0 -119
- package/types/stripe-js/elements/card-number.d.ts +0 -200
- package/types/stripe-js/elements/card.d.ts +0 -226
- package/types/stripe-js/elements/cart.d.ts +0 -224
- package/types/stripe-js/elements/eps-bank.d.ts +0 -140
- package/types/stripe-js/elements/express-checkout.d.ts +0 -446
- package/types/stripe-js/elements/fpx-bank.d.ts +0 -134
- package/types/stripe-js/elements/iban.d.ts +0 -135
- package/types/stripe-js/elements/ideal-bank.d.ts +0 -140
- package/types/stripe-js/elements/index.d.ts +0 -22
- package/types/stripe-js/elements/issuing/index.d.ts +0 -5
- package/types/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
- package/types/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
- package/types/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
- package/types/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
- package/types/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
- package/types/stripe-js/elements/link-authentication.d.ts +0 -158
- package/types/stripe-js/elements/p24-bank.d.ts +0 -140
- package/types/stripe-js/elements/payment-method-messaging.d.ts +0 -98
- package/types/stripe-js/elements/payment-request-button.d.ts +0 -151
- package/types/stripe-js/elements/payment.d.ts +0 -275
- package/types/stripe-js/elements/shipping-address.d.ts +0 -215
- package/types/stripe-js/elements-group.d.ts +0 -1129
- package/types/stripe-js/embedded-checkout.d.ts +0 -30
- package/types/stripe-js/ephemeral-keys.d.ts +0 -3
- package/types/stripe-js/financial-connections.d.ts +0 -19
- package/types/stripe-js/index.d.ts +0 -13
- package/types/stripe-js/orders.d.ts +0 -9
- package/types/stripe-js/payment-intents.d.ts +0 -1465
- package/types/stripe-js/payment-request.d.ts +0 -529
- package/types/stripe-js/setup-intents.d.ts +0 -250
- package/types/stripe-js/stripe.d.ts +0 -1472
- package/types/stripe-js/token-and-sources.d.ts +0 -110
- package/types/utils.d.ts +0 -2
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import {SetupIntentConfirmParams} from '../api';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
CreatePaymentMethodAcssDebitData,
|
|
5
|
-
CreatePaymentMethodAuBecsDebitData,
|
|
6
|
-
CreatePaymentMethodBancontactData,
|
|
7
|
-
CreatePaymentMethodCardData,
|
|
8
|
-
CreatePaymentMethodCashappData,
|
|
9
|
-
CreatePaymentMethodIdealData,
|
|
10
|
-
CreatePaymentMethodSepaDebitData,
|
|
11
|
-
CreatePaymentMethodSofortData,
|
|
12
|
-
CreatePaymentMethodPayPalData,
|
|
13
|
-
CreatePaymentMethodBacsDebitData,
|
|
14
|
-
CreatePaymentMethodUsBankAccountData,
|
|
15
|
-
CollectBankAccountParams,
|
|
16
|
-
} from './payment-intents';
|
|
17
|
-
|
|
18
|
-
import {Omit} from '../utils';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Data to be sent with a `stripe.confirmCardSetup` request.
|
|
22
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
23
|
-
*/
|
|
24
|
-
export interface ConfirmCardSetupData extends SetupIntentConfirmParams {
|
|
25
|
-
/*
|
|
26
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
27
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
28
|
-
*
|
|
29
|
-
* @recommended
|
|
30
|
-
*/
|
|
31
|
-
payment_method?: string | Omit<CreatePaymentMethodCardData, 'type'>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* An options object to control the behavior of `stripe.confirmCardSetup`.
|
|
36
|
-
*/
|
|
37
|
-
export interface ConfirmCardSetupOptions {
|
|
38
|
-
/*
|
|
39
|
-
* Set this to `false` if you want to [handle next actions yourself](https://stripe.com/docs/payments/payment-intents/verifying-status#next-actions), or if you want to defer next action handling until later (e.g. for use in the [PaymentRequest API](https://stripe.com/docs/stripe-js/elements/payment-request-button#complete-payment-intents)).
|
|
40
|
-
* Default is `true`.
|
|
41
|
-
*/
|
|
42
|
-
handleActions?: boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface ConfirmCashappSetupData extends SetupIntentConfirmParams {
|
|
46
|
-
/*
|
|
47
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
48
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
49
|
-
*
|
|
50
|
-
* @recommended
|
|
51
|
-
*/
|
|
52
|
-
payment_method?: string | Omit<CreatePaymentMethodCashappData, 'type'>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The url your customer will be directed to after they complete authentication.
|
|
56
|
-
*/
|
|
57
|
-
return_url?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* An options object to control the behavior of `stripe.confirmCashappSetup`.
|
|
62
|
-
*/
|
|
63
|
-
interface ConfirmCashappSetupOptions {
|
|
64
|
-
/*
|
|
65
|
-
* Set this to `false` if you want to [manually handle the authorization QR code or redirect](https://stripe.com/docs/payments/cash-app-pay/set-up-payment?platform=web&ui=API#web-create-setup-intent).
|
|
66
|
-
* Default is `true`.
|
|
67
|
-
*/
|
|
68
|
-
handleActions?: boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Data to be sent with a `stripe.confirmIdealSetup` request.
|
|
73
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
74
|
-
*/
|
|
75
|
-
export interface ConfirmIdealSetupData extends SetupIntentConfirmParams {
|
|
76
|
-
/*
|
|
77
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
78
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
79
|
-
*
|
|
80
|
-
* @recommended
|
|
81
|
-
*/
|
|
82
|
-
payment_method?: string | Omit<CreatePaymentMethodIdealData, 'type'>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Data to be sent with a `stripe.confirmIdealSetup` request.
|
|
87
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
88
|
-
*/
|
|
89
|
-
export interface ConfirmPayPalSetupData extends SetupIntentConfirmParams {
|
|
90
|
-
/*
|
|
91
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
92
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
93
|
-
*
|
|
94
|
-
* @recommended
|
|
95
|
-
*/
|
|
96
|
-
payment_method?: string | Omit<CreatePaymentMethodPayPalData, 'type'>;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The required url your customer will be directed to after they complete authentication.
|
|
100
|
-
*/
|
|
101
|
-
return_url: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Data to be sent with a `stripe.confirmSepaDebitSetup` request.
|
|
106
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
107
|
-
*/
|
|
108
|
-
export interface ConfirmSepaDebitSetupData extends SetupIntentConfirmParams {
|
|
109
|
-
/*
|
|
110
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
111
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
112
|
-
*
|
|
113
|
-
* @recommended
|
|
114
|
-
*/
|
|
115
|
-
payment_method?: string | Omit<CreatePaymentMethodSepaDebitData, 'type'>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Data to be sent with a `stripe.confirmSofortSetup` request.
|
|
120
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
121
|
-
*/
|
|
122
|
-
export interface ConfirmSofortSetupData extends SetupIntentConfirmParams {
|
|
123
|
-
/*
|
|
124
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
125
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
126
|
-
*
|
|
127
|
-
* @recommended
|
|
128
|
-
*/
|
|
129
|
-
payment_method?: string | Omit<CreatePaymentMethodSofortData, 'type'>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* An options object to control the behavior of `stripe.confirmSofortSetup`.
|
|
134
|
-
*/
|
|
135
|
-
export interface ConfirmSofortSetupOptions {
|
|
136
|
-
/**
|
|
137
|
-
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/sofort/accept-a-payment?platform=web#handle-redirect).
|
|
138
|
-
* Default is `true`.
|
|
139
|
-
*/
|
|
140
|
-
handleActions?: boolean;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Data to be sent with a `stripe.confirmAuBecsDebitSetup` request.
|
|
145
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
146
|
-
*/
|
|
147
|
-
export interface ConfirmAuBecsDebitSetupData extends SetupIntentConfirmParams {
|
|
148
|
-
/*
|
|
149
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
150
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
151
|
-
*
|
|
152
|
-
* @recommended
|
|
153
|
-
*/
|
|
154
|
-
payment_method?: string | Omit<CreatePaymentMethodAuBecsDebitData, 'type'>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Data to be sent with a `stripe.confirmBacsDebitSetup` request.
|
|
159
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
160
|
-
*/
|
|
161
|
-
export interface ConfirmBacsDebitSetupData extends SetupIntentConfirmParams {
|
|
162
|
-
/*
|
|
163
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
164
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
165
|
-
*
|
|
166
|
-
* @recommended
|
|
167
|
-
*/
|
|
168
|
-
payment_method?: string | Omit<CreatePaymentMethodBacsDebitData, 'type'>;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Data to be sent with a `stripe.confirmBancontactSetup` request.
|
|
173
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
174
|
-
*/
|
|
175
|
-
export interface ConfirmBancontactSetupData extends SetupIntentConfirmParams {
|
|
176
|
-
/*
|
|
177
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
178
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
179
|
-
*
|
|
180
|
-
* @recommended
|
|
181
|
-
*/
|
|
182
|
-
payment_method?: string | Omit<CreatePaymentMethodBancontactData, 'type'>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Data to be sent with a `stripe.confirmAcssDebitSetup` request.
|
|
187
|
-
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
|
|
188
|
-
*/
|
|
189
|
-
export interface ConfirmAcssDebitSetupData extends SetupIntentConfirmParams {
|
|
190
|
-
/**
|
|
191
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
192
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
193
|
-
*
|
|
194
|
-
* @recommended
|
|
195
|
-
*/
|
|
196
|
-
payment_method?: string | Omit<CreatePaymentMethodAcssDebitData, 'type'>;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* An options object to control the behavior of `stripe.confirmAcssDebitSetup`.
|
|
201
|
-
*/
|
|
202
|
-
export interface ConfirmAcssDebitSetupOptions {
|
|
203
|
-
/**
|
|
204
|
-
* Set this to true if you want to skip displaying the mandate confirmation.
|
|
205
|
-
*/
|
|
206
|
-
skipMandate?: boolean;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Data to be sent with a `stripe.verifyMicrodepositsForSetup` request.
|
|
211
|
-
*/
|
|
212
|
-
export interface VerifyMicrodepositsForSetupData {
|
|
213
|
-
/**
|
|
214
|
-
* An array of two positive integers, in cents, equal to the values of the microdeposits sent to the bank account.
|
|
215
|
-
*/
|
|
216
|
-
amounts?: Array<number>;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* A six-character code starting with SM present in the microdeposit sent to the bank account.
|
|
220
|
-
*/
|
|
221
|
-
descriptor_code?: string;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface ConfirmUsBankAccountSetupData
|
|
225
|
-
extends SetupIntentConfirmParams {
|
|
226
|
-
/**
|
|
227
|
-
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
|
|
228
|
-
* This field is optional if a `PaymentMethod` has already been attached to this `SetupIntent`.
|
|
229
|
-
*
|
|
230
|
-
* @recommended
|
|
231
|
-
*/
|
|
232
|
-
payment_method?: string | Omit<CreatePaymentMethodUsBankAccountData, 'type'>;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Data to be sent with a `stripe.collectBankAccountForSetup` request.
|
|
237
|
-
*/
|
|
238
|
-
export interface CollectBankAccountForSetupOptions {
|
|
239
|
-
/**
|
|
240
|
-
* The client secret of the SetupIntent.
|
|
241
|
-
*/
|
|
242
|
-
clientSecret: string;
|
|
243
|
-
|
|
244
|
-
params: CollectBankAccountParams;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Specifies which fields in the response should be expanded.
|
|
248
|
-
*/
|
|
249
|
-
expand?: Array<string>;
|
|
250
|
-
}
|