stripe 17.8.0-beta.1 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +246 -1075
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/Invoices.js +0 -26
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionItems.js +0 -9
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/cjs/resources.js +12 -48
- package/cjs/stripe.core.js +3 -14
- package/esm/apiVersion.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/Invoices.js +0 -26
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionItems.js +0 -9
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -33
- package/esm/stripe.core.js +3 -14
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -243
- package/types/Accounts.d.ts +48 -211
- package/types/AccountsResource.d.ts +86 -503
- package/types/ApplicationFees.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/BankAccounts.d.ts +9 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +2 -2
- package/types/Capabilities.d.ts +8 -0
- package/types/Cards.d.ts +1 -9
- package/types/Charges.d.ts +56 -153
- package/types/ChargesResource.d.ts +1 -1295
- package/types/Checkout/Sessions.d.ts +62 -336
- package/types/Checkout/SessionsResource.d.ts +69 -287
- package/types/ConfirmationTokens.d.ts +50 -99
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +24 -22
- package/types/CreditNotes.d.ts +26 -23
- package/types/CreditNotesResource.d.ts +0 -15
- package/types/CustomerBalanceTransactions.d.ts +8 -1
- package/types/Customers.d.ts +3 -3
- package/types/CustomersResource.d.ts +3 -21
- package/types/EventTypes.d.ts +85 -545
- package/types/Events.d.ts +8 -93
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/InvoiceItems.d.ts +60 -31
- package/types/InvoiceItemsResource.d.ts +26 -120
- package/types/InvoiceLineItems.d.ts +154 -91
- package/types/InvoicePayments.d.ts +2 -16
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +93 -214
- package/types/InvoicesResource.d.ts +307 -6599
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -32
- package/types/Mandates.d.ts +8 -77
- package/types/PaymentIntents.d.ts +56 -648
- package/types/PaymentIntentsResource.d.ts +4120 -8122
- package/types/PaymentLinks.d.ts +49 -6
- package/types/PaymentLinksResource.d.ts +77 -12
- package/types/PaymentMethodConfigurations.d.ts +63 -135
- package/types/PaymentMethodConfigurationsResource.d.ts +116 -216
- package/types/PaymentMethodDomainsResource.d.ts +6 -6
- package/types/PaymentMethods.d.ts +50 -99
- package/types/PaymentMethodsResource.d.ts +53 -148
- package/types/Persons.d.ts +17 -9
- package/types/Plans.d.ts +0 -7
- package/types/PlansResource.d.ts +0 -7
- package/types/Prices.d.ts +0 -33
- package/types/PricesResource.d.ts +2 -35
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +200 -2532
- package/types/Refunds.d.ts +18 -14
- package/types/Reviews.d.ts +3 -2
- package/types/SetupAttempts.d.ts +15 -38
- package/types/SetupIntents.d.ts +3 -111
- package/types/SetupIntentsResource.d.ts +155 -642
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +9 -34
- package/types/SubscriptionItemsResource.d.ts +2 -203
- package/types/SubscriptionSchedules.d.ts +0 -251
- package/types/SubscriptionSchedulesResource.d.ts +9 -1333
- package/types/Subscriptions.d.ts +4 -124
- package/types/SubscriptionsResource.d.ts +10 -455
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/Terminal/Configurations.d.ts +86 -3
- package/types/Terminal/ConfigurationsResource.d.ts +192 -2
- package/types/Terminal/Readers.d.ts +0 -290
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +50 -103
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +6 -1
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +1 -38
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
- package/types/V2/Core/EventsResource.d.ts +0 -5
- package/types/V2/EventDestinations.d.ts +1 -1
- package/types/V2/Events.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +19 -71
- package/types/index.d.ts +2 -64
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -6
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/Deprecations.d.ts +0 -215
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1189
- package/types/OrdersResource.d.ts +0 -2981
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -242
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1658
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/UsageRecordSummaries.d.ts +0 -56
- package/types/UsageRecords.d.ts +0 -45
|
@@ -38,13 +38,6 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
billing_cycle_anchor_config?: SubscriptionCreateParams.BillingCycleAnchorConfig;
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
43
|
-
*/
|
|
44
|
-
billing_thresholds?: Stripe.Emptyable<
|
|
45
|
-
SubscriptionCreateParams.BillingThresholds
|
|
46
|
-
>;
|
|
47
|
-
|
|
48
41
|
/**
|
|
49
42
|
* A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
50
43
|
*/
|
|
@@ -60,11 +53,6 @@ declare module 'stripe' {
|
|
|
60
53
|
*/
|
|
61
54
|
collection_method?: SubscriptionCreateParams.CollectionMethod;
|
|
62
55
|
|
|
63
|
-
/**
|
|
64
|
-
* The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
|
|
65
|
-
*/
|
|
66
|
-
coupon?: string;
|
|
67
|
-
|
|
68
56
|
/**
|
|
69
57
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
70
58
|
*/
|
|
@@ -157,16 +145,6 @@ declare module 'stripe' {
|
|
|
157
145
|
SubscriptionCreateParams.PendingInvoiceItemInterval
|
|
158
146
|
>;
|
|
159
147
|
|
|
160
|
-
/**
|
|
161
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
162
|
-
*/
|
|
163
|
-
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
|
|
167
|
-
*/
|
|
168
|
-
promotion_code?: string;
|
|
169
|
-
|
|
170
148
|
/**
|
|
171
149
|
* Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
|
172
150
|
*/
|
|
@@ -238,56 +216,12 @@ declare module 'stripe' {
|
|
|
238
216
|
*/
|
|
239
217
|
discount?: string;
|
|
240
218
|
|
|
241
|
-
/**
|
|
242
|
-
* Details to determine how long the discount should be applied for.
|
|
243
|
-
*/
|
|
244
|
-
discount_end?: Discount.DiscountEnd;
|
|
245
|
-
|
|
246
219
|
/**
|
|
247
220
|
* ID of the promotion code to create a new discount for.
|
|
248
221
|
*/
|
|
249
222
|
promotion_code?: string;
|
|
250
223
|
}
|
|
251
224
|
|
|
252
|
-
namespace Discount {
|
|
253
|
-
interface DiscountEnd {
|
|
254
|
-
/**
|
|
255
|
-
* Time span for the redeemed discount.
|
|
256
|
-
*/
|
|
257
|
-
duration?: DiscountEnd.Duration;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
261
|
-
*/
|
|
262
|
-
timestamp?: number;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* The type of calculation made to determine when the discount ends.
|
|
266
|
-
*/
|
|
267
|
-
type: DiscountEnd.Type;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
namespace DiscountEnd {
|
|
271
|
-
interface Duration {
|
|
272
|
-
/**
|
|
273
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
274
|
-
*/
|
|
275
|
-
interval: Duration.Interval;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
279
|
-
*/
|
|
280
|
-
interval_count: number;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
namespace Duration {
|
|
284
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
type Type = 'duration' | 'timestamp';
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
225
|
interface PriceData {
|
|
292
226
|
/**
|
|
293
227
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -295,7 +229,7 @@ declare module 'stripe' {
|
|
|
295
229
|
currency: string;
|
|
296
230
|
|
|
297
231
|
/**
|
|
298
|
-
* The ID of the
|
|
232
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
299
233
|
*/
|
|
300
234
|
product: string;
|
|
301
235
|
|
|
@@ -377,18 +311,6 @@ declare module 'stripe' {
|
|
|
377
311
|
second?: number;
|
|
378
312
|
}
|
|
379
313
|
|
|
380
|
-
interface BillingThresholds {
|
|
381
|
-
/**
|
|
382
|
-
* Monetary threshold that triggers the subscription to advance to a new billing period
|
|
383
|
-
*/
|
|
384
|
-
amount_gte?: number;
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
|
388
|
-
*/
|
|
389
|
-
reset_billing_cycle_anchor?: boolean;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
314
|
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
393
315
|
|
|
394
316
|
interface Discount {
|
|
@@ -402,56 +324,12 @@ declare module 'stripe' {
|
|
|
402
324
|
*/
|
|
403
325
|
discount?: string;
|
|
404
326
|
|
|
405
|
-
/**
|
|
406
|
-
* Details to determine how long the discount should be applied for.
|
|
407
|
-
*/
|
|
408
|
-
discount_end?: Discount.DiscountEnd;
|
|
409
|
-
|
|
410
327
|
/**
|
|
411
328
|
* ID of the promotion code to create a new discount for.
|
|
412
329
|
*/
|
|
413
330
|
promotion_code?: string;
|
|
414
331
|
}
|
|
415
332
|
|
|
416
|
-
namespace Discount {
|
|
417
|
-
interface DiscountEnd {
|
|
418
|
-
/**
|
|
419
|
-
* Time span for the redeemed discount.
|
|
420
|
-
*/
|
|
421
|
-
duration?: DiscountEnd.Duration;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
425
|
-
*/
|
|
426
|
-
timestamp?: number;
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* The type of calculation made to determine when the discount ends.
|
|
430
|
-
*/
|
|
431
|
-
type: DiscountEnd.Type;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
namespace DiscountEnd {
|
|
435
|
-
interface Duration {
|
|
436
|
-
/**
|
|
437
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
438
|
-
*/
|
|
439
|
-
interval: Duration.Interval;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
443
|
-
*/
|
|
444
|
-
interval_count: number;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
namespace Duration {
|
|
448
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
type Type = 'duration' | 'timestamp';
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
333
|
interface InvoiceSettings {
|
|
456
334
|
/**
|
|
457
335
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -483,11 +361,6 @@ declare module 'stripe' {
|
|
|
483
361
|
}
|
|
484
362
|
|
|
485
363
|
interface Item {
|
|
486
|
-
/**
|
|
487
|
-
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
|
488
|
-
*/
|
|
489
|
-
billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
|
|
490
|
-
|
|
491
364
|
/**
|
|
492
365
|
* The coupons to redeem into discounts for the subscription item.
|
|
493
366
|
*/
|
|
@@ -522,21 +395,9 @@ declare module 'stripe' {
|
|
|
522
395
|
* A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
523
396
|
*/
|
|
524
397
|
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Define options to configure the trial on the subscription item.
|
|
528
|
-
*/
|
|
529
|
-
trial?: Item.Trial;
|
|
530
398
|
}
|
|
531
399
|
|
|
532
400
|
namespace Item {
|
|
533
|
-
interface BillingThresholds {
|
|
534
|
-
/**
|
|
535
|
-
* Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
536
|
-
*/
|
|
537
|
-
usage_gte: number;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
401
|
interface Discount {
|
|
541
402
|
/**
|
|
542
403
|
* ID of the coupon to create a new discount for.
|
|
@@ -548,56 +409,12 @@ declare module 'stripe' {
|
|
|
548
409
|
*/
|
|
549
410
|
discount?: string;
|
|
550
411
|
|
|
551
|
-
/**
|
|
552
|
-
* Details to determine how long the discount should be applied for.
|
|
553
|
-
*/
|
|
554
|
-
discount_end?: Discount.DiscountEnd;
|
|
555
|
-
|
|
556
412
|
/**
|
|
557
413
|
* ID of the promotion code to create a new discount for.
|
|
558
414
|
*/
|
|
559
415
|
promotion_code?: string;
|
|
560
416
|
}
|
|
561
417
|
|
|
562
|
-
namespace Discount {
|
|
563
|
-
interface DiscountEnd {
|
|
564
|
-
/**
|
|
565
|
-
* Time span for the redeemed discount.
|
|
566
|
-
*/
|
|
567
|
-
duration?: DiscountEnd.Duration;
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
571
|
-
*/
|
|
572
|
-
timestamp?: number;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* The type of calculation made to determine when the discount ends.
|
|
576
|
-
*/
|
|
577
|
-
type: DiscountEnd.Type;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
namespace DiscountEnd {
|
|
581
|
-
interface Duration {
|
|
582
|
-
/**
|
|
583
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
584
|
-
*/
|
|
585
|
-
interval: Duration.Interval;
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
589
|
-
*/
|
|
590
|
-
interval_count: number;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
namespace Duration {
|
|
594
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
type Type = 'duration' | 'timestamp';
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
|
|
601
418
|
interface PriceData {
|
|
602
419
|
/**
|
|
603
420
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -605,7 +422,7 @@ declare module 'stripe' {
|
|
|
605
422
|
currency: string;
|
|
606
423
|
|
|
607
424
|
/**
|
|
608
|
-
* The ID of the
|
|
425
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
609
426
|
*/
|
|
610
427
|
product: string;
|
|
611
428
|
|
|
@@ -649,22 +466,6 @@ declare module 'stripe' {
|
|
|
649
466
|
|
|
650
467
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
651
468
|
}
|
|
652
|
-
|
|
653
|
-
interface Trial {
|
|
654
|
-
/**
|
|
655
|
-
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
656
|
-
*/
|
|
657
|
-
converts_to?: Array<string>;
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Determines the type of trial for this item.
|
|
661
|
-
*/
|
|
662
|
-
type: Trial.Type;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
namespace Trial {
|
|
666
|
-
type Type = 'free' | 'paid';
|
|
667
|
-
}
|
|
668
469
|
}
|
|
669
470
|
|
|
670
471
|
type PaymentBehavior =
|
|
@@ -716,13 +517,6 @@ declare module 'stripe' {
|
|
|
716
517
|
PaymentMethodOptions.CustomerBalance
|
|
717
518
|
>;
|
|
718
519
|
|
|
719
|
-
/**
|
|
720
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
721
|
-
*/
|
|
722
|
-
id_bank_transfer?: Stripe.Emptyable<
|
|
723
|
-
PaymentMethodOptions.IdBankTransfer
|
|
724
|
-
>;
|
|
725
|
-
|
|
726
520
|
/**
|
|
727
521
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
728
522
|
*/
|
|
@@ -872,8 +666,6 @@ declare module 'stripe' {
|
|
|
872
666
|
}
|
|
873
667
|
}
|
|
874
668
|
|
|
875
|
-
interface IdBankTransfer {}
|
|
876
|
-
|
|
877
669
|
interface Konbini {}
|
|
878
670
|
|
|
879
671
|
interface SepaDebit {}
|
|
@@ -914,11 +706,6 @@ declare module 'stripe' {
|
|
|
914
706
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
915
707
|
*/
|
|
916
708
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
920
|
-
*/
|
|
921
|
-
institution?: string;
|
|
922
709
|
}
|
|
923
710
|
|
|
924
711
|
namespace Filters {
|
|
@@ -931,11 +718,7 @@ declare module 'stripe' {
|
|
|
931
718
|
| 'payment_method'
|
|
932
719
|
| 'transactions';
|
|
933
720
|
|
|
934
|
-
type Prefetch =
|
|
935
|
-
| 'balances'
|
|
936
|
-
| 'inferred_balances'
|
|
937
|
-
| 'ownership'
|
|
938
|
-
| 'transactions';
|
|
721
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
939
722
|
}
|
|
940
723
|
|
|
941
724
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -953,21 +736,21 @@ declare module 'stripe' {
|
|
|
953
736
|
| 'boleto'
|
|
954
737
|
| 'card'
|
|
955
738
|
| 'cashapp'
|
|
956
|
-
| 'custom'
|
|
957
739
|
| 'customer_balance'
|
|
958
740
|
| 'eps'
|
|
959
741
|
| 'fpx'
|
|
960
742
|
| 'giropay'
|
|
961
743
|
| 'grabpay'
|
|
962
|
-
| 'id_bank_transfer'
|
|
963
744
|
| 'ideal'
|
|
964
745
|
| 'jp_credit_transfer'
|
|
965
746
|
| 'kakao_pay'
|
|
747
|
+
| 'klarna'
|
|
966
748
|
| 'konbini'
|
|
967
749
|
| 'kr_card'
|
|
968
750
|
| 'link'
|
|
969
751
|
| 'multibanco'
|
|
970
752
|
| 'naver_pay'
|
|
753
|
+
| 'nz_bank_account'
|
|
971
754
|
| 'p24'
|
|
972
755
|
| 'payco'
|
|
973
756
|
| 'paynow'
|
|
@@ -1000,22 +783,6 @@ declare module 'stripe' {
|
|
|
1000
783
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1001
784
|
}
|
|
1002
785
|
|
|
1003
|
-
interface Prebilling {
|
|
1004
|
-
/**
|
|
1005
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
1006
|
-
*/
|
|
1007
|
-
iterations: number;
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1011
|
-
*/
|
|
1012
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
namespace Prebilling {
|
|
1016
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
786
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1020
787
|
|
|
1021
788
|
interface TransferData {
|
|
@@ -1079,13 +846,6 @@ declare module 'stripe' {
|
|
|
1079
846
|
*/
|
|
1080
847
|
billing_cycle_anchor?: SubscriptionUpdateParams.BillingCycleAnchor;
|
|
1081
848
|
|
|
1082
|
-
/**
|
|
1083
|
-
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1084
|
-
*/
|
|
1085
|
-
billing_thresholds?: Stripe.Emptyable<
|
|
1086
|
-
SubscriptionUpdateParams.BillingThresholds
|
|
1087
|
-
>;
|
|
1088
|
-
|
|
1089
849
|
/**
|
|
1090
850
|
* A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
1091
851
|
*/
|
|
@@ -1106,11 +866,6 @@ declare module 'stripe' {
|
|
|
1106
866
|
*/
|
|
1107
867
|
collection_method?: SubscriptionUpdateParams.CollectionMethod;
|
|
1108
868
|
|
|
1109
|
-
/**
|
|
1110
|
-
* The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
|
|
1111
|
-
*/
|
|
1112
|
-
coupon?: string;
|
|
1113
|
-
|
|
1114
869
|
/**
|
|
1115
870
|
* Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
|
|
1116
871
|
*/
|
|
@@ -1201,16 +956,6 @@ declare module 'stripe' {
|
|
|
1201
956
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1202
957
|
>;
|
|
1203
958
|
|
|
1204
|
-
/**
|
|
1205
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1206
|
-
*/
|
|
1207
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
* The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
|
|
1211
|
-
*/
|
|
1212
|
-
promotion_code?: string;
|
|
1213
|
-
|
|
1214
959
|
/**
|
|
1215
960
|
* Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1216
961
|
*/
|
|
@@ -1282,56 +1027,12 @@ declare module 'stripe' {
|
|
|
1282
1027
|
*/
|
|
1283
1028
|
discount?: string;
|
|
1284
1029
|
|
|
1285
|
-
/**
|
|
1286
|
-
* Details to determine how long the discount should be applied for.
|
|
1287
|
-
*/
|
|
1288
|
-
discount_end?: Discount.DiscountEnd;
|
|
1289
|
-
|
|
1290
1030
|
/**
|
|
1291
1031
|
* ID of the promotion code to create a new discount for.
|
|
1292
1032
|
*/
|
|
1293
1033
|
promotion_code?: string;
|
|
1294
1034
|
}
|
|
1295
1035
|
|
|
1296
|
-
namespace Discount {
|
|
1297
|
-
interface DiscountEnd {
|
|
1298
|
-
/**
|
|
1299
|
-
* Time span for the redeemed discount.
|
|
1300
|
-
*/
|
|
1301
|
-
duration?: DiscountEnd.Duration;
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1305
|
-
*/
|
|
1306
|
-
timestamp?: number;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* The type of calculation made to determine when the discount ends.
|
|
1310
|
-
*/
|
|
1311
|
-
type: DiscountEnd.Type;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
namespace DiscountEnd {
|
|
1315
|
-
interface Duration {
|
|
1316
|
-
/**
|
|
1317
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1318
|
-
*/
|
|
1319
|
-
interval: Duration.Interval;
|
|
1320
|
-
|
|
1321
|
-
/**
|
|
1322
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1323
|
-
*/
|
|
1324
|
-
interval_count: number;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
namespace Duration {
|
|
1328
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
type Type = 'duration' | 'timestamp';
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
1036
|
interface PriceData {
|
|
1336
1037
|
/**
|
|
1337
1038
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -1339,7 +1040,7 @@ declare module 'stripe' {
|
|
|
1339
1040
|
currency: string;
|
|
1340
1041
|
|
|
1341
1042
|
/**
|
|
1342
|
-
* The ID of the
|
|
1043
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
1343
1044
|
*/
|
|
1344
1045
|
product: string;
|
|
1345
1046
|
|
|
@@ -1396,18 +1097,6 @@ declare module 'stripe' {
|
|
|
1396
1097
|
|
|
1397
1098
|
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
1398
1099
|
|
|
1399
|
-
interface BillingThresholds {
|
|
1400
|
-
/**
|
|
1401
|
-
* Monetary threshold that triggers the subscription to advance to a new billing period
|
|
1402
|
-
*/
|
|
1403
|
-
amount_gte?: number;
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
|
1407
|
-
*/
|
|
1408
|
-
reset_billing_cycle_anchor?: boolean;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
1100
|
interface CancellationDetails {
|
|
1412
1101
|
/**
|
|
1413
1102
|
* Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
|
|
@@ -1445,56 +1134,12 @@ declare module 'stripe' {
|
|
|
1445
1134
|
*/
|
|
1446
1135
|
discount?: string;
|
|
1447
1136
|
|
|
1448
|
-
/**
|
|
1449
|
-
* Details to determine how long the discount should be applied for.
|
|
1450
|
-
*/
|
|
1451
|
-
discount_end?: Discount.DiscountEnd;
|
|
1452
|
-
|
|
1453
1137
|
/**
|
|
1454
1138
|
* ID of the promotion code to create a new discount for.
|
|
1455
1139
|
*/
|
|
1456
1140
|
promotion_code?: string;
|
|
1457
1141
|
}
|
|
1458
1142
|
|
|
1459
|
-
namespace Discount {
|
|
1460
|
-
interface DiscountEnd {
|
|
1461
|
-
/**
|
|
1462
|
-
* Time span for the redeemed discount.
|
|
1463
|
-
*/
|
|
1464
|
-
duration?: DiscountEnd.Duration;
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1468
|
-
*/
|
|
1469
|
-
timestamp?: number;
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* The type of calculation made to determine when the discount ends.
|
|
1473
|
-
*/
|
|
1474
|
-
type: DiscountEnd.Type;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
namespace DiscountEnd {
|
|
1478
|
-
interface Duration {
|
|
1479
|
-
/**
|
|
1480
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1481
|
-
*/
|
|
1482
|
-
interval: Duration.Interval;
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1486
|
-
*/
|
|
1487
|
-
interval_count: number;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
namespace Duration {
|
|
1491
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
type Type = 'duration' | 'timestamp';
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
1143
|
interface InvoiceSettings {
|
|
1499
1144
|
/**
|
|
1500
1145
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1526,11 +1171,6 @@ declare module 'stripe' {
|
|
|
1526
1171
|
}
|
|
1527
1172
|
|
|
1528
1173
|
interface Item {
|
|
1529
|
-
/**
|
|
1530
|
-
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
|
1531
|
-
*/
|
|
1532
|
-
billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
|
|
1533
|
-
|
|
1534
1174
|
/**
|
|
1535
1175
|
* Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
1536
1176
|
*/
|
|
@@ -1583,13 +1223,6 @@ declare module 'stripe' {
|
|
|
1583
1223
|
}
|
|
1584
1224
|
|
|
1585
1225
|
namespace Item {
|
|
1586
|
-
interface BillingThresholds {
|
|
1587
|
-
/**
|
|
1588
|
-
* Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
1589
|
-
*/
|
|
1590
|
-
usage_gte: number;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
1226
|
interface Discount {
|
|
1594
1227
|
/**
|
|
1595
1228
|
* ID of the coupon to create a new discount for.
|
|
@@ -1601,56 +1234,12 @@ declare module 'stripe' {
|
|
|
1601
1234
|
*/
|
|
1602
1235
|
discount?: string;
|
|
1603
1236
|
|
|
1604
|
-
/**
|
|
1605
|
-
* Details to determine how long the discount should be applied for.
|
|
1606
|
-
*/
|
|
1607
|
-
discount_end?: Discount.DiscountEnd;
|
|
1608
|
-
|
|
1609
1237
|
/**
|
|
1610
1238
|
* ID of the promotion code to create a new discount for.
|
|
1611
1239
|
*/
|
|
1612
1240
|
promotion_code?: string;
|
|
1613
1241
|
}
|
|
1614
1242
|
|
|
1615
|
-
namespace Discount {
|
|
1616
|
-
interface DiscountEnd {
|
|
1617
|
-
/**
|
|
1618
|
-
* Time span for the redeemed discount.
|
|
1619
|
-
*/
|
|
1620
|
-
duration?: DiscountEnd.Duration;
|
|
1621
|
-
|
|
1622
|
-
/**
|
|
1623
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1624
|
-
*/
|
|
1625
|
-
timestamp?: number;
|
|
1626
|
-
|
|
1627
|
-
/**
|
|
1628
|
-
* The type of calculation made to determine when the discount ends.
|
|
1629
|
-
*/
|
|
1630
|
-
type: DiscountEnd.Type;
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
namespace DiscountEnd {
|
|
1634
|
-
interface Duration {
|
|
1635
|
-
/**
|
|
1636
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1637
|
-
*/
|
|
1638
|
-
interval: Duration.Interval;
|
|
1639
|
-
|
|
1640
|
-
/**
|
|
1641
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1642
|
-
*/
|
|
1643
|
-
interval_count: number;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
namespace Duration {
|
|
1647
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
type Type = 'duration' | 'timestamp';
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
1243
|
interface PriceData {
|
|
1655
1244
|
/**
|
|
1656
1245
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -1658,7 +1247,7 @@ declare module 'stripe' {
|
|
|
1658
1247
|
currency: string;
|
|
1659
1248
|
|
|
1660
1249
|
/**
|
|
1661
|
-
* The ID of the
|
|
1250
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
1662
1251
|
*/
|
|
1663
1252
|
product: string;
|
|
1664
1253
|
|
|
@@ -1769,13 +1358,6 @@ declare module 'stripe' {
|
|
|
1769
1358
|
PaymentMethodOptions.CustomerBalance
|
|
1770
1359
|
>;
|
|
1771
1360
|
|
|
1772
|
-
/**
|
|
1773
|
-
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1774
|
-
*/
|
|
1775
|
-
id_bank_transfer?: Stripe.Emptyable<
|
|
1776
|
-
PaymentMethodOptions.IdBankTransfer
|
|
1777
|
-
>;
|
|
1778
|
-
|
|
1779
1361
|
/**
|
|
1780
1362
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1781
1363
|
*/
|
|
@@ -1925,8 +1507,6 @@ declare module 'stripe' {
|
|
|
1925
1507
|
}
|
|
1926
1508
|
}
|
|
1927
1509
|
|
|
1928
|
-
interface IdBankTransfer {}
|
|
1929
|
-
|
|
1930
1510
|
interface Konbini {}
|
|
1931
1511
|
|
|
1932
1512
|
interface SepaDebit {}
|
|
@@ -1967,11 +1547,6 @@ declare module 'stripe' {
|
|
|
1967
1547
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1968
1548
|
*/
|
|
1969
1549
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1970
|
-
|
|
1971
|
-
/**
|
|
1972
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1973
|
-
*/
|
|
1974
|
-
institution?: string;
|
|
1975
1550
|
}
|
|
1976
1551
|
|
|
1977
1552
|
namespace Filters {
|
|
@@ -1984,11 +1559,7 @@ declare module 'stripe' {
|
|
|
1984
1559
|
| 'payment_method'
|
|
1985
1560
|
| 'transactions';
|
|
1986
1561
|
|
|
1987
|
-
type Prefetch =
|
|
1988
|
-
| 'balances'
|
|
1989
|
-
| 'inferred_balances'
|
|
1990
|
-
| 'ownership'
|
|
1991
|
-
| 'transactions';
|
|
1562
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1992
1563
|
}
|
|
1993
1564
|
|
|
1994
1565
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -2006,21 +1577,21 @@ declare module 'stripe' {
|
|
|
2006
1577
|
| 'boleto'
|
|
2007
1578
|
| 'card'
|
|
2008
1579
|
| 'cashapp'
|
|
2009
|
-
| 'custom'
|
|
2010
1580
|
| 'customer_balance'
|
|
2011
1581
|
| 'eps'
|
|
2012
1582
|
| 'fpx'
|
|
2013
1583
|
| 'giropay'
|
|
2014
1584
|
| 'grabpay'
|
|
2015
|
-
| 'id_bank_transfer'
|
|
2016
1585
|
| 'ideal'
|
|
2017
1586
|
| 'jp_credit_transfer'
|
|
2018
1587
|
| 'kakao_pay'
|
|
1588
|
+
| 'klarna'
|
|
2019
1589
|
| 'konbini'
|
|
2020
1590
|
| 'kr_card'
|
|
2021
1591
|
| 'link'
|
|
2022
1592
|
| 'multibanco'
|
|
2023
1593
|
| 'naver_pay'
|
|
1594
|
+
| 'nz_bank_account'
|
|
2024
1595
|
| 'p24'
|
|
2025
1596
|
| 'payco'
|
|
2026
1597
|
| 'paynow'
|
|
@@ -2053,22 +1624,6 @@ declare module 'stripe' {
|
|
|
2053
1624
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2054
1625
|
}
|
|
2055
1626
|
|
|
2056
|
-
interface Prebilling {
|
|
2057
|
-
/**
|
|
2058
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
2059
|
-
*/
|
|
2060
|
-
iterations: number;
|
|
2061
|
-
|
|
2062
|
-
/**
|
|
2063
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2064
|
-
*/
|
|
2065
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
namespace Prebilling {
|
|
2069
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
1627
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2073
1628
|
|
|
2074
1629
|
interface TransferData {
|