stripe 18.2.0-beta.1 → 18.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 (141) hide show
  1. package/CHANGELOG.md +229 -31
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +11 -11
  4. package/VERSION +1 -1
  5. package/cjs/RequestSender.js +2 -2
  6. package/cjs/StripeResource.js +1 -1
  7. package/cjs/apiVersion.js +1 -1
  8. package/cjs/resources/Subscriptions.js +4 -0
  9. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  10. package/cjs/resources.js +15 -17
  11. package/cjs/stripe.core.js +1 -1
  12. package/cjs/utils.js +5 -0
  13. package/esm/RequestSender.js +2 -2
  14. package/esm/StripeResource.js +1 -1
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/Subscriptions.js +4 -0
  17. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  18. package/esm/resources.js +4 -6
  19. package/esm/stripe.core.js +1 -1
  20. package/esm/utils.js +5 -0
  21. package/package.json +1 -1
  22. package/types/AccountSessions.d.ts +65 -0
  23. package/types/AccountSessionsResource.d.ts +41 -0
  24. package/types/Accounts.d.ts +22 -15
  25. package/types/AccountsResource.d.ts +81 -57
  26. package/types/Balance.d.ts +83 -1
  27. package/types/BalanceResource.d.ts +1 -1
  28. package/types/BalanceSettings.d.ts +1 -1
  29. package/types/BalanceSettingsResource.d.ts +5 -5
  30. package/types/BalanceTransactions.d.ts +10 -0
  31. package/types/BankAccounts.d.ts +3 -3
  32. package/types/Billing/Alerts.d.ts +1 -1
  33. package/types/Billing/AlertsResource.d.ts +2 -2
  34. package/types/BillingPortal/Sessions.d.ts +1 -1
  35. package/types/Capabilities.d.ts +1 -1
  36. package/types/Cards.d.ts +2 -2
  37. package/types/Charges.d.ts +20 -0
  38. package/types/ChargesResource.d.ts +96 -4
  39. package/types/Checkout/Sessions.d.ts +123 -108
  40. package/types/Checkout/SessionsResource.d.ts +125 -116
  41. package/types/ConfirmationTokens.d.ts +4 -4
  42. package/types/CountrySpecs.d.ts +1 -1
  43. package/types/CreditNotes.d.ts +11 -5
  44. package/types/CreditNotesResource.d.ts +7 -8
  45. package/types/CustomerSessions.d.ts +3 -3
  46. package/types/CustomersResource.d.ts +7 -7
  47. package/types/Disputes.d.ts +1 -1
  48. package/types/DisputesResource.d.ts +1 -1
  49. package/types/EventTypes.d.ts +17 -17
  50. package/types/Events.d.ts +4 -1
  51. package/types/ExternalAccountsResource.d.ts +1 -1
  52. package/types/Files.d.ts +1 -1
  53. package/types/FilesResource.d.ts +1 -1
  54. package/types/FinancialConnections/Accounts.d.ts +5 -0
  55. package/types/FinancialConnections/Institutions.d.ts +5 -0
  56. package/types/Identity/VerificationReports.d.ts +17 -0
  57. package/types/Identity/VerificationSessions.d.ts +19 -2
  58. package/types/Identity/VerificationSessionsResource.d.ts +5 -5
  59. package/types/InvoiceItems.d.ts +1 -1
  60. package/types/InvoiceLineItems.d.ts +1 -1
  61. package/types/InvoicePayments.d.ts +9 -2
  62. package/types/Invoices.d.ts +7 -9
  63. package/types/InvoicesResource.d.ts +60 -18
  64. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  65. package/types/Issuing/CardsResource.d.ts +3 -0
  66. package/types/Issuing/DisputesResource.d.ts +2 -2
  67. package/types/LineItems.d.ts +2 -2
  68. package/types/Orders.d.ts +43 -83
  69. package/types/OrdersResource.d.ts +85 -119
  70. package/types/PaymentAttemptRecords.d.ts +21 -1
  71. package/types/PaymentIntentAmountDetailsLineItems.d.ts +6 -0
  72. package/types/PaymentIntents.d.ts +224 -173
  73. package/types/PaymentIntentsResource.d.ts +819 -584
  74. package/types/PaymentMethodConfigurations.d.ts +180 -0
  75. package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
  76. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  77. package/types/PaymentMethods.d.ts +4 -4
  78. package/types/PaymentMethodsResource.d.ts +8 -8
  79. package/types/PaymentRecords.d.ts +21 -1
  80. package/types/PaymentRecordsResource.d.ts +5 -5
  81. package/types/Payouts.d.ts +2 -2
  82. package/types/PayoutsResource.d.ts +2 -2
  83. package/types/Persons.d.ts +10 -10
  84. package/types/PlansResource.d.ts +1 -1
  85. package/types/PricesResource.d.ts +2 -2
  86. package/types/Privacy/RedactionJobValidationErrors.d.ts +35 -5
  87. package/types/Privacy/RedactionJobs.d.ts +53 -7
  88. package/types/Privacy/RedactionJobsResource.d.ts +25 -13
  89. package/types/Products.d.ts +0 -39
  90. package/types/ProductsResource.d.ts +1 -37
  91. package/types/PromotionCodesResource.d.ts +1 -1
  92. package/types/QuotePreviewInvoices.d.ts +7 -9
  93. package/types/QuotePreviewSubscriptionSchedules.d.ts +48 -2
  94. package/types/Quotes.d.ts +7 -7
  95. package/types/QuotesResource.d.ts +1 -1
  96. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  97. package/types/Refunds.d.ts +6 -1
  98. package/types/Reviews.d.ts +1 -1
  99. package/types/SetupAttempts.d.ts +1 -3
  100. package/types/SetupIntents.d.ts +2 -4
  101. package/types/SetupIntentsResource.d.ts +3 -3
  102. package/types/SourcesResource.d.ts +1 -1
  103. package/types/SubscriptionItems.d.ts +21 -0
  104. package/types/SubscriptionItemsResource.d.ts +28 -0
  105. package/types/SubscriptionSchedules.d.ts +48 -2
  106. package/types/SubscriptionSchedulesResource.d.ts +100 -4
  107. package/types/Subscriptions.d.ts +32 -3
  108. package/types/SubscriptionsResource.d.ts +104 -17
  109. package/types/Tax/Associations.d.ts +19 -63
  110. package/types/Tax/CalculationLineItems.d.ts +5 -0
  111. package/types/Tax/CalculationsResource.d.ts +5 -0
  112. package/types/Tax/RegistrationsResource.d.ts +1 -1
  113. package/types/TaxRates.d.ts +2 -2
  114. package/types/Terminal/LocationsResource.d.ts +1 -1
  115. package/types/Terminal/Readers.d.ts +21 -1
  116. package/types/Terminal/ReadersResource.d.ts +20 -0
  117. package/types/Tokens.d.ts +3 -3
  118. package/types/TokensResource.d.ts +8 -8
  119. package/types/TransferReversals.d.ts +1 -1
  120. package/types/TransfersResource.d.ts +2 -2
  121. package/types/Treasury/ReceivedCredits.d.ts +2 -2
  122. package/types/V2/Core/Accounts.d.ts +5 -5
  123. package/types/V2/EventTypes.d.ts +102 -11
  124. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -1
  125. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -43
  126. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -49
  127. package/types/V2/Payments/OffSessionPayments.d.ts +167 -0
  128. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
  129. package/types/WebhookEndpointsResource.d.ts +4 -3
  130. package/types/index.d.ts +5 -9
  131. package/types/lib.d.ts +1 -1
  132. package/types/test/typescriptTest.ts +3 -3
  133. package/cjs/resources/GiftCards/Cards.js +0 -23
  134. package/cjs/resources/GiftCards/Transactions.js +0 -33
  135. package/esm/resources/GiftCards/Cards.js +0 -20
  136. package/esm/resources/GiftCards/Transactions.js +0 -30
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/GiftCards/Cards.d.ts +0 -118
  139. package/types/GiftCards/CardsResource.d.ts +0 -159
  140. package/types/GiftCards/Transactions.d.ts +0 -129
  141. package/types/GiftCards/TransactionsResource.d.ts +0 -201
@@ -2690,7 +2690,7 @@ declare module 'stripe' {
2690
2690
  billing_behavior?: ScheduleDetails.BillingBehavior;
2691
2691
 
2692
2692
  /**
2693
- * Configure billing_mode to opt in improved credit proration behavior.When the schedule creates a subscription, the subscription's `billing_mode` will be set to the same value as the schedule's `billing_mode`.
2693
+ * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2694
2694
  */
2695
2695
  billing_mode?: ScheduleDetails.BillingMode;
2696
2696
 
@@ -3338,6 +3338,11 @@ declare module 'stripe' {
3338
3338
  */
3339
3339
  billing_cycle_anchor?: Phase.BillingCycleAnchor;
3340
3340
 
3341
+ /**
3342
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
3343
+ */
3344
+ billing_thresholds?: Stripe.Emptyable<Phase.BillingThresholds>;
3345
+
3341
3346
  /**
3342
3347
  * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
3343
3348
  */
@@ -3404,7 +3409,7 @@ declare module 'stripe' {
3404
3409
  pause_collection?: Phase.PauseCollection;
3405
3410
 
3406
3411
  /**
3407
- * Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
3412
+ * Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
3408
3413
  */
3409
3414
  proration_behavior?: Phase.ProrationBehavior;
3410
3415
 
@@ -3593,6 +3598,18 @@ declare module 'stripe' {
3593
3598
 
3594
3599
  type BillingCycleAnchor = 'automatic' | 'phase_start';
3595
3600
 
3601
+ interface BillingThresholds {
3602
+ /**
3603
+ * Monetary threshold that triggers the subscription to advance to a new billing period
3604
+ */
3605
+ amount_gte?: number;
3606
+
3607
+ /**
3608
+ * Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
3609
+ */
3610
+ reset_billing_cycle_anchor?: boolean;
3611
+ }
3612
+
3596
3613
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
3597
3614
 
3598
3615
  interface Discount {
@@ -3692,6 +3709,11 @@ declare module 'stripe' {
3692
3709
  }
3693
3710
 
3694
3711
  interface Item {
3712
+ /**
3713
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
3714
+ */
3715
+ billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
3716
+
3695
3717
  /**
3696
3718
  * The coupons to redeem into discounts for the subscription item.
3697
3719
  */
@@ -3734,6 +3756,13 @@ declare module 'stripe' {
3734
3756
  }
3735
3757
 
3736
3758
  namespace Item {
3759
+ interface BillingThresholds {
3760
+ /**
3761
+ * Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
3762
+ */
3763
+ usage_gte: number;
3764
+ }
3765
+
3737
3766
  interface Discount {
3738
3767
  /**
3739
3768
  * ID of the coupon to create a new discount for.
@@ -3995,17 +4024,17 @@ declare module 'stripe' {
3995
4024
  billing_cycle_anchor?: SubscriptionDetails.BillingCycleAnchor | number;
3996
4025
 
3997
4026
  /**
3998
- * Configure billing_mode in each subscription to opt in improved credit proration behavior.
4027
+ * Controls how prorations and invoices for subscriptions are calculated and orchestrated.
3999
4028
  */
4000
4029
  billing_mode?: SubscriptionDetails.BillingMode;
4001
4030
 
4002
4031
  /**
4003
4032
  * A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
4004
4033
  */
4005
- cancel_at?: Stripe.Emptyable<number>;
4034
+ cancel_at?: Stripe.Emptyable<number | SubscriptionDetails.CancelAt>;
4006
4035
 
4007
4036
  /**
4008
- * Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
4037
+ * Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`. This param will be removed in a future API version. Please use `cancel_at` instead.
4009
4038
  */
4010
4039
  cancel_at_period_end?: boolean;
4011
4040
 
@@ -4060,7 +4089,14 @@ declare module 'stripe' {
4060
4089
 
4061
4090
  type BillingMode = 'classic' | 'flexible';
4062
4091
 
4092
+ type CancelAt = 'max_period_end' | 'min_period_end';
4093
+
4063
4094
  interface Item {
4095
+ /**
4096
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
4097
+ */
4098
+ billing_thresholds?: Stripe.Emptyable<Item.BillingThresholds>;
4099
+
4064
4100
  /**
4065
4101
  * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
4066
4102
  */
@@ -4113,6 +4149,13 @@ declare module 'stripe' {
4113
4149
  }
4114
4150
 
4115
4151
  namespace Item {
4152
+ interface BillingThresholds {
4153
+ /**
4154
+ * Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
4155
+ */
4156
+ usage_gte: number;
4157
+ }
4158
+
4116
4159
  interface Discount {
4117
4160
  /**
4118
4161
  * ID of the coupon to create a new discount for.
@@ -5060,7 +5103,7 @@ declare module 'stripe' {
5060
5103
 
5061
5104
  class InvoicesResource {
5062
5105
  /**
5063
- * This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
5106
+ * This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
5064
5107
  */
5065
5108
  create(
5066
5109
  params?: InvoiceCreateParams,
@@ -5084,11 +5127,11 @@ declare module 'stripe' {
5084
5127
  ): Promise<Stripe.Response<Stripe.Invoice>>;
5085
5128
 
5086
5129
  /**
5087
- * Draft invoices are fully editable. Once an invoice is [finalized](https://stripe.com/docs/billing/invoices/workflow#finalized),
5130
+ * Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
5088
5131
  * monetary values, as well as collection_method, become uneditable.
5089
5132
  *
5090
5133
  * If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
5091
- * sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass
5134
+ * sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
5092
5135
  * auto_advance=false.
5093
5136
  */
5094
5137
  update(
@@ -5107,7 +5150,7 @@ declare module 'stripe' {
5107
5150
  list(options?: RequestOptions): ApiListPromise<Stripe.Invoice>;
5108
5151
 
5109
5152
  /**
5110
- * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice).
5153
+ * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice).
5111
5154
  */
5112
5155
  del(
5113
5156
  id: string,
@@ -5131,9 +5174,6 @@ declare module 'stripe' {
5131
5174
  /**
5132
5175
  * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments.
5133
5176
  *
5134
- * For Out of Band Payment, the payment is credited to the invoice immediately, increasing the amount_paid
5135
- * of the invoice and subsequently transitioning the status of the invoice to paid if necessary.
5136
- *
5137
5177
  * For the PaymentIntent, when the PaymentIntent's status changes to succeeded, the payment is credited
5138
5178
  * to the invoice, increasing its amount_paid. When the invoice is fully paid, the
5139
5179
  * invoice's status becomes paid.
@@ -5141,7 +5181,7 @@ declare module 'stripe' {
5141
5181
  * If the PaymentIntent's status is already succeeded when it's attached, it's
5142
5182
  * credited to the invoice immediately.
5143
5183
  *
5144
- * See: [Create an invoice payment](https://stripe.com/docs/invoicing/payments/create) to learn more.
5184
+ * See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
5145
5185
  */
5146
5186
  attachPayment(
5147
5187
  id: string,
@@ -5156,9 +5196,11 @@ declare module 'stripe' {
5156
5196
  /**
5157
5197
  * At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
5158
5198
  *
5159
- * Note that when you are viewing an upcoming invoice, you are simply viewing a preview the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.
5199
+ * You can also preview the effects of creating or updating a subscription or subscription schedule, including a preview of any prorations that will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update.
5200
+ *
5201
+ * The recommended way to get only the prorations being previewed on the invoice is to consider line items where parent.subscription_item_details.proration is true.
5160
5202
  *
5161
- * You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.
5203
+ * Note that when you are viewing an upcoming invoice, you are simply viewing a preview the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.
5162
5204
  *
5163
5205
  * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
5164
5206
  */
@@ -5232,7 +5274,7 @@ declare module 'stripe' {
5232
5274
  ): Promise<Stripe.Response<Stripe.Invoice>>;
5233
5275
 
5234
5276
  /**
5235
- * Search for invoices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
5277
+ * Search for invoices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
5236
5278
  * Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
5237
5279
  * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
5238
5280
  * to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -5285,9 +5327,9 @@ declare module 'stripe' {
5285
5327
  ): Promise<Stripe.Response<Stripe.InvoiceLineItem>>;
5286
5328
 
5287
5329
  /**
5288
- * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
5330
+ * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://docs.stripe.com/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
5289
5331
  *
5290
- * Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://stripe.com/docs/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
5332
+ * Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
5291
5333
  */
5292
5334
  voidInvoice(
5293
5335
  id: string,
@@ -117,8 +117,8 @@ declare module 'stripe' {
117
117
  ): ApiListPromise<Stripe.Issuing.Authorization>;
118
118
 
119
119
  /**
120
- * [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
121
- * This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
120
+ * [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
121
+ * This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
122
122
  * @deprecated
123
123
  */
124
124
  approve(
@@ -132,8 +132,8 @@ declare module 'stripe' {
132
132
  ): Promise<Stripe.Response<Stripe.Issuing.Authorization>>;
133
133
 
134
134
  /**
135
- * [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
136
- * This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
135
+ * [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
136
+ * This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
137
137
  * @deprecated
138
138
  */
139
139
  decline(
@@ -24,6 +24,9 @@ declare module 'stripe' {
24
24
  */
25
25
  expand?: Array<string>;
26
26
 
27
+ /**
28
+ * The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
29
+ */
27
30
  financial_account?: string;
28
31
 
29
32
  /**
@@ -717,7 +717,7 @@ declare module 'stripe' {
717
717
 
718
718
  class DisputesResource {
719
719
  /**
720
- * Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
720
+ * Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
721
721
  */
722
722
  create(
723
723
  params?: DisputeCreateParams,
@@ -759,7 +759,7 @@ declare module 'stripe' {
759
759
  list(options?: RequestOptions): ApiListPromise<Stripe.Issuing.Dispute>;
760
760
 
761
761
  /**
762
- * Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
762
+ * Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
763
763
  */
764
764
  submit(
765
765
  id: string,
@@ -127,9 +127,9 @@ declare module 'stripe' {
127
127
  amount: number;
128
128
 
129
129
  /**
130
- * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
130
+ * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
131
131
  *
132
- * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
132
+ * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
133
133
  */
134
134
  rate: Stripe.TaxRate;
135
135
 
package/types/Orders.d.ts CHANGED
@@ -20,8 +20,6 @@ declare module 'stripe' {
20
20
  */
21
21
  object: 'order';
22
22
 
23
- amount_remaining?: number;
24
-
25
23
  /**
26
24
  * Order cost before any discounts or taxes are applied. A positive integer representing the subtotal of the order in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).
27
25
  */
@@ -58,11 +56,6 @@ declare module 'stripe' {
58
56
  */
59
57
  created: number;
60
58
 
61
- /**
62
- * The credits applied to the Order. At most 10 credits can be applied to an Order.
63
- */
64
- credits?: Array<Order.Credit>;
65
-
66
59
  /**
67
60
  * 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).
68
61
  */
@@ -164,37 +157,6 @@ declare module 'stripe' {
164
157
  phone: string | null;
165
158
  }
166
159
 
167
- interface Credit {
168
- /**
169
- * The amount of this credit to apply to the order.
170
- */
171
- amount: number;
172
-
173
- /**
174
- * Details for a gift card.
175
- */
176
- gift_card: Credit.GiftCard | null;
177
-
178
- /**
179
- * Line items on this order that are ineligible for this credit
180
- */
181
- ineligible_line_items: Array<string> | null;
182
-
183
- /**
184
- * The type of credit to apply to the order, only `gift_card` currently supported.
185
- */
186
- type: 'gift_card';
187
- }
188
-
189
- namespace Credit {
190
- interface GiftCard {
191
- /**
192
- * The token of the gift card applied to the order
193
- */
194
- card: string;
195
- }
196
- }
197
-
198
160
  interface Payment {
199
161
  /**
200
162
  * ID of the payment intent associated with this order. Null when the order is `open`.
@@ -302,11 +264,11 @@ declare module 'stripe' {
302
264
  /**
303
265
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
304
266
  *
305
- * 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.
267
+ * 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.
306
268
  *
307
- * 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.
269
+ * 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.
308
270
  *
309
- * 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).
271
+ * 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).
310
272
  */
311
273
  setup_future_usage?: AcssDebit.SetupFutureUsage;
312
274
 
@@ -389,11 +351,11 @@ declare module 'stripe' {
389
351
  /**
390
352
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
391
353
  *
392
- * 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.
354
+ * 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.
393
355
  *
394
- * 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.
356
+ * 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.
395
357
  *
396
- * 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).
358
+ * 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).
397
359
  */
398
360
  setup_future_usage?: Alipay.SetupFutureUsage;
399
361
  }
@@ -411,11 +373,11 @@ declare module 'stripe' {
411
373
  /**
412
374
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
413
375
  *
414
- * 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.
376
+ * 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.
415
377
  *
416
- * 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.
378
+ * 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.
417
379
  *
418
- * 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).
380
+ * 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).
419
381
  */
420
382
  setup_future_usage?: Bancontact.SetupFutureUsage;
421
383
  }
@@ -461,11 +423,11 @@ declare module 'stripe' {
461
423
  /**
462
424
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
463
425
  *
464
- * 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.
426
+ * 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.
465
427
  *
466
- * 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.
428
+ * 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.
467
429
  *
468
- * 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).
430
+ * 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).
469
431
  */
470
432
  setup_future_usage?: 'none';
471
433
  }
@@ -523,11 +485,11 @@ declare module 'stripe' {
523
485
  /**
524
486
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
525
487
  *
526
- * 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.
488
+ * 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.
527
489
  *
528
- * 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.
490
+ * 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.
529
491
  *
530
- * 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).
492
+ * 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).
531
493
  */
532
494
  setup_future_usage?: Ideal.SetupFutureUsage;
533
495
  }
@@ -550,11 +512,11 @@ declare module 'stripe' {
550
512
  /**
551
513
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
552
514
  *
553
- * 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.
515
+ * 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.
554
516
  *
555
- * 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.
517
+ * 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.
556
518
  *
557
- * 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).
519
+ * 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).
558
520
  */
559
521
  setup_future_usage?: 'none';
560
522
  }
@@ -574,11 +536,11 @@ declare module 'stripe' {
574
536
  /**
575
537
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
576
538
  *
577
- * 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.
539
+ * 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.
578
540
  *
579
- * 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.
541
+ * 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.
580
542
  *
581
- * 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).
543
+ * 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).
582
544
  */
583
545
  setup_future_usage?: Link.SetupFutureUsage;
584
546
  }
@@ -596,11 +558,11 @@ declare module 'stripe' {
596
558
  /**
597
559
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
598
560
  *
599
- * 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.
561
+ * 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.
600
562
  *
601
- * 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.
563
+ * 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.
602
564
  *
603
- * 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).
565
+ * 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).
604
566
  */
605
567
  setup_future_usage?: 'none';
606
568
  }
@@ -609,11 +571,11 @@ declare module 'stripe' {
609
571
  /**
610
572
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
611
573
  *
612
- * 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.
574
+ * 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.
613
575
  *
614
- * 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.
576
+ * 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.
615
577
  *
616
- * 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).
578
+ * 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).
617
579
  */
618
580
  setup_future_usage?: 'none';
619
581
  }
@@ -647,11 +609,11 @@ declare module 'stripe' {
647
609
  /**
648
610
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
649
611
  *
650
- * 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.
612
+ * 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.
651
613
  *
652
- * 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.
614
+ * 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.
653
615
  *
654
- * 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).
616
+ * 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).
655
617
  */
656
618
  setup_future_usage?: Paypal.SetupFutureUsage;
657
619
 
@@ -730,11 +692,11 @@ declare module 'stripe' {
730
692
  /**
731
693
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
732
694
  *
733
- * 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.
695
+ * 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.
734
696
  *
735
- * 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.
697
+ * 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.
736
698
  *
737
- * 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).
699
+ * 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).
738
700
  */
739
701
  setup_future_usage?: SepaDebit.SetupFutureUsage;
740
702
 
@@ -764,11 +726,11 @@ declare module 'stripe' {
764
726
  /**
765
727
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
766
728
  *
767
- * 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.
729
+ * 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.
768
730
  *
769
- * 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.
731
+ * 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.
770
732
  *
771
- * 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).
733
+ * 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).
772
734
  */
773
735
  setup_future_usage?: Sofort.SetupFutureUsage;
774
736
  }
@@ -800,11 +762,11 @@ declare module 'stripe' {
800
762
  /**
801
763
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
802
764
  *
803
- * 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.
765
+ * 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.
804
766
  *
805
- * 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.
767
+ * 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.
806
768
  *
807
- * 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).
769
+ * 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).
808
770
  */
809
771
  setup_future_usage?: 'none';
810
772
  }
@@ -896,9 +858,9 @@ declare module 'stripe' {
896
858
  amount: number;
897
859
 
898
860
  /**
899
- * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
861
+ * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
900
862
  *
901
- * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
863
+ * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
902
864
  */
903
865
  rate: Stripe.TaxRate;
904
866
 
@@ -1101,8 +1063,6 @@ declare module 'stripe' {
1101
1063
  }
1102
1064
 
1103
1065
  interface TotalDetails {
1104
- amount_credit?: number;
1105
-
1106
1066
  /**
1107
1067
  * This is the sum of all the discounts.
1108
1068
  */
@@ -1157,9 +1117,9 @@ declare module 'stripe' {
1157
1117
  amount: number;
1158
1118
 
1159
1119
  /**
1160
- * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
1120
+ * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
1161
1121
  *
1162
- * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
1122
+ * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
1163
1123
  */
1164
1124
  rate: Stripe.TaxRate;
1165
1125