stripe 19.2.0-beta.1 → 19.3.0-beta.1
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/CHANGELOG.md +90 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/PaymentRecords.js +4 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/PaymentRecords.js +4 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +24 -0
- package/types/AccountsResource.d.ts +44 -0
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Capabilities.d.ts +2 -0
- package/types/Charges.d.ts +7 -2
- package/types/ChargesResource.d.ts +16 -4
- package/types/Checkout/Sessions.d.ts +15 -0
- package/types/Checkout/SessionsResource.d.ts +21 -3
- package/types/ConfirmationTokens.d.ts +1 -0
- package/types/CreditNotes.d.ts +26 -0
- package/types/CreditNotesResource.d.ts +78 -0
- package/types/CustomerSessions.d.ts +161 -0
- package/types/CustomerSessionsResource.d.ts +161 -0
- package/types/Customers.d.ts +7 -0
- package/types/CustomersResource.d.ts +1 -0
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +2 -0
- package/types/FinancialConnections/AccountsResource.d.ts +1 -1
- package/types/Invoices.d.ts +1 -0
- package/types/PaymentAttemptRecords.d.ts +7 -2
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
- package/types/PaymentIntents.d.ts +20 -9
- package/types/PaymentIntentsResource.d.ts +170 -65
- package/types/PaymentLinks.d.ts +34 -0
- package/types/PaymentLinksResource.d.ts +88 -0
- package/types/PaymentMethodConfigurations.d.ts +72 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
- package/types/PaymentMethods.d.ts +34 -0
- package/types/PaymentMethodsResource.d.ts +15 -1
- package/types/PaymentRecords.d.ts +7 -2
- package/types/PaymentRecordsResource.d.ts +89 -0
- package/types/PayoutsResource.d.ts +1 -1
- package/types/Persons.d.ts +2 -0
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/Refunds.d.ts +9 -0
- package/types/SetupAttempts.d.ts +1 -0
- package/types/SetupIntents.d.ts +66 -0
- package/types/SetupIntentsResource.d.ts +130 -0
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/Terminal/Configurations.d.ts +19 -0
- package/types/Terminal/ConfigurationsResource.d.ts +44 -0
- package/types/Terminal/Readers.d.ts +14 -9
- package/types/Terminal/ReadersResource.d.ts +30 -30
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
- package/types/TokensResource.d.ts +22 -0
- package/types/V2/Billing/Cadences.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
- package/types/V2/Billing/CollectionSettings.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
- package/types/V2/Core/Accounts.d.ts +93 -2
- package/types/V2/Core/AccountsResource.d.ts +110 -5
- package/types/V2/Core/EventTypes.d.ts +11 -34
- package/types/V2/Core/EventsResource.d.ts +29 -3
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/apiVersion.d.ts +1 -1
- package/types/crypto/crypto.d.ts +1 -1
package/types/CreditNotes.d.ts
CHANGED
|
@@ -235,10 +235,36 @@ declare module 'stripe' {
|
|
|
235
235
|
*/
|
|
236
236
|
amount_refunded: number;
|
|
237
237
|
|
|
238
|
+
/**
|
|
239
|
+
* The PaymentRecord refund details associated with this credit note refund.
|
|
240
|
+
*/
|
|
241
|
+
payment_record_refund: Refund.PaymentRecordRefund | null;
|
|
242
|
+
|
|
238
243
|
/**
|
|
239
244
|
* ID of the refund.
|
|
240
245
|
*/
|
|
241
246
|
refund: string | Stripe.Refund;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Type of the refund, one of `refund` or `payment_record_refund`.
|
|
250
|
+
*/
|
|
251
|
+
type: Refund.Type | null;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
namespace Refund {
|
|
255
|
+
interface PaymentRecordRefund {
|
|
256
|
+
/**
|
|
257
|
+
* ID of the payment record.
|
|
258
|
+
*/
|
|
259
|
+
payment_record: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* ID of the refund group.
|
|
263
|
+
*/
|
|
264
|
+
refund_group: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
type Type = 'payment_record_refund' | 'refund';
|
|
242
268
|
}
|
|
243
269
|
|
|
244
270
|
interface ShippingCost {
|
|
@@ -157,10 +157,36 @@ declare module 'stripe' {
|
|
|
157
157
|
*/
|
|
158
158
|
amount_refunded?: number;
|
|
159
159
|
|
|
160
|
+
/**
|
|
161
|
+
* The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
|
|
162
|
+
*/
|
|
163
|
+
payment_record_refund?: Refund.PaymentRecordRefund;
|
|
164
|
+
|
|
160
165
|
/**
|
|
161
166
|
* ID of an existing refund to link this credit note to. Required when `type` is `refund`.
|
|
162
167
|
*/
|
|
163
168
|
refund?: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
|
|
172
|
+
*/
|
|
173
|
+
type?: Refund.Type;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
namespace Refund {
|
|
177
|
+
interface PaymentRecordRefund {
|
|
178
|
+
/**
|
|
179
|
+
* The ID of the PaymentRecord with the refund to link to this credit note.
|
|
180
|
+
*/
|
|
181
|
+
payment_record: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
|
|
185
|
+
*/
|
|
186
|
+
refund_group: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
type Type = 'payment_record_refund' | 'refund';
|
|
164
190
|
}
|
|
165
191
|
|
|
166
192
|
interface ShippingCost {
|
|
@@ -384,10 +410,36 @@ declare module 'stripe' {
|
|
|
384
410
|
*/
|
|
385
411
|
amount_refunded?: number;
|
|
386
412
|
|
|
413
|
+
/**
|
|
414
|
+
* The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
|
|
415
|
+
*/
|
|
416
|
+
payment_record_refund?: Refund.PaymentRecordRefund;
|
|
417
|
+
|
|
387
418
|
/**
|
|
388
419
|
* ID of an existing refund to link this credit note to. Required when `type` is `refund`.
|
|
389
420
|
*/
|
|
390
421
|
refund?: string;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
|
|
425
|
+
*/
|
|
426
|
+
type?: Refund.Type;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
namespace Refund {
|
|
430
|
+
interface PaymentRecordRefund {
|
|
431
|
+
/**
|
|
432
|
+
* The ID of the PaymentRecord with the refund to link to this credit note.
|
|
433
|
+
*/
|
|
434
|
+
payment_record: string;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
|
|
438
|
+
*/
|
|
439
|
+
refund_group: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
type Type = 'payment_record_refund' | 'refund';
|
|
391
443
|
}
|
|
392
444
|
|
|
393
445
|
interface ShippingCost {
|
|
@@ -553,10 +605,36 @@ declare module 'stripe' {
|
|
|
553
605
|
*/
|
|
554
606
|
amount_refunded?: number;
|
|
555
607
|
|
|
608
|
+
/**
|
|
609
|
+
* The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
|
|
610
|
+
*/
|
|
611
|
+
payment_record_refund?: Refund.PaymentRecordRefund;
|
|
612
|
+
|
|
556
613
|
/**
|
|
557
614
|
* ID of an existing refund to link this credit note to. Required when `type` is `refund`.
|
|
558
615
|
*/
|
|
559
616
|
refund?: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
|
|
620
|
+
*/
|
|
621
|
+
type?: Refund.Type;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
namespace Refund {
|
|
625
|
+
interface PaymentRecordRefund {
|
|
626
|
+
/**
|
|
627
|
+
* The ID of the PaymentRecord with the refund to link to this credit note.
|
|
628
|
+
*/
|
|
629
|
+
payment_record: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
|
|
633
|
+
*/
|
|
634
|
+
refund_group: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
type Type = 'payment_record_refund' | 'refund';
|
|
560
638
|
}
|
|
561
639
|
|
|
562
640
|
interface ShippingCost {
|
|
@@ -61,6 +61,16 @@ declare module 'stripe' {
|
|
|
61
61
|
*/
|
|
62
62
|
buy_button: Components.BuyButton;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* This hash contains whether the customer sheet is enabled and the features it supports.
|
|
66
|
+
*/
|
|
67
|
+
customer_sheet: Components.CustomerSheet;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* This hash contains whether the mobile payment element is enabled and the features it supports.
|
|
71
|
+
*/
|
|
72
|
+
mobile_payment_element: Components.MobilePaymentElement;
|
|
73
|
+
|
|
64
74
|
/**
|
|
65
75
|
* This hash contains whether the Payment Element is enabled and the features it supports.
|
|
66
76
|
*/
|
|
@@ -70,6 +80,11 @@ declare module 'stripe' {
|
|
|
70
80
|
* This hash contains whether the pricing table is enabled.
|
|
71
81
|
*/
|
|
72
82
|
pricing_table: Components.PricingTable;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* This hash contains whether the Tax ID Element is enabled and the features it supports.
|
|
86
|
+
*/
|
|
87
|
+
tax_id_element?: Components.TaxIdElement;
|
|
73
88
|
}
|
|
74
89
|
|
|
75
90
|
namespace Components {
|
|
@@ -80,6 +95,116 @@ declare module 'stripe' {
|
|
|
80
95
|
enabled: boolean;
|
|
81
96
|
}
|
|
82
97
|
|
|
98
|
+
interface CustomerSheet {
|
|
99
|
+
/**
|
|
100
|
+
* Whether the customer sheet is enabled.
|
|
101
|
+
*/
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* This hash defines whether the customer sheet supports certain features.
|
|
106
|
+
*/
|
|
107
|
+
features: CustomerSheet.Features | null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
namespace CustomerSheet {
|
|
111
|
+
interface Features {
|
|
112
|
+
/**
|
|
113
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
114
|
+
*
|
|
115
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
116
|
+
*/
|
|
117
|
+
payment_method_allow_redisplay_filters: Array<
|
|
118
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
119
|
+
> | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Controls whether the customer sheet displays the option to remove a saved payment method."
|
|
123
|
+
*
|
|
124
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
125
|
+
*/
|
|
126
|
+
payment_method_remove: Features.PaymentMethodRemove | null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
namespace Features {
|
|
130
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
131
|
+
| 'always'
|
|
132
|
+
| 'limited'
|
|
133
|
+
| 'unspecified';
|
|
134
|
+
|
|
135
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface MobilePaymentElement {
|
|
140
|
+
/**
|
|
141
|
+
* Whether the mobile payment element is enabled.
|
|
142
|
+
*/
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* This hash defines whether the mobile payment element supports certain features.
|
|
147
|
+
*/
|
|
148
|
+
features: MobilePaymentElement.Features | null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
namespace MobilePaymentElement {
|
|
152
|
+
interface Features {
|
|
153
|
+
/**
|
|
154
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
155
|
+
*
|
|
156
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
157
|
+
*/
|
|
158
|
+
payment_method_allow_redisplay_filters: Array<
|
|
159
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
160
|
+
> | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Controls whether or not the mobile payment element shows saved payment methods.
|
|
164
|
+
*/
|
|
165
|
+
payment_method_redisplay: Features.PaymentMethodRedisplay | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Controls whether the mobile payment element displays the option to remove a saved payment method."
|
|
169
|
+
*
|
|
170
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
171
|
+
*/
|
|
172
|
+
payment_method_remove: Features.PaymentMethodRemove | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
|
|
176
|
+
*
|
|
177
|
+
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
|
178
|
+
*/
|
|
179
|
+
payment_method_save: Features.PaymentMethodSave | null;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
|
|
183
|
+
*
|
|
184
|
+
* If not specified, defaults to `nil` (no override value).
|
|
185
|
+
*/
|
|
186
|
+
payment_method_save_allow_redisplay_override: Features.PaymentMethodSaveAllowRedisplayOverride | null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
namespace Features {
|
|
190
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
191
|
+
| 'always'
|
|
192
|
+
| 'limited'
|
|
193
|
+
| 'unspecified';
|
|
194
|
+
|
|
195
|
+
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
|
196
|
+
|
|
197
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
198
|
+
|
|
199
|
+
type PaymentMethodSave = 'disabled' | 'enabled';
|
|
200
|
+
|
|
201
|
+
type PaymentMethodSaveAllowRedisplayOverride =
|
|
202
|
+
| 'always'
|
|
203
|
+
| 'limited'
|
|
204
|
+
| 'unspecified';
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
83
208
|
interface PaymentElement {
|
|
84
209
|
/**
|
|
85
210
|
* Whether the Payment Element is enabled.
|
|
@@ -157,6 +282,42 @@ declare module 'stripe' {
|
|
|
157
282
|
*/
|
|
158
283
|
enabled: boolean;
|
|
159
284
|
}
|
|
285
|
+
|
|
286
|
+
interface TaxIdElement {
|
|
287
|
+
/**
|
|
288
|
+
* Whether the Tax ID Element is enabled.
|
|
289
|
+
*/
|
|
290
|
+
enabled: boolean;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* This hash defines whether the Tax ID Element supports certain features.
|
|
294
|
+
*/
|
|
295
|
+
features: TaxIdElement.Features | null;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
namespace TaxIdElement {
|
|
299
|
+
interface Features {
|
|
300
|
+
/**
|
|
301
|
+
* Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
302
|
+
*
|
|
303
|
+
* When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
304
|
+
*/
|
|
305
|
+
tax_id_redisplay: Features.TaxIdRedisplay;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
309
|
+
*
|
|
310
|
+
* When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
311
|
+
*/
|
|
312
|
+
tax_id_save: Features.TaxIdSave;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
namespace Features {
|
|
316
|
+
type TaxIdRedisplay = 'disabled' | 'enabled';
|
|
317
|
+
|
|
318
|
+
type TaxIdSave = 'disabled' | 'enabled';
|
|
319
|
+
}
|
|
320
|
+
}
|
|
160
321
|
}
|
|
161
322
|
}
|
|
162
323
|
}
|
|
@@ -31,6 +31,16 @@ declare module 'stripe' {
|
|
|
31
31
|
*/
|
|
32
32
|
buy_button?: Components.BuyButton;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for the customer sheet.
|
|
36
|
+
*/
|
|
37
|
+
customer_sheet?: Components.CustomerSheet;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for the mobile payment element.
|
|
41
|
+
*/
|
|
42
|
+
mobile_payment_element?: Components.MobilePaymentElement;
|
|
43
|
+
|
|
34
44
|
/**
|
|
35
45
|
* Configuration for the Payment Element.
|
|
36
46
|
*/
|
|
@@ -40,6 +50,11 @@ declare module 'stripe' {
|
|
|
40
50
|
* Configuration for the pricing table.
|
|
41
51
|
*/
|
|
42
52
|
pricing_table?: Components.PricingTable;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Configuration for the Tax ID Element.
|
|
56
|
+
*/
|
|
57
|
+
tax_id_element?: Components.TaxIdElement;
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
namespace Components {
|
|
@@ -50,6 +65,116 @@ declare module 'stripe' {
|
|
|
50
65
|
enabled: boolean;
|
|
51
66
|
}
|
|
52
67
|
|
|
68
|
+
interface CustomerSheet {
|
|
69
|
+
/**
|
|
70
|
+
* Whether the customer sheet is enabled.
|
|
71
|
+
*/
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This hash defines whether the customer sheet supports certain features.
|
|
76
|
+
*/
|
|
77
|
+
features?: CustomerSheet.Features;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
namespace CustomerSheet {
|
|
81
|
+
interface Features {
|
|
82
|
+
/**
|
|
83
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
84
|
+
*
|
|
85
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
86
|
+
*/
|
|
87
|
+
payment_method_allow_redisplay_filters?: Array<
|
|
88
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Controls whether the customer sheet displays the option to remove a saved payment method."
|
|
93
|
+
*
|
|
94
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
95
|
+
*/
|
|
96
|
+
payment_method_remove?: Features.PaymentMethodRemove;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
namespace Features {
|
|
100
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
101
|
+
| 'always'
|
|
102
|
+
| 'limited'
|
|
103
|
+
| 'unspecified';
|
|
104
|
+
|
|
105
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface MobilePaymentElement {
|
|
110
|
+
/**
|
|
111
|
+
* Whether the mobile payment element is enabled.
|
|
112
|
+
*/
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* This hash defines whether the mobile payment element supports certain features.
|
|
117
|
+
*/
|
|
118
|
+
features?: MobilePaymentElement.Features;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace MobilePaymentElement {
|
|
122
|
+
interface Features {
|
|
123
|
+
/**
|
|
124
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
125
|
+
*
|
|
126
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
127
|
+
*/
|
|
128
|
+
payment_method_allow_redisplay_filters?: Array<
|
|
129
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
130
|
+
>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Controls whether or not the mobile payment element shows saved payment methods.
|
|
134
|
+
*/
|
|
135
|
+
payment_method_redisplay?: Features.PaymentMethodRedisplay;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Controls whether the mobile payment element displays the option to remove a saved payment method."
|
|
139
|
+
*
|
|
140
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
141
|
+
*/
|
|
142
|
+
payment_method_remove?: Features.PaymentMethodRemove;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
|
|
146
|
+
*
|
|
147
|
+
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
|
148
|
+
*/
|
|
149
|
+
payment_method_save?: Features.PaymentMethodSave;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
|
|
153
|
+
*
|
|
154
|
+
* If not specified, defaults to `nil` (no override value).
|
|
155
|
+
*/
|
|
156
|
+
payment_method_save_allow_redisplay_override?: Features.PaymentMethodSaveAllowRedisplayOverride;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
namespace Features {
|
|
160
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
161
|
+
| 'always'
|
|
162
|
+
| 'limited'
|
|
163
|
+
| 'unspecified';
|
|
164
|
+
|
|
165
|
+
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
|
166
|
+
|
|
167
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
168
|
+
|
|
169
|
+
type PaymentMethodSave = 'disabled' | 'enabled';
|
|
170
|
+
|
|
171
|
+
type PaymentMethodSaveAllowRedisplayOverride =
|
|
172
|
+
| 'always'
|
|
173
|
+
| 'limited'
|
|
174
|
+
| 'unspecified';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
53
178
|
interface PaymentElement {
|
|
54
179
|
/**
|
|
55
180
|
* Whether the Payment Element is enabled.
|
|
@@ -127,6 +252,42 @@ declare module 'stripe' {
|
|
|
127
252
|
*/
|
|
128
253
|
enabled: boolean;
|
|
129
254
|
}
|
|
255
|
+
|
|
256
|
+
interface TaxIdElement {
|
|
257
|
+
/**
|
|
258
|
+
* Whether the Tax ID Element is enabled.
|
|
259
|
+
*/
|
|
260
|
+
enabled: boolean;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* This hash defines whether the Tax ID Element supports certain features.
|
|
264
|
+
*/
|
|
265
|
+
features?: TaxIdElement.Features;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
namespace TaxIdElement {
|
|
269
|
+
interface Features {
|
|
270
|
+
/**
|
|
271
|
+
* Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
272
|
+
*
|
|
273
|
+
* When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
274
|
+
*/
|
|
275
|
+
tax_id_redisplay?: Features.TaxIdRedisplay;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
279
|
+
*
|
|
280
|
+
* When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
281
|
+
*/
|
|
282
|
+
tax_id_save?: Features.TaxIdSave;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
namespace Features {
|
|
286
|
+
type TaxIdRedisplay = 'disabled' | 'enabled';
|
|
287
|
+
|
|
288
|
+
type TaxIdSave = 'disabled' | 'enabled';
|
|
289
|
+
}
|
|
290
|
+
}
|
|
130
291
|
}
|
|
131
292
|
}
|
|
132
293
|
|
package/types/Customers.d.ts
CHANGED
|
@@ -255,6 +255,11 @@ declare module 'stripe' {
|
|
|
255
255
|
* The identified tax location of the customer.
|
|
256
256
|
*/
|
|
257
257
|
location: Tax.Location | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps).
|
|
261
|
+
*/
|
|
262
|
+
provider: Tax.Provider;
|
|
258
263
|
}
|
|
259
264
|
|
|
260
265
|
namespace Tax {
|
|
@@ -288,6 +293,8 @@ declare module 'stripe' {
|
|
|
288
293
|
| 'payment_method'
|
|
289
294
|
| 'shipping_destination';
|
|
290
295
|
}
|
|
296
|
+
|
|
297
|
+
type Provider = 'anrok' | 'avalara' | 'sphere' | 'stripe';
|
|
291
298
|
}
|
|
292
299
|
|
|
293
300
|
type TaxExempt = 'exempt' | 'none' | 'reverse';
|
package/types/Files.d.ts
CHANGED
package/types/FilesResource.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare module 'stripe' {
|
|
|
52
52
|
| 'identity_document'
|
|
53
53
|
| 'issuing_regulatory_reporting'
|
|
54
54
|
| 'pci_document'
|
|
55
|
+
| 'platform_terms_of_service'
|
|
55
56
|
| 'tax_document_user_upload'
|
|
56
57
|
| 'terminal_android_apk'
|
|
57
58
|
| 'terminal_reader_splashscreen';
|
|
@@ -96,6 +97,7 @@ declare module 'stripe' {
|
|
|
96
97
|
| 'identity_document_downloadable'
|
|
97
98
|
| 'issuing_regulatory_reporting'
|
|
98
99
|
| 'pci_document'
|
|
100
|
+
| 'platform_terms_of_service'
|
|
99
101
|
| 'selfie'
|
|
100
102
|
| 'sigma_scheduled_query'
|
|
101
103
|
| 'tax_document_user_upload'
|
|
@@ -194,7 +194,7 @@ declare module 'stripe' {
|
|
|
194
194
|
): Promise<Stripe.Response<Stripe.FinancialConnections.Account>>;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
* Subscribes to periodic refreshes of data associated with a Financial Connections Account.
|
|
197
|
+
* Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.
|
|
198
198
|
*/
|
|
199
199
|
subscribe(
|
|
200
200
|
id: string,
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1006,6 +1006,7 @@ declare module 'stripe' {
|
|
|
1006
1006
|
| 'payment_intent_mandate_invalid'
|
|
1007
1007
|
| 'payment_intent_payment_attempt_expired'
|
|
1008
1008
|
| 'payment_intent_payment_attempt_failed'
|
|
1009
|
+
| 'payment_intent_rate_limit_exceeded'
|
|
1009
1010
|
| 'payment_intent_unexpected_state'
|
|
1010
1011
|
| 'payment_method_bank_account_already_verified'
|
|
1011
1012
|
| 'payment_method_bank_account_blocked'
|
|
@@ -1184,7 +1184,7 @@ declare module 'stripe' {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
namespace Crypto {
|
|
1187
|
-
type Network = 'base' | 'ethereum' | 'polygon';
|
|
1187
|
+
type Network = 'base' | 'ethereum' | 'polygon' | 'solana';
|
|
1188
1188
|
|
|
1189
1189
|
type TokenCurrency = 'usdc' | 'usdg' | 'usdp';
|
|
1190
1190
|
}
|
|
@@ -2017,7 +2017,12 @@ declare module 'stripe' {
|
|
|
2017
2017
|
|
|
2018
2018
|
interface Qris {}
|
|
2019
2019
|
|
|
2020
|
-
interface Rechnung {
|
|
2020
|
+
interface Rechnung {
|
|
2021
|
+
/**
|
|
2022
|
+
* Payment portal URL.
|
|
2023
|
+
*/
|
|
2024
|
+
payment_portal_url: string | null;
|
|
2025
|
+
}
|
|
2021
2026
|
|
|
2022
2027
|
interface RevolutPay {
|
|
2023
2028
|
funding?: RevolutPay.Funding;
|
|
@@ -24,6 +24,11 @@ declare module 'stripe' {
|
|
|
24
24
|
* A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
25
25
|
*/
|
|
26
26
|
limit?: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
30
|
+
*/
|
|
31
|
+
starting_after?: string;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
class PaymentAttemptRecordsResource {
|