stripe 15.12.0-beta.1 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +155 -746
- 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 +2 -3
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -25
- 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/TestHelpers/Issuing/Authorizations.js +4 -0
- package/cjs/resources.js +10 -36
- 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 +1 -2
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -25
- 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/TestHelpers/Issuing/Authorizations.js +4 -0
- package/esm/resources.js +0 -22
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +5 -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 +1 -205
- package/types/BalanceTransactionSources.d.ts +0 -1
- package/types/Capabilities.d.ts +27 -7
- package/types/Charges.d.ts +0 -67
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +3 -24
- package/types/Checkout/SessionsResource.d.ts +3 -17
- package/types/ConfirmationTokens.d.ts +0 -83
- 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/CustomerSessions.d.ts +0 -55
- package/types/CustomerSessionsResource.d.ts +0 -55
- package/types/CustomersResource.d.ts +4 -4
- package/types/Disputes.d.ts +0 -167
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -426
- package/types/Events.d.ts +0 -83
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -44
- package/types/FinancialConnections/SessionsResource.d.ts +1 -33
- 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 +3 -111
- package/types/InvoicesResource.d.ts +2171 -6311
- package/types/Issuing/Authorizations.d.ts +173 -0
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Cards.d.ts +0 -34
- package/types/Issuing/CardsResource.d.ts +0 -125
- package/types/Issuing/Transactions.d.ts +112 -6
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -463
- package/types/PaymentIntentsResource.d.ts +3360 -6731
- package/types/PaymentLinks.d.ts +1 -0
- package/types/PaymentLinksResource.d.ts +15 -1
- package/types/PaymentMethods.d.ts +0 -62
- package/types/PaymentMethodsResource.d.ts +12 -124
- 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 -8
- package/types/SetupIntents.d.ts +1 -104
- package/types/SetupIntentsResource.d.ts +9 -527
- 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 +1 -41
- package/types/SubscriptionsResource.d.ts +2 -337
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +4 -3
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
- 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 -51
- package/types/index.d.ts +0 -62
- package/types/lib.d.ts +1 -13
- 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/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/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/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 -1056
- package/types/OrdersResource.d.ts +0 -2709
- package/types/PlatformTaxFees.d.ts +0 -35
- 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 -1514
- 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
|
*/
|
|
@@ -612,11 +607,7 @@ declare module 'stripe' {
|
|
|
612
607
|
| 'payment_method'
|
|
613
608
|
| 'transactions';
|
|
614
609
|
|
|
615
|
-
type Prefetch =
|
|
616
|
-
| 'balances'
|
|
617
|
-
| 'inferred_balances'
|
|
618
|
-
| 'ownership'
|
|
619
|
-
| 'transactions';
|
|
610
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
620
611
|
}
|
|
621
612
|
|
|
622
613
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -684,11 +675,6 @@ declare module 'stripe' {
|
|
|
684
675
|
*/
|
|
685
676
|
expires_at: number;
|
|
686
677
|
|
|
687
|
-
/**
|
|
688
|
-
* The number of iterations of prebilling to apply.
|
|
689
|
-
*/
|
|
690
|
-
prebilling_iterations?: number | null;
|
|
691
|
-
|
|
692
678
|
/**
|
|
693
679
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
694
680
|
*/
|
|
@@ -705,32 +691,6 @@ declare module 'stripe' {
|
|
|
705
691
|
trial_from_plan: boolean | null;
|
|
706
692
|
}
|
|
707
693
|
|
|
708
|
-
interface Prebilling {
|
|
709
|
-
/**
|
|
710
|
-
* ID of the prebilling invoice.
|
|
711
|
-
*/
|
|
712
|
-
invoice: string | Stripe.Invoice;
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* The end of the last period for which the invoice pre-bills.
|
|
716
|
-
*/
|
|
717
|
-
period_end: number;
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* The start of the first period for which the invoice pre-bills.
|
|
721
|
-
*/
|
|
722
|
-
period_start: number;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
726
|
-
*/
|
|
727
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
namespace Prebilling {
|
|
731
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
732
|
-
}
|
|
733
|
-
|
|
734
694
|
type Status =
|
|
735
695
|
| 'active'
|
|
736
696
|
| '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 =
|
|
@@ -899,11 +741,7 @@ declare module 'stripe' {
|
|
|
899
741
|
| 'payment_method'
|
|
900
742
|
| 'transactions';
|
|
901
743
|
|
|
902
|
-
type Prefetch =
|
|
903
|
-
| 'balances'
|
|
904
|
-
| 'inferred_balances'
|
|
905
|
-
| 'ownership'
|
|
906
|
-
| 'transactions';
|
|
744
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
907
745
|
}
|
|
908
746
|
|
|
909
747
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -960,22 +798,6 @@ declare module 'stripe' {
|
|
|
960
798
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
961
799
|
}
|
|
962
800
|
|
|
963
|
-
interface Prebilling {
|
|
964
|
-
/**
|
|
965
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
966
|
-
*/
|
|
967
|
-
iterations: number;
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
971
|
-
*/
|
|
972
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
namespace Prebilling {
|
|
976
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
977
|
-
}
|
|
978
|
-
|
|
979
801
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
980
802
|
|
|
981
803
|
interface TransferData {
|
|
@@ -1161,11 +983,6 @@ declare module 'stripe' {
|
|
|
1161
983
|
SubscriptionUpdateParams.PendingInvoiceItemInterval
|
|
1162
984
|
>;
|
|
1163
985
|
|
|
1164
|
-
/**
|
|
1165
|
-
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1166
|
-
*/
|
|
1167
|
-
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1168
|
-
|
|
1169
986
|
/**
|
|
1170
987
|
* The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription.
|
|
1171
988
|
*/
|
|
@@ -1242,56 +1059,12 @@ declare module 'stripe' {
|
|
|
1242
1059
|
*/
|
|
1243
1060
|
discount?: string;
|
|
1244
1061
|
|
|
1245
|
-
/**
|
|
1246
|
-
* Details to determine how long the discount should be applied for.
|
|
1247
|
-
*/
|
|
1248
|
-
discount_end?: Discount.DiscountEnd;
|
|
1249
|
-
|
|
1250
1062
|
/**
|
|
1251
1063
|
* ID of the promotion code to create a new discount for.
|
|
1252
1064
|
*/
|
|
1253
1065
|
promotion_code?: string;
|
|
1254
1066
|
}
|
|
1255
1067
|
|
|
1256
|
-
namespace Discount {
|
|
1257
|
-
interface DiscountEnd {
|
|
1258
|
-
/**
|
|
1259
|
-
* Time span for the redeemed discount.
|
|
1260
|
-
*/
|
|
1261
|
-
duration?: DiscountEnd.Duration;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1265
|
-
*/
|
|
1266
|
-
timestamp?: number;
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* The type of calculation made to determine when the discount ends.
|
|
1270
|
-
*/
|
|
1271
|
-
type: DiscountEnd.Type;
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
namespace DiscountEnd {
|
|
1275
|
-
interface Duration {
|
|
1276
|
-
/**
|
|
1277
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1278
|
-
*/
|
|
1279
|
-
interval: Duration.Interval;
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1283
|
-
*/
|
|
1284
|
-
interval_count: number;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
namespace Duration {
|
|
1288
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
type Type = 'duration' | 'timestamp';
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
1068
|
interface PriceData {
|
|
1296
1069
|
/**
|
|
1297
1070
|
* 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).
|
|
@@ -1405,56 +1178,12 @@ declare module 'stripe' {
|
|
|
1405
1178
|
*/
|
|
1406
1179
|
discount?: string;
|
|
1407
1180
|
|
|
1408
|
-
/**
|
|
1409
|
-
* Details to determine how long the discount should be applied for.
|
|
1410
|
-
*/
|
|
1411
|
-
discount_end?: Discount.DiscountEnd;
|
|
1412
|
-
|
|
1413
1181
|
/**
|
|
1414
1182
|
* ID of the promotion code to create a new discount for.
|
|
1415
1183
|
*/
|
|
1416
1184
|
promotion_code?: string;
|
|
1417
1185
|
}
|
|
1418
1186
|
|
|
1419
|
-
namespace Discount {
|
|
1420
|
-
interface DiscountEnd {
|
|
1421
|
-
/**
|
|
1422
|
-
* Time span for the redeemed discount.
|
|
1423
|
-
*/
|
|
1424
|
-
duration?: DiscountEnd.Duration;
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1428
|
-
*/
|
|
1429
|
-
timestamp?: number;
|
|
1430
|
-
|
|
1431
|
-
/**
|
|
1432
|
-
* The type of calculation made to determine when the discount ends.
|
|
1433
|
-
*/
|
|
1434
|
-
type: DiscountEnd.Type;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
namespace DiscountEnd {
|
|
1438
|
-
interface Duration {
|
|
1439
|
-
/**
|
|
1440
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1441
|
-
*/
|
|
1442
|
-
interval: Duration.Interval;
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1446
|
-
*/
|
|
1447
|
-
interval_count: number;
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
namespace Duration {
|
|
1451
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
type Type = 'duration' | 'timestamp';
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1187
|
interface InvoiceSettings {
|
|
1459
1188
|
/**
|
|
1460
1189
|
* The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
@@ -1561,56 +1290,12 @@ declare module 'stripe' {
|
|
|
1561
1290
|
*/
|
|
1562
1291
|
discount?: string;
|
|
1563
1292
|
|
|
1564
|
-
/**
|
|
1565
|
-
* Details to determine how long the discount should be applied for.
|
|
1566
|
-
*/
|
|
1567
|
-
discount_end?: Discount.DiscountEnd;
|
|
1568
|
-
|
|
1569
1293
|
/**
|
|
1570
1294
|
* ID of the promotion code to create a new discount for.
|
|
1571
1295
|
*/
|
|
1572
1296
|
promotion_code?: string;
|
|
1573
1297
|
}
|
|
1574
1298
|
|
|
1575
|
-
namespace Discount {
|
|
1576
|
-
interface DiscountEnd {
|
|
1577
|
-
/**
|
|
1578
|
-
* Time span for the redeemed discount.
|
|
1579
|
-
*/
|
|
1580
|
-
duration?: DiscountEnd.Duration;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1584
|
-
*/
|
|
1585
|
-
timestamp?: number;
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* The type of calculation made to determine when the discount ends.
|
|
1589
|
-
*/
|
|
1590
|
-
type: DiscountEnd.Type;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
namespace DiscountEnd {
|
|
1594
|
-
interface Duration {
|
|
1595
|
-
/**
|
|
1596
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1597
|
-
*/
|
|
1598
|
-
interval: Duration.Interval;
|
|
1599
|
-
|
|
1600
|
-
/**
|
|
1601
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1602
|
-
*/
|
|
1603
|
-
interval_count: number;
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
namespace Duration {
|
|
1607
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
type Type = 'duration' | 'timestamp';
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
1299
|
interface PriceData {
|
|
1615
1300
|
/**
|
|
1616
1301
|
* 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).
|
|
@@ -1912,11 +1597,7 @@ declare module 'stripe' {
|
|
|
1912
1597
|
| 'payment_method'
|
|
1913
1598
|
| 'transactions';
|
|
1914
1599
|
|
|
1915
|
-
type Prefetch =
|
|
1916
|
-
| 'balances'
|
|
1917
|
-
| 'inferred_balances'
|
|
1918
|
-
| 'ownership'
|
|
1919
|
-
| 'transactions';
|
|
1600
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1920
1601
|
}
|
|
1921
1602
|
|
|
1922
1603
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1973,22 +1654,6 @@ declare module 'stripe' {
|
|
|
1973
1654
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1974
1655
|
}
|
|
1975
1656
|
|
|
1976
|
-
interface Prebilling {
|
|
1977
|
-
/**
|
|
1978
|
-
* This is used to determine the number of billing cycles to prebill.
|
|
1979
|
-
*/
|
|
1980
|
-
iterations: number;
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1984
|
-
*/
|
|
1985
|
-
update_behavior?: Prebilling.UpdateBehavior;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
namespace Prebilling {
|
|
1989
|
-
type UpdateBehavior = 'prebill' | 'reset';
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
1657
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1993
1658
|
|
|
1994
1659
|
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`, `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`, `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`, 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`, `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`, `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`, or `unknown`
|
|
124
124
|
*/
|
|
125
125
|
type: TaxId.Type;
|
|
126
126
|
|
|
@@ -148,6 +148,7 @@ declare module 'stripe' {
|
|
|
148
148
|
| 'ca_pst_mb'
|
|
149
149
|
| 'ca_pst_sk'
|
|
150
150
|
| 'ca_qst'
|
|
151
|
+
| 'ch_uid'
|
|
151
152
|
| 'ch_vat'
|
|
152
153
|
| 'cl_tin'
|
|
153
154
|
| 'cn_tin'
|
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
|
|
116
116
|
interface TaxId {
|
|
117
117
|
/**
|
|
118
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
118
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
119
119
|
*/
|
|
120
120
|
type: TaxId.Type;
|
|
121
121
|
|
|
@@ -143,6 +143,7 @@ declare module 'stripe' {
|
|
|
143
143
|
| 'ca_pst_mb'
|
|
144
144
|
| 'ca_pst_sk'
|
|
145
145
|
| 'ca_qst'
|
|
146
|
+
| 'ch_uid'
|
|
146
147
|
| 'ch_vat'
|
|
147
148
|
| 'cl_tin'
|
|
148
149
|
| 'cn_tin'
|
|
@@ -318,7 +319,7 @@ declare module 'stripe' {
|
|
|
318
319
|
|
|
319
320
|
class CalculationsResource {
|
|
320
321
|
/**
|
|
321
|
-
* Calculates tax based on input and returns a Tax Calculation object.
|
|
322
|
+
* Calculates tax based on the input and returns a Tax Calculation object.
|
|
322
323
|
*/
|
|
323
324
|
create(
|
|
324
325
|
params: CalculationCreateParams,
|
|
@@ -326,7 +327,7 @@ declare module 'stripe' {
|
|
|
326
327
|
): Promise<Stripe.Response<Stripe.Tax.Calculation>>;
|
|
327
328
|
|
|
328
329
|
/**
|
|
329
|
-
* Retrieves the line items of a
|
|
330
|
+
* Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired.
|
|
330
331
|
*/
|
|
331
332
|
listLineItems(
|
|
332
333
|
id: string,
|
|
@@ -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`, `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`, `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`, 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`, `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`, `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`, or `unknown`
|
|
124
124
|
*/
|
|
125
125
|
type: TaxId.Type;
|
|
126
126
|
|
|
@@ -148,6 +148,7 @@ declare module 'stripe' {
|
|
|
148
148
|
| 'ca_pst_mb'
|
|
149
149
|
| 'ca_pst_sk'
|
|
150
150
|
| 'ca_qst'
|
|
151
|
+
| 'ch_uid'
|
|
151
152
|
| 'ch_vat'
|
|
152
153
|
| 'cl_tin'
|
|
153
154
|
| 'cn_tin'
|
package/types/TaxIds.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
owner: TaxId.Owner | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
73
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
74
74
|
*/
|
|
75
75
|
type: TaxId.Type;
|
|
76
76
|
|
|
@@ -129,6 +129,7 @@ declare module 'stripe' {
|
|
|
129
129
|
| 'ca_pst_mb'
|
|
130
130
|
| 'ca_pst_sk'
|
|
131
131
|
| 'ca_qst'
|
|
132
|
+
| 'ch_uid'
|
|
132
133
|
| 'ch_vat'
|
|
133
134
|
| 'cl_tin'
|
|
134
135
|
| 'cn_tin'
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface TaxIdCreateParams {
|
|
6
6
|
/**
|
|
7
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
7
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
8
8
|
*/
|
|
9
9
|
type: TaxIdCreateParams.Type;
|
|
10
10
|
|
|
@@ -63,6 +63,7 @@ declare module 'stripe' {
|
|
|
63
63
|
| 'ca_pst_mb'
|
|
64
64
|
| 'ca_pst_sk'
|
|
65
65
|
| 'ca_qst'
|
|
66
|
+
| 'ch_uid'
|
|
66
67
|
| 'ch_vat'
|
|
67
68
|
| 'cl_tin'
|
|
68
69
|
| 'cn_tin'
|
|
@@ -15,7 +15,7 @@ declare module 'stripe' {
|
|
|
15
15
|
object: 'terminal.connection_token';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/
|
|
18
|
+
* The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
|
|
19
19
|
*/
|
|
20
20
|
location?: string;
|
|
21
21
|
|
|
@@ -10,7 +10,7 @@ declare module 'stripe' {
|
|
|
10
10
|
expand?: Array<string>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://stripe.com/
|
|
13
|
+
* The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
|
|
14
14
|
*/
|
|
15
15
|
location?: string;
|
|
16
16
|
}
|