stripe 16.4.0-beta.1 → 16.4.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 +130 -767
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -13
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/PaymentIntents.js +0 -4
- 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 -38
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -13
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/PaymentIntents.js +0 -4
- 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 -24
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -15
- package/types/AccountSessionsResource.d.ts +0 -205
- package/types/Accounts.d.ts +1 -88
- package/types/AccountsResource.d.ts +0 -204
- package/types/Charges.d.ts +0 -67
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +1 -28
- package/types/Checkout/SessionsResource.d.ts +1 -15
- package/types/ConfirmationTokens.d.ts +5 -62
- 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 +0 -2
- package/types/Disputes.d.ts +0 -168
- package/types/DisputesResource.d.ts +3 -120
- package/types/EventTypes.d.ts +17 -426
- package/types/Events.d.ts +1 -83
- package/types/EventsResource.d.ts +1 -1
- 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/Identity/VerificationReports.d.ts +1 -1
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +0 -22
- package/types/Invoices.d.ts +2 -116
- package/types/InvoicesResource.d.ts +1784 -5359
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -469
- package/types/PaymentIntentsResource.d.ts +3377 -6725
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +0 -62
- package/types/PaymentMethodsResource.d.ts +0 -110
- 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 -578
- package/types/QuotesResource.d.ts +266 -3175
- package/types/SetupAttempts.d.ts +0 -9
- package/types/SetupIntents.d.ts +1 -110
- package/types/SetupIntentsResource.d.ts +3 -498
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -164
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +3 -47
- package/types/SubscriptionsResource.d.ts +6 -349
- package/types/Terminal/Readers.d.ts +2 -279
- package/types/Terminal/ReadersResource.d.ts +1 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- 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 -50
- package/types/index.d.ts +0 -64
- package/types/lib.d.ts +0 -12
- 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/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Forms.js +0 -20
- 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/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -110
- package/types/AccountNoticesResource.d.ts +0 -98
- 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 -91
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1057
- package/types/OrdersResource.d.ts +0 -2711
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1530
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
package/types/Subscriptions.d.ts
CHANGED
|
@@ -196,11 +196,6 @@ declare module 'stripe' {
|
|
|
196
196
|
*/
|
|
197
197
|
pending_update: Subscription.PendingUpdate | null;
|
|
198
198
|
|
|
199
|
-
/**
|
|
200
|
-
* Time period and invoice for a Subscription billed in advance.
|
|
201
|
-
*/
|
|
202
|
-
prebilling?: Subscription.Prebilling | null;
|
|
203
|
-
|
|
204
199
|
/**
|
|
205
200
|
* The schedule attached to the subscription
|
|
206
201
|
*/
|
|
@@ -415,7 +410,7 @@ declare module 'stripe' {
|
|
|
415
410
|
payment_method_types: Array<PaymentSettings.PaymentMethodType> | null;
|
|
416
411
|
|
|
417
412
|
/**
|
|
418
|
-
*
|
|
413
|
+
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
|
|
419
414
|
*/
|
|
420
415
|
save_default_payment_method: PaymentSettings.SaveDefaultPaymentMethod | null;
|
|
421
416
|
}
|
|
@@ -613,11 +608,6 @@ declare module 'stripe' {
|
|
|
613
608
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
614
609
|
*/
|
|
615
610
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* The institution to use to filter for possible accounts to link.
|
|
619
|
-
*/
|
|
620
|
-
institution?: string;
|
|
621
611
|
}
|
|
622
612
|
|
|
623
613
|
namespace Filters {
|
|
@@ -630,11 +620,7 @@ declare module 'stripe' {
|
|
|
630
620
|
| 'payment_method'
|
|
631
621
|
| 'transactions';
|
|
632
622
|
|
|
633
|
-
type Prefetch =
|
|
634
|
-
| 'balances'
|
|
635
|
-
| 'inferred_balances'
|
|
636
|
-
| 'ownership'
|
|
637
|
-
| 'transactions';
|
|
623
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
638
624
|
}
|
|
639
625
|
|
|
640
626
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -660,6 +646,7 @@ declare module 'stripe' {
|
|
|
660
646
|
| 'ideal'
|
|
661
647
|
| 'konbini'
|
|
662
648
|
| 'link'
|
|
649
|
+
| 'multibanco'
|
|
663
650
|
| 'p24'
|
|
664
651
|
| 'paynow'
|
|
665
652
|
| 'paypal'
|
|
@@ -702,11 +689,6 @@ declare module 'stripe' {
|
|
|
702
689
|
*/
|
|
703
690
|
expires_at: number;
|
|
704
691
|
|
|
705
|
-
/**
|
|
706
|
-
* The number of iterations of prebilling to apply.
|
|
707
|
-
*/
|
|
708
|
-
prebilling_iterations?: number | null;
|
|
709
|
-
|
|
710
692
|
/**
|
|
711
693
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
712
694
|
*/
|
|
@@ -723,32 +705,6 @@ declare module 'stripe' {
|
|
|
723
705
|
trial_from_plan: boolean | null;
|
|
724
706
|
}
|
|
725
707
|
|
|
726
|
-
interface Prebilling {
|
|
727
|
-
/**
|
|
728
|
-
* ID of the prebilling invoice.
|
|
729
|
-
*/
|
|
730
|
-
invoice: string | Stripe.Invoice;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* The end of the last period for which the invoice pre-bills.
|
|
734
|
-
*/
|
|
735
|
-
period_end: number;
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* The start of the first period for which the invoice pre-bills.
|
|
739
|
-
*/
|
|
740
|
-
period_start: number;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
744
|
-
*/
|
|
745
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
namespace Prebilling {
|
|
749
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
750
|
-
}
|
|
751
|
-
|
|
752
708
|
type Status =
|
|
753
709
|
| 'active'
|
|
754
710
|
| 'canceled'
|
|
@@ -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 ID of a 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 =
|
|
@@ -687,7 +529,7 @@ declare module 'stripe' {
|
|
|
687
529
|
>;
|
|
688
530
|
|
|
689
531
|
/**
|
|
690
|
-
*
|
|
532
|
+
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
|
|
691
533
|
*/
|
|
692
534
|
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
|
|
693
535
|
}
|
|
@@ -903,11 +745,6 @@ declare module 'stripe' {
|
|
|
903
745
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
904
746
|
*/
|
|
905
747
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
909
|
-
*/
|
|
910
|
-
institution?: string;
|
|
911
748
|
}
|
|
912
749
|
|
|
913
750
|
namespace Filters {
|
|
@@ -920,11 +757,7 @@ declare module 'stripe' {
|
|
|
920
757
|
| 'payment_method'
|
|
921
758
|
| 'transactions';
|
|
922
759
|
|
|
923
|
-
type Prefetch =
|
|
924
|
-
| 'balances'
|
|
925
|
-
| 'inferred_balances'
|
|
926
|
-
| 'ownership'
|
|
927
|
-
| 'transactions';
|
|
760
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
928
761
|
}
|
|
929
762
|
|
|
930
763
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -950,6 +783,7 @@ declare module 'stripe' {
|
|
|
950
783
|
| 'ideal'
|
|
951
784
|
| 'konbini'
|
|
952
785
|
| 'link'
|
|
786
|
+
| 'multibanco'
|
|
953
787
|
| 'p24'
|
|
954
788
|
| 'paynow'
|
|
955
789
|
| 'paypal'
|
|
@@ -981,22 +815,6 @@ declare module 'stripe' {
|
|
|
981
815
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
982
816
|
}
|
|
983
817
|
|
|
984
|
-
interface Prebilling {
|
|
985
|
-
/**
|
|
986
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
987
|
-
*/
|
|
988
|
-
iterations: number;
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
992
|
-
*/
|
|
993
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
namespace Prebilling {
|
|
997
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
818
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1001
819
|
|
|
1002
820
|
interface TransferData {
|
|
@@ -1182,11 +1000,6 @@ declare module 'stripe' {
|
|
|
1182
1000
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1183
1001
|
>;
|
|
1184
1002
|
|
|
1185
|
-
/**
|
|
1186
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1187
|
-
*/
|
|
1188
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1189
|
-
|
|
1190
1003
|
/**
|
|
1191
1004
|
* The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription.
|
|
1192
1005
|
*/
|
|
@@ -1263,56 +1076,12 @@ declare module 'stripe' {
|
|
|
1263
1076
|
*/
|
|
1264
1077
|
discount?: string;
|
|
1265
1078
|
|
|
1266
|
-
/**
|
|
1267
|
-
* Details to determine how long the discount should be applied for.
|
|
1268
|
-
*/
|
|
1269
|
-
discount_end?: Discount.DiscountEnd;
|
|
1270
|
-
|
|
1271
1079
|
/**
|
|
1272
1080
|
* ID of the promotion code to create a new discount for.
|
|
1273
1081
|
*/
|
|
1274
1082
|
promotion_code?: string;
|
|
1275
1083
|
}
|
|
1276
1084
|
|
|
1277
|
-
namespace Discount {
|
|
1278
|
-
interface DiscountEnd {
|
|
1279
|
-
/**
|
|
1280
|
-
* Time span for the redeemed discount.
|
|
1281
|
-
*/
|
|
1282
|
-
duration?: DiscountEnd.Duration;
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1286
|
-
*/
|
|
1287
|
-
timestamp?: number;
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* The type of calculation made to determine when the discount ends.
|
|
1291
|
-
*/
|
|
1292
|
-
type: DiscountEnd.Type;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
namespace DiscountEnd {
|
|
1296
|
-
interface Duration {
|
|
1297
|
-
/**
|
|
1298
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1299
|
-
*/
|
|
1300
|
-
interval: Duration.Interval;
|
|
1301
|
-
|
|
1302
|
-
/**
|
|
1303
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1304
|
-
*/
|
|
1305
|
-
interval_count: number;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
namespace Duration {
|
|
1309
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
type Type = 'duration' | 'timestamp';
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
1085
|
interface PriceData {
|
|
1317
1086
|
/**
|
|
1318
1087
|
* 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).
|
|
@@ -1426,56 +1195,12 @@ declare module 'stripe' {
|
|
|
1426
1195
|
*/
|
|
1427
1196
|
discount?: string;
|
|
1428
1197
|
|
|
1429
|
-
/**
|
|
1430
|
-
* Details to determine how long the discount should be applied for.
|
|
1431
|
-
*/
|
|
1432
|
-
discount_end?: Discount.DiscountEnd;
|
|
1433
|
-
|
|
1434
1198
|
/**
|
|
1435
1199
|
* ID of the promotion code to create a new discount for.
|
|
1436
1200
|
*/
|
|
1437
1201
|
promotion_code?: string;
|
|
1438
1202
|
}
|
|
1439
1203
|
|
|
1440
|
-
namespace Discount {
|
|
1441
|
-
interface DiscountEnd {
|
|
1442
|
-
/**
|
|
1443
|
-
* Time span for the redeemed discount.
|
|
1444
|
-
*/
|
|
1445
|
-
duration?: DiscountEnd.Duration;
|
|
1446
|
-
|
|
1447
|
-
/**
|
|
1448
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1449
|
-
*/
|
|
1450
|
-
timestamp?: number;
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* The type of calculation made to determine when the discount ends.
|
|
1454
|
-
*/
|
|
1455
|
-
type: DiscountEnd.Type;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
namespace DiscountEnd {
|
|
1459
|
-
interface Duration {
|
|
1460
|
-
/**
|
|
1461
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1462
|
-
*/
|
|
1463
|
-
interval: Duration.Interval;
|
|
1464
|
-
|
|
1465
|
-
/**
|
|
1466
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1467
|
-
*/
|
|
1468
|
-
interval_count: number;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
namespace Duration {
|
|
1472
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
type Type = 'duration' | 'timestamp';
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
1204
|
interface InvoiceSettings {
|
|
1480
1205
|
/**
|
|
1481
1206
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1582,56 +1307,12 @@ declare module 'stripe' {
|
|
|
1582
1307
|
*/
|
|
1583
1308
|
discount?: string;
|
|
1584
1309
|
|
|
1585
|
-
/**
|
|
1586
|
-
* Details to determine how long the discount should be applied for.
|
|
1587
|
-
*/
|
|
1588
|
-
discount_end?: Discount.DiscountEnd;
|
|
1589
|
-
|
|
1590
1310
|
/**
|
|
1591
1311
|
* ID of the promotion code to create a new discount for.
|
|
1592
1312
|
*/
|
|
1593
1313
|
promotion_code?: string;
|
|
1594
1314
|
}
|
|
1595
1315
|
|
|
1596
|
-
namespace Discount {
|
|
1597
|
-
interface DiscountEnd {
|
|
1598
|
-
/**
|
|
1599
|
-
* Time span for the redeemed discount.
|
|
1600
|
-
*/
|
|
1601
|
-
duration?: DiscountEnd.Duration;
|
|
1602
|
-
|
|
1603
|
-
/**
|
|
1604
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1605
|
-
*/
|
|
1606
|
-
timestamp?: number;
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* The type of calculation made to determine when the discount ends.
|
|
1610
|
-
*/
|
|
1611
|
-
type: DiscountEnd.Type;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
namespace DiscountEnd {
|
|
1615
|
-
interface Duration {
|
|
1616
|
-
/**
|
|
1617
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1618
|
-
*/
|
|
1619
|
-
interval: Duration.Interval;
|
|
1620
|
-
|
|
1621
|
-
/**
|
|
1622
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1623
|
-
*/
|
|
1624
|
-
interval_count: number;
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
namespace Duration {
|
|
1628
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
type Type = 'duration' | 'timestamp';
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
1316
|
interface PriceData {
|
|
1636
1317
|
/**
|
|
1637
1318
|
* 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).
|
|
@@ -1721,7 +1402,7 @@ declare module 'stripe' {
|
|
|
1721
1402
|
>;
|
|
1722
1403
|
|
|
1723
1404
|
/**
|
|
1724
|
-
*
|
|
1405
|
+
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
|
|
1725
1406
|
*/
|
|
1726
1407
|
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
|
|
1727
1408
|
}
|
|
@@ -1937,11 +1618,6 @@ declare module 'stripe' {
|
|
|
1937
1618
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1938
1619
|
*/
|
|
1939
1620
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1940
|
-
|
|
1941
|
-
/**
|
|
1942
|
-
* ID of the institution to use to filter for selectable accounts.
|
|
1943
|
-
*/
|
|
1944
|
-
institution?: string;
|
|
1945
1621
|
}
|
|
1946
1622
|
|
|
1947
1623
|
namespace Filters {
|
|
@@ -1954,11 +1630,7 @@ declare module 'stripe' {
|
|
|
1954
1630
|
| 'payment_method'
|
|
1955
1631
|
| 'transactions';
|
|
1956
1632
|
|
|
1957
|
-
type Prefetch =
|
|
1958
|
-
| 'balances'
|
|
1959
|
-
| 'inferred_balances'
|
|
1960
|
-
| 'ownership'
|
|
1961
|
-
| 'transactions';
|
|
1633
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1962
1634
|
}
|
|
1963
1635
|
|
|
1964
1636
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1984,6 +1656,7 @@ declare module 'stripe' {
|
|
|
1984
1656
|
| 'ideal'
|
|
1985
1657
|
| 'konbini'
|
|
1986
1658
|
| 'link'
|
|
1659
|
+
| 'multibanco'
|
|
1987
1660
|
| 'p24'
|
|
1988
1661
|
| 'paynow'
|
|
1989
1662
|
| 'paypal'
|
|
@@ -2015,22 +1688,6 @@ declare module 'stripe' {
|
|
|
2015
1688
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2016
1689
|
}
|
|
2017
1690
|
|
|
2018
|
-
interface Prebilling {
|
|
2019
|
-
/**
|
|
2020
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
2021
|
-
*/
|
|
2022
|
-
iterations: number;
|
|
2023
|
-
|
|
2024
|
-
/**
|
|
2025
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2026
|
-
*/
|
|
2027
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
namespace Prebilling {
|
|
2031
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
1691
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2035
1692
|
|
|
2036
1693
|
interface TransferData {
|