stripe 17.2.1 → 17.3.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  5. package/cjs/resources/V2/Core/EventDestinations.js +41 -0
  6. package/cjs/resources/V2/Core.js +2 -0
  7. package/cjs/stripe.core.js +1 -1
  8. package/esm/apiVersion.js +1 -1
  9. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  10. package/esm/resources/V2/Core/EventDestinations.js +38 -0
  11. package/esm/resources/V2/Core.js +2 -0
  12. package/esm/stripe.core.js +1 -1
  13. package/package.json +1 -1
  14. package/types/AccountSessions.d.ts +30 -5
  15. package/types/AccountSessionsResource.d.ts +30 -5
  16. package/types/Accounts.d.ts +56 -2
  17. package/types/AccountsResource.d.ts +171 -3
  18. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  19. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  20. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  21. package/types/Billing/CreditGrants.d.ts +11 -8
  22. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  23. package/types/Billing/Meters.d.ts +2 -0
  24. package/types/BillingPortal/Configurations.d.ts +22 -0
  25. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  26. package/types/Charges.d.ts +85 -0
  27. package/types/Checkout/Sessions.d.ts +82 -1
  28. package/types/Checkout/SessionsResource.d.ts +86 -0
  29. package/types/ConfirmationTokens.d.ts +75 -0
  30. package/types/CreditNoteLineItems.d.ts +3 -0
  31. package/types/CreditNotes.d.ts +3 -0
  32. package/types/CreditNotesResource.d.ts +3 -3
  33. package/types/CustomersResource.d.ts +21 -3
  34. package/types/Disputes.d.ts +152 -0
  35. package/types/DisputesResource.d.ts +120 -0
  36. package/types/EventTypes.d.ts +37 -2
  37. package/types/Events.d.ts +2 -0
  38. package/types/Forwarding/Requests.d.ts +5 -0
  39. package/types/Forwarding/RequestsResource.d.ts +5 -0
  40. package/types/InvoiceLineItems.d.ts +3 -0
  41. package/types/Invoices.d.ts +15 -1
  42. package/types/InvoicesResource.d.ts +44 -3
  43. package/types/Issuing/CardsResource.d.ts +1 -1
  44. package/types/Mandates.d.ts +8 -0
  45. package/types/PaymentIntents.d.ts +84 -0
  46. package/types/PaymentIntentsResource.d.ts +554 -7
  47. package/types/PaymentLinks.d.ts +1 -0
  48. package/types/PaymentLinksResource.d.ts +2 -0
  49. package/types/PaymentMethodConfigurations.d.ts +36 -0
  50. package/types/PaymentMethodConfigurationsResource.d.ts +52 -2
  51. package/types/PaymentMethodDomains.d.ts +28 -0
  52. package/types/PaymentMethods.d.ts +75 -0
  53. package/types/PaymentMethodsResource.d.ts +80 -1
  54. package/types/Persons.d.ts +1 -1
  55. package/types/Refunds.d.ts +5 -4
  56. package/types/SetupAttempts.d.ts +8 -0
  57. package/types/SetupIntentsResource.d.ts +174 -3
  58. package/types/Subscriptions.d.ts +5 -0
  59. package/types/SubscriptionsResource.d.ts +12 -2
  60. package/types/Tax/CalculationLineItems.d.ts +1 -0
  61. package/types/Tax/Calculations.d.ts +33 -1
  62. package/types/Tax/CalculationsResource.d.ts +7 -1
  63. package/types/Tax/Registrations.d.ts +82 -0
  64. package/types/Tax/RegistrationsResource.d.ts +109 -0
  65. package/types/Tax/Transactions.d.ts +8 -1
  66. package/types/TaxIds.d.ts +7 -1
  67. package/types/TaxIdsResource.d.ts +7 -1
  68. package/types/TaxRates.d.ts +25 -0
  69. package/types/TaxRatesResource.d.ts +2 -0
  70. package/types/Terminal/Configurations.d.ts +19 -0
  71. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  72. package/types/TestHelpers/ConfirmationTokensResource.d.ts +58 -1
  73. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  74. package/types/TokensResource.d.ts +2 -2
  75. package/types/Treasury/FinancialAccounts.d.ts +1 -1
  76. package/types/UsageRecordSummaries.d.ts +1 -1
  77. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  78. package/types/V2/Core/EventsResource.d.ts +1 -1
  79. package/types/V2/CoreResource.d.ts +1 -0
  80. package/types/V2/EventDestinations.d.ts +164 -0
  81. package/types/WebhookEndpointsResource.d.ts +6 -1
  82. package/types/index.d.ts +2 -0
@@ -123,6 +123,7 @@ declare module 'stripe' {
123
123
  | IssuingTokenCreatedEvent
124
124
  | IssuingTokenUpdatedEvent
125
125
  | IssuingTransactionCreatedEvent
126
+ | IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
126
127
  | IssuingTransactionUpdatedEvent
127
128
  | MandateUpdatedEvent
128
129
  | PaymentIntentAmountCapturableUpdatedEvent
@@ -166,6 +167,7 @@ declare module 'stripe' {
166
167
  | RadarEarlyFraudWarningCreatedEvent
167
168
  | RadarEarlyFraudWarningUpdatedEvent
168
169
  | RefundCreatedEvent
170
+ | RefundFailedEvent
169
171
  | RefundUpdatedEvent
170
172
  | ReportingReportRunFailedEvent
171
173
  | ReportingReportRunSucceededEvent
@@ -2169,6 +2171,23 @@ declare module 'stripe' {
2169
2171
  }
2170
2172
  }
2171
2173
 
2174
+ /**
2175
+ * Occurs whenever an issuing transaction is updated with receipt data.
2176
+ */
2177
+ interface IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
2178
+ extends EventBase {
2179
+ type: 'issuing_transaction.purchase_details_receipt_updated';
2180
+ data: IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.Data;
2181
+ }
2182
+
2183
+ namespace IssuingTransactionPurchaseDetailsReceiptUpdatedEvent {
2184
+ interface Data extends Stripe.Event.Data {
2185
+ object: Stripe.Issuing.Transaction;
2186
+
2187
+ previous_attributes?: Partial<Stripe.Issuing.Transaction>;
2188
+ }
2189
+ }
2190
+
2172
2191
  /**
2173
2192
  * Occurs whenever an issuing transaction is updated.
2174
2193
  */
@@ -2842,7 +2861,7 @@ declare module 'stripe' {
2842
2861
  }
2843
2862
 
2844
2863
  /**
2845
- * Occurs whenever a refund from a customer's cash balance is created.
2864
+ * Occurs whenever a refund is created.
2846
2865
  */
2847
2866
  interface RefundCreatedEvent extends EventBase {
2848
2867
  type: 'refund.created';
@@ -2858,7 +2877,23 @@ declare module 'stripe' {
2858
2877
  }
2859
2878
 
2860
2879
  /**
2861
- * Occurs whenever a refund from a customer's cash balance is updated.
2880
+ * Occurs whenever a refund has failed.
2881
+ */
2882
+ interface RefundFailedEvent extends EventBase {
2883
+ type: 'refund.failed';
2884
+ data: RefundFailedEvent.Data;
2885
+ }
2886
+
2887
+ namespace RefundFailedEvent {
2888
+ interface Data extends Stripe.Event.Data {
2889
+ object: Stripe.Refund;
2890
+
2891
+ previous_attributes?: Partial<Stripe.Refund>;
2892
+ }
2893
+ }
2894
+
2895
+ /**
2896
+ * Occurs whenever a refund is updated.
2862
2897
  */
2863
2898
  interface RefundUpdatedEvent extends EventBase {
2864
2899
  type: 'refund.updated';
package/types/Events.d.ts CHANGED
@@ -154,6 +154,7 @@ declare module 'stripe' {
154
154
  | 'issuing_token.created'
155
155
  | 'issuing_token.updated'
156
156
  | 'issuing_transaction.created'
157
+ | 'issuing_transaction.purchase_details_receipt_updated'
157
158
  | 'issuing_transaction.updated'
158
159
  | 'mandate.updated'
159
160
  | 'payment_intent.amount_capturable_updated'
@@ -197,6 +198,7 @@ declare module 'stripe' {
197
198
  | 'radar.early_fraud_warning.created'
198
199
  | 'radar.early_fraud_warning.updated'
199
200
  | 'refund.created'
201
+ | 'refund.failed'
200
202
  | 'refund.updated'
201
203
  | 'reporting.report_run.failed'
202
204
  | 'reporting.report_run.succeeded'
@@ -42,6 +42,11 @@ declare module 'stripe' {
42
42
  */
43
43
  livemode: boolean;
44
44
 
45
+ /**
46
+ * 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.
47
+ */
48
+ metadata?: Stripe.Metadata | null;
49
+
45
50
  /**
46
51
  * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
47
52
  */
@@ -28,6 +28,11 @@ declare module 'stripe' {
28
28
  * Specifies which fields in the response should be expanded.
29
29
  */
30
30
  expand?: Array<string>;
31
+
32
+ /**
33
+ * 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`.
34
+ */
35
+ metadata?: Stripe.MetadataParam;
31
36
  }
32
37
 
33
38
  namespace RequestCreateParams {
@@ -80,6 +80,9 @@ declare module 'stripe' {
80
80
  */
81
81
  plan: Stripe.Plan | null;
82
82
 
83
+ /**
84
+ * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item.
85
+ */
83
86
  pretax_credit_amounts?: Array<InvoiceLineItem.PretaxCreditAmount> | null;
84
87
 
85
88
  /**
@@ -461,6 +461,9 @@ declare module 'stripe' {
461
461
  */
462
462
  total_excluding_tax: number | null;
463
463
 
464
+ /**
465
+ * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
466
+ */
464
467
  total_pretax_credit_amounts?: Array<
465
468
  Invoice.TotalPretaxCreditAmount
466
469
  > | null;
@@ -560,7 +563,7 @@ declare module 'stripe' {
560
563
 
561
564
  interface CustomerTaxId {
562
565
  /**
563
- * 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`, `hr_oib`, `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`
566
+ * 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`, `hr_oib`, `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`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
564
567
  */
565
568
  type: CustomerTaxId.Type;
566
569
 
@@ -582,6 +585,7 @@ declare module 'stripe' {
582
585
  | 'bo_tin'
583
586
  | 'br_cnpj'
584
587
  | 'br_cpf'
588
+ | 'by_tin'
585
589
  | 'ca_bn'
586
590
  | 'ca_gst_hst'
587
591
  | 'ca_pst_bc'
@@ -617,6 +621,8 @@ declare module 'stripe' {
617
621
  | 'kr_brn'
618
622
  | 'kz_bin'
619
623
  | 'li_uid'
624
+ | 'ma_vat'
625
+ | 'md_vat'
620
626
  | 'mx_rfc'
621
627
  | 'my_frp'
622
628
  | 'my_itn'
@@ -640,10 +646,13 @@ declare module 'stripe' {
640
646
  | 'th_vat'
641
647
  | 'tr_tin'
642
648
  | 'tw_vat'
649
+ | 'tz_vat'
643
650
  | 'ua_vat'
644
651
  | 'unknown'
645
652
  | 'us_ein'
646
653
  | 'uy_ruc'
654
+ | 'uz_tin'
655
+ | 'uz_vat'
647
656
  | 've_rif'
648
657
  | 'vn_tin'
649
658
  | 'za_vat';
@@ -1183,10 +1192,15 @@ declare module 'stripe' {
1183
1192
  | 'giropay'
1184
1193
  | 'grabpay'
1185
1194
  | 'ideal'
1195
+ | 'jp_credit_transfer'
1196
+ | 'kakao_pay'
1186
1197
  | 'konbini'
1198
+ | 'kr_card'
1187
1199
  | 'link'
1188
1200
  | 'multibanco'
1201
+ | 'naver_pay'
1189
1202
  | 'p24'
1203
+ | 'payco'
1190
1204
  | 'paynow'
1191
1205
  | 'paypal'
1192
1206
  | 'promptpay'
@@ -23,6 +23,11 @@ declare module 'stripe' {
23
23
  */
24
24
  automatic_tax?: InvoiceCreateParams.AutomaticTax;
25
25
 
26
+ /**
27
+ * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
28
+ */
29
+ automatically_finalizes_at?: number;
30
+
26
31
  /**
27
32
  * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
28
33
  */
@@ -511,10 +516,15 @@ declare module 'stripe' {
511
516
  | 'giropay'
512
517
  | 'grabpay'
513
518
  | 'ideal'
519
+ | 'jp_credit_transfer'
520
+ | 'kakao_pay'
514
521
  | 'konbini'
522
+ | 'kr_card'
515
523
  | 'link'
516
524
  | 'multibanco'
525
+ | 'naver_pay'
517
526
  | 'p24'
527
+ | 'payco'
518
528
  | 'paynow'
519
529
  | 'paypal'
520
530
  | 'promptpay'
@@ -764,6 +774,11 @@ declare module 'stripe' {
764
774
  */
765
775
  automatic_tax?: InvoiceUpdateParams.AutomaticTax;
766
776
 
777
+ /**
778
+ * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
779
+ */
780
+ automatically_finalizes_at?: number;
781
+
767
782
  /**
768
783
  * Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
769
784
  */
@@ -1215,10 +1230,15 @@ declare module 'stripe' {
1215
1230
  | 'giropay'
1216
1231
  | 'grabpay'
1217
1232
  | 'ideal'
1233
+ | 'jp_credit_transfer'
1234
+ | 'kakao_pay'
1218
1235
  | 'konbini'
1236
+ | 'kr_card'
1219
1237
  | 'link'
1220
1238
  | 'multibanco'
1239
+ | 'naver_pay'
1221
1240
  | 'p24'
1241
+ | 'payco'
1222
1242
  | 'paynow'
1223
1243
  | 'paypal'
1224
1244
  | 'promptpay'
@@ -1728,6 +1748,7 @@ declare module 'stripe' {
1728
1748
  | 'lease_tax'
1729
1749
  | 'pst'
1730
1750
  | 'qst'
1751
+ | 'retail_delivery_fee'
1731
1752
  | 'rst'
1732
1753
  | 'sales_tax'
1733
1754
  | 'vat';
@@ -1900,7 +1921,7 @@ declare module 'stripe' {
1900
1921
 
1901
1922
  interface TaxId {
1902
1923
  /**
1903
- * 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`, `hr_oib`, `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`
1924
+ * 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`, `by_tin`, `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`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
1904
1925
  */
1905
1926
  type: TaxId.Type;
1906
1927
 
@@ -1922,6 +1943,7 @@ declare module 'stripe' {
1922
1943
  | 'bo_tin'
1923
1944
  | 'br_cnpj'
1924
1945
  | 'br_cpf'
1946
+ | 'by_tin'
1925
1947
  | 'ca_bn'
1926
1948
  | 'ca_gst_hst'
1927
1949
  | 'ca_pst_bc'
@@ -1957,6 +1979,8 @@ declare module 'stripe' {
1957
1979
  | 'kr_brn'
1958
1980
  | 'kz_bin'
1959
1981
  | 'li_uid'
1982
+ | 'ma_vat'
1983
+ | 'md_vat'
1960
1984
  | 'mx_rfc'
1961
1985
  | 'my_frp'
1962
1986
  | 'my_itn'
@@ -1980,9 +2004,12 @@ declare module 'stripe' {
1980
2004
  | 'th_vat'
1981
2005
  | 'tr_tin'
1982
2006
  | 'tw_vat'
2007
+ | 'tz_vat'
1983
2008
  | 'ua_vat'
1984
2009
  | 'us_ein'
1985
2010
  | 'uy_ruc'
2011
+ | 'uz_tin'
2012
+ | 'uz_vat'
1986
2013
  | 've_rif'
1987
2014
  | 'vn_tin'
1988
2015
  | 'za_vat';
@@ -3078,7 +3105,7 @@ declare module 'stripe' {
3078
3105
 
3079
3106
  interface TaxId {
3080
3107
  /**
3081
- * 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`, `hr_oib`, `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`
3108
+ * 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`, `by_tin`, `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`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
3082
3109
  */
3083
3110
  type: TaxId.Type;
3084
3111
 
@@ -3100,6 +3127,7 @@ declare module 'stripe' {
3100
3127
  | 'bo_tin'
3101
3128
  | 'br_cnpj'
3102
3129
  | 'br_cpf'
3130
+ | 'by_tin'
3103
3131
  | 'ca_bn'
3104
3132
  | 'ca_gst_hst'
3105
3133
  | 'ca_pst_bc'
@@ -3135,6 +3163,8 @@ declare module 'stripe' {
3135
3163
  | 'kr_brn'
3136
3164
  | 'kz_bin'
3137
3165
  | 'li_uid'
3166
+ | 'ma_vat'
3167
+ | 'md_vat'
3138
3168
  | 'mx_rfc'
3139
3169
  | 'my_frp'
3140
3170
  | 'my_itn'
@@ -3158,9 +3188,12 @@ declare module 'stripe' {
3158
3188
  | 'th_vat'
3159
3189
  | 'tr_tin'
3160
3190
  | 'tw_vat'
3191
+ | 'tz_vat'
3161
3192
  | 'ua_vat'
3162
3193
  | 'us_ein'
3163
3194
  | 'uy_ruc'
3195
+ | 'uz_tin'
3196
+ | 'uz_vat'
3164
3197
  | 've_rif'
3165
3198
  | 'vn_tin'
3166
3199
  | 'za_vat';
@@ -4464,7 +4497,7 @@ declare module 'stripe' {
4464
4497
 
4465
4498
  interface TaxId {
4466
4499
  /**
4467
- * 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`, `hr_oib`, `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`
4500
+ * 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`, `by_tin`, `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`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
4468
4501
  */
4469
4502
  type: TaxId.Type;
4470
4503
 
@@ -4486,6 +4519,7 @@ declare module 'stripe' {
4486
4519
  | 'bo_tin'
4487
4520
  | 'br_cnpj'
4488
4521
  | 'br_cpf'
4522
+ | 'by_tin'
4489
4523
  | 'ca_bn'
4490
4524
  | 'ca_gst_hst'
4491
4525
  | 'ca_pst_bc'
@@ -4521,6 +4555,8 @@ declare module 'stripe' {
4521
4555
  | 'kr_brn'
4522
4556
  | 'kz_bin'
4523
4557
  | 'li_uid'
4558
+ | 'ma_vat'
4559
+ | 'md_vat'
4524
4560
  | 'mx_rfc'
4525
4561
  | 'my_frp'
4526
4562
  | 'my_itn'
@@ -4544,9 +4580,12 @@ declare module 'stripe' {
4544
4580
  | 'th_vat'
4545
4581
  | 'tr_tin'
4546
4582
  | 'tw_vat'
4583
+ | 'tz_vat'
4547
4584
  | 'ua_vat'
4548
4585
  | 'us_ein'
4549
4586
  | 'uy_ruc'
4587
+ | 'uz_tin'
4588
+ | 'uz_vat'
4550
4589
  | 've_rif'
4551
4590
  | 'vn_tin'
4552
4591
  | 'za_vat';
@@ -5814,6 +5853,7 @@ declare module 'stripe' {
5814
5853
  | 'lease_tax'
5815
5854
  | 'pst'
5816
5855
  | 'qst'
5856
+ | 'retail_delivery_fee'
5817
5857
  | 'rst'
5818
5858
  | 'sales_tax'
5819
5859
  | 'vat';
@@ -6052,6 +6092,7 @@ declare module 'stripe' {
6052
6092
  | 'lease_tax'
6053
6093
  | 'pst'
6054
6094
  | 'qst'
6095
+ | 'retail_delivery_fee'
6055
6096
  | 'rst'
6056
6097
  | 'sales_tax'
6057
6098
  | 'vat';
@@ -52,7 +52,7 @@ declare module 'stripe' {
52
52
  replacement_reason?: CardCreateParams.ReplacementReason;
53
53
 
54
54
  /**
55
- * The second line to print on the card.
55
+ * The second line to print on the card. Max length: 24 characters.
56
56
  */
57
57
  second_line?: Stripe.Emptyable<string>;
58
58
 
@@ -100,6 +100,10 @@ declare module 'stripe' {
100
100
 
101
101
  cashapp?: PaymentMethodDetails.Cashapp;
102
102
 
103
+ kakao_pay?: PaymentMethodDetails.KakaoPay;
104
+
105
+ kr_card?: PaymentMethodDetails.KrCard;
106
+
103
107
  link?: PaymentMethodDetails.Link;
104
108
 
105
109
  paypal?: PaymentMethodDetails.Paypal;
@@ -193,6 +197,10 @@ declare module 'stripe' {
193
197
 
194
198
  interface Cashapp {}
195
199
 
200
+ interface KakaoPay {}
201
+
202
+ interface KrCard {}
203
+
196
204
  interface Link {}
197
205
 
198
206
  interface Paypal {
@@ -1286,6 +1286,8 @@ declare module 'stripe' {
1286
1286
 
1287
1287
  alipay?: PaymentMethodOptions.Alipay;
1288
1288
 
1289
+ alma?: PaymentMethodOptions.Alma;
1290
+
1289
1291
  amazon_pay?: PaymentMethodOptions.AmazonPay;
1290
1292
 
1291
1293
  au_becs_debit?: PaymentMethodOptions.AuBecsDebit;
@@ -1318,20 +1320,28 @@ declare module 'stripe' {
1318
1320
 
1319
1321
  interac_present?: PaymentMethodOptions.InteracPresent;
1320
1322
 
1323
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
1324
+
1321
1325
  klarna?: PaymentMethodOptions.Klarna;
1322
1326
 
1323
1327
  konbini?: PaymentMethodOptions.Konbini;
1324
1328
 
1329
+ kr_card?: PaymentMethodOptions.KrCard;
1330
+
1325
1331
  link?: PaymentMethodOptions.Link;
1326
1332
 
1327
1333
  mobilepay?: PaymentMethodOptions.Mobilepay;
1328
1334
 
1329
1335
  multibanco?: PaymentMethodOptions.Multibanco;
1330
1336
 
1337
+ naver_pay?: PaymentMethodOptions.NaverPay;
1338
+
1331
1339
  oxxo?: PaymentMethodOptions.Oxxo;
1332
1340
 
1333
1341
  p24?: PaymentMethodOptions.P24;
1334
1342
 
1343
+ payco?: PaymentMethodOptions.Payco;
1344
+
1335
1345
  paynow?: PaymentMethodOptions.Paynow;
1336
1346
 
1337
1347
  paypal?: PaymentMethodOptions.Paypal;
@@ -1342,6 +1352,8 @@ declare module 'stripe' {
1342
1352
 
1343
1353
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1344
1354
 
1355
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
1356
+
1345
1357
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1346
1358
 
1347
1359
  sofort?: PaymentMethodOptions.Sofort;
@@ -1476,6 +1488,13 @@ declare module 'stripe' {
1476
1488
  type SetupFutureUsage = 'none' | 'off_session';
1477
1489
  }
1478
1490
 
1491
+ interface Alma {
1492
+ /**
1493
+ * Controls when the funds will be captured from the customer's account.
1494
+ */
1495
+ capture_method?: 'manual';
1496
+ }
1497
+
1479
1498
  interface AmazonPay {
1480
1499
  /**
1481
1500
  * Controls when the funds will be captured from the customer's account.
@@ -1993,6 +2012,28 @@ declare module 'stripe' {
1993
2012
 
1994
2013
  interface InteracPresent {}
1995
2014
 
2015
+ interface KakaoPay {
2016
+ /**
2017
+ * Controls when the funds will be captured from the customer's account.
2018
+ */
2019
+ capture_method?: 'manual';
2020
+
2021
+ /**
2022
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2023
+ *
2024
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2025
+ *
2026
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2027
+ *
2028
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2029
+ */
2030
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
2031
+ }
2032
+
2033
+ namespace KakaoPay {
2034
+ type SetupFutureUsage = 'none' | 'off_session';
2035
+ }
2036
+
1996
2037
  interface Klarna {
1997
2038
  /**
1998
2039
  * Controls when the funds will be captured from the customer's account.
@@ -2049,6 +2090,28 @@ declare module 'stripe' {
2049
2090
  setup_future_usage?: 'none';
2050
2091
  }
2051
2092
 
2093
+ interface KrCard {
2094
+ /**
2095
+ * Controls when the funds will be captured from the customer's account.
2096
+ */
2097
+ capture_method?: 'manual';
2098
+
2099
+ /**
2100
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2101
+ *
2102
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2103
+ *
2104
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2105
+ *
2106
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2107
+ */
2108
+ setup_future_usage?: KrCard.SetupFutureUsage;
2109
+ }
2110
+
2111
+ namespace KrCard {
2112
+ type SetupFutureUsage = 'none' | 'off_session';
2113
+ }
2114
+
2052
2115
  interface Link {
2053
2116
  /**
2054
2117
  * Controls when the funds will be captured from the customer's account.
@@ -2108,6 +2171,13 @@ declare module 'stripe' {
2108
2171
  setup_future_usage?: 'none';
2109
2172
  }
2110
2173
 
2174
+ interface NaverPay {
2175
+ /**
2176
+ * Controls when the funds will be captured from the customer's account.
2177
+ */
2178
+ capture_method?: 'manual';
2179
+ }
2180
+
2111
2181
  interface Oxxo {
2112
2182
  /**
2113
2183
  * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -2139,6 +2209,13 @@ declare module 'stripe' {
2139
2209
  setup_future_usage?: 'none';
2140
2210
  }
2141
2211
 
2212
+ interface Payco {
2213
+ /**
2214
+ * Controls when the funds will be captured from the customer's account.
2215
+ */
2216
+ capture_method?: 'manual';
2217
+ }
2218
+
2142
2219
  interface Paynow {
2143
2220
  /**
2144
2221
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2242,6 +2319,13 @@ declare module 'stripe' {
2242
2319
  type SetupFutureUsage = 'none' | 'off_session';
2243
2320
  }
2244
2321
 
2322
+ interface SamsungPay {
2323
+ /**
2324
+ * Controls when the funds will be captured from the customer's account.
2325
+ */
2326
+ capture_method?: 'manual';
2327
+ }
2328
+
2245
2329
  interface SepaDebit {
2246
2330
  mandate_options?: SepaDebit.MandateOptions;
2247
2331