stripe 17.5.0-beta.2 → 17.5.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 +132 -996
- package/README.md +33 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources.js +10 -48
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources.js +0 -33
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -50
- package/types/AccountSessionsResource.d.ts +5 -360
- package/types/Accounts.d.ts +5 -194
- package/types/AccountsResource.d.ts +0 -520
- package/types/Billing/CreditBalanceTransactions.d.ts +20 -1
- package/types/Capabilities.d.ts +2 -2
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +10 -136
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +25 -323
- package/types/Checkout/SessionsResource.d.ts +5 -445
- package/types/ConfirmationTokens.d.ts +7 -99
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +42 -11
- package/types/Disputes.d.ts +22 -0
- package/types/DisputesResource.d.ts +12 -0
- package/types/EventTypes.d.ts +0 -596
- package/types/Events.d.ts +0 -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/Forwarding/Requests.d.ts +2 -1
- package/types/Forwarding/RequestsResource.d.ts +2 -1
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -28
- package/types/Invoices.d.ts +23 -139
- package/types/InvoicesResource.d.ts +1907 -5535
- package/types/Issuing/Authorizations.d.ts +5 -0
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +5 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -32
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -644
- package/types/PaymentIntentsResource.d.ts +3768 -8055
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +7 -99
- package/types/PaymentMethodsResource.d.ts +0 -133
- package/types/Payouts.d.ts +1 -1
- package/types/Persons.d.ts +2 -2
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- 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 +199 -2531
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +0 -38
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -645
- package/types/Sources.d.ts +7 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -91
- package/types/SubscriptionsResource.d.ts +2 -369
- package/types/Tax/Calculations.d.ts +21 -2
- package/types/Tax/CalculationsResource.d.ts +21 -2
- package/types/Tax/Registrations.d.ts +189 -0
- package/types/Tax/RegistrationsResource.d.ts +252 -0
- package/types/Tax/Transactions.d.ts +21 -2
- package/types/TaxIds.d.ts +21 -2
- package/types/TaxIdsResource.d.ts +21 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- 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/WebhookEndpointsResource.d.ts +2 -71
- package/types/index.d.ts +0 -62
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
- 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/PaymentAttemptRecords.js +0 -17
- 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/PaymentAttemptRecords.js +0 -14
- 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/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/InvoicePayments.d.ts +0 -113
- 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 -1160
- package/types/OrdersResource.d.ts +0 -2923
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -259
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1634
- 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
|
@@ -157,11 +157,6 @@ declare module 'stripe' {
|
|
|
157
157
|
SubscriptionCreateParams.PendingInvoiceItemInterval
|
|
158
158
|
>;
|
|
159
159
|
|
|
160
|
-
/**
|
|
161
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
162
|
-
*/
|
|
163
|
-
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
164
|
-
|
|
165
160
|
/**
|
|
166
161
|
* 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
162
|
*/
|
|
@@ -238,56 +233,12 @@ declare module 'stripe' {
|
|
|
238
233
|
*/
|
|
239
234
|
discount?: string;
|
|
240
235
|
|
|
241
|
-
/**
|
|
242
|
-
* Details to determine how long the discount should be applied for.
|
|
243
|
-
*/
|
|
244
|
-
discount_end?: Discount.DiscountEnd;
|
|
245
|
-
|
|
246
236
|
/**
|
|
247
237
|
* ID of the promotion code to create a new discount for.
|
|
248
238
|
*/
|
|
249
239
|
promotion_code?: string;
|
|
250
240
|
}
|
|
251
241
|
|
|
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
242
|
interface PriceData {
|
|
292
243
|
/**
|
|
293
244
|
* 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).
|
|
@@ -402,56 +353,12 @@ declare module 'stripe' {
|
|
|
402
353
|
*/
|
|
403
354
|
discount?: string;
|
|
404
355
|
|
|
405
|
-
/**
|
|
406
|
-
* Details to determine how long the discount should be applied for.
|
|
407
|
-
*/
|
|
408
|
-
discount_end?: Discount.DiscountEnd;
|
|
409
|
-
|
|
410
356
|
/**
|
|
411
357
|
* ID of the promotion code to create a new discount for.
|
|
412
358
|
*/
|
|
413
359
|
promotion_code?: string;
|
|
414
360
|
}
|
|
415
361
|
|
|
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
362
|
interface InvoiceSettings {
|
|
456
363
|
/**
|
|
457
364
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -522,11 +429,6 @@ declare module 'stripe' {
|
|
|
522
429
|
* 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
430
|
*/
|
|
524
431
|
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
432
|
}
|
|
531
433
|
|
|
532
434
|
namespace Item {
|
|
@@ -548,56 +450,12 @@ declare module 'stripe' {
|
|
|
548
450
|
*/
|
|
549
451
|
discount?: string;
|
|
550
452
|
|
|
551
|
-
/**
|
|
552
|
-
* Details to determine how long the discount should be applied for.
|
|
553
|
-
*/
|
|
554
|
-
discount_end?: Discount.DiscountEnd;
|
|
555
|
-
|
|
556
453
|
/**
|
|
557
454
|
* ID of the promotion code to create a new discount for.
|
|
558
455
|
*/
|
|
559
456
|
promotion_code?: string;
|
|
560
457
|
}
|
|
561
458
|
|
|
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
459
|
interface PriceData {
|
|
602
460
|
/**
|
|
603
461
|
* 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).
|
|
@@ -649,22 +507,6 @@ declare module 'stripe' {
|
|
|
649
507
|
|
|
650
508
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
651
509
|
}
|
|
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
510
|
}
|
|
669
511
|
|
|
670
512
|
type PaymentBehavior =
|
|
@@ -716,13 +558,6 @@ declare module 'stripe' {
|
|
|
716
558
|
PaymentMethodOptions.CustomerBalance
|
|
717
559
|
>;
|
|
718
560
|
|
|
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
561
|
/**
|
|
727
562
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
728
563
|
*/
|
|
@@ -872,8 +707,6 @@ declare module 'stripe' {
|
|
|
872
707
|
}
|
|
873
708
|
}
|
|
874
709
|
|
|
875
|
-
interface IdBankTransfer {}
|
|
876
|
-
|
|
877
710
|
interface Konbini {}
|
|
878
711
|
|
|
879
712
|
interface SepaDebit {}
|
|
@@ -914,11 +747,6 @@ declare module 'stripe' {
|
|
|
914
747
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
915
748
|
*/
|
|
916
749
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
920
|
-
*/
|
|
921
|
-
institution?: string;
|
|
922
750
|
}
|
|
923
751
|
|
|
924
752
|
namespace Filters {
|
|
@@ -931,11 +759,7 @@ declare module 'stripe' {
|
|
|
931
759
|
| 'payment_method'
|
|
932
760
|
| 'transactions';
|
|
933
761
|
|
|
934
|
-
type Prefetch =
|
|
935
|
-
| 'balances'
|
|
936
|
-
| 'inferred_balances'
|
|
937
|
-
| 'ownership'
|
|
938
|
-
| 'transactions';
|
|
762
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
939
763
|
}
|
|
940
764
|
|
|
941
765
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -953,13 +777,11 @@ declare module 'stripe' {
|
|
|
953
777
|
| 'boleto'
|
|
954
778
|
| 'card'
|
|
955
779
|
| 'cashapp'
|
|
956
|
-
| 'custom'
|
|
957
780
|
| 'customer_balance'
|
|
958
781
|
| 'eps'
|
|
959
782
|
| 'fpx'
|
|
960
783
|
| 'giropay'
|
|
961
784
|
| 'grabpay'
|
|
962
|
-
| 'id_bank_transfer'
|
|
963
785
|
| 'ideal'
|
|
964
786
|
| 'jp_credit_transfer'
|
|
965
787
|
| 'kakao_pay'
|
|
@@ -1000,22 +822,6 @@ declare module 'stripe' {
|
|
|
1000
822
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1001
823
|
}
|
|
1002
824
|
|
|
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
825
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1020
826
|
|
|
1021
827
|
interface TransferData {
|
|
@@ -1201,11 +1007,6 @@ declare module 'stripe' {
|
|
|
1201
1007
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1202
1008
|
>;
|
|
1203
1009
|
|
|
1204
|
-
/**
|
|
1205
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1206
|
-
*/
|
|
1207
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1208
|
-
|
|
1209
1010
|
/**
|
|
1210
1011
|
* 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
1012
|
*/
|
|
@@ -1282,56 +1083,12 @@ declare module 'stripe' {
|
|
|
1282
1083
|
*/
|
|
1283
1084
|
discount?: string;
|
|
1284
1085
|
|
|
1285
|
-
/**
|
|
1286
|
-
* Details to determine how long the discount should be applied for.
|
|
1287
|
-
*/
|
|
1288
|
-
discount_end?: Discount.DiscountEnd;
|
|
1289
|
-
|
|
1290
1086
|
/**
|
|
1291
1087
|
* ID of the promotion code to create a new discount for.
|
|
1292
1088
|
*/
|
|
1293
1089
|
promotion_code?: string;
|
|
1294
1090
|
}
|
|
1295
1091
|
|
|
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
1092
|
interface PriceData {
|
|
1336
1093
|
/**
|
|
1337
1094
|
* 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).
|
|
@@ -1445,56 +1202,12 @@ declare module 'stripe' {
|
|
|
1445
1202
|
*/
|
|
1446
1203
|
discount?: string;
|
|
1447
1204
|
|
|
1448
|
-
/**
|
|
1449
|
-
* Details to determine how long the discount should be applied for.
|
|
1450
|
-
*/
|
|
1451
|
-
discount_end?: Discount.DiscountEnd;
|
|
1452
|
-
|
|
1453
1205
|
/**
|
|
1454
1206
|
* ID of the promotion code to create a new discount for.
|
|
1455
1207
|
*/
|
|
1456
1208
|
promotion_code?: string;
|
|
1457
1209
|
}
|
|
1458
1210
|
|
|
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
1211
|
interface InvoiceSettings {
|
|
1499
1212
|
/**
|
|
1500
1213
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1601,56 +1314,12 @@ declare module 'stripe' {
|
|
|
1601
1314
|
*/
|
|
1602
1315
|
discount?: string;
|
|
1603
1316
|
|
|
1604
|
-
/**
|
|
1605
|
-
* Details to determine how long the discount should be applied for.
|
|
1606
|
-
*/
|
|
1607
|
-
discount_end?: Discount.DiscountEnd;
|
|
1608
|
-
|
|
1609
1317
|
/**
|
|
1610
1318
|
* ID of the promotion code to create a new discount for.
|
|
1611
1319
|
*/
|
|
1612
1320
|
promotion_code?: string;
|
|
1613
1321
|
}
|
|
1614
1322
|
|
|
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
1323
|
interface PriceData {
|
|
1655
1324
|
/**
|
|
1656
1325
|
* 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).
|
|
@@ -1769,13 +1438,6 @@ declare module 'stripe' {
|
|
|
1769
1438
|
PaymentMethodOptions.CustomerBalance
|
|
1770
1439
|
>;
|
|
1771
1440
|
|
|
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
1441
|
/**
|
|
1780
1442
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1781
1443
|
*/
|
|
@@ -1925,8 +1587,6 @@ declare module 'stripe' {
|
|
|
1925
1587
|
}
|
|
1926
1588
|
}
|
|
1927
1589
|
|
|
1928
|
-
interface IdBankTransfer {}
|
|
1929
|
-
|
|
1930
1590
|
interface Konbini {}
|
|
1931
1591
|
|
|
1932
1592
|
interface SepaDebit {}
|
|
@@ -1967,11 +1627,6 @@ declare module 'stripe' {
|
|
|
1967
1627
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1968
1628
|
*/
|
|
1969
1629
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1970
|
-
|
|
1971
|
-
/**
|
|
1972
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1973
|
-
*/
|
|
1974
|
-
institution?: string;
|
|
1975
1630
|
}
|
|
1976
1631
|
|
|
1977
1632
|
namespace Filters {
|
|
@@ -1984,11 +1639,7 @@ declare module 'stripe' {
|
|
|
1984
1639
|
| 'payment_method'
|
|
1985
1640
|
| 'transactions';
|
|
1986
1641
|
|
|
1987
|
-
type Prefetch =
|
|
1988
|
-
| 'balances'
|
|
1989
|
-
| 'inferred_balances'
|
|
1990
|
-
| 'ownership'
|
|
1991
|
-
| 'transactions';
|
|
1642
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1992
1643
|
}
|
|
1993
1644
|
|
|
1994
1645
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -2006,13 +1657,11 @@ declare module 'stripe' {
|
|
|
2006
1657
|
| 'boleto'
|
|
2007
1658
|
| 'card'
|
|
2008
1659
|
| 'cashapp'
|
|
2009
|
-
| 'custom'
|
|
2010
1660
|
| 'customer_balance'
|
|
2011
1661
|
| 'eps'
|
|
2012
1662
|
| 'fpx'
|
|
2013
1663
|
| 'giropay'
|
|
2014
1664
|
| 'grabpay'
|
|
2015
|
-
| 'id_bank_transfer'
|
|
2016
1665
|
| 'ideal'
|
|
2017
1666
|
| 'jp_credit_transfer'
|
|
2018
1667
|
| 'kakao_pay'
|
|
@@ -2053,22 +1702,6 @@ declare module 'stripe' {
|
|
|
2053
1702
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2054
1703
|
}
|
|
2055
1704
|
|
|
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
1705
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2073
1706
|
|
|
2074
1707
|
interface TransferData {
|
|
@@ -120,7 +120,7 @@ declare module 'stripe' {
|
|
|
120
120
|
|
|
121
121
|
interface TaxId {
|
|
122
122
|
/**
|
|
123
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
|
|
123
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
124
124
|
*/
|
|
125
125
|
type: TaxId.Type;
|
|
126
126
|
|
|
@@ -134,14 +134,20 @@ declare module 'stripe' {
|
|
|
134
134
|
type Type =
|
|
135
135
|
| 'ad_nrt'
|
|
136
136
|
| 'ae_trn'
|
|
137
|
+
| 'al_tin'
|
|
138
|
+
| 'am_tin'
|
|
139
|
+
| 'ao_tin'
|
|
137
140
|
| 'ar_cuit'
|
|
138
141
|
| 'au_abn'
|
|
139
142
|
| 'au_arn'
|
|
143
|
+
| 'ba_tin'
|
|
144
|
+
| 'bb_tin'
|
|
140
145
|
| 'bg_uic'
|
|
141
146
|
| 'bh_vat'
|
|
142
147
|
| 'bo_tin'
|
|
143
148
|
| 'br_cnpj'
|
|
144
149
|
| 'br_cpf'
|
|
150
|
+
| 'bs_tin'
|
|
145
151
|
| 'by_tin'
|
|
146
152
|
| 'ca_bn'
|
|
147
153
|
| 'ca_gst_hst'
|
|
@@ -149,6 +155,7 @@ declare module 'stripe' {
|
|
|
149
155
|
| 'ca_pst_mb'
|
|
150
156
|
| 'ca_pst_sk'
|
|
151
157
|
| 'ca_qst'
|
|
158
|
+
| 'cd_nif'
|
|
152
159
|
| 'ch_uid'
|
|
153
160
|
| 'ch_vat'
|
|
154
161
|
| 'cl_tin'
|
|
@@ -164,6 +171,7 @@ declare module 'stripe' {
|
|
|
164
171
|
| 'eu_vat'
|
|
165
172
|
| 'gb_vat'
|
|
166
173
|
| 'ge_vat'
|
|
174
|
+
| 'gn_nif'
|
|
167
175
|
| 'hk_br'
|
|
168
176
|
| 'hr_oib'
|
|
169
177
|
| 'hu_tin'
|
|
@@ -175,12 +183,16 @@ declare module 'stripe' {
|
|
|
175
183
|
| 'jp_rn'
|
|
176
184
|
| 'jp_trn'
|
|
177
185
|
| 'ke_pin'
|
|
186
|
+
| 'kh_tin'
|
|
178
187
|
| 'kr_brn'
|
|
179
188
|
| 'kz_bin'
|
|
180
189
|
| 'li_uid'
|
|
181
190
|
| 'li_vat'
|
|
182
191
|
| 'ma_vat'
|
|
183
192
|
| 'md_vat'
|
|
193
|
+
| 'me_pib'
|
|
194
|
+
| 'mk_vat'
|
|
195
|
+
| 'mr_nif'
|
|
184
196
|
| 'mx_rfc'
|
|
185
197
|
| 'my_frp'
|
|
186
198
|
| 'my_itn'
|
|
@@ -188,6 +200,7 @@ declare module 'stripe' {
|
|
|
188
200
|
| 'ng_tin'
|
|
189
201
|
| 'no_vat'
|
|
190
202
|
| 'no_voec'
|
|
203
|
+
| 'np_pan'
|
|
191
204
|
| 'nz_gst'
|
|
192
205
|
| 'om_vat'
|
|
193
206
|
| 'pe_ruc'
|
|
@@ -200,12 +213,16 @@ declare module 'stripe' {
|
|
|
200
213
|
| 'sg_gst'
|
|
201
214
|
| 'sg_uen'
|
|
202
215
|
| 'si_tin'
|
|
216
|
+
| 'sn_ninea'
|
|
217
|
+
| 'sr_fin'
|
|
203
218
|
| 'sv_nit'
|
|
204
219
|
| 'th_vat'
|
|
220
|
+
| 'tj_tin'
|
|
205
221
|
| 'tr_tin'
|
|
206
222
|
| 'tw_vat'
|
|
207
223
|
| 'tz_vat'
|
|
208
224
|
| 'ua_vat'
|
|
225
|
+
| 'ug_tin'
|
|
209
226
|
| 'unknown'
|
|
210
227
|
| 'us_ein'
|
|
211
228
|
| 'uy_ruc'
|
|
@@ -213,7 +230,9 @@ declare module 'stripe' {
|
|
|
213
230
|
| 'uz_vat'
|
|
214
231
|
| 've_rif'
|
|
215
232
|
| 'vn_tin'
|
|
216
|
-
| 'za_vat'
|
|
233
|
+
| 'za_vat'
|
|
234
|
+
| 'zm_tin'
|
|
235
|
+
| 'zw_tin';
|
|
217
236
|
}
|
|
218
237
|
}
|
|
219
238
|
|