@stripe/stripe-js 3.0.10 → 3.1.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.
Files changed (133) hide show
  1. package/dist/api/bank-accounts.d.mts +61 -0
  2. package/dist/api/bank-accounts.d.ts +61 -0
  3. package/dist/api/cards.d.mts +130 -0
  4. package/dist/api/cards.d.ts +130 -0
  5. package/dist/api/confirmation-tokens.d.mts +183 -0
  6. package/dist/api/confirmation-tokens.d.ts +183 -0
  7. package/dist/api/financial-connections.d.mts +232 -0
  8. package/dist/api/financial-connections.d.ts +232 -0
  9. package/dist/api/index.d.mts +12 -0
  10. package/dist/api/index.d.ts +12 -0
  11. package/dist/api/orders.d.mts +122 -0
  12. package/dist/api/orders.d.ts +122 -0
  13. package/dist/api/payment-intents.d.mts +330 -0
  14. package/dist/api/payment-intents.d.ts +330 -0
  15. package/dist/api/payment-methods.d.mts +452 -0
  16. package/dist/api/payment-methods.d.ts +452 -0
  17. package/dist/api/setup-intents.d.mts +184 -0
  18. package/dist/api/setup-intents.d.ts +184 -0
  19. package/dist/api/shared.d.mts +125 -0
  20. package/dist/api/shared.d.ts +125 -0
  21. package/dist/api/sources.d.mts +1045 -0
  22. package/dist/api/sources.d.ts +1045 -0
  23. package/dist/api/tokens.d.mts +639 -0
  24. package/dist/api/tokens.d.ts +639 -0
  25. package/dist/api/verification-sessions.d.mts +9 -0
  26. package/dist/api/verification-sessions.d.ts +9 -0
  27. package/dist/index.d.mts +4 -12792
  28. package/dist/index.d.ts +4 -12792
  29. package/dist/{stripe.js → index.js} +1 -1
  30. package/dist/{stripe.mjs → index.mjs} +1 -1
  31. package/dist/pure.d.mts +5 -0
  32. package/dist/pure.d.ts +5 -0
  33. package/dist/pure.js +204 -0
  34. package/dist/pure.mjs +200 -0
  35. package/dist/shared.d.mts +6 -0
  36. package/dist/shared.d.ts +6 -0
  37. package/dist/stripe-js/checkout.d.mts +153 -0
  38. package/dist/stripe-js/checkout.d.ts +153 -0
  39. package/dist/stripe-js/confirmation-tokens.d.mts +1 -0
  40. package/dist/stripe-js/confirmation-tokens.d.ts +1 -0
  41. package/dist/stripe-js/custom-checkout.d.mts +402 -0
  42. package/dist/stripe-js/custom-checkout.d.ts +402 -0
  43. package/dist/stripe-js/elements/address.d.mts +261 -0
  44. package/dist/stripe-js/elements/address.d.ts +261 -0
  45. package/dist/stripe-js/elements/affirm-message.d.mts +65 -0
  46. package/dist/stripe-js/elements/affirm-message.d.ts +65 -0
  47. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +119 -0
  48. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +119 -0
  49. package/dist/stripe-js/elements/apple-pay.d.mts +156 -0
  50. package/dist/stripe-js/elements/apple-pay.d.ts +156 -0
  51. package/dist/stripe-js/elements/au-bank-account.d.mts +138 -0
  52. package/dist/stripe-js/elements/au-bank-account.d.ts +138 -0
  53. package/dist/stripe-js/elements/base.d.mts +264 -0
  54. package/dist/stripe-js/elements/base.d.ts +264 -0
  55. package/dist/stripe-js/elements/card-cvc.d.mts +119 -0
  56. package/dist/stripe-js/elements/card-cvc.d.ts +119 -0
  57. package/dist/stripe-js/elements/card-expiry.d.mts +119 -0
  58. package/dist/stripe-js/elements/card-expiry.d.ts +119 -0
  59. package/dist/stripe-js/elements/card-number.d.mts +200 -0
  60. package/dist/stripe-js/elements/card-number.d.ts +200 -0
  61. package/dist/stripe-js/elements/card.d.mts +226 -0
  62. package/dist/stripe-js/elements/card.d.ts +226 -0
  63. package/dist/stripe-js/elements/cart.d.mts +224 -0
  64. package/dist/stripe-js/elements/cart.d.ts +224 -0
  65. package/dist/stripe-js/elements/eps-bank.d.mts +140 -0
  66. package/dist/stripe-js/elements/eps-bank.d.ts +140 -0
  67. package/dist/stripe-js/elements/express-checkout.d.mts +446 -0
  68. package/dist/stripe-js/elements/express-checkout.d.ts +446 -0
  69. package/dist/stripe-js/elements/fpx-bank.d.mts +134 -0
  70. package/dist/stripe-js/elements/fpx-bank.d.ts +134 -0
  71. package/dist/stripe-js/elements/iban.d.mts +135 -0
  72. package/dist/stripe-js/elements/iban.d.ts +135 -0
  73. package/dist/stripe-js/elements/ideal-bank.d.mts +140 -0
  74. package/dist/stripe-js/elements/ideal-bank.d.ts +140 -0
  75. package/dist/stripe-js/elements/index.d.mts +22 -0
  76. package/dist/stripe-js/elements/index.d.ts +22 -0
  77. package/dist/stripe-js/elements/issuing/index.d.mts +5 -0
  78. package/dist/stripe-js/elements/issuing/index.d.ts +5 -0
  79. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +37 -0
  80. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +37 -0
  81. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +32 -0
  82. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +32 -0
  83. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +32 -0
  84. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +32 -0
  85. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +40 -0
  86. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +40 -0
  87. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +32 -0
  88. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +32 -0
  89. package/dist/stripe-js/elements/link-authentication.d.mts +158 -0
  90. package/dist/stripe-js/elements/link-authentication.d.ts +158 -0
  91. package/dist/stripe-js/elements/p24-bank.d.mts +140 -0
  92. package/dist/stripe-js/elements/p24-bank.d.ts +140 -0
  93. package/dist/stripe-js/elements/payment-method-messaging.d.mts +98 -0
  94. package/dist/stripe-js/elements/payment-method-messaging.d.ts +98 -0
  95. package/dist/stripe-js/elements/payment-request-button.d.mts +151 -0
  96. package/dist/stripe-js/elements/payment-request-button.d.ts +151 -0
  97. package/dist/stripe-js/elements/payment.d.mts +275 -0
  98. package/dist/stripe-js/elements/payment.d.ts +275 -0
  99. package/dist/stripe-js/elements/shipping-address.d.mts +215 -0
  100. package/dist/stripe-js/elements/shipping-address.d.ts +215 -0
  101. package/dist/stripe-js/elements-group.d.mts +1129 -0
  102. package/dist/stripe-js/elements-group.d.ts +1129 -0
  103. package/dist/stripe-js/embedded-checkout.d.mts +35 -0
  104. package/dist/stripe-js/embedded-checkout.d.ts +35 -0
  105. package/dist/stripe-js/ephemeral-keys.d.mts +3 -0
  106. package/dist/stripe-js/ephemeral-keys.d.ts +3 -0
  107. package/dist/stripe-js/financial-connections.d.mts +19 -0
  108. package/dist/stripe-js/financial-connections.d.ts +19 -0
  109. package/dist/stripe-js/index.d.mts +13 -0
  110. package/dist/stripe-js/index.d.ts +13 -0
  111. package/dist/stripe-js/orders.d.mts +9 -0
  112. package/dist/stripe-js/orders.d.ts +9 -0
  113. package/dist/stripe-js/payment-intents.d.mts +1470 -0
  114. package/dist/stripe-js/payment-intents.d.ts +1470 -0
  115. package/dist/stripe-js/payment-request.d.mts +529 -0
  116. package/dist/stripe-js/payment-request.d.ts +529 -0
  117. package/dist/stripe-js/setup-intents.d.mts +250 -0
  118. package/dist/stripe-js/setup-intents.d.ts +250 -0
  119. package/dist/stripe-js/stripe.d.mts +1486 -0
  120. package/dist/stripe-js/stripe.d.ts +1486 -0
  121. package/dist/stripe-js/token-and-sources.d.mts +110 -0
  122. package/dist/stripe-js/token-and-sources.d.ts +110 -0
  123. package/dist/utils.d.mts +2 -0
  124. package/dist/utils.d.ts +2 -0
  125. package/lib/index.d.mts +1 -0
  126. package/lib/index.d.ts +1 -0
  127. package/lib/index.js +2 -0
  128. package/lib/index.mjs +1 -0
  129. package/package.json +11 -10
  130. package/pure/index.d.mts +1 -12771
  131. package/pure/index.d.ts +1 -12771
  132. package/pure/index.js +1 -204
  133. package/pure/index.mjs +1 -200
@@ -0,0 +1,250 @@
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
+ export 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
+ }
@@ -0,0 +1,250 @@
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
+ export 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
+ }