stripe 17.1.0 → 17.2.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 +901 -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/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -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/TestHelpers/Issuing/Cards.js +4 -0
- package/cjs/resources.js +42 -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/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -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/TestHelpers/Issuing/Cards.js +4 -0
- package/esm/resources.js +29 -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 +75 -5
- package/types/AccountSessionsResource.d.ts +354 -5
- package/types/Accounts.d.ts +127 -3
- package/types/AccountsResource.d.ts +296 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Billing/Meters.d.ts +2 -0
- 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 +152 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +309 -5
- package/types/Checkout/SessionsResource.d.ts +356 -5
- package/types/ConfirmationTokens.d.ts +137 -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 +22 -2
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +564 -2
- package/types/Events.d.ts +91 -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/Forwarding/Requests.d.ts +5 -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 +31 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +134 -3
- package/types/InvoicesResource.d.ts +5478 -1799
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.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/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 +7 -0
- package/types/Mandates.d.ts +85 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1154 -0
- package/types/OrdersResource.d.ts +2911 -0
- package/types/PaymentIntents.d.ts +643 -1
- package/types/PaymentIntentsResource.d.ts +7790 -3514
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +52 -2
- package/types/PaymentMethods.d.ts +137 -0
- package/types/PaymentMethodsResource.d.ts +158 -0
- package/types/Persons.d.ts +1 -1
- 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 +1596 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +19 -0
- package/types/SetupIntents.d.ts +112 -1
- package/types/SetupIntentsResource.d.ts +669 -3
- 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 +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +348 -3
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/CalculationLineItems.d.ts +1 -0
- package/types/Tax/Calculations.d.ts +33 -1
- package/types/Tax/CalculationsResource.d.ts +7 -1
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Tax/Registrations.d.ts +82 -0
- package/types/Tax/RegistrationsResource.d.ts +109 -0
- package/types/Tax/Transactions.d.ts +8 -1
- package/types/TaxIds.d.ts +7 -1
- package/types/TaxIdsResource.d.ts +7 -1
- package/types/TaxRates.d.ts +25 -0
- package/types/TaxRatesResource.d.ts +2 -0
- 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 +112 -0
- package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +6 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -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/UsageRecordSummaries.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +66 -0
- package/types/index.d.ts +53 -0
|
@@ -118,6 +118,11 @@ declare module 'stripe' {
|
|
|
118
118
|
*/
|
|
119
119
|
interac_present?: PaymentMethodCreateParams.InteracPresent;
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
|
123
|
+
*/
|
|
124
|
+
kakao_pay?: PaymentMethodCreateParams.KakaoPay;
|
|
125
|
+
|
|
121
126
|
/**
|
|
122
127
|
* If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
|
123
128
|
*/
|
|
@@ -128,11 +133,21 @@ declare module 'stripe' {
|
|
|
128
133
|
*/
|
|
129
134
|
konbini?: PaymentMethodCreateParams.Konbini;
|
|
130
135
|
|
|
136
|
+
/**
|
|
137
|
+
* If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
|
138
|
+
*/
|
|
139
|
+
kr_card?: PaymentMethodCreateParams.KrCard;
|
|
140
|
+
|
|
131
141
|
/**
|
|
132
142
|
* If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
133
143
|
*/
|
|
134
144
|
link?: PaymentMethodCreateParams.Link;
|
|
135
145
|
|
|
146
|
+
/**
|
|
147
|
+
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
148
|
+
*/
|
|
149
|
+
mb_way?: PaymentMethodCreateParams.MbWay;
|
|
150
|
+
|
|
136
151
|
/**
|
|
137
152
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
138
153
|
*/
|
|
@@ -148,6 +163,11 @@ declare module 'stripe' {
|
|
|
148
163
|
*/
|
|
149
164
|
multibanco?: PaymentMethodCreateParams.Multibanco;
|
|
150
165
|
|
|
166
|
+
/**
|
|
167
|
+
* If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
|
168
|
+
*/
|
|
169
|
+
naver_pay?: PaymentMethodCreateParams.NaverPay;
|
|
170
|
+
|
|
151
171
|
/**
|
|
152
172
|
* If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
|
153
173
|
*/
|
|
@@ -158,6 +178,11 @@ declare module 'stripe' {
|
|
|
158
178
|
*/
|
|
159
179
|
p24?: PaymentMethodCreateParams.P24;
|
|
160
180
|
|
|
181
|
+
/**
|
|
182
|
+
* If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
|
183
|
+
*/
|
|
184
|
+
payco?: PaymentMethodCreateParams.Payco;
|
|
185
|
+
|
|
161
186
|
/**
|
|
162
187
|
* The PaymentMethod to share.
|
|
163
188
|
*/
|
|
@@ -173,6 +198,11 @@ declare module 'stripe' {
|
|
|
173
198
|
*/
|
|
174
199
|
paypal?: PaymentMethodCreateParams.Paypal;
|
|
175
200
|
|
|
201
|
+
/**
|
|
202
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
203
|
+
*/
|
|
204
|
+
payto?: PaymentMethodCreateParams.Payto;
|
|
205
|
+
|
|
176
206
|
/**
|
|
177
207
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
178
208
|
*/
|
|
@@ -188,11 +218,21 @@ declare module 'stripe' {
|
|
|
188
218
|
*/
|
|
189
219
|
radar_options?: PaymentMethodCreateParams.RadarOptions;
|
|
190
220
|
|
|
221
|
+
/**
|
|
222
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
223
|
+
*/
|
|
224
|
+
rechnung?: PaymentMethodCreateParams.Rechnung;
|
|
225
|
+
|
|
191
226
|
/**
|
|
192
227
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
193
228
|
*/
|
|
194
229
|
revolut_pay?: PaymentMethodCreateParams.RevolutPay;
|
|
195
230
|
|
|
231
|
+
/**
|
|
232
|
+
* If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
233
|
+
*/
|
|
234
|
+
samsung_pay?: PaymentMethodCreateParams.SamsungPay;
|
|
235
|
+
|
|
196
236
|
/**
|
|
197
237
|
* If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
198
238
|
*/
|
|
@@ -480,6 +520,8 @@ declare module 'stripe' {
|
|
|
480
520
|
|
|
481
521
|
interface InteracPresent {}
|
|
482
522
|
|
|
523
|
+
interface KakaoPay {}
|
|
524
|
+
|
|
483
525
|
interface Klarna {
|
|
484
526
|
/**
|
|
485
527
|
* Customer's date of birth
|
|
@@ -508,12 +550,27 @@ declare module 'stripe' {
|
|
|
508
550
|
|
|
509
551
|
interface Konbini {}
|
|
510
552
|
|
|
553
|
+
interface KrCard {}
|
|
554
|
+
|
|
511
555
|
interface Link {}
|
|
512
556
|
|
|
557
|
+
interface MbWay {}
|
|
558
|
+
|
|
513
559
|
interface Mobilepay {}
|
|
514
560
|
|
|
515
561
|
interface Multibanco {}
|
|
516
562
|
|
|
563
|
+
interface NaverPay {
|
|
564
|
+
/**
|
|
565
|
+
* Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
|
566
|
+
*/
|
|
567
|
+
funding?: NaverPay.Funding;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
namespace NaverPay {
|
|
571
|
+
type Funding = 'card' | 'points';
|
|
572
|
+
}
|
|
573
|
+
|
|
517
574
|
interface Oxxo {}
|
|
518
575
|
|
|
519
576
|
interface P24 {
|
|
@@ -553,10 +610,29 @@ declare module 'stripe' {
|
|
|
553
610
|
| 'volkswagen_bank';
|
|
554
611
|
}
|
|
555
612
|
|
|
613
|
+
interface Payco {}
|
|
614
|
+
|
|
556
615
|
interface Paynow {}
|
|
557
616
|
|
|
558
617
|
interface Paypal {}
|
|
559
618
|
|
|
619
|
+
interface Payto {
|
|
620
|
+
/**
|
|
621
|
+
* The account number for the bank account.
|
|
622
|
+
*/
|
|
623
|
+
account_number?: string;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Bank-State-Branch number of the bank account.
|
|
627
|
+
*/
|
|
628
|
+
bsb_number?: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* The PayID alias for the bank account.
|
|
632
|
+
*/
|
|
633
|
+
pay_id?: string;
|
|
634
|
+
}
|
|
635
|
+
|
|
560
636
|
interface Pix {}
|
|
561
637
|
|
|
562
638
|
interface Promptpay {}
|
|
@@ -568,8 +644,36 @@ declare module 'stripe' {
|
|
|
568
644
|
session?: string;
|
|
569
645
|
}
|
|
570
646
|
|
|
647
|
+
interface Rechnung {
|
|
648
|
+
/**
|
|
649
|
+
* Customer's date of birth
|
|
650
|
+
*/
|
|
651
|
+
dob: Rechnung.Dob;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
namespace Rechnung {
|
|
655
|
+
interface Dob {
|
|
656
|
+
/**
|
|
657
|
+
* The day of birth, between 1 and 31.
|
|
658
|
+
*/
|
|
659
|
+
day: number;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The month of birth, between 1 and 12.
|
|
663
|
+
*/
|
|
664
|
+
month: number;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* The four-digit year of birth.
|
|
668
|
+
*/
|
|
669
|
+
year: number;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
571
673
|
interface RevolutPay {}
|
|
572
674
|
|
|
675
|
+
interface SamsungPay {}
|
|
676
|
+
|
|
573
677
|
interface SepaDebit {
|
|
574
678
|
/**
|
|
575
679
|
* IBAN of the bank account.
|
|
@@ -611,18 +715,26 @@ declare module 'stripe' {
|
|
|
611
715
|
| 'giropay'
|
|
612
716
|
| 'grabpay'
|
|
613
717
|
| 'ideal'
|
|
718
|
+
| 'kakao_pay'
|
|
614
719
|
| 'klarna'
|
|
615
720
|
| 'konbini'
|
|
721
|
+
| 'kr_card'
|
|
616
722
|
| 'link'
|
|
723
|
+
| 'mb_way'
|
|
617
724
|
| 'mobilepay'
|
|
618
725
|
| 'multibanco'
|
|
726
|
+
| 'naver_pay'
|
|
619
727
|
| 'oxxo'
|
|
620
728
|
| 'p24'
|
|
729
|
+
| 'payco'
|
|
621
730
|
| 'paynow'
|
|
622
731
|
| 'paypal'
|
|
732
|
+
| 'payto'
|
|
623
733
|
| 'pix'
|
|
624
734
|
| 'promptpay'
|
|
735
|
+
| 'rechnung'
|
|
625
736
|
| 'revolut_pay'
|
|
737
|
+
| 'samsung_pay'
|
|
626
738
|
| 'sepa_debit'
|
|
627
739
|
| 'sofort'
|
|
628
740
|
| 'swish'
|
|
@@ -707,6 +819,16 @@ declare module 'stripe' {
|
|
|
707
819
|
*/
|
|
708
820
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
709
821
|
|
|
822
|
+
/**
|
|
823
|
+
* If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
|
824
|
+
*/
|
|
825
|
+
naver_pay?: PaymentMethodUpdateParams.NaverPay;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
829
|
+
*/
|
|
830
|
+
payto?: PaymentMethodUpdateParams.Payto;
|
|
831
|
+
|
|
710
832
|
/**
|
|
711
833
|
* If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
712
834
|
*/
|
|
@@ -770,6 +892,34 @@ declare module 'stripe' {
|
|
|
770
892
|
|
|
771
893
|
interface Link {}
|
|
772
894
|
|
|
895
|
+
interface NaverPay {
|
|
896
|
+
/**
|
|
897
|
+
* Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
|
898
|
+
*/
|
|
899
|
+
funding?: NaverPay.Funding;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
namespace NaverPay {
|
|
903
|
+
type Funding = 'card' | 'points';
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
interface Payto {
|
|
907
|
+
/**
|
|
908
|
+
* The account number for the bank account.
|
|
909
|
+
*/
|
|
910
|
+
account_number?: string;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Bank-State-Branch number of the bank account.
|
|
914
|
+
*/
|
|
915
|
+
bsb_number?: string;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* The PayID alias for the bank account.
|
|
919
|
+
*/
|
|
920
|
+
pay_id?: string;
|
|
921
|
+
}
|
|
922
|
+
|
|
773
923
|
interface UsBankAccount {
|
|
774
924
|
/**
|
|
775
925
|
* Bank account holder type.
|
|
@@ -826,18 +976,26 @@ declare module 'stripe' {
|
|
|
826
976
|
| 'giropay'
|
|
827
977
|
| 'grabpay'
|
|
828
978
|
| 'ideal'
|
|
979
|
+
| 'kakao_pay'
|
|
829
980
|
| 'klarna'
|
|
830
981
|
| 'konbini'
|
|
982
|
+
| 'kr_card'
|
|
831
983
|
| 'link'
|
|
984
|
+
| 'mb_way'
|
|
832
985
|
| 'mobilepay'
|
|
833
986
|
| 'multibanco'
|
|
987
|
+
| 'naver_pay'
|
|
834
988
|
| 'oxxo'
|
|
835
989
|
| 'p24'
|
|
990
|
+
| 'payco'
|
|
836
991
|
| 'paynow'
|
|
837
992
|
| 'paypal'
|
|
993
|
+
| 'payto'
|
|
838
994
|
| 'pix'
|
|
839
995
|
| 'promptpay'
|
|
996
|
+
| 'rechnung'
|
|
840
997
|
| 'revolut_pay'
|
|
998
|
+
| 'samsung_pay'
|
|
841
999
|
| 'sepa_debit'
|
|
842
1000
|
| 'sofort'
|
|
843
1001
|
| 'swish'
|
package/types/Persons.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ declare module 'stripe' {
|
|
|
102
102
|
future_requirements?: Person.FutureRequirements | null;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* The person's gender
|
|
105
|
+
* The person's gender.
|
|
106
106
|
*/
|
|
107
107
|
gender?: string | null;
|
|
108
108
|
|
package/types/Prices.d.ts
CHANGED
|
@@ -93,6 +93,11 @@ declare module 'stripe' {
|
|
|
93
93
|
*/
|
|
94
94
|
metadata: Stripe.Metadata;
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Subscriptions using this price will be migrated to use the new referenced price.
|
|
98
|
+
*/
|
|
99
|
+
migrate_to?: Price.MigrateTo | null;
|
|
100
|
+
|
|
96
101
|
/**
|
|
97
102
|
* A brief description of the price, hidden from customers.
|
|
98
103
|
*/
|
|
@@ -239,6 +244,23 @@ declare module 'stripe' {
|
|
|
239
244
|
preset: number | null;
|
|
240
245
|
}
|
|
241
246
|
|
|
247
|
+
interface MigrateTo {
|
|
248
|
+
/**
|
|
249
|
+
* The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
250
|
+
*/
|
|
251
|
+
behavior: 'at_cycle_end';
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
255
|
+
*/
|
|
256
|
+
effective_after: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The id of the price being migrated to
|
|
260
|
+
*/
|
|
261
|
+
price: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
242
264
|
interface Recurring {
|
|
243
265
|
/**
|
|
244
266
|
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
|
|
@@ -372,6 +372,11 @@ declare module 'stripe' {
|
|
|
372
372
|
*/
|
|
373
373
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
374
374
|
|
|
375
|
+
/**
|
|
376
|
+
* If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
377
|
+
*/
|
|
378
|
+
migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
|
|
379
|
+
|
|
375
380
|
/**
|
|
376
381
|
* A brief description of the price, hidden from customers.
|
|
377
382
|
*/
|
|
@@ -469,6 +474,23 @@ declare module 'stripe' {
|
|
|
469
474
|
}
|
|
470
475
|
}
|
|
471
476
|
|
|
477
|
+
interface MigrateTo {
|
|
478
|
+
/**
|
|
479
|
+
* The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
480
|
+
*/
|
|
481
|
+
behavior: 'at_cycle_end';
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* The time after which subscriptions should start using the new price.
|
|
485
|
+
*/
|
|
486
|
+
effective_after?: number;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* The ID of the price object.
|
|
490
|
+
*/
|
|
491
|
+
price: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
472
494
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
473
495
|
}
|
|
474
496
|
|
package/types/Products.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ declare module 'stripe' {
|
|
|
98
98
|
*/
|
|
99
99
|
package_dimensions: Product.PackageDimensions | null;
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Provisioning configuration for this product.
|
|
103
|
+
*/
|
|
104
|
+
provisioning?: Product.Provisioning | null;
|
|
105
|
+
|
|
101
106
|
/**
|
|
102
107
|
* Whether this product is shipped (i.e., physical goods).
|
|
103
108
|
*/
|
|
@@ -164,6 +169,40 @@ declare module 'stripe' {
|
|
|
164
169
|
width: number;
|
|
165
170
|
}
|
|
166
171
|
|
|
172
|
+
interface Provisioning {
|
|
173
|
+
gift_card: Provisioning.GiftCard | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The type of provisioning, only `gift_card` currently supported.
|
|
177
|
+
*/
|
|
178
|
+
type: 'gift_card';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
namespace Provisioning {
|
|
182
|
+
interface GiftCard {
|
|
183
|
+
fixed_amount: GiftCard.FixedAmount | null;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
187
|
+
*/
|
|
188
|
+
type: 'fixed_amount';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
namespace GiftCard {
|
|
192
|
+
interface FixedAmount {
|
|
193
|
+
/**
|
|
194
|
+
* The initial amount with which the provisioned gift card will be created.
|
|
195
|
+
*/
|
|
196
|
+
amount: number;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* 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).
|
|
200
|
+
*/
|
|
201
|
+
currency: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
167
206
|
type Type = 'good' | 'service';
|
|
168
207
|
}
|
|
169
208
|
}
|
|
@@ -53,6 +53,11 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
package_dimensions?: ProductCreateParams.PackageDimensions;
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Provisioning configuration for this product.
|
|
58
|
+
*/
|
|
59
|
+
provisioning?: ProductCreateParams.Provisioning;
|
|
60
|
+
|
|
56
61
|
/**
|
|
57
62
|
* Whether this product is shipped (i.e., physical goods).
|
|
58
63
|
*/
|
|
@@ -278,6 +283,37 @@ declare module 'stripe' {
|
|
|
278
283
|
width: number;
|
|
279
284
|
}
|
|
280
285
|
|
|
286
|
+
interface Provisioning {
|
|
287
|
+
gift_card?: Provisioning.GiftCard;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The type of provisioning, only `gift_card` currently supported.
|
|
291
|
+
*/
|
|
292
|
+
type: 'gift_card';
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
namespace Provisioning {
|
|
296
|
+
interface GiftCard {
|
|
297
|
+
fixed_amount?: GiftCard.FixedAmount;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
301
|
+
*/
|
|
302
|
+
type: 'fixed_amount';
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
namespace GiftCard {
|
|
306
|
+
interface FixedAmount {
|
|
307
|
+
/**
|
|
308
|
+
* The initial amount with which the provisioned gift card will be created.
|
|
309
|
+
*/
|
|
310
|
+
amount: number;
|
|
311
|
+
|
|
312
|
+
currency: string;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
281
317
|
type Type = 'good' | 'service';
|
|
282
318
|
}
|
|
283
319
|
|