stripe 16.9.0-beta.1 → 16.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +132 -809
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -17
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -40
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +4 -33
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -17
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -26
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +2 -30
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +2 -6
  34. package/types/AccountSessions.d.ts +0 -45
  35. package/types/AccountSessionsResource.d.ts +0 -260
  36. package/types/Accounts.d.ts +1 -106
  37. package/types/AccountsResource.d.ts +0 -246
  38. package/types/Charges.d.ts +3 -68
  39. package/types/ChargesResource.d.ts +6 -1296
  40. package/types/Checkout/Sessions.d.ts +6 -186
  41. package/types/Checkout/SessionsResource.d.ts +9 -351
  42. package/types/ConfirmationTokens.d.ts +0 -62
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomerSessions.d.ts +4 -0
  48. package/types/CustomersResource.d.ts +4 -4
  49. package/types/Disputes.d.ts +0 -158
  50. package/types/DisputesResource.d.ts +0 -120
  51. package/types/EventTypes.d.ts +0 -460
  52. package/types/Events.d.ts +0 -85
  53. package/types/FileLinksResource.d.ts +1 -1
  54. package/types/Files.d.ts +1 -0
  55. package/types/FilesResource.d.ts +3 -1
  56. package/types/FinancialConnections/Accounts.d.ts +1 -29
  57. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  58. package/types/FinancialConnections/Sessions.d.ts +1 -49
  59. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  60. package/types/InvoiceItems.d.ts +0 -5
  61. package/types/InvoiceItemsResource.d.ts +0 -98
  62. package/types/InvoiceLineItems.d.ts +3 -23
  63. package/types/Invoices.d.ts +3 -117
  64. package/types/InvoicesResource.d.ts +1759 -5414
  65. package/types/Issuing/CardholdersResource.d.ts +1 -2
  66. package/types/Issuing/Cards.d.ts +1 -1
  67. package/types/LineItems.d.ts +1 -8
  68. package/types/Mandates.d.ts +0 -77
  69. package/types/PaymentIntents.d.ts +4 -488
  70. package/types/PaymentIntentsResource.d.ts +3460 -6970
  71. package/types/PaymentLinks.d.ts +0 -1
  72. package/types/PaymentLinksResource.d.ts +8 -6
  73. package/types/PaymentMethodConfigurations.d.ts +0 -36
  74. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  75. package/types/PaymentMethods.d.ts +0 -62
  76. package/types/PaymentMethodsResource.d.ts +0 -110
  77. package/types/Prices.d.ts +0 -22
  78. package/types/PricesResource.d.ts +0 -22
  79. package/types/Products.d.ts +0 -39
  80. package/types/ProductsResource.d.ts +0 -36
  81. package/types/Quotes.d.ts +1 -596
  82. package/types/QuotesResource.d.ts +266 -3175
  83. package/types/SetupAttempts.d.ts +0 -9
  84. package/types/SetupIntents.d.ts +1 -110
  85. package/types/SetupIntentsResource.d.ts +3 -498
  86. package/types/Sources.d.ts +0 -23
  87. package/types/SubscriptionItems.d.ts +0 -21
  88. package/types/SubscriptionItemsResource.d.ts +0 -109
  89. package/types/SubscriptionSchedules.d.ts +0 -200
  90. package/types/SubscriptionSchedulesResource.d.ts +15 -1233
  91. package/types/Subscriptions.d.ts +1 -82
  92. package/types/SubscriptionsResource.d.ts +4 -349
  93. package/types/Tax/Calculations.d.ts +2 -1
  94. package/types/Tax/CalculationsResource.d.ts +3 -2
  95. package/types/Tax/Transactions.d.ts +2 -1
  96. package/types/TaxIds.d.ts +2 -1
  97. package/types/TaxIdsResource.d.ts +2 -1
  98. package/types/Terminal/Readers.d.ts +0 -278
  99. package/types/Terminal/ReadersResource.d.ts +0 -208
  100. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  101. package/types/TestHelpers/TestClocks.d.ts +15 -0
  102. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  103. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  104. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  105. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  106. package/types/Treasury/InboundTransfers.d.ts +3 -1
  107. package/types/Treasury/OutboundPayments.d.ts +3 -1
  108. package/types/Treasury/OutboundTransfers.d.ts +3 -27
  109. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  110. package/types/Treasury/ReceivedCredits.d.ts +3 -27
  111. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  112. package/types/Treasury/TransactionEntries.d.ts +9 -3
  113. package/types/Treasury/Transactions.d.ts +9 -3
  114. package/types/WebhookEndpointsResource.d.ts +0 -54
  115. package/types/Webhooks.d.ts +37 -28
  116. package/types/index.d.ts +0 -67
  117. package/types/lib.d.ts +0 -12
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  123. package/cjs/resources/GiftCards/Cards.js +0 -23
  124. package/cjs/resources/GiftCards/Transactions.js +0 -33
  125. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  126. package/cjs/resources/Margins.js +0 -22
  127. package/cjs/resources/Orders.js +0 -24
  128. package/cjs/resources/QuotePhases.js +0 -22
  129. package/cjs/resources/Tax/Associations.js +0 -9
  130. package/cjs/resources/Tax/Forms.js +0 -20
  131. package/esm/resources/AccountNotices.js +0 -18
  132. package/esm/resources/Capital/FinancingOffers.js +0 -18
  133. package/esm/resources/Capital/FinancingSummary.js +0 -9
  134. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  135. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  136. package/esm/resources/GiftCards/Cards.js +0 -20
  137. package/esm/resources/GiftCards/Transactions.js +0 -30
  138. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/QuotePhases.js +0 -19
  142. package/esm/resources/Tax/Associations.js +0 -6
  143. package/esm/resources/Tax/Forms.js +0 -17
  144. package/types/AccountNotices.d.ts +0 -113
  145. package/types/AccountNoticesResource.d.ts +0 -98
  146. package/types/Capital/FinancingOffers.d.ts +0 -188
  147. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  148. package/types/Capital/FinancingSummary.d.ts +0 -106
  149. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  150. package/types/Capital/FinancingTransactions.d.ts +0 -135
  151. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  152. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  153. package/types/FinancialConnections/Institutions.d.ts +0 -93
  154. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  155. package/types/GiftCards/Cards.d.ts +0 -118
  156. package/types/GiftCards/CardsResource.d.ts +0 -159
  157. package/types/GiftCards/Transactions.d.ts +0 -129
  158. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  159. package/types/InvoicePayments.d.ts +0 -138
  160. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  161. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  162. package/types/Margins.d.ts +0 -56
  163. package/types/MarginsResource.d.ts +0 -114
  164. package/types/Orders.d.ts +0 -1083
  165. package/types/OrdersResource.d.ts +0 -2763
  166. package/types/QuoteLines.d.ts +0 -634
  167. package/types/QuotePhases.d.ts +0 -198
  168. package/types/QuotePhasesResource.d.ts +0 -67
  169. package/types/QuotePreviewInvoices.d.ts +0 -1530
  170. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  171. package/types/Tax/Associations.d.ts +0 -126
  172. package/types/Tax/AssociationsResource.d.ts +0 -29
  173. package/types/Tax/Forms.d.ts +0 -133
  174. package/types/Tax/FormsResource.d.ts +0 -90
@@ -25,7 +25,7 @@ declare module 'stripe' {
25
25
  billing_address_collection?: SessionCreateParams.BillingAddressCollection;
26
26
 
27
27
  /**
28
- * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`.
28
+ * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded`.
29
29
  */
30
30
  cancel_url?: string;
31
31
 
@@ -187,13 +187,6 @@ declare module 'stripe' {
187
187
  */
188
188
  payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
189
189
 
190
- /**
191
- * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
192
- *
193
- * For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
194
- */
195
- permissions?: SessionCreateParams.Permissions;
196
-
197
190
  /**
198
191
  * Controls phone number collection settings for the session.
199
192
  *
@@ -209,7 +202,7 @@ declare module 'stripe' {
209
202
 
210
203
  /**
211
204
  * The URL to redirect your customer back to after they authenticate or cancel their payment on the
212
- * payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
205
+ * payment method's app or site. This parameter is required if ui_mode is `embedded`
213
206
  * and redirect-based payment methods are enabled on the session.
214
207
  */
215
208
  return_url?: string;
@@ -249,7 +242,7 @@ declare module 'stripe' {
249
242
  /**
250
243
  * The URL to which Stripe should send customers when payment or setup
251
244
  * is complete.
252
- * This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
245
+ * This parameter is not allowed if ui_mode is `embedded`. If you'd like to use
253
246
  * information from the successful Checkout Session on your page, read the
254
247
  * guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
255
248
  */
@@ -905,12 +898,14 @@ declare module 'stripe' {
905
898
  shipping?: PaymentIntentData.Shipping;
906
899
 
907
900
  /**
908
- * Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
901
+ * Text that appears on the customer's statement as the statement descriptor for a non-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).
902
+ *
903
+ * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
909
904
  */
910
905
  statement_descriptor?: string;
911
906
 
912
907
  /**
913
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
908
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
914
909
  */
915
910
  statement_descriptor_suffix?: string;
916
911
 
@@ -1118,11 +1113,6 @@ declare module 'stripe' {
1118
1113
  */
1119
1114
  paypal?: PaymentMethodOptions.Paypal;
1120
1115
 
1121
- /**
1122
- * contains details about the PayTo payment method options.
1123
- */
1124
- payto?: PaymentMethodOptions.Payto;
1125
-
1126
1116
  /**
1127
1117
  * contains details about the Pix payment method options.
1128
1118
  */
@@ -1693,11 +1683,6 @@ declare module 'stripe' {
1693
1683
  */
1694
1684
  reference?: string;
1695
1685
 
1696
- /**
1697
- * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1698
- */
1699
- reference_id?: string;
1700
-
1701
1686
  /**
1702
1687
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
1703
1688
  */
@@ -1715,11 +1700,6 @@ declare module 'stripe' {
1715
1700
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1716
1701
  */
1717
1702
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
1718
-
1719
- /**
1720
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1721
- */
1722
- subsellers?: Array<string>;
1723
1703
  }
1724
1704
 
1725
1705
  namespace Paypal {
@@ -1749,92 +1729,6 @@ declare module 'stripe' {
1749
1729
  type SetupFutureUsage = 'none' | 'off_session';
1750
1730
  }
1751
1731
 
1752
- interface Payto {
1753
- /**
1754
- * Additional fields for Mandate creation
1755
- */
1756
- mandate_options?: Payto.MandateOptions;
1757
-
1758
- /**
1759
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1760
- *
1761
- * 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.
1762
- *
1763
- * 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.
1764
- *
1765
- * 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).
1766
- */
1767
- setup_future_usage?: Payto.SetupFutureUsage;
1768
- }
1769
-
1770
- namespace Payto {
1771
- interface MandateOptions {
1772
- /**
1773
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1774
- */
1775
- amount?: number;
1776
-
1777
- /**
1778
- * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
1779
- */
1780
- amount_type?: MandateOptions.AmountType;
1781
-
1782
- /**
1783
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1784
- */
1785
- end_date?: string;
1786
-
1787
- /**
1788
- * The periodicity at which payments will be collected.
1789
- */
1790
- payment_schedule?: MandateOptions.PaymentSchedule;
1791
-
1792
- /**
1793
- * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1794
- */
1795
- payments_per_period?: number;
1796
-
1797
- /**
1798
- * The purpose for which payments are made. Defaults to retail.
1799
- */
1800
- purpose?: MandateOptions.Purpose;
1801
-
1802
- /**
1803
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1804
- */
1805
- start_date?: string;
1806
- }
1807
-
1808
- namespace MandateOptions {
1809
- type AmountType = 'fixed' | 'maximum';
1810
-
1811
- type PaymentSchedule =
1812
- | 'adhoc'
1813
- | 'annual'
1814
- | 'daily'
1815
- | 'fortnightly'
1816
- | 'monthly'
1817
- | 'quarterly'
1818
- | 'semi_annual'
1819
- | 'weekly';
1820
-
1821
- type Purpose =
1822
- | 'dependant_support'
1823
- | 'government'
1824
- | 'loan'
1825
- | 'mortgage'
1826
- | 'other'
1827
- | 'pension'
1828
- | 'personal'
1829
- | 'retail'
1830
- | 'salary'
1831
- | 'tax'
1832
- | 'utility';
1833
- }
1834
-
1835
- type SetupFutureUsage = 'none' | 'off_session';
1836
- }
1837
-
1838
1732
  interface Pix {
1839
1733
  /**
1840
1734
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -1939,11 +1833,7 @@ declare module 'stripe' {
1939
1833
  | 'payment_method'
1940
1834
  | 'transactions';
1941
1835
 
1942
- type Prefetch =
1943
- | 'balances'
1944
- | 'inferred_balances'
1945
- | 'ownership'
1946
- | 'transactions';
1836
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1947
1837
  }
1948
1838
 
1949
1839
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2007,7 +1897,6 @@ declare module 'stripe' {
2007
1897
  | 'p24'
2008
1898
  | 'paynow'
2009
1899
  | 'paypal'
2010
- | 'payto'
2011
1900
  | 'pix'
2012
1901
  | 'promptpay'
2013
1902
  | 'revolut_pay'
@@ -2019,30 +1908,6 @@ declare module 'stripe' {
2019
1908
  | 'wechat_pay'
2020
1909
  | 'zip';
2021
1910
 
2022
- interface Permissions {
2023
- /**
2024
- * Permissions for updating the Checkout Session.
2025
- */
2026
- update?: Permissions.Update;
2027
- }
2028
-
2029
- namespace Permissions {
2030
- interface Update {
2031
- /**
2032
- * Determines which entity is allowed to update the shipping details.
2033
- *
2034
- * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2035
- *
2036
- * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2037
- */
2038
- shipping_details?: Update.ShippingDetails;
2039
- }
2040
-
2041
- namespace Update {
2042
- type ShippingDetails = 'client_only' | 'server_only';
2043
- }
2044
- }
2045
-
2046
1911
  interface PhoneNumberCollection {
2047
1912
  /**
2048
1913
  * Set to `true` to enable phone number collection.
@@ -2615,7 +2480,7 @@ declare module 'stripe' {
2615
2480
  enabled: boolean;
2616
2481
  }
2617
2482
 
2618
- type UiMode = 'custom' | 'embedded' | 'hosted';
2483
+ type UiMode = 'embedded' | 'hosted';
2619
2484
  }
2620
2485
 
2621
2486
  interface SessionRetrieveParams {
@@ -2626,11 +2491,6 @@ declare module 'stripe' {
2626
2491
  }
2627
2492
 
2628
2493
  interface SessionUpdateParams {
2629
- /**
2630
- * Information about the customer collected within the Checkout Session.
2631
- */
2632
- collected_information?: SessionUpdateParams.CollectedInformation;
2633
-
2634
2494
  /**
2635
2495
  * Specifies which fields in the response should be expanded.
2636
2496
  */
@@ -2640,208 +2500,6 @@ declare module 'stripe' {
2640
2500
  * 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`.
2641
2501
  */
2642
2502
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
2643
-
2644
- /**
2645
- * The shipping rate options to apply to this Session. Up to a maximum of 5.
2646
- */
2647
- shipping_options?: Stripe.Emptyable<
2648
- Array<SessionUpdateParams.ShippingOption>
2649
- >;
2650
- }
2651
-
2652
- namespace SessionUpdateParams {
2653
- interface CollectedInformation {
2654
- /**
2655
- * The shipping details to apply to this Session.
2656
- */
2657
- shipping_details?: CollectedInformation.ShippingDetails;
2658
- }
2659
-
2660
- namespace CollectedInformation {
2661
- interface ShippingDetails {
2662
- /**
2663
- * The address of the customer
2664
- */
2665
- address: ShippingDetails.Address;
2666
-
2667
- /**
2668
- * The name of customer
2669
- */
2670
- name: string;
2671
- }
2672
-
2673
- namespace ShippingDetails {
2674
- interface Address {
2675
- /**
2676
- * City, district, suburb, town, or village.
2677
- */
2678
- city?: string;
2679
-
2680
- /**
2681
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2682
- */
2683
- country: string;
2684
-
2685
- /**
2686
- * Address line 1 (e.g., street, PO Box, or company name).
2687
- */
2688
- line1: string;
2689
-
2690
- /**
2691
- * Address line 2 (e.g., apartment, suite, unit, or building).
2692
- */
2693
- line2?: string;
2694
-
2695
- /**
2696
- * ZIP or postal code.
2697
- */
2698
- postal_code?: string;
2699
-
2700
- /**
2701
- * State, county, province, or region.
2702
- */
2703
- state?: string;
2704
- }
2705
- }
2706
- }
2707
-
2708
- interface ShippingOption {
2709
- /**
2710
- * The ID of the Shipping Rate to use for this shipping option.
2711
- */
2712
- shipping_rate?: string;
2713
-
2714
- /**
2715
- * Parameters to be passed to Shipping Rate creation for this shipping option.
2716
- */
2717
- shipping_rate_data?: ShippingOption.ShippingRateData;
2718
- }
2719
-
2720
- namespace ShippingOption {
2721
- interface ShippingRateData {
2722
- /**
2723
- * The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
2724
- */
2725
- delivery_estimate?: ShippingRateData.DeliveryEstimate;
2726
-
2727
- /**
2728
- * The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
2729
- */
2730
- display_name: string;
2731
-
2732
- /**
2733
- * Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
2734
- */
2735
- fixed_amount?: ShippingRateData.FixedAmount;
2736
-
2737
- /**
2738
- * 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`.
2739
- */
2740
- metadata?: Stripe.MetadataParam;
2741
-
2742
- /**
2743
- * Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2744
- */
2745
- tax_behavior?: ShippingRateData.TaxBehavior;
2746
-
2747
- /**
2748
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2749
- */
2750
- tax_code?: string;
2751
-
2752
- /**
2753
- * The type of calculation to use on the shipping rate.
2754
- */
2755
- type?: 'fixed_amount';
2756
- }
2757
-
2758
- namespace ShippingRateData {
2759
- interface DeliveryEstimate {
2760
- /**
2761
- * The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
2762
- */
2763
- maximum?: DeliveryEstimate.Maximum;
2764
-
2765
- /**
2766
- * The lower bound of the estimated range. If empty, represents no lower bound.
2767
- */
2768
- minimum?: DeliveryEstimate.Minimum;
2769
- }
2770
-
2771
- namespace DeliveryEstimate {
2772
- interface Maximum {
2773
- /**
2774
- * A unit of time.
2775
- */
2776
- unit: Maximum.Unit;
2777
-
2778
- /**
2779
- * Must be greater than 0.
2780
- */
2781
- value: number;
2782
- }
2783
-
2784
- namespace Maximum {
2785
- type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
2786
- }
2787
-
2788
- interface Minimum {
2789
- /**
2790
- * A unit of time.
2791
- */
2792
- unit: Minimum.Unit;
2793
-
2794
- /**
2795
- * Must be greater than 0.
2796
- */
2797
- value: number;
2798
- }
2799
-
2800
- namespace Minimum {
2801
- type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
2802
- }
2803
- }
2804
-
2805
- interface FixedAmount {
2806
- /**
2807
- * A non-negative integer in cents representing how much to charge.
2808
- */
2809
- amount: number;
2810
-
2811
- /**
2812
- * 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).
2813
- */
2814
- currency: string;
2815
-
2816
- /**
2817
- * Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
2818
- */
2819
- currency_options?: {
2820
- [key: string]: FixedAmount.CurrencyOptions;
2821
- };
2822
- }
2823
-
2824
- namespace FixedAmount {
2825
- interface CurrencyOptions {
2826
- /**
2827
- * A non-negative integer in cents representing how much to charge.
2828
- */
2829
- amount: number;
2830
-
2831
- /**
2832
- * Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2833
- */
2834
- tax_behavior?: CurrencyOptions.TaxBehavior;
2835
- }
2836
-
2837
- namespace CurrencyOptions {
2838
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
2839
- }
2840
- }
2841
-
2842
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
2843
- }
2844
- }
2845
2503
  }
2846
2504
 
2847
2505
  interface SessionListParams extends PaginationParams {
@@ -208,14 +208,10 @@ declare module 'stripe' {
208
208
 
209
209
  paypal?: PaymentMethodPreview.Paypal;
210
210
 
211
- payto?: PaymentMethodPreview.Payto;
212
-
213
211
  pix?: PaymentMethodPreview.Pix;
214
212
 
215
213
  promptpay?: PaymentMethodPreview.Promptpay;
216
214
 
217
- rechnung?: PaymentMethodPreview.Rechnung;
218
-
219
215
  revolut_pay?: PaymentMethodPreview.RevolutPay;
220
216
 
221
217
  sepa_debit?: PaymentMethodPreview.SepaDebit;
@@ -1263,11 +1259,6 @@ declare module 'stripe' {
1263
1259
  interface Paynow {}
1264
1260
 
1265
1261
  interface Paypal {
1266
- /**
1267
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1268
- */
1269
- fingerprint?: string | null;
1270
-
1271
1262
  /**
1272
1263
  * Owner's email. Values are provided by PayPal directly
1273
1264
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1278,58 +1269,12 @@ declare module 'stripe' {
1278
1269
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1279
1270
  */
1280
1271
  payer_id: string | null;
1281
-
1282
- /**
1283
- * Owner's verified email. Values are verified or provided by PayPal directly
1284
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1285
- */
1286
- verified_email?: string | null;
1287
- }
1288
-
1289
- interface Payto {
1290
- /**
1291
- * Bank-State-Branch number of the bank account.
1292
- */
1293
- bsb_number: string | null;
1294
-
1295
- /**
1296
- * Last four digits of the bank account number.
1297
- */
1298
- last4: string | null;
1299
-
1300
- /**
1301
- * The PayID alias for the bank account.
1302
- */
1303
- pay_id: string | null;
1304
1272
  }
1305
1273
 
1306
1274
  interface Pix {}
1307
1275
 
1308
1276
  interface Promptpay {}
1309
1277
 
1310
- interface Rechnung {
1311
- dob?: Rechnung.Dob;
1312
- }
1313
-
1314
- namespace Rechnung {
1315
- interface Dob {
1316
- /**
1317
- * The day of birth, between 1 and 31.
1318
- */
1319
- day: number;
1320
-
1321
- /**
1322
- * The month of birth, between 1 and 12.
1323
- */
1324
- month: number;
1325
-
1326
- /**
1327
- * The four-digit year of birth.
1328
- */
1329
- year: number;
1330
- }
1331
- }
1332
-
1333
1278
  interface RevolutPay {}
1334
1279
 
1335
1280
  interface SepaDebit {
@@ -1419,10 +1364,8 @@ declare module 'stripe' {
1419
1364
  | 'p24'
1420
1365
  | 'paynow'
1421
1366
  | 'paypal'
1422
- | 'payto'
1423
1367
  | 'pix'
1424
1368
  | 'promptpay'
1425
- | 'rechnung'
1426
1369
  | 'revolut_pay'
1427
1370
  | 'sepa_debit'
1428
1371
  | 'sofort'
@@ -1438,11 +1381,6 @@ declare module 'stripe' {
1438
1381
  */
1439
1382
  account_holder_type: UsBankAccount.AccountHolderType | null;
1440
1383
 
1441
- /**
1442
- * Account number of the bank account.
1443
- */
1444
- account_number?: string | null;
1445
-
1446
1384
  /**
1447
1385
  * Account type: checkings or savings. Defaults to checking if omitted.
1448
1386
  */
@@ -113,7 +113,7 @@ declare module 'stripe' {
113
113
  amount_off: number;
114
114
  }
115
115
 
116
- type Duration = 'forever' | 'once' | 'repeating' | 'variable';
116
+ type Duration = 'forever' | 'once' | 'repeating';
117
117
  }
118
118
 
119
119
  /**
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  amount_off: number;
87
87
  }
88
88
 
89
- type Duration = 'forever' | 'once' | 'repeating' | 'variable';
89
+ type Duration = 'forever' | 'once' | 'repeating';
90
90
  }
91
91
 
92
92
  interface CouponRetrieveParams {
@@ -106,10 +106,6 @@ declare module 'stripe' {
106
106
  */
107
107
  pdf: string;
108
108
 
109
- post_payment_amount?: number;
110
-
111
- pre_payment_amount?: number;
112
-
113
109
  /**
114
110
  * Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
115
111
  */
@@ -120,11 +116,6 @@ declare module 'stripe' {
120
116
  */
121
117
  refund: string | Stripe.Refund | null;
122
118
 
123
- /**
124
- * Refunds related to this credit note.
125
- */
126
- refunds?: Array<CreditNote.Refund>;
127
-
128
119
  /**
129
120
  * The details of the cost of shipping, including the ShippingRate applied to the invoice.
130
121
  */
@@ -190,18 +181,6 @@ declare module 'stripe' {
190
181
  | 'order_change'
191
182
  | 'product_unsatisfactory';
192
183
 
193
- interface Refund {
194
- /**
195
- * Amount of the refund that applies to this credit note, in cents (or local equivalent).
196
- */
197
- amount_refunded: number;
198
-
199
- /**
200
- * ID of the refund.
201
- */
202
- refund: string | Stripe.Refund;
203
- }
204
-
205
184
  interface ShippingCost {
206
185
  /**
207
186
  * Total shipping cost before any taxes are applied.