stripe 17.2.1 → 17.3.0-beta.1

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.
Files changed (186) hide show
  1. package/CHANGELOG.md +925 -114
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  25. package/cjs/resources.js +42 -10
  26. package/cjs/stripe.core.js +1 -1
  27. package/esm/resources/AccountNotices.js +18 -0
  28. package/esm/resources/Capital/FinancingOffers.js +18 -0
  29. package/esm/resources/Capital/FinancingSummary.js +9 -0
  30. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  31. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  32. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  33. package/esm/resources/GiftCards/Cards.js +20 -0
  34. package/esm/resources/GiftCards/Transactions.js +30 -0
  35. package/esm/resources/Invoices.js +17 -0
  36. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  37. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  38. package/esm/resources/Margins.js +19 -0
  39. package/esm/resources/Orders.js +21 -0
  40. package/esm/resources/PaymentIntents.js +4 -0
  41. package/esm/resources/Quotes.js +32 -0
  42. package/esm/resources/SubscriptionSchedules.js +4 -0
  43. package/esm/resources/Tax/Associations.js +6 -0
  44. package/esm/resources/Tax/Forms.js +17 -0
  45. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  46. package/esm/resources/Terminal/Readers.js +12 -0
  47. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  48. package/esm/resources.js +29 -0
  49. package/esm/stripe.core.js +1 -1
  50. package/package.json +1 -1
  51. package/types/AccountLinksResource.d.ts +5 -1
  52. package/types/AccountNotices.d.ts +113 -0
  53. package/types/AccountNoticesResource.d.ts +98 -0
  54. package/types/AccountSessions.d.ts +75 -5
  55. package/types/AccountSessionsResource.d.ts +354 -5
  56. package/types/Accounts.d.ts +211 -3
  57. package/types/AccountsResource.d.ts +584 -2
  58. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  59. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  60. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  61. package/types/Billing/CreditGrants.d.ts +11 -8
  62. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  63. package/types/Billing/MeterErrorReports.d.ts +106 -0
  64. package/types/Billing/Meters.d.ts +2 -0
  65. package/types/BillingPortal/Configurations.d.ts +22 -0
  66. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +168 -0
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +309 -5
  76. package/types/Checkout/SessionsResource.d.ts +360 -5
  77. package/types/ConfirmationTokens.d.ts +157 -0
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNoteLineItems.d.ts +3 -0
  81. package/types/CreditNotes.d.ts +24 -0
  82. package/types/CreditNotesResource.d.ts +54 -3
  83. package/types/CustomersResource.d.ts +27 -3
  84. package/types/Disputes.d.ts +152 -0
  85. package/types/DisputesResource.d.ts +120 -0
  86. package/types/EventTypes.d.ts +564 -2
  87. package/types/Events.d.ts +91 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/Forwarding/Requests.d.ts +5 -0
  96. package/types/Forwarding/RequestsResource.d.ts +5 -0
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +31 -1
  104. package/types/InvoicePayments.d.ts +138 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5488 -1799
  107. package/types/Issuing/CardholdersResource.d.ts +2 -1
  108. package/types/Issuing/CardsResource.d.ts +1 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +7 -0
  117. package/types/Mandates.d.ts +85 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1154 -0
  121. package/types/OrdersResource.d.ts +2911 -0
  122. package/types/PaymentIntents.d.ts +697 -1
  123. package/types/PaymentIntentsResource.d.ts +7977 -3377
  124. package/types/PaymentLinks.d.ts +7 -0
  125. package/types/PaymentLinksResource.d.ts +14 -0
  126. package/types/PaymentMethodConfigurations.d.ts +72 -0
  127. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  128. package/types/PaymentMethodDomains.d.ts +28 -0
  129. package/types/PaymentMethods.d.ts +157 -0
  130. package/types/PaymentMethodsResource.d.ts +195 -1
  131. package/types/Persons.d.ts +1 -1
  132. package/types/Prices.d.ts +22 -0
  133. package/types/PricesResource.d.ts +22 -0
  134. package/types/Products.d.ts +39 -0
  135. package/types/ProductsResource.d.ts +36 -0
  136. package/types/QuoteLines.d.ts +634 -0
  137. package/types/QuotePreviewInvoices.d.ts +1601 -0
  138. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  139. package/types/Quotes.d.ts +591 -1
  140. package/types/QuotesResource.d.ts +2526 -194
  141. package/types/Refunds.d.ts +4 -0
  142. package/types/SetupAttempts.d.ts +19 -0
  143. package/types/SetupIntents.d.ts +112 -1
  144. package/types/SetupIntentsResource.d.ts +768 -6
  145. package/types/Sources.d.ts +23 -0
  146. package/types/SubscriptionItems.d.ts +21 -0
  147. package/types/SubscriptionItemsResource.d.ts +109 -0
  148. package/types/SubscriptionSchedules.d.ts +200 -0
  149. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  150. package/types/Subscriptions.d.ts +87 -1
  151. package/types/SubscriptionsResource.d.ts +359 -4
  152. package/types/Tax/Associations.d.ts +126 -0
  153. package/types/Tax/AssociationsResource.d.ts +29 -0
  154. package/types/Tax/CalculationLineItems.d.ts +1 -0
  155. package/types/Tax/Calculations.d.ts +33 -1
  156. package/types/Tax/CalculationsResource.d.ts +7 -1
  157. package/types/Tax/Forms.d.ts +220 -0
  158. package/types/Tax/FormsResource.d.ts +107 -0
  159. package/types/Tax/Registrations.d.ts +82 -0
  160. package/types/Tax/RegistrationsResource.d.ts +109 -0
  161. package/types/Tax/Transactions.d.ts +8 -1
  162. package/types/TaxIds.d.ts +7 -1
  163. package/types/TaxIdsResource.d.ts +7 -1
  164. package/types/TaxRates.d.ts +25 -0
  165. package/types/TaxRatesResource.d.ts +2 -0
  166. package/types/Terminal/Configurations.d.ts +19 -0
  167. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  168. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  169. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  170. package/types/Terminal/Readers.d.ts +278 -0
  171. package/types/Terminal/ReadersResource.d.ts +215 -0
  172. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  173. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  174. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  175. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  176. package/types/TokensResource.d.ts +2 -2
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  181. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  182. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  183. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  184. package/types/UsageRecordSummaries.d.ts +1 -1
  185. package/types/WebhookEndpointsResource.d.ts +66 -0
  186. package/types/index.d.ts +53 -0
@@ -28,6 +28,11 @@ declare module 'stripe' {
28
28
  */
29
29
  allow_redisplay?: PaymentMethodCreateParams.AllowRedisplay;
30
30
 
31
+ /**
32
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
33
+ */
34
+ alma?: PaymentMethodCreateParams.Alma;
35
+
31
36
  /**
32
37
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
33
38
  */
@@ -103,6 +108,11 @@ declare module 'stripe' {
103
108
  */
104
109
  giropay?: PaymentMethodCreateParams.Giropay;
105
110
 
111
+ /**
112
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
113
+ */
114
+ gopay?: PaymentMethodCreateParams.Gopay;
115
+
106
116
  /**
107
117
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
108
118
  */
@@ -118,6 +128,11 @@ declare module 'stripe' {
118
128
  */
119
129
  interac_present?: PaymentMethodCreateParams.InteracPresent;
120
130
 
131
+ /**
132
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
133
+ */
134
+ kakao_pay?: PaymentMethodCreateParams.KakaoPay;
135
+
121
136
  /**
122
137
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
123
138
  */
@@ -128,11 +143,21 @@ declare module 'stripe' {
128
143
  */
129
144
  konbini?: PaymentMethodCreateParams.Konbini;
130
145
 
146
+ /**
147
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
148
+ */
149
+ kr_card?: PaymentMethodCreateParams.KrCard;
150
+
131
151
  /**
132
152
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
133
153
  */
134
154
  link?: PaymentMethodCreateParams.Link;
135
155
 
156
+ /**
157
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
158
+ */
159
+ mb_way?: PaymentMethodCreateParams.MbWay;
160
+
136
161
  /**
137
162
  * 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
163
  */
@@ -148,6 +173,11 @@ declare module 'stripe' {
148
173
  */
149
174
  multibanco?: PaymentMethodCreateParams.Multibanco;
150
175
 
176
+ /**
177
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
178
+ */
179
+ naver_pay?: PaymentMethodCreateParams.NaverPay;
180
+
151
181
  /**
152
182
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
153
183
  */
@@ -158,6 +188,11 @@ declare module 'stripe' {
158
188
  */
159
189
  p24?: PaymentMethodCreateParams.P24;
160
190
 
191
+ /**
192
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
193
+ */
194
+ payco?: PaymentMethodCreateParams.Payco;
195
+
161
196
  /**
162
197
  * The PaymentMethod to share.
163
198
  */
@@ -173,6 +208,11 @@ declare module 'stripe' {
173
208
  */
174
209
  paypal?: PaymentMethodCreateParams.Paypal;
175
210
 
211
+ /**
212
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
213
+ */
214
+ payto?: PaymentMethodCreateParams.Payto;
215
+
176
216
  /**
177
217
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
178
218
  */
@@ -183,21 +223,41 @@ declare module 'stripe' {
183
223
  */
184
224
  promptpay?: PaymentMethodCreateParams.Promptpay;
185
225
 
226
+ /**
227
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
228
+ */
229
+ qris?: PaymentMethodCreateParams.Qris;
230
+
186
231
  /**
187
232
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
188
233
  */
189
234
  radar_options?: PaymentMethodCreateParams.RadarOptions;
190
235
 
236
+ /**
237
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
238
+ */
239
+ rechnung?: PaymentMethodCreateParams.Rechnung;
240
+
191
241
  /**
192
242
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
193
243
  */
194
244
  revolut_pay?: PaymentMethodCreateParams.RevolutPay;
195
245
 
246
+ /**
247
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
248
+ */
249
+ samsung_pay?: PaymentMethodCreateParams.SamsungPay;
250
+
196
251
  /**
197
252
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
198
253
  */
199
254
  sepa_debit?: PaymentMethodCreateParams.SepaDebit;
200
255
 
256
+ /**
257
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
258
+ */
259
+ shopeepay?: PaymentMethodCreateParams.Shopeepay;
260
+
201
261
  /**
202
262
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
203
263
  */
@@ -260,6 +320,8 @@ declare module 'stripe' {
260
320
 
261
321
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
262
322
 
323
+ interface Alma {}
324
+
263
325
  interface AmazonPay {}
264
326
 
265
327
  interface AuBecsDebit {
@@ -449,11 +511,13 @@ declare module 'stripe' {
449
511
 
450
512
  interface Giropay {}
451
513
 
514
+ interface Gopay {}
515
+
452
516
  interface Grabpay {}
453
517
 
454
518
  interface Ideal {
455
519
  /**
456
- * The customer's bank.
520
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
457
521
  */
458
522
  bank?: Ideal.Bank;
459
523
  }
@@ -480,6 +544,8 @@ declare module 'stripe' {
480
544
 
481
545
  interface InteracPresent {}
482
546
 
547
+ interface KakaoPay {}
548
+
483
549
  interface Klarna {
484
550
  /**
485
551
  * Customer's date of birth
@@ -508,12 +574,27 @@ declare module 'stripe' {
508
574
 
509
575
  interface Konbini {}
510
576
 
577
+ interface KrCard {}
578
+
511
579
  interface Link {}
512
580
 
581
+ interface MbWay {}
582
+
513
583
  interface Mobilepay {}
514
584
 
515
585
  interface Multibanco {}
516
586
 
587
+ interface NaverPay {
588
+ /**
589
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
590
+ */
591
+ funding?: NaverPay.Funding;
592
+ }
593
+
594
+ namespace NaverPay {
595
+ type Funding = 'card' | 'points';
596
+ }
597
+
517
598
  interface Oxxo {}
518
599
 
519
600
  interface P24 {
@@ -553,14 +634,35 @@ declare module 'stripe' {
553
634
  | 'volkswagen_bank';
554
635
  }
555
636
 
637
+ interface Payco {}
638
+
556
639
  interface Paynow {}
557
640
 
558
641
  interface Paypal {}
559
642
 
643
+ interface Payto {
644
+ /**
645
+ * The account number for the bank account.
646
+ */
647
+ account_number?: string;
648
+
649
+ /**
650
+ * Bank-State-Branch number of the bank account.
651
+ */
652
+ bsb_number?: string;
653
+
654
+ /**
655
+ * The PayID alias for the bank account.
656
+ */
657
+ pay_id?: string;
658
+ }
659
+
560
660
  interface Pix {}
561
661
 
562
662
  interface Promptpay {}
563
663
 
664
+ interface Qris {}
665
+
564
666
  interface RadarOptions {
565
667
  /**
566
668
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -568,8 +670,36 @@ declare module 'stripe' {
568
670
  session?: string;
569
671
  }
570
672
 
673
+ interface Rechnung {
674
+ /**
675
+ * Customer's date of birth
676
+ */
677
+ dob: Rechnung.Dob;
678
+ }
679
+
680
+ namespace Rechnung {
681
+ interface Dob {
682
+ /**
683
+ * The day of birth, between 1 and 31.
684
+ */
685
+ day: number;
686
+
687
+ /**
688
+ * The month of birth, between 1 and 12.
689
+ */
690
+ month: number;
691
+
692
+ /**
693
+ * The four-digit year of birth.
694
+ */
695
+ year: number;
696
+ }
697
+ }
698
+
571
699
  interface RevolutPay {}
572
700
 
701
+ interface SamsungPay {}
702
+
573
703
  interface SepaDebit {
574
704
  /**
575
705
  * IBAN of the bank account.
@@ -577,6 +707,8 @@ declare module 'stripe' {
577
707
  iban: string;
578
708
  }
579
709
 
710
+ interface Shopeepay {}
711
+
580
712
  interface Sofort {
581
713
  /**
582
714
  * Two-letter ISO code representing the country the bank account is located in.
@@ -597,6 +729,7 @@ declare module 'stripe' {
597
729
  | 'affirm'
598
730
  | 'afterpay_clearpay'
599
731
  | 'alipay'
732
+ | 'alma'
600
733
  | 'amazon_pay'
601
734
  | 'au_becs_debit'
602
735
  | 'bacs_debit'
@@ -609,21 +742,32 @@ declare module 'stripe' {
609
742
  | 'eps'
610
743
  | 'fpx'
611
744
  | 'giropay'
745
+ | 'gopay'
612
746
  | 'grabpay'
613
747
  | 'ideal'
748
+ | 'kakao_pay'
614
749
  | 'klarna'
615
750
  | 'konbini'
751
+ | 'kr_card'
616
752
  | 'link'
753
+ | 'mb_way'
617
754
  | 'mobilepay'
618
755
  | 'multibanco'
756
+ | 'naver_pay'
619
757
  | 'oxxo'
620
758
  | 'p24'
759
+ | 'payco'
621
760
  | 'paynow'
622
761
  | 'paypal'
762
+ | 'payto'
623
763
  | 'pix'
624
764
  | 'promptpay'
765
+ | 'qris'
766
+ | 'rechnung'
625
767
  | 'revolut_pay'
768
+ | 'samsung_pay'
626
769
  | 'sepa_debit'
770
+ | 'shopeepay'
627
771
  | 'sofort'
628
772
  | 'swish'
629
773
  | 'twint'
@@ -707,6 +851,16 @@ declare module 'stripe' {
707
851
  */
708
852
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
709
853
 
854
+ /**
855
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
856
+ */
857
+ naver_pay?: PaymentMethodUpdateParams.NaverPay;
858
+
859
+ /**
860
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
861
+ */
862
+ payto?: PaymentMethodUpdateParams.Payto;
863
+
710
864
  /**
711
865
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
712
866
  */
@@ -770,6 +924,34 @@ declare module 'stripe' {
770
924
 
771
925
  interface Link {}
772
926
 
927
+ interface NaverPay {
928
+ /**
929
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
930
+ */
931
+ funding?: NaverPay.Funding;
932
+ }
933
+
934
+ namespace NaverPay {
935
+ type Funding = 'card' | 'points';
936
+ }
937
+
938
+ interface Payto {
939
+ /**
940
+ * The account number for the bank account.
941
+ */
942
+ account_number?: string;
943
+
944
+ /**
945
+ * Bank-State-Branch number of the bank account.
946
+ */
947
+ bsb_number?: string;
948
+
949
+ /**
950
+ * The PayID alias for the bank account.
951
+ */
952
+ pay_id?: string;
953
+ }
954
+
773
955
  interface UsBankAccount {
774
956
  /**
775
957
  * Bank account holder type.
@@ -812,6 +994,7 @@ declare module 'stripe' {
812
994
  | 'affirm'
813
995
  | 'afterpay_clearpay'
814
996
  | 'alipay'
997
+ | 'alma'
815
998
  | 'amazon_pay'
816
999
  | 'au_becs_debit'
817
1000
  | 'bacs_debit'
@@ -824,21 +1007,32 @@ declare module 'stripe' {
824
1007
  | 'eps'
825
1008
  | 'fpx'
826
1009
  | 'giropay'
1010
+ | 'gopay'
827
1011
  | 'grabpay'
828
1012
  | 'ideal'
1013
+ | 'kakao_pay'
829
1014
  | 'klarna'
830
1015
  | 'konbini'
1016
+ | 'kr_card'
831
1017
  | 'link'
1018
+ | 'mb_way'
832
1019
  | 'mobilepay'
833
1020
  | 'multibanco'
1021
+ | 'naver_pay'
834
1022
  | 'oxxo'
835
1023
  | 'p24'
1024
+ | 'payco'
836
1025
  | 'paynow'
837
1026
  | 'paypal'
1027
+ | 'payto'
838
1028
  | 'pix'
839
1029
  | 'promptpay'
1030
+ | 'qris'
1031
+ | 'rechnung'
840
1032
  | 'revolut_pay'
1033
+ | 'samsung_pay'
841
1034
  | 'sepa_debit'
1035
+ | 'shopeepay'
842
1036
  | 'sofort'
843
1037
  | 'swish'
844
1038
  | 'twint'
@@ -102,7 +102,7 @@ declare module 'stripe' {
102
102
  future_requirements?: Person.FutureRequirements | null;
103
103
 
104
104
  /**
105
- * The person's gender (International regulations require either "male" or "female").
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
 
@@ -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