stripe 19.2.0-beta.1 → 19.3.0-alpha.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 (214) hide show
  1. package/CHANGELOG.md +300 -1
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
  5. package/cjs/resources/Identity/BlocklistEntries.js +25 -0
  6. package/cjs/resources/PaymentMethods.js +4 -0
  7. package/cjs/resources/PaymentRecords.js +4 -0
  8. package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
  9. package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
  10. package/cjs/resources/V2/Billing/Intents.js +36 -0
  11. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
  12. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
  13. package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
  14. package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
  15. package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
  16. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
  17. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
  18. package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
  19. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
  20. package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
  21. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
  22. package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
  23. package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
  24. package/cjs/resources/V2/Billing/RateCards.js +29 -0
  25. package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
  26. package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
  27. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  28. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  29. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  30. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
  31. package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
  32. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
  33. package/cjs/resources.js +37 -1
  34. package/cjs/stripe.core.js +1 -1
  35. package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
  36. package/esm/resources/Identity/BlocklistEntries.js +22 -0
  37. package/esm/resources/PaymentMethods.js +4 -0
  38. package/esm/resources/PaymentRecords.js +4 -0
  39. package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
  40. package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
  41. package/esm/resources/V2/Billing/Intents.js +33 -0
  42. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
  43. package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
  44. package/esm/resources/V2/Billing/LicenseFees.js +24 -0
  45. package/esm/resources/V2/Billing/LicensedItems.js +22 -0
  46. package/esm/resources/V2/Billing/MeteredItems.js +19 -0
  47. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
  48. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
  49. package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
  50. package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
  51. package/esm/resources/V2/Billing/PricingPlans.js +26 -0
  52. package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
  53. package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
  54. package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
  55. package/esm/resources/V2/Billing/RateCards.js +26 -0
  56. package/esm/resources/V2/Billing/ServiceActions.js +17 -0
  57. package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
  58. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  59. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  60. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  61. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
  62. package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
  63. package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
  64. package/esm/resources.js +36 -0
  65. package/esm/stripe.core.js +1 -1
  66. package/package.json +1 -1
  67. package/types/Accounts.d.ts +24 -0
  68. package/types/AccountsResource.d.ts +44 -0
  69. package/types/ApplicationFees.d.ts +6 -1
  70. package/types/Balance.d.ts +82 -0
  71. package/types/BalanceTransactions.d.ts +2 -1
  72. package/types/BankAccounts.d.ts +2 -0
  73. package/types/Billing/AlertTriggereds.d.ts +15 -0
  74. package/types/Billing/Alerts.d.ts +116 -1
  75. package/types/Billing/AlertsResource.d.ts +149 -2
  76. package/types/Billing/Analytics/MeterUsageResource.d.ts +5 -0
  77. package/types/Billing/Analytics/MeterUsageRows.d.ts +7 -0
  78. package/types/Billing/CreditBalanceSummary.d.ts +118 -2
  79. package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
  80. package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
  81. package/types/Billing/CreditGrants.d.ts +71 -1
  82. package/types/Billing/CreditGrantsResource.d.ts +34 -3
  83. package/types/Billing/MeterEventSummaries.d.ts +7 -0
  84. package/types/Billing/Meters.d.ts +5 -0
  85. package/types/Billing/MetersResource.d.ts +17 -0
  86. package/types/BillingPortal/Configurations.d.ts +1 -1
  87. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  88. package/types/Capabilities.d.ts +2 -0
  89. package/types/Cards.d.ts +14 -0
  90. package/types/Charges.d.ts +16 -2
  91. package/types/Checkout/Sessions.d.ts +73 -0
  92. package/types/Checkout/SessionsResource.d.ts +71 -3
  93. package/types/ConfirmationTokens.d.ts +15 -0
  94. package/types/CreditNotes.d.ts +26 -0
  95. package/types/CreditNotesResource.d.ts +78 -0
  96. package/types/CustomerSessions.d.ts +161 -0
  97. package/types/CustomerSessionsResource.d.ts +161 -0
  98. package/types/Customers.d.ts +7 -0
  99. package/types/CustomersResource.d.ts +1 -0
  100. package/types/DelegatedCheckout/RequestedSessions.d.ts +292 -0
  101. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
  102. package/types/Files.d.ts +1 -0
  103. package/types/FilesResource.d.ts +2 -0
  104. package/types/FinancialConnections/AccountsResource.d.ts +1 -1
  105. package/types/Identity/BlocklistEntries.d.ts +78 -0
  106. package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
  107. package/types/Identity/VerificationReports.d.ts +10 -0
  108. package/types/Identity/VerificationReportsResource.d.ts +5 -0
  109. package/types/InvoiceItems.d.ts +104 -2
  110. package/types/InvoiceLineItems.d.ts +113 -2
  111. package/types/Invoices.d.ts +1 -0
  112. package/types/InvoicesResource.d.ts +5 -0
  113. package/types/PaymentAttemptRecords.d.ts +7 -2
  114. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  115. package/types/PaymentIntentAmountDetailsLineItems.d.ts +4 -0
  116. package/types/PaymentIntents.d.ts +30 -2
  117. package/types/PaymentIntentsResource.d.ts +88 -0
  118. package/types/PaymentLinks.d.ts +34 -0
  119. package/types/PaymentLinksResource.d.ts +88 -0
  120. package/types/PaymentMethodBalances.d.ts +63 -0
  121. package/types/PaymentMethodConfigurations.d.ts +72 -0
  122. package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
  123. package/types/PaymentMethods.d.ts +48 -0
  124. package/types/PaymentMethodsResource.d.ts +35 -1
  125. package/types/PaymentRecords.d.ts +7 -2
  126. package/types/PaymentRecordsResource.d.ts +89 -0
  127. package/types/PayoutsResource.d.ts +1 -1
  128. package/types/Persons.d.ts +2 -0
  129. package/types/QuotePreviewInvoices.d.ts +1 -0
  130. package/types/Refunds.d.ts +9 -0
  131. package/types/SetupAttempts.d.ts +1 -0
  132. package/types/SetupIntents.d.ts +87 -0
  133. package/types/SetupIntentsResource.d.ts +220 -0
  134. package/types/Tax/Registrations.d.ts +9 -0
  135. package/types/Tax/RegistrationsResource.d.ts +12 -0
  136. package/types/Terminal/Configurations.d.ts +19 -0
  137. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  138. package/types/Terminal/Readers.d.ts +14 -9
  139. package/types/Terminal/ReadersResource.d.ts +30 -30
  140. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
  141. package/types/TokensResource.d.ts +22 -0
  142. package/types/Transfers.d.ts +4 -0
  143. package/types/TransfersResource.d.ts +2 -0
  144. package/types/V2/Billing/Cadences.d.ts +47 -2
  145. package/types/V2/Billing/CadencesResource.d.ts +32 -3
  146. package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
  147. package/types/V2/Billing/CollectionSettings.d.ts +2 -2
  148. package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
  149. package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
  150. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
  151. package/types/V2/Billing/IntentActions.d.ts +459 -0
  152. package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
  153. package/types/V2/Billing/Intents.d.ts +117 -0
  154. package/types/V2/Billing/IntentsResource.d.ts +575 -0
  155. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
  156. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
  157. package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
  158. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
  159. package/types/V2/Billing/LicenseFees.d.ts +164 -0
  160. package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
  161. package/types/V2/Billing/LicensedItems.d.ts +73 -0
  162. package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
  163. package/types/V2/Billing/MeteredItems.d.ts +101 -0
  164. package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
  165. package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
  166. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
  167. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
  168. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
  169. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
  170. package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
  171. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
  172. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
  173. package/types/V2/Billing/PricingPlans.d.ts +84 -0
  174. package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
  175. package/types/V2/Billing/RateCardRates.d.ts +144 -0
  176. package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
  177. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
  178. package/types/V2/Billing/RateCardVersions.d.ts +39 -0
  179. package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
  180. package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
  181. package/types/V2/Billing/RateCards.d.ts +98 -0
  182. package/types/V2/Billing/RateCardsResource.d.ts +162 -0
  183. package/types/V2/Billing/ServiceActions.d.ts +274 -0
  184. package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
  185. package/types/V2/Core/Accounts.d.ts +1394 -29
  186. package/types/V2/Core/AccountsResource.d.ts +1475 -5
  187. package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
  188. package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
  189. package/types/V2/Core/EventTypes.d.ts +7308 -367
  190. package/types/V2/Core/Events.d.ts +12 -0
  191. package/types/V2/Core/EventsResource.d.ts +29 -3
  192. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
  193. package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
  194. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
  195. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
  196. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +14 -0
  197. package/types/V2/MoneyManagement/OutboundPayments.d.ts +5 -0
  198. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +6 -1
  199. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +34 -0
  200. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +5 -0
  201. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +5 -0
  202. package/types/V2/MoneyManagement/PayoutMethods.d.ts +41 -0
  203. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +5 -0
  204. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +10 -0
  205. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
  206. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
  207. package/types/V2/Tax/AutomaticRules.d.ts +53 -0
  208. package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
  209. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +6 -1
  210. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
  211. package/types/WebhookEndpointsResource.d.ts +2 -1
  212. package/types/Webhooks.d.ts +2 -0
  213. package/types/crypto/crypto.d.ts +1 -1
  214. package/types/index.d.ts +69 -0
@@ -868,6 +868,8 @@ declare module 'stripe' {
868
868
  */
869
869
  authorization_code: string | null;
870
870
 
871
+ benefits?: Card.Benefits;
872
+
871
873
  /**
872
874
  * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
873
875
  */
@@ -991,6 +993,13 @@ declare module 'stripe' {
991
993
  }
992
994
 
993
995
  namespace Card {
996
+ interface Benefits {
997
+ /**
998
+ * Issuer of the benefit card utilized on this payment
999
+ */
1000
+ issuer: string | null;
1001
+ }
1002
+
994
1003
  interface Checks {
995
1004
  /**
996
1005
  * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
@@ -1538,7 +1547,7 @@ declare module 'stripe' {
1538
1547
  }
1539
1548
 
1540
1549
  namespace Crypto {
1541
- type Network = 'base' | 'ethereum' | 'polygon';
1550
+ type Network = 'base' | 'ethereum' | 'polygon' | 'solana';
1542
1551
 
1543
1552
  type TokenCurrency = 'usdc' | 'usdg' | 'usdp';
1544
1553
  }
@@ -2359,7 +2368,12 @@ declare module 'stripe' {
2359
2368
 
2360
2369
  interface Qris {}
2361
2370
 
2362
- interface Rechnung {}
2371
+ interface Rechnung {
2372
+ /**
2373
+ * Payment portal URL.
2374
+ */
2375
+ payment_portal_url: string | null;
2376
+ }
2363
2377
 
2364
2378
  interface RevolutPay {
2365
2379
  funding?: RevolutPay.Funding;
@@ -69,6 +69,8 @@ declare module 'stripe' {
69
69
  */
70
70
  cancel_url: string | null;
71
71
 
72
+ checkout_items?: Array<Session.CheckoutItem>;
73
+
72
74
  /**
73
75
  * A unique string to reference the Checkout Session. This can be a
74
76
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -517,6 +519,62 @@ declare module 'stripe' {
517
519
  }
518
520
  }
519
521
 
522
+ interface CheckoutItem {
523
+ type: CheckoutItem.Type;
524
+
525
+ rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
526
+
527
+ pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
528
+ }
529
+
530
+ namespace CheckoutItem {
531
+ interface PricingPlanSubscriptionItem {
532
+ pricing_plan: string;
533
+
534
+ pricing_plan_version: string;
535
+
536
+ metadata: Stripe.Metadata;
537
+
538
+ component_configurations: {
539
+ [key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
540
+ };
541
+
542
+ pricing_plan_subscription?: string;
543
+
544
+ billing_cadence?: string;
545
+ }
546
+
547
+ namespace PricingPlanSubscriptionItem {
548
+ interface ComponentConfigurations {
549
+ type: 'license_fee_component';
550
+
551
+ license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
552
+ }
553
+
554
+ namespace ComponentConfigurations {
555
+ interface LicenseFeeComponent {
556
+ quantity: number;
557
+ }
558
+ }
559
+ }
560
+
561
+ interface RateCardSubscriptionItem {
562
+ rate_card: string;
563
+
564
+ metadata: Stripe.Metadata;
565
+
566
+ rate_card_version: string;
567
+
568
+ billing_cadence?: string;
569
+
570
+ rate_card_subscription?: string;
571
+ }
572
+
573
+ type Type =
574
+ | 'rate_card_subscription_item'
575
+ | 'pricing_plan_subscription_item';
576
+ }
577
+
520
578
  interface CollectedInformation {
521
579
  /**
522
580
  * Customer's business name for this Checkout Session
@@ -1413,6 +1471,8 @@ declare module 'stripe' {
1413
1471
 
1414
1472
  swish?: PaymentMethodOptions.Swish;
1415
1473
 
1474
+ twint?: PaymentMethodOptions.Twint;
1475
+
1416
1476
  us_bank_account?: PaymentMethodOptions.UsBankAccount;
1417
1477
  }
1418
1478
 
@@ -2414,6 +2474,19 @@ declare module 'stripe' {
2414
2474
  reference: string | null;
2415
2475
  }
2416
2476
 
2477
+ interface Twint {
2478
+ /**
2479
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2480
+ *
2481
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2482
+ *
2483
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2484
+ *
2485
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2486
+ */
2487
+ setup_future_usage?: 'none';
2488
+ }
2489
+
2417
2490
  interface UsBankAccount {
2418
2491
  financial_connections?: UsBankAccount.FinancialConnections;
2419
2492
 
@@ -39,6 +39,8 @@ declare module 'stripe' {
39
39
  */
40
40
  cancel_url?: string;
41
41
 
42
+ checkout_items?: Array<SessionCreateParams.CheckoutItem>;
43
+
42
44
  /**
43
45
  * A unique string to reference the Checkout Session. This can be a
44
46
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -401,7 +403,7 @@ declare module 'stripe' {
401
403
  button_color?: Stripe.Emptyable<string>;
402
404
 
403
405
  /**
404
- * A string to override the business name shown on the Checkout Session.
406
+ * A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
405
407
  */
406
408
  display_name?: string;
407
409
 
@@ -411,12 +413,12 @@ declare module 'stripe' {
411
413
  font_family?: Stripe.Emptyable<BrandingSettings.FontFamily>;
412
414
 
413
415
  /**
414
- * The icon for the Checkout Session. You cannot set both `logo` and `icon`.
416
+ * The icon for the Checkout Session. For best results, use a square image.
415
417
  */
416
418
  icon?: BrandingSettings.Icon;
417
419
 
418
420
  /**
419
- * The logo for the Checkout Session. You cannot set both `logo` and `icon`.
421
+ * The logo for the Checkout Session.
420
422
  */
421
423
  logo?: BrandingSettings.Logo;
422
424
  }
@@ -495,6 +497,54 @@ declare module 'stripe' {
495
497
  }
496
498
  }
497
499
 
500
+ interface CheckoutItem {
501
+ type: CheckoutItem.Type;
502
+
503
+ rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
504
+
505
+ pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
506
+ }
507
+
508
+ namespace CheckoutItem {
509
+ interface PricingPlanSubscriptionItem {
510
+ pricing_plan: string;
511
+
512
+ pricing_plan_version?: string;
513
+
514
+ metadata?: Stripe.MetadataParam;
515
+
516
+ component_configurations?: {
517
+ [key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
518
+ };
519
+ }
520
+
521
+ namespace PricingPlanSubscriptionItem {
522
+ interface ComponentConfigurations {
523
+ type: 'license_fee_component';
524
+
525
+ license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
526
+ }
527
+
528
+ namespace ComponentConfigurations {
529
+ interface LicenseFeeComponent {
530
+ quantity: number;
531
+ }
532
+ }
533
+ }
534
+
535
+ interface RateCardSubscriptionItem {
536
+ rate_card: string;
537
+
538
+ metadata?: Stripe.MetadataParam;
539
+
540
+ rate_card_version?: string;
541
+ }
542
+
543
+ type Type =
544
+ | 'rate_card_subscription_item'
545
+ | 'pricing_plan_subscription_item';
546
+ }
547
+
498
548
  interface ConsentCollection {
499
549
  /**
500
550
  * Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
@@ -1563,6 +1613,11 @@ declare module 'stripe' {
1563
1613
  */
1564
1614
  swish?: PaymentMethodOptions.Swish;
1565
1615
 
1616
+ /**
1617
+ * contains details about the TWINT payment method options.
1618
+ */
1619
+ twint?: PaymentMethodOptions.Twint;
1620
+
1566
1621
  /**
1567
1622
  * contains details about the Us Bank Account payment method options.
1568
1623
  */
@@ -2707,6 +2762,19 @@ declare module 'stripe' {
2707
2762
  reference?: string;
2708
2763
  }
2709
2764
 
2765
+ interface Twint {
2766
+ /**
2767
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2768
+ *
2769
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.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://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2770
+ *
2771
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2772
+ *
2773
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2774
+ */
2775
+ setup_future_usage?: 'none';
2776
+ }
2777
+
2710
2778
  interface UsBankAccount {
2711
2779
  /**
2712
2780
  * Additional fields for Financial Connections Session creation
@@ -431,6 +431,8 @@ declare module 'stripe' {
431
431
  }
432
432
 
433
433
  interface Card {
434
+ benefits?: Card.Benefits;
435
+
434
436
  /**
435
437
  * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
436
438
  */
@@ -520,6 +522,18 @@ declare module 'stripe' {
520
522
  }
521
523
 
522
524
  namespace Card {
525
+ interface Benefits {
526
+ /**
527
+ * Issuer of this benefit card
528
+ */
529
+ issuer: string | null;
530
+
531
+ /**
532
+ * Available benefit programs for this card
533
+ */
534
+ programs: Array<string> | null;
535
+ }
536
+
523
537
  interface Checks {
524
538
  /**
525
539
  * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
@@ -1645,6 +1659,7 @@ declare module 'stripe' {
1645
1659
  | 'card_present'
1646
1660
  | 'cashapp'
1647
1661
  | 'crypto'
1662
+ | 'custom'
1648
1663
  | 'customer_balance'
1649
1664
  | 'eps'
1650
1665
  | 'fpx'
@@ -235,10 +235,36 @@ declare module 'stripe' {
235
235
  */
236
236
  amount_refunded: number;
237
237
 
238
+ /**
239
+ * The PaymentRecord refund details associated with this credit note refund.
240
+ */
241
+ payment_record_refund: Refund.PaymentRecordRefund | null;
242
+
238
243
  /**
239
244
  * ID of the refund.
240
245
  */
241
246
  refund: string | Stripe.Refund;
247
+
248
+ /**
249
+ * Type of the refund, one of `refund` or `payment_record_refund`.
250
+ */
251
+ type: Refund.Type | null;
252
+ }
253
+
254
+ namespace Refund {
255
+ interface PaymentRecordRefund {
256
+ /**
257
+ * ID of the payment record.
258
+ */
259
+ payment_record: string;
260
+
261
+ /**
262
+ * ID of the refund group.
263
+ */
264
+ refund_group: string;
265
+ }
266
+
267
+ type Type = 'payment_record_refund' | 'refund';
242
268
  }
243
269
 
244
270
  interface ShippingCost {
@@ -157,10 +157,36 @@ declare module 'stripe' {
157
157
  */
158
158
  amount_refunded?: number;
159
159
 
160
+ /**
161
+ * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
162
+ */
163
+ payment_record_refund?: Refund.PaymentRecordRefund;
164
+
160
165
  /**
161
166
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
162
167
  */
163
168
  refund?: string;
169
+
170
+ /**
171
+ * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
172
+ */
173
+ type?: Refund.Type;
174
+ }
175
+
176
+ namespace Refund {
177
+ interface PaymentRecordRefund {
178
+ /**
179
+ * The ID of the PaymentRecord with the refund to link to this credit note.
180
+ */
181
+ payment_record: string;
182
+
183
+ /**
184
+ * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
185
+ */
186
+ refund_group: string;
187
+ }
188
+
189
+ type Type = 'payment_record_refund' | 'refund';
164
190
  }
165
191
 
166
192
  interface ShippingCost {
@@ -384,10 +410,36 @@ declare module 'stripe' {
384
410
  */
385
411
  amount_refunded?: number;
386
412
 
413
+ /**
414
+ * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
415
+ */
416
+ payment_record_refund?: Refund.PaymentRecordRefund;
417
+
387
418
  /**
388
419
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
389
420
  */
390
421
  refund?: string;
422
+
423
+ /**
424
+ * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
425
+ */
426
+ type?: Refund.Type;
427
+ }
428
+
429
+ namespace Refund {
430
+ interface PaymentRecordRefund {
431
+ /**
432
+ * The ID of the PaymentRecord with the refund to link to this credit note.
433
+ */
434
+ payment_record: string;
435
+
436
+ /**
437
+ * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
438
+ */
439
+ refund_group: string;
440
+ }
441
+
442
+ type Type = 'payment_record_refund' | 'refund';
391
443
  }
392
444
 
393
445
  interface ShippingCost {
@@ -553,10 +605,36 @@ declare module 'stripe' {
553
605
  */
554
606
  amount_refunded?: number;
555
607
 
608
+ /**
609
+ * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
610
+ */
611
+ payment_record_refund?: Refund.PaymentRecordRefund;
612
+
556
613
  /**
557
614
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
558
615
  */
559
616
  refund?: string;
617
+
618
+ /**
619
+ * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
620
+ */
621
+ type?: Refund.Type;
622
+ }
623
+
624
+ namespace Refund {
625
+ interface PaymentRecordRefund {
626
+ /**
627
+ * The ID of the PaymentRecord with the refund to link to this credit note.
628
+ */
629
+ payment_record: string;
630
+
631
+ /**
632
+ * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
633
+ */
634
+ refund_group: string;
635
+ }
636
+
637
+ type Type = 'payment_record_refund' | 'refund';
560
638
  }
561
639
 
562
640
  interface ShippingCost {
@@ -61,6 +61,16 @@ declare module 'stripe' {
61
61
  */
62
62
  buy_button: Components.BuyButton;
63
63
 
64
+ /**
65
+ * This hash contains whether the customer sheet is enabled and the features it supports.
66
+ */
67
+ customer_sheet: Components.CustomerSheet;
68
+
69
+ /**
70
+ * This hash contains whether the mobile payment element is enabled and the features it supports.
71
+ */
72
+ mobile_payment_element: Components.MobilePaymentElement;
73
+
64
74
  /**
65
75
  * This hash contains whether the Payment Element is enabled and the features it supports.
66
76
  */
@@ -70,6 +80,11 @@ declare module 'stripe' {
70
80
  * This hash contains whether the pricing table is enabled.
71
81
  */
72
82
  pricing_table: Components.PricingTable;
83
+
84
+ /**
85
+ * This hash contains whether the Tax ID Element is enabled and the features it supports.
86
+ */
87
+ tax_id_element?: Components.TaxIdElement;
73
88
  }
74
89
 
75
90
  namespace Components {
@@ -80,6 +95,116 @@ declare module 'stripe' {
80
95
  enabled: boolean;
81
96
  }
82
97
 
98
+ interface CustomerSheet {
99
+ /**
100
+ * Whether the customer sheet is enabled.
101
+ */
102
+ enabled: boolean;
103
+
104
+ /**
105
+ * This hash defines whether the customer sheet supports certain features.
106
+ */
107
+ features: CustomerSheet.Features | null;
108
+ }
109
+
110
+ namespace CustomerSheet {
111
+ interface Features {
112
+ /**
113
+ * A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
114
+ *
115
+ * If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
116
+ */
117
+ payment_method_allow_redisplay_filters: Array<
118
+ Features.PaymentMethodAllowRedisplayFilter
119
+ > | null;
120
+
121
+ /**
122
+ * Controls whether the customer sheet displays the option to remove a saved payment method."
123
+ *
124
+ * Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
125
+ */
126
+ payment_method_remove: Features.PaymentMethodRemove | null;
127
+ }
128
+
129
+ namespace Features {
130
+ type PaymentMethodAllowRedisplayFilter =
131
+ | 'always'
132
+ | 'limited'
133
+ | 'unspecified';
134
+
135
+ type PaymentMethodRemove = 'disabled' | 'enabled';
136
+ }
137
+ }
138
+
139
+ interface MobilePaymentElement {
140
+ /**
141
+ * Whether the mobile payment element is enabled.
142
+ */
143
+ enabled: boolean;
144
+
145
+ /**
146
+ * This hash defines whether the mobile payment element supports certain features.
147
+ */
148
+ features: MobilePaymentElement.Features | null;
149
+ }
150
+
151
+ namespace MobilePaymentElement {
152
+ interface Features {
153
+ /**
154
+ * A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
155
+ *
156
+ * If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
157
+ */
158
+ payment_method_allow_redisplay_filters: Array<
159
+ Features.PaymentMethodAllowRedisplayFilter
160
+ > | null;
161
+
162
+ /**
163
+ * Controls whether or not the mobile payment element shows saved payment methods.
164
+ */
165
+ payment_method_redisplay: Features.PaymentMethodRedisplay | null;
166
+
167
+ /**
168
+ * Controls whether the mobile payment element displays the option to remove a saved payment method."
169
+ *
170
+ * Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
171
+ */
172
+ payment_method_remove: Features.PaymentMethodRemove | null;
173
+
174
+ /**
175
+ * Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
176
+ *
177
+ * If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
178
+ */
179
+ payment_method_save: Features.PaymentMethodSave | null;
180
+
181
+ /**
182
+ * Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
183
+ *
184
+ * If not specified, defaults to `nil` (no override value).
185
+ */
186
+ payment_method_save_allow_redisplay_override: Features.PaymentMethodSaveAllowRedisplayOverride | null;
187
+ }
188
+
189
+ namespace Features {
190
+ type PaymentMethodAllowRedisplayFilter =
191
+ | 'always'
192
+ | 'limited'
193
+ | 'unspecified';
194
+
195
+ type PaymentMethodRedisplay = 'disabled' | 'enabled';
196
+
197
+ type PaymentMethodRemove = 'disabled' | 'enabled';
198
+
199
+ type PaymentMethodSave = 'disabled' | 'enabled';
200
+
201
+ type PaymentMethodSaveAllowRedisplayOverride =
202
+ | 'always'
203
+ | 'limited'
204
+ | 'unspecified';
205
+ }
206
+ }
207
+
83
208
  interface PaymentElement {
84
209
  /**
85
210
  * Whether the Payment Element is enabled.
@@ -157,6 +282,42 @@ declare module 'stripe' {
157
282
  */
158
283
  enabled: boolean;
159
284
  }
285
+
286
+ interface TaxIdElement {
287
+ /**
288
+ * Whether the Tax ID Element is enabled.
289
+ */
290
+ enabled: boolean;
291
+
292
+ /**
293
+ * This hash defines whether the Tax ID Element supports certain features.
294
+ */
295
+ features: TaxIdElement.Features | null;
296
+ }
297
+
298
+ namespace TaxIdElement {
299
+ interface Features {
300
+ /**
301
+ * Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
302
+ *
303
+ * When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
304
+ */
305
+ tax_id_redisplay: Features.TaxIdRedisplay;
306
+
307
+ /**
308
+ * Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
309
+ *
310
+ * When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
311
+ */
312
+ tax_id_save: Features.TaxIdSave;
313
+ }
314
+
315
+ namespace Features {
316
+ type TaxIdRedisplay = 'disabled' | 'enabled';
317
+
318
+ type TaxIdSave = 'disabled' | 'enabled';
319
+ }
320
+ }
160
321
  }
161
322
  }
162
323
  }