stripe 17.4.0-beta.3 → 17.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## 17.5.0-beta.1 - 2024-11-21
4
+ * [#2229](https://github.com/stripe/stripe-node/pull/2229) Update generated code for beta
5
+ * Add support for `network_advice_code` and `network_decline_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
6
+ * Change `BillingPortal.Configuration.features.subscription_update.schedule_at_period_end` and `LineItem.description` to be required
7
+ * Add support for `funding` on `Charge.payment_method_details.amazon_pay` and `Charge.payment_method_details.revolut_pay`
8
+ * Add support for `amount_requested` and `partial_authorization` on `Charge.payment_method_details.card`
9
+ * Add support for `metadata` on `Checkout.SessionCreateParams.line_items[]` and `LineItem`
10
+ * Add support for `line_items` on `Checkout.Session.permissions.update`, `Checkout.SessionCreateParams.permissions.update`, and `Checkout.SessionUpdateParams`
11
+ * Add support for new value `invoice.overpaid` on enum `Event.type`
12
+ * Add support for `adjustable_quantity` and `display` on `LineItem`
13
+ * Change type of `LineItem.description` from `string` to `string | null`
14
+ * Add support for `request_partial_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`
15
+ * Add support for `payment_method_options` on `PaymentIntentIncrementAuthorizationParams`
16
+ * Add support for new value `invoice.overpaid` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
17
+
18
+ ## 17.4.0 - 2024-11-20
19
+ * [#2222](https://github.com/stripe/stripe-node/pull/2222) This release changes the pinned API version to `2024-11-20.acacia`.
20
+ * Add support for `respond` test helper method on resource `Issuing.Authorization`
21
+ * Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
22
+ * Change type of `Account.future_requirements.disabled_reason` and `Account.requirements.disabled_reason` from `string` to `enum`
23
+ * Change `AccountSession.components.account_management.features.disable_stripe_user_authentication`, `AccountSession.components.account_onboarding.features.disable_stripe_user_authentication`, `AccountSession.components.balances.features.disable_stripe_user_authentication`, `AccountSession.components.notification_banner.features.disable_stripe_user_authentication`, and `AccountSession.components.payouts.features.disable_stripe_user_authentication` to be required
24
+ * Add support for `adaptive_pricing` on `Checkout.SessionCreateParams` and `Checkout.Session`
25
+ * Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `Checkout.SessionCreateParams.payment_method_options.sepa_debit`
26
+ * Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
27
+ * Add support for `capture_method` on `Checkout.SessionCreateParams.payment_method_options.kakao_pay`, `Checkout.SessionCreateParams.payment_method_options.kr_card`, `Checkout.SessionCreateParams.payment_method_options.naver_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, and `Checkout.SessionCreateParams.payment_method_options.samsung_pay`
28
+ * Add support for new value `subscribe` on enums `Checkout.Session.submit_type`, `Checkout.SessionCreateParams.submit_type`, `PaymentLink.submit_type`, and `PaymentLinkCreateParams.submit_type`
29
+ * Add support for new value `li_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
30
+ * Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
31
+ * Add support for new value `financial_account_statement` on enums `File.purpose` and `FileListParams.purpose`
32
+ * Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift`
33
+ * Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
34
+ * Add support for `merchant_amount` and `merchant_currency` on `Issuing.AuthorizationCreateParams.testHelpers`
35
+ * Change `Issuing.AuthorizationCreateParams.testHelpers.amount` to be optional
36
+ * Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
37
+ * Add support for new value `link` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
38
+ * Add support for `submit_type` on `PaymentLinkUpdateParams`
39
+ * Add support for `trace_id` on `Payout`
40
+ * Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish`
41
+ * Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `string | null`
42
+ * Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version`
43
+ * [#2215](https://github.com/stripe/stripe-node/pull/2215) Remove empty resources created for service groupings
44
+ * Remove `Stripe.V2.BillingResource`, `Stripe.V2.CoreResource`, and `Stripe.V2Resource` types from the public interface as they are no longer needed. SDK usage will not be affected but any references to these types in your application will need to be removed.
45
+
3
46
  ## 17.4.0-beta.3 - 2024-11-14
4
47
  * [#2226](https://github.com/stripe/stripe-node/pull/2226) Update generated code for beta
5
48
  * Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.4.0-beta.3
1
+ 17.5.0-beta.1
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
39
+ Stripe.PACKAGE_VERSION = '17.5.0-beta.1';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
36
+ Stripe.PACKAGE_VERSION = '17.5.0-beta.1';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "17.4.0-beta.3",
3
+ "version": "17.5.0-beta.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -88,7 +88,7 @@ declare module 'stripe' {
88
88
  namespace AccountManagement {
89
89
  interface Features {
90
90
  /**
91
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
91
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
92
92
  */
93
93
  disable_stripe_user_authentication: boolean;
94
94
 
@@ -111,7 +111,7 @@ declare module 'stripe' {
111
111
  namespace AccountOnboarding {
112
112
  interface Features {
113
113
  /**
114
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
114
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
115
115
  */
116
116
  disable_stripe_user_authentication: boolean;
117
117
 
@@ -134,7 +134,7 @@ declare module 'stripe' {
134
134
  namespace Balances {
135
135
  interface Features {
136
136
  /**
137
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
137
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
138
138
  */
139
139
  disable_stripe_user_authentication: boolean;
140
140
 
@@ -224,7 +224,7 @@ declare module 'stripe' {
224
224
  namespace NotificationBanner {
225
225
  interface Features {
226
226
  /**
227
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
227
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
228
228
  */
229
229
  disable_stripe_user_authentication: boolean;
230
230
 
@@ -313,7 +313,7 @@ declare module 'stripe' {
313
313
  namespace Payouts {
314
314
  interface Features {
315
315
  /**
316
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
316
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
317
317
  */
318
318
  disable_stripe_user_authentication: boolean;
319
319
 
@@ -158,7 +158,7 @@ declare module 'stripe' {
158
158
  namespace AccountManagement {
159
159
  interface Features {
160
160
  /**
161
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
161
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
162
162
  */
163
163
  disable_stripe_user_authentication?: boolean;
164
164
 
@@ -184,7 +184,7 @@ declare module 'stripe' {
184
184
  namespace AccountOnboarding {
185
185
  interface Features {
186
186
  /**
187
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
187
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
188
188
  */
189
189
  disable_stripe_user_authentication?: boolean;
190
190
 
@@ -252,7 +252,7 @@ declare module 'stripe' {
252
252
  namespace Balances {
253
253
  interface Features {
254
254
  /**
255
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
255
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
256
256
  */
257
257
  disable_stripe_user_authentication?: boolean;
258
258
 
@@ -373,7 +373,7 @@ declare module 'stripe' {
373
373
  namespace FinancialAccount {
374
374
  interface Features {
375
375
  /**
376
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
376
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
377
377
  */
378
378
  disable_stripe_user_authentication?: boolean;
379
379
 
@@ -507,7 +507,7 @@ declare module 'stripe' {
507
507
  namespace NotificationBanner {
508
508
  interface Features {
509
509
  /**
510
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
510
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
511
511
  */
512
512
  disable_stripe_user_authentication?: boolean;
513
513
 
@@ -621,7 +621,7 @@ declare module 'stripe' {
621
621
  namespace Payouts {
622
622
  interface Features {
623
623
  /**
624
- * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
624
+ * Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
625
625
  */
626
626
  disable_stripe_user_authentication?: boolean;
627
627
 
@@ -210,7 +210,7 @@ declare module 'stripe' {
210
210
  */
211
211
  proration_behavior: SubscriptionUpdate.ProrationBehavior;
212
212
 
213
- schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
213
+ schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd;
214
214
  }
215
215
 
216
216
  namespace SubscriptionUpdate {
@@ -312,6 +312,16 @@ declare module 'stripe' {
312
312
  }
313
313
 
314
314
  interface Outcome {
315
+ /**
316
+ * For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
317
+ */
318
+ network_advice_code: string | null;
319
+
320
+ /**
321
+ * For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
322
+ */
323
+ network_decline_code: string | null;
324
+
315
325
  /**
316
326
  * Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
317
327
  */
@@ -619,7 +629,54 @@ declare module 'stripe' {
619
629
 
620
630
  interface Alma {}
621
631
 
622
- interface AmazonPay {}
632
+ interface AmazonPay {
633
+ funding?: AmazonPay.Funding;
634
+ }
635
+
636
+ namespace AmazonPay {
637
+ interface Funding {
638
+ card?: Funding.Card;
639
+
640
+ /**
641
+ * funding type of the underlying payment method.
642
+ */
643
+ type: 'card' | null;
644
+ }
645
+
646
+ namespace Funding {
647
+ interface Card {
648
+ /**
649
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
650
+ */
651
+ brand: string | null;
652
+
653
+ /**
654
+ * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
655
+ */
656
+ country: string | null;
657
+
658
+ /**
659
+ * Two-digit number representing the card's expiration month.
660
+ */
661
+ exp_month: number | null;
662
+
663
+ /**
664
+ * Four-digit number representing the card's expiration year.
665
+ */
666
+ exp_year: number | null;
667
+
668
+ /**
669
+ * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
670
+ */
671
+ funding: string | null;
672
+
673
+ /**
674
+ * The last four digits of the card.
675
+ */
676
+ last4: string | null;
677
+ }
678
+ }
679
+ }
623
680
 
624
681
  interface AuBecsDebit {
625
682
  /**
@@ -733,6 +790,11 @@ declare module 'stripe' {
733
790
  */
734
791
  amount_authorized: number | null;
735
792
 
793
+ /**
794
+ * The latest amount intended to be authorized by this charge.
795
+ */
796
+ amount_requested?: number | null;
797
+
736
798
  /**
737
799
  * Authorization code on the charge.
738
800
  */
@@ -837,6 +899,8 @@ declare module 'stripe' {
837
899
 
838
900
  overcapture?: Card.Overcapture;
839
901
 
902
+ partial_authorization?: Card.PartialAuthorization;
903
+
840
904
  /**
841
905
  * Populated if this transaction used 3D Secure authentication.
842
906
  */
@@ -960,6 +1024,21 @@ declare module 'stripe' {
960
1024
  type Status = 'available' | 'unavailable';
961
1025
  }
962
1026
 
1027
+ interface PartialAuthorization {
1028
+ /**
1029
+ * Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
1030
+ */
1031
+ status: PartialAuthorization.Status;
1032
+ }
1033
+
1034
+ namespace PartialAuthorization {
1035
+ type Status =
1036
+ | 'declined'
1037
+ | 'fully_authorized'
1038
+ | 'not_requested'
1039
+ | 'partially_authorized';
1040
+ }
1041
+
963
1042
  interface ThreeDSecure {
964
1043
  /**
965
1044
  * For authenticated transactions: how the customer was authenticated by
@@ -2087,7 +2166,54 @@ declare module 'stripe' {
2087
2166
 
2088
2167
  interface Rechnung {}
2089
2168
 
2090
- interface RevolutPay {}
2169
+ interface RevolutPay {
2170
+ funding?: RevolutPay.Funding;
2171
+ }
2172
+
2173
+ namespace RevolutPay {
2174
+ interface Funding {
2175
+ card?: Funding.Card;
2176
+
2177
+ /**
2178
+ * funding type of the underlying payment method.
2179
+ */
2180
+ type: 'card' | null;
2181
+ }
2182
+
2183
+ namespace Funding {
2184
+ interface Card {
2185
+ /**
2186
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
2187
+ */
2188
+ brand: string | null;
2189
+
2190
+ /**
2191
+ * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
2192
+ */
2193
+ country: string | null;
2194
+
2195
+ /**
2196
+ * Two-digit number representing the card's expiration month.
2197
+ */
2198
+ exp_month: number | null;
2199
+
2200
+ /**
2201
+ * Four-digit number representing the card's expiration year.
2202
+ */
2203
+ exp_year: number | null;
2204
+
2205
+ /**
2206
+ * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
2207
+ */
2208
+ funding: string | null;
2209
+
2210
+ /**
2211
+ * The last four digits of the card.
2212
+ */
2213
+ last4: string | null;
2214
+ }
2215
+ }
2216
+ }
2091
2217
 
2092
2218
  interface SamsungPay {
2093
2219
  /**
@@ -2045,6 +2045,15 @@ declare module 'stripe' {
2045
2045
 
2046
2046
  namespace Permissions {
2047
2047
  interface Update {
2048
+ /**
2049
+ * Determines which entity is allowed to update the line items.
2050
+ *
2051
+ * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2052
+ *
2053
+ * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2054
+ */
2055
+ line_items?: Update.LineItems | null;
2056
+
2048
2057
  /**
2049
2058
  * Determines which entity is allowed to update the shipping details.
2050
2059
  *
@@ -2056,6 +2065,8 @@ declare module 'stripe' {
2056
2065
  }
2057
2066
 
2058
2067
  namespace Update {
2068
+ type LineItems = 'client_only' | 'server_only';
2069
+
2059
2070
  type ShippingDetails = 'client_only' | 'server_only';
2060
2071
  }
2061
2072
  }
@@ -304,7 +304,9 @@ declare module 'stripe' {
304
304
 
305
305
  interface AutomaticTax {
306
306
  /**
307
- * Set to true to enable automatic taxes.
307
+ * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
308
+ *
309
+ * Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
308
310
  */
309
311
  enabled: boolean;
310
312
 
@@ -685,6 +687,11 @@ declare module 'stripe' {
685
687
  */
686
688
  dynamic_tax_rates?: Array<string>;
687
689
 
690
+ /**
691
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
692
+ */
693
+ metadata?: Stripe.MetadataParam;
694
+
688
695
  /**
689
696
  * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
690
697
  */
@@ -2207,6 +2214,15 @@ declare module 'stripe' {
2207
2214
 
2208
2215
  namespace Permissions {
2209
2216
  interface Update {
2217
+ /**
2218
+ * Determines which entity is allowed to update the line items.
2219
+ *
2220
+ * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2221
+ *
2222
+ * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2223
+ */
2224
+ line_items?: Update.LineItems;
2225
+
2210
2226
  /**
2211
2227
  * Determines which entity is allowed to update the shipping details.
2212
2228
  *
@@ -2218,6 +2234,8 @@ declare module 'stripe' {
2218
2234
  }
2219
2235
 
2220
2236
  namespace Update {
2237
+ type LineItems = 'client_only' | 'server_only';
2238
+
2221
2239
  type ShippingDetails = 'client_only' | 'server_only';
2222
2240
  }
2223
2241
  }
@@ -2824,6 +2842,23 @@ declare module 'stripe' {
2824
2842
  */
2825
2843
  expand?: Array<string>;
2826
2844
 
2845
+ /**
2846
+ * A list of items the customer is purchasing.
2847
+ *
2848
+ * When updating line items, the entire array of line items must be retransmitted.
2849
+ *
2850
+ * To retain an existing line item, specify its `id`.
2851
+ *
2852
+ * To update an existing line item, specify its `id` along with the new values of the fields to be updated.
2853
+ *
2854
+ * To add a new line item, specify a `price` and `quantity`. Recurring prices are not supported yet.
2855
+ *
2856
+ * To remove an existing line item, omit the line item's ID from the retransmitted array.
2857
+ *
2858
+ * To reorder a line item, specify it at the desired position in the retransmitted array.
2859
+ */
2860
+ line_items?: Array<SessionUpdateParams.LineItem>;
2861
+
2827
2862
  /**
2828
2863
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2829
2864
  */
@@ -2893,6 +2928,57 @@ declare module 'stripe' {
2893
2928
  }
2894
2929
  }
2895
2930
 
2931
+ interface LineItem {
2932
+ /**
2933
+ * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
2934
+ */
2935
+ adjustable_quantity?: LineItem.AdjustableQuantity;
2936
+
2937
+ /**
2938
+ * ID of an existing line item.
2939
+ */
2940
+ id?: string;
2941
+
2942
+ /**
2943
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2944
+ */
2945
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
2946
+
2947
+ /**
2948
+ * The ID of the [Price](https://stripe.com/docs/api/prices).
2949
+ */
2950
+ price?: string;
2951
+
2952
+ /**
2953
+ * The quantity of the line item being purchased.
2954
+ */
2955
+ quantity?: number;
2956
+
2957
+ /**
2958
+ * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
2959
+ */
2960
+ tax_rates?: Stripe.Emptyable<Array<string>>;
2961
+ }
2962
+
2963
+ namespace LineItem {
2964
+ interface AdjustableQuantity {
2965
+ /**
2966
+ * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
2967
+ */
2968
+ enabled: boolean;
2969
+
2970
+ /**
2971
+ * The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
2972
+ */
2973
+ maximum?: number;
2974
+
2975
+ /**
2976
+ * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
2977
+ */
2978
+ minimum?: number;
2979
+ }
2980
+ }
2981
+
2896
2982
  interface ShippingOption {
2897
2983
  /**
2898
2984
  * The ID of the Shipping Rate to use for this shipping option.
@@ -110,6 +110,7 @@ declare module 'stripe' {
110
110
  | InvoiceFinalizedEvent
111
111
  | InvoiceMarkedUncollectibleEvent
112
112
  | InvoiceOverdueEvent
113
+ | InvoiceOverpaidEvent
113
114
  | InvoicePaidEvent
114
115
  | InvoicePaymentOverpaidEvent
115
116
  | InvoicePaymentActionRequiredEvent
@@ -1998,6 +1999,22 @@ declare module 'stripe' {
1998
1999
  }
1999
2000
  }
2000
2001
 
2002
+ /**
2003
+ * Occurs when an invoice transitions to paid with a non-zero amount_overpaid.
2004
+ */
2005
+ interface InvoiceOverpaidEvent extends EventBase {
2006
+ type: 'invoice.overpaid';
2007
+ data: InvoiceOverpaidEvent.Data;
2008
+ }
2009
+
2010
+ namespace InvoiceOverpaidEvent {
2011
+ interface Data extends Stripe.Event.Data {
2012
+ object: Stripe.Invoice;
2013
+
2014
+ previous_attributes?: Partial<Stripe.Invoice>;
2015
+ }
2016
+ }
2017
+
2001
2018
  /**
2002
2019
  * Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band.
2003
2020
  */
package/types/Events.d.ts CHANGED
@@ -194,6 +194,7 @@ declare module 'stripe' {
194
194
  | 'invoice.finalized'
195
195
  | 'invoice.marked_uncollectible'
196
196
  | 'invoice.overdue'
197
+ | 'invoice.overpaid'
197
198
  | 'invoice.paid'
198
199
  | 'invoice.payment.overpaid'
199
200
  | 'invoice.payment_action_required'
@@ -796,6 +796,16 @@ declare module 'stripe' {
796
796
  */
797
797
  message?: string;
798
798
 
799
+ /**
800
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
801
+ */
802
+ network_advice_code?: string;
803
+
804
+ /**
805
+ * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
806
+ */
807
+ network_decline_code?: string;
808
+
799
809
  /**
800
810
  * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
801
811
  */
@@ -342,7 +342,7 @@ declare module 'stripe' {
342
342
  payment_method_options?: PaymentSettings.PaymentMethodOptions;
343
343
 
344
344
  /**
345
- * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
345
+ * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
346
346
  */
347
347
  payment_method_types?: Stripe.Emptyable<
348
348
  Array<PaymentSettings.PaymentMethodType>
@@ -1152,7 +1152,7 @@ declare module 'stripe' {
1152
1152
  payment_method_options?: PaymentSettings.PaymentMethodOptions;
1153
1153
 
1154
1154
  /**
1155
- * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
1155
+ * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
1156
1156
  */
1157
1157
  payment_method_types?: Stripe.Emptyable<
1158
1158
  Array<PaymentSettings.PaymentMethodType>
@@ -16,6 +16,8 @@ declare module 'stripe' {
16
16
  */
17
17
  object: 'item';
18
18
 
19
+ adjustable_quantity?: LineItem.AdjustableQuantity | null;
20
+
19
21
  /**
20
22
  * Total discount amount applied. If no discounts were applied, defaults to 0.
21
23
  */
@@ -44,13 +46,20 @@ declare module 'stripe' {
44
46
  /**
45
47
  * An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
46
48
  */
47
- description?: string;
49
+ description: string | null;
48
50
 
49
51
  /**
50
52
  * The discounts applied to the line item.
51
53
  */
52
54
  discounts?: Array<LineItem.Discount>;
53
55
 
56
+ display?: LineItem.Display;
57
+
58
+ /**
59
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
60
+ */
61
+ metadata?: Stripe.Metadata | null;
62
+
54
63
  /**
55
64
  * The price used to generate the line item.
56
65
  */
@@ -75,6 +84,14 @@ declare module 'stripe' {
75
84
  }
76
85
 
77
86
  namespace LineItem {
87
+ interface AdjustableQuantity {
88
+ enabled: boolean;
89
+
90
+ maximum: number | null;
91
+
92
+ minimum: number | null;
93
+ }
94
+
78
95
  interface Discount {
79
96
  /**
80
97
  * The amount discounted.
@@ -90,6 +107,14 @@ declare module 'stripe' {
90
107
  discount: Stripe.Discount;
91
108
  }
92
109
 
110
+ interface Display {
111
+ description: string | null;
112
+
113
+ images: Array<string>;
114
+
115
+ name: string;
116
+ }
117
+
93
118
  interface Tax {
94
119
  /**
95
120
  * Amount of tax applied for this rate.
@@ -333,6 +333,16 @@ declare module 'stripe' {
333
333
  */
334
334
  message?: string;
335
335
 
336
+ /**
337
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
338
+ */
339
+ network_advice_code?: string;
340
+
341
+ /**
342
+ * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
343
+ */
344
+ network_decline_code?: string;
345
+
336
346
  /**
337
347
  * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
338
348
  */
@@ -2042,6 +2052,11 @@ declare module 'stripe' {
2042
2052
  */
2043
2053
  request_overcapture?: Card.RequestOvercapture;
2044
2054
 
2055
+ /**
2056
+ * Request partial authorization on this PaymentIntent.
2057
+ */
2058
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2059
+
2045
2060
  /**
2046
2061
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
2047
2062
  */
@@ -2210,6 +2225,8 @@ declare module 'stripe' {
2210
2225
 
2211
2226
  type RequestOvercapture = 'if_available' | 'never';
2212
2227
 
2228
+ type RequestPartialAuthorization = 'if_available' | 'never';
2229
+
2213
2230
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
2214
2231
 
2215
2232
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2325,6 +2325,11 @@ declare module 'stripe' {
2325
2325
  */
2326
2326
  request_overcapture?: Card.RequestOvercapture;
2327
2327
 
2328
+ /**
2329
+ * Request partial authorization on this PaymentIntent.
2330
+ */
2331
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2332
+
2328
2333
  /**
2329
2334
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
2330
2335
  */
@@ -2484,6 +2489,8 @@ declare module 'stripe' {
2484
2489
 
2485
2490
  type RequestOvercapture = 'if_available' | 'never';
2486
2491
 
2492
+ type RequestPartialAuthorization = 'if_available' | 'never';
2493
+
2487
2494
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
2488
2495
 
2489
2496
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -6081,6 +6088,11 @@ declare module 'stripe' {
6081
6088
  */
6082
6089
  request_overcapture?: Card.RequestOvercapture;
6083
6090
 
6091
+ /**
6092
+ * Request partial authorization on this PaymentIntent.
6093
+ */
6094
+ request_partial_authorization?: Card.RequestPartialAuthorization;
6095
+
6084
6096
  /**
6085
6097
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
6086
6098
  */
@@ -6240,6 +6252,8 @@ declare module 'stripe' {
6240
6252
 
6241
6253
  type RequestOvercapture = 'if_available' | 'never';
6242
6254
 
6255
+ type RequestPartialAuthorization = 'if_available' | 'never';
6256
+
6243
6257
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
6244
6258
 
6245
6259
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -10592,6 +10606,11 @@ declare module 'stripe' {
10592
10606
  */
10593
10607
  request_overcapture?: Card.RequestOvercapture;
10594
10608
 
10609
+ /**
10610
+ * Request partial authorization on this PaymentIntent.
10611
+ */
10612
+ request_partial_authorization?: Card.RequestPartialAuthorization;
10613
+
10595
10614
  /**
10596
10615
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
10597
10616
  */
@@ -10751,6 +10770,8 @@ declare module 'stripe' {
10751
10770
 
10752
10771
  type RequestOvercapture = 'if_available' | 'never';
10753
10772
 
10773
+ type RequestPartialAuthorization = 'if_available' | 'never';
10774
+
10754
10775
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
10755
10776
 
10756
10777
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -12191,6 +12212,11 @@ declare module 'stripe' {
12191
12212
  */
12192
12213
  metadata?: Stripe.MetadataParam;
12193
12214
 
12215
+ /**
12216
+ * Payment method-specific configuration for this PaymentIntent.
12217
+ */
12218
+ payment_method_options?: PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions;
12219
+
12194
12220
  /**
12195
12221
  * Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
12196
12222
  */
@@ -12229,6 +12255,26 @@ declare module 'stripe' {
12229
12255
  }
12230
12256
  }
12231
12257
 
12258
+ interface PaymentMethodOptions {
12259
+ /**
12260
+ * Configuration for any card payments attempted on this PaymentIntent.
12261
+ */
12262
+ card?: PaymentMethodOptions.Card;
12263
+ }
12264
+
12265
+ namespace PaymentMethodOptions {
12266
+ interface Card {
12267
+ /**
12268
+ * Request partial authorization on this PaymentIntent.
12269
+ */
12270
+ request_partial_authorization?: Card.RequestPartialAuthorization;
12271
+ }
12272
+
12273
+ namespace Card {
12274
+ type RequestPartialAuthorization = 'if_available' | 'never';
12275
+ }
12276
+ }
12277
+
12232
12278
  interface TransferData {
12233
12279
  /**
12234
12280
  * The amount that will be transferred automatically when a charge succeeds.
@@ -188,7 +188,9 @@ declare module 'stripe' {
188
188
 
189
189
  interface AutomaticTax {
190
190
  /**
191
- * If `true`, tax will be calculated automatically using the customer's location.
191
+ * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
192
+ *
193
+ * Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation.
192
194
  */
193
195
  enabled: boolean;
194
196
 
@@ -1188,7 +1190,9 @@ declare module 'stripe' {
1188
1190
 
1189
1191
  interface AutomaticTax {
1190
1192
  /**
1191
- * If `true`, tax will be calculated automatically using the customer's location.
1193
+ * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
1194
+ *
1195
+ * Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation.
1192
1196
  */
1193
1197
  enabled: boolean;
1194
1198
 
@@ -770,6 +770,16 @@ declare module 'stripe' {
770
770
  */
771
771
  message?: string;
772
772
 
773
+ /**
774
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
775
+ */
776
+ network_advice_code?: string;
777
+
778
+ /**
779
+ * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
780
+ */
781
+ network_decline_code?: string;
782
+
773
783
  /**
774
784
  * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
775
785
  */
@@ -589,6 +589,16 @@ declare module 'stripe' {
589
589
  */
590
590
  message?: string;
591
591
 
592
+ /**
593
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
594
+ */
595
+ network_advice_code?: string;
596
+
597
+ /**
598
+ * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
599
+ */
600
+ network_decline_code?: string;
601
+
592
602
  /**
593
603
  * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
594
604
  */
@@ -214,6 +214,16 @@ declare module 'stripe' {
214
214
  */
215
215
  message?: string;
216
216
 
217
+ /**
218
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
219
+ */
220
+ network_advice_code?: string;
221
+
222
+ /**
223
+ * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
224
+ */
225
+ network_decline_code?: string;
226
+
217
227
  /**
218
228
  * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
219
229
  */
@@ -73,7 +73,7 @@ declare module 'stripe' {
73
73
 
74
74
  interface LocationUpdateParams {
75
75
  /**
76
- * The full address of the location. If you're updating the `address` field, avoid changing the `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location.
76
+ * The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location.
77
77
  */
78
78
  address?: Stripe.AddressParam;
79
79
 
@@ -256,6 +256,7 @@ declare module 'stripe' {
256
256
  | 'invoice.finalized'
257
257
  | 'invoice.marked_uncollectible'
258
258
  | 'invoice.overdue'
259
+ | 'invoice.overpaid'
259
260
  | 'invoice.paid'
260
261
  | 'invoice.payment.overpaid'
261
262
  | 'invoice.payment_action_required'
@@ -573,6 +574,7 @@ declare module 'stripe' {
573
574
  | 'invoice.finalized'
574
575
  | 'invoice.marked_uncollectible'
575
576
  | 'invoice.overdue'
577
+ | 'invoice.overpaid'
576
578
  | 'invoice.paid'
577
579
  | 'invoice.payment.overpaid'
578
580
  | 'invoice.payment_action_required'