stripe 17.4.0 → 17.5.0-beta.2
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 +1000 -109
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +48 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +33 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +50 -5
- package/types/AccountSessionsResource.d.ts +360 -5
- package/types/Accounts.d.ts +191 -2
- package/types/AccountsResource.d.ts +522 -2
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +8 -8
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +1 -1
- package/types/Billing/MeterEvents.d.ts +1 -2
- package/types/Billing/MeterEventsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +8 -8
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/Capabilities.d.ts +1 -1
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +244 -2
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +333 -6
- package/types/Checkout/SessionsResource.d.ts +460 -8
- package/types/ConfirmationTokens.d.ts +99 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +8 -1
- package/types/EventTypes.d.ts +598 -2
- package/types/Events.d.ts +93 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/FundingInstructions.d.ts +21 -0
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +28 -1
- package/types/InvoicePayments.d.ts +113 -0
- package/types/Invoices.d.ts +156 -2
- package/types/InvoicesResource.d.ts +5537 -1852
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +33 -1
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1160 -0
- package/types/OrdersResource.d.ts +2923 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +688 -4
- package/types/PaymentIntentsResource.d.ts +7994 -3677
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +23 -2
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +259 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1634 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +48 -0
- package/types/SetupIntents.d.ts +133 -3
- package/types/SetupIntentsResource.d.ts +681 -9
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +210 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +96 -1
- package/types/SubscriptionsResource.d.ts +372 -5
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +10 -3
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +70 -0
- package/types/index.d.ts +62 -0
|
@@ -157,6 +157,11 @@ 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
|
+
|
|
160
165
|
/**
|
|
161
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.
|
|
162
167
|
*/
|
|
@@ -233,12 +238,56 @@ declare module 'stripe' {
|
|
|
233
238
|
*/
|
|
234
239
|
discount?: string;
|
|
235
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Details to determine how long the discount should be applied for.
|
|
243
|
+
*/
|
|
244
|
+
discount_end?: Discount.DiscountEnd;
|
|
245
|
+
|
|
236
246
|
/**
|
|
237
247
|
* ID of the promotion code to create a new discount for.
|
|
238
248
|
*/
|
|
239
249
|
promotion_code?: string;
|
|
240
250
|
}
|
|
241
251
|
|
|
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
|
+
|
|
242
291
|
interface PriceData {
|
|
243
292
|
/**
|
|
244
293
|
* 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).
|
|
@@ -353,12 +402,56 @@ declare module 'stripe' {
|
|
|
353
402
|
*/
|
|
354
403
|
discount?: string;
|
|
355
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Details to determine how long the discount should be applied for.
|
|
407
|
+
*/
|
|
408
|
+
discount_end?: Discount.DiscountEnd;
|
|
409
|
+
|
|
356
410
|
/**
|
|
357
411
|
* ID of the promotion code to create a new discount for.
|
|
358
412
|
*/
|
|
359
413
|
promotion_code?: string;
|
|
360
414
|
}
|
|
361
415
|
|
|
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
|
+
|
|
362
455
|
interface InvoiceSettings {
|
|
363
456
|
/**
|
|
364
457
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -429,6 +522,11 @@ declare module 'stripe' {
|
|
|
429
522
|
* 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.
|
|
430
523
|
*/
|
|
431
524
|
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Define options to configure the trial on the subscription item.
|
|
528
|
+
*/
|
|
529
|
+
trial?: Item.Trial;
|
|
432
530
|
}
|
|
433
531
|
|
|
434
532
|
namespace Item {
|
|
@@ -450,12 +548,56 @@ declare module 'stripe' {
|
|
|
450
548
|
*/
|
|
451
549
|
discount?: string;
|
|
452
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Details to determine how long the discount should be applied for.
|
|
553
|
+
*/
|
|
554
|
+
discount_end?: Discount.DiscountEnd;
|
|
555
|
+
|
|
453
556
|
/**
|
|
454
557
|
* ID of the promotion code to create a new discount for.
|
|
455
558
|
*/
|
|
456
559
|
promotion_code?: string;
|
|
457
560
|
}
|
|
458
561
|
|
|
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
|
+
|
|
459
601
|
interface PriceData {
|
|
460
602
|
/**
|
|
461
603
|
* 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).
|
|
@@ -507,6 +649,22 @@ declare module 'stripe' {
|
|
|
507
649
|
|
|
508
650
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
509
651
|
}
|
|
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
|
+
}
|
|
510
668
|
}
|
|
511
669
|
|
|
512
670
|
type PaymentBehavior =
|
|
@@ -522,7 +680,7 @@ declare module 'stripe' {
|
|
|
522
680
|
payment_method_options?: PaymentSettings.PaymentMethodOptions;
|
|
523
681
|
|
|
524
682
|
/**
|
|
525
|
-
* The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
|
683
|
+
* The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
|
526
684
|
*/
|
|
527
685
|
payment_method_types?: Stripe.Emptyable<
|
|
528
686
|
Array<PaymentSettings.PaymentMethodType>
|
|
@@ -558,6 +716,13 @@ declare module 'stripe' {
|
|
|
558
716
|
PaymentMethodOptions.CustomerBalance
|
|
559
717
|
>;
|
|
560
718
|
|
|
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
|
+
|
|
561
726
|
/**
|
|
562
727
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
563
728
|
*/
|
|
@@ -707,6 +872,8 @@ declare module 'stripe' {
|
|
|
707
872
|
}
|
|
708
873
|
}
|
|
709
874
|
|
|
875
|
+
interface IdBankTransfer {}
|
|
876
|
+
|
|
710
877
|
interface Konbini {}
|
|
711
878
|
|
|
712
879
|
interface SepaDebit {}
|
|
@@ -747,6 +914,11 @@ declare module 'stripe' {
|
|
|
747
914
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
748
915
|
*/
|
|
749
916
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
920
|
+
*/
|
|
921
|
+
institution?: string;
|
|
750
922
|
}
|
|
751
923
|
|
|
752
924
|
namespace Filters {
|
|
@@ -759,7 +931,11 @@ declare module 'stripe' {
|
|
|
759
931
|
| 'payment_method'
|
|
760
932
|
| 'transactions';
|
|
761
933
|
|
|
762
|
-
type Prefetch =
|
|
934
|
+
type Prefetch =
|
|
935
|
+
| 'balances'
|
|
936
|
+
| 'inferred_balances'
|
|
937
|
+
| 'ownership'
|
|
938
|
+
| 'transactions';
|
|
763
939
|
}
|
|
764
940
|
|
|
765
941
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -777,11 +953,13 @@ declare module 'stripe' {
|
|
|
777
953
|
| 'boleto'
|
|
778
954
|
| 'card'
|
|
779
955
|
| 'cashapp'
|
|
956
|
+
| 'custom'
|
|
780
957
|
| 'customer_balance'
|
|
781
958
|
| 'eps'
|
|
782
959
|
| 'fpx'
|
|
783
960
|
| 'giropay'
|
|
784
961
|
| 'grabpay'
|
|
962
|
+
| 'id_bank_transfer'
|
|
785
963
|
| 'ideal'
|
|
786
964
|
| 'jp_credit_transfer'
|
|
787
965
|
| 'kakao_pay'
|
|
@@ -822,6 +1000,22 @@ declare module 'stripe' {
|
|
|
822
1000
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
823
1001
|
}
|
|
824
1002
|
|
|
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
|
+
|
|
825
1019
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
826
1020
|
|
|
827
1021
|
interface TransferData {
|
|
@@ -1007,6 +1201,11 @@ declare module 'stripe' {
|
|
|
1007
1201
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1008
1202
|
>;
|
|
1009
1203
|
|
|
1204
|
+
/**
|
|
1205
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1206
|
+
*/
|
|
1207
|
+
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1208
|
+
|
|
1010
1209
|
/**
|
|
1011
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.
|
|
1012
1211
|
*/
|
|
@@ -1083,12 +1282,56 @@ declare module 'stripe' {
|
|
|
1083
1282
|
*/
|
|
1084
1283
|
discount?: string;
|
|
1085
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* Details to determine how long the discount should be applied for.
|
|
1287
|
+
*/
|
|
1288
|
+
discount_end?: Discount.DiscountEnd;
|
|
1289
|
+
|
|
1086
1290
|
/**
|
|
1087
1291
|
* ID of the promotion code to create a new discount for.
|
|
1088
1292
|
*/
|
|
1089
1293
|
promotion_code?: string;
|
|
1090
1294
|
}
|
|
1091
1295
|
|
|
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
|
+
|
|
1092
1335
|
interface PriceData {
|
|
1093
1336
|
/**
|
|
1094
1337
|
* 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).
|
|
@@ -1202,12 +1445,56 @@ declare module 'stripe' {
|
|
|
1202
1445
|
*/
|
|
1203
1446
|
discount?: string;
|
|
1204
1447
|
|
|
1448
|
+
/**
|
|
1449
|
+
* Details to determine how long the discount should be applied for.
|
|
1450
|
+
*/
|
|
1451
|
+
discount_end?: Discount.DiscountEnd;
|
|
1452
|
+
|
|
1205
1453
|
/**
|
|
1206
1454
|
* ID of the promotion code to create a new discount for.
|
|
1207
1455
|
*/
|
|
1208
1456
|
promotion_code?: string;
|
|
1209
1457
|
}
|
|
1210
1458
|
|
|
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
|
+
|
|
1211
1498
|
interface InvoiceSettings {
|
|
1212
1499
|
/**
|
|
1213
1500
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1245,7 +1532,7 @@ declare module 'stripe' {
|
|
|
1245
1532
|
billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
|
|
1246
1533
|
|
|
1247
1534
|
/**
|
|
1248
|
-
* Delete all usage for a given subscription item.
|
|
1535
|
+
* 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.
|
|
1249
1536
|
*/
|
|
1250
1537
|
clear_usage?: boolean;
|
|
1251
1538
|
|
|
@@ -1314,12 +1601,56 @@ declare module 'stripe' {
|
|
|
1314
1601
|
*/
|
|
1315
1602
|
discount?: string;
|
|
1316
1603
|
|
|
1604
|
+
/**
|
|
1605
|
+
* Details to determine how long the discount should be applied for.
|
|
1606
|
+
*/
|
|
1607
|
+
discount_end?: Discount.DiscountEnd;
|
|
1608
|
+
|
|
1317
1609
|
/**
|
|
1318
1610
|
* ID of the promotion code to create a new discount for.
|
|
1319
1611
|
*/
|
|
1320
1612
|
promotion_code?: string;
|
|
1321
1613
|
}
|
|
1322
1614
|
|
|
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
|
+
|
|
1323
1654
|
interface PriceData {
|
|
1324
1655
|
/**
|
|
1325
1656
|
* 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).
|
|
@@ -1402,7 +1733,7 @@ declare module 'stripe' {
|
|
|
1402
1733
|
payment_method_options?: PaymentSettings.PaymentMethodOptions;
|
|
1403
1734
|
|
|
1404
1735
|
/**
|
|
1405
|
-
* The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
|
1736
|
+
* The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
|
1406
1737
|
*/
|
|
1407
1738
|
payment_method_types?: Stripe.Emptyable<
|
|
1408
1739
|
Array<PaymentSettings.PaymentMethodType>
|
|
@@ -1438,6 +1769,13 @@ declare module 'stripe' {
|
|
|
1438
1769
|
PaymentMethodOptions.CustomerBalance
|
|
1439
1770
|
>;
|
|
1440
1771
|
|
|
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
|
+
|
|
1441
1779
|
/**
|
|
1442
1780
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1443
1781
|
*/
|
|
@@ -1587,6 +1925,8 @@ declare module 'stripe' {
|
|
|
1587
1925
|
}
|
|
1588
1926
|
}
|
|
1589
1927
|
|
|
1928
|
+
interface IdBankTransfer {}
|
|
1929
|
+
|
|
1590
1930
|
interface Konbini {}
|
|
1591
1931
|
|
|
1592
1932
|
interface SepaDebit {}
|
|
@@ -1627,6 +1967,11 @@ declare module 'stripe' {
|
|
|
1627
1967
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1628
1968
|
*/
|
|
1629
1969
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1973
|
+
*/
|
|
1974
|
+
institution?: string;
|
|
1630
1975
|
}
|
|
1631
1976
|
|
|
1632
1977
|
namespace Filters {
|
|
@@ -1639,7 +1984,11 @@ declare module 'stripe' {
|
|
|
1639
1984
|
| 'payment_method'
|
|
1640
1985
|
| 'transactions';
|
|
1641
1986
|
|
|
1642
|
-
type Prefetch =
|
|
1987
|
+
type Prefetch =
|
|
1988
|
+
| 'balances'
|
|
1989
|
+
| 'inferred_balances'
|
|
1990
|
+
| 'ownership'
|
|
1991
|
+
| 'transactions';
|
|
1643
1992
|
}
|
|
1644
1993
|
|
|
1645
1994
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1657,11 +2006,13 @@ declare module 'stripe' {
|
|
|
1657
2006
|
| 'boleto'
|
|
1658
2007
|
| 'card'
|
|
1659
2008
|
| 'cashapp'
|
|
2009
|
+
| 'custom'
|
|
1660
2010
|
| 'customer_balance'
|
|
1661
2011
|
| 'eps'
|
|
1662
2012
|
| 'fpx'
|
|
1663
2013
|
| 'giropay'
|
|
1664
2014
|
| 'grabpay'
|
|
2015
|
+
| 'id_bank_transfer'
|
|
1665
2016
|
| 'ideal'
|
|
1666
2017
|
| 'jp_credit_transfer'
|
|
1667
2018
|
| 'kakao_pay'
|
|
@@ -1702,6 +2053,22 @@ declare module 'stripe' {
|
|
|
1702
2053
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1703
2054
|
}
|
|
1704
2055
|
|
|
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
|
+
|
|
1705
2072
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1706
2073
|
|
|
1707
2074
|
interface TransferData {
|