stripe 17.8.0-beta.1 → 18.0.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 (208) hide show
  1. package/CHANGELOG.md +246 -1075
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  7. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  8. package/cjs/resources/Invoices.js +0 -26
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionItems.js +0 -9
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Terminal/Readers.js +0 -12
  14. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  15. package/cjs/resources.js +12 -48
  16. package/cjs/stripe.core.js +3 -14
  17. package/esm/apiVersion.js +1 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  20. package/esm/resources/Invoices.js +0 -26
  21. package/esm/resources/PaymentIntents.js +0 -8
  22. package/esm/resources/Quotes.js +0 -32
  23. package/esm/resources/SubscriptionItems.js +0 -9
  24. package/esm/resources/SubscriptionSchedules.js +0 -4
  25. package/esm/resources/Terminal/Readers.js +0 -12
  26. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  27. package/esm/resources.js +1 -33
  28. package/esm/stripe.core.js +3 -14
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -243
  33. package/types/Accounts.d.ts +48 -211
  34. package/types/AccountsResource.d.ts +86 -503
  35. package/types/ApplicationFees.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +3 -1
  37. package/types/BalanceTransactionsResource.d.ts +1 -1
  38. package/types/BankAccounts.d.ts +9 -1
  39. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  40. package/types/Billing/CreditGrants.d.ts +2 -2
  41. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  42. package/types/Billing/Meters.d.ts +1 -1
  43. package/types/Billing/MetersResource.d.ts +2 -2
  44. package/types/Capabilities.d.ts +8 -0
  45. package/types/Cards.d.ts +1 -9
  46. package/types/Charges.d.ts +56 -153
  47. package/types/ChargesResource.d.ts +1 -1295
  48. package/types/Checkout/Sessions.d.ts +62 -336
  49. package/types/Checkout/SessionsResource.d.ts +69 -287
  50. package/types/ConfirmationTokens.d.ts +50 -99
  51. package/types/Coupons.d.ts +1 -1
  52. package/types/CouponsResource.d.ts +1 -1
  53. package/types/CreditNoteLineItems.d.ts +24 -22
  54. package/types/CreditNotes.d.ts +26 -23
  55. package/types/CreditNotesResource.d.ts +0 -15
  56. package/types/CustomerBalanceTransactions.d.ts +8 -1
  57. package/types/Customers.d.ts +3 -3
  58. package/types/CustomersResource.d.ts +3 -21
  59. package/types/EventTypes.d.ts +85 -545
  60. package/types/Events.d.ts +8 -93
  61. package/types/FinancialConnections/Accounts.d.ts +1 -29
  62. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  63. package/types/FinancialConnections/Sessions.d.ts +1 -49
  64. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  65. package/types/InvoiceItems.d.ts +60 -31
  66. package/types/InvoiceItemsResource.d.ts +26 -120
  67. package/types/InvoiceLineItems.d.ts +154 -91
  68. package/types/InvoicePayments.d.ts +2 -16
  69. package/types/InvoicePaymentsResource.d.ts +74 -0
  70. package/types/Invoices.d.ts +93 -214
  71. package/types/InvoicesResource.d.ts +307 -6599
  72. package/types/Issuing/Authorizations.d.ts +1 -1
  73. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  74. package/types/Issuing/CardholdersResource.d.ts +1 -2
  75. package/types/Issuing/Transactions.d.ts +0 -2
  76. package/types/Issuing/TransactionsResource.d.ts +0 -5
  77. package/types/LineItems.d.ts +0 -32
  78. package/types/Mandates.d.ts +8 -77
  79. package/types/PaymentIntents.d.ts +56 -648
  80. package/types/PaymentIntentsResource.d.ts +4120 -8122
  81. package/types/PaymentLinks.d.ts +49 -6
  82. package/types/PaymentLinksResource.d.ts +77 -12
  83. package/types/PaymentMethodConfigurations.d.ts +63 -135
  84. package/types/PaymentMethodConfigurationsResource.d.ts +116 -216
  85. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  86. package/types/PaymentMethods.d.ts +50 -99
  87. package/types/PaymentMethodsResource.d.ts +53 -148
  88. package/types/Persons.d.ts +17 -9
  89. package/types/Plans.d.ts +0 -7
  90. package/types/PlansResource.d.ts +0 -7
  91. package/types/Prices.d.ts +0 -33
  92. package/types/PricesResource.d.ts +2 -35
  93. package/types/Products.d.ts +0 -39
  94. package/types/ProductsResource.d.ts +0 -36
  95. package/types/Quotes.d.ts +1 -591
  96. package/types/QuotesResource.d.ts +200 -2532
  97. package/types/Refunds.d.ts +18 -14
  98. package/types/Reviews.d.ts +3 -2
  99. package/types/SetupAttempts.d.ts +15 -38
  100. package/types/SetupIntents.d.ts +3 -111
  101. package/types/SetupIntentsResource.d.ts +155 -642
  102. package/types/Sources.d.ts +0 -29
  103. package/types/SubscriptionItems.d.ts +9 -34
  104. package/types/SubscriptionItemsResource.d.ts +2 -203
  105. package/types/SubscriptionSchedules.d.ts +0 -251
  106. package/types/SubscriptionSchedulesResource.d.ts +9 -1333
  107. package/types/Subscriptions.d.ts +4 -124
  108. package/types/SubscriptionsResource.d.ts +10 -455
  109. package/types/Tax/RegistrationsResource.d.ts +1 -1
  110. package/types/Terminal/Configurations.d.ts +86 -3
  111. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  112. package/types/Terminal/Readers.d.ts +0 -290
  113. package/types/Terminal/ReadersResource.d.ts +0 -215
  114. package/types/TestHelpers/ConfirmationTokensResource.d.ts +50 -103
  115. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  116. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  117. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  118. package/types/TokensResource.d.ts +6 -1
  119. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  120. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountsResource.d.ts +1 -38
  122. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  123. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  124. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  125. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  126. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  127. package/types/V2/Core/EventsResource.d.ts +0 -5
  128. package/types/V2/EventDestinations.d.ts +1 -1
  129. package/types/V2/Events.d.ts +1 -1
  130. package/types/WebhookEndpointsResource.d.ts +19 -71
  131. package/types/index.d.ts +2 -64
  132. package/types/lib.d.ts +1 -1
  133. package/types/test/typescriptTest.ts +3 -6
  134. package/cjs/resources/AccountNotices.js +0 -21
  135. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  136. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  137. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  138. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  139. package/cjs/resources/GiftCards/Cards.js +0 -23
  140. package/cjs/resources/GiftCards/Transactions.js +0 -33
  141. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  142. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  143. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  144. package/cjs/resources/Margins.js +0 -22
  145. package/cjs/resources/Orders.js +0 -24
  146. package/cjs/resources/PaymentRecords.js +0 -29
  147. package/cjs/resources/Tax/Associations.js +0 -9
  148. package/cjs/resources/Tax/Forms.js +0 -20
  149. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  150. package/esm/resources/AccountNotices.js +0 -18
  151. package/esm/resources/Capital/FinancingOffers.js +0 -18
  152. package/esm/resources/Capital/FinancingSummary.js +0 -9
  153. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  154. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  155. package/esm/resources/GiftCards/Cards.js +0 -20
  156. package/esm/resources/GiftCards/Transactions.js +0 -30
  157. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  158. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  159. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  160. package/esm/resources/Margins.js +0 -19
  161. package/esm/resources/Orders.js +0 -21
  162. package/esm/resources/PaymentRecords.js +0 -26
  163. package/esm/resources/Tax/Associations.js +0 -6
  164. package/esm/resources/Tax/Forms.js +0 -17
  165. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  166. package/types/AccountNotices.d.ts +0 -113
  167. package/types/AccountNoticesResource.d.ts +0 -98
  168. package/types/Billing/MeterErrorReports.d.ts +0 -106
  169. package/types/Capital/FinancingOffers.d.ts +0 -188
  170. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  171. package/types/Capital/FinancingSummary.d.ts +0 -106
  172. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  173. package/types/Capital/FinancingTransactions.d.ts +0 -135
  174. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  175. package/types/Deprecations.d.ts +0 -215
  176. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  177. package/types/FinancialConnections/Institutions.d.ts +0 -93
  178. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  179. package/types/GiftCards/Cards.d.ts +0 -118
  180. package/types/GiftCards/CardsResource.d.ts +0 -159
  181. package/types/GiftCards/Transactions.d.ts +0 -129
  182. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  183. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  184. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  185. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  186. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  187. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  188. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  189. package/types/Issuing/Settlements.d.ts +0 -103
  190. package/types/Margins.d.ts +0 -56
  191. package/types/MarginsResource.d.ts +0 -114
  192. package/types/Orders.d.ts +0 -1189
  193. package/types/OrdersResource.d.ts +0 -2981
  194. package/types/PaymentAttemptRecords.d.ts +0 -242
  195. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  196. package/types/PaymentRecords.d.ts +0 -242
  197. package/types/PaymentRecordsResource.d.ts +0 -455
  198. package/types/QuoteLines.d.ts +0 -634
  199. package/types/QuotePreviewInvoices.d.ts +0 -1658
  200. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  201. package/types/Tax/Associations.d.ts +0 -126
  202. package/types/Tax/AssociationsResource.d.ts +0 -29
  203. package/types/Tax/Forms.d.ts +0 -220
  204. package/types/Tax/FormsResource.d.ts +0 -107
  205. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  206. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  207. package/types/UsageRecordSummaries.d.ts +0 -56
  208. package/types/UsageRecords.d.ts +0 -45
@@ -95,7 +95,7 @@ declare module 'stripe' {
95
95
  payout?: string;
96
96
 
97
97
  /**
98
- * Type of object that created the application fee, either `charge` or `payout`.
98
+ * Type of object that created the application fee.
99
99
  */
100
100
  type: FeeSource.Type;
101
101
  }
@@ -80,7 +80,7 @@ declare module 'stripe' {
80
80
  status: string;
81
81
 
82
82
  /**
83
- * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
83
+ * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
84
84
  */
85
85
  type: BalanceTransaction.Type;
86
86
  }
@@ -147,6 +147,8 @@ declare module 'stripe' {
147
147
  | 'refund_failure'
148
148
  | 'reserve_transaction'
149
149
  | 'reserved_funds'
150
+ | 'stripe_balance_payment_debit'
151
+ | 'stripe_balance_payment_debit_reversal'
150
152
  | 'stripe_fee'
151
153
  | 'stripe_fx_fee'
152
154
  | 'tax_fee'
@@ -36,7 +36,7 @@ declare module 'stripe' {
36
36
  source?: string;
37
37
 
38
38
  /**
39
- * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
39
+ * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
40
40
  */
41
41
  type?: string;
42
42
  }
@@ -23,7 +23,7 @@ declare module 'stripe' {
23
23
  object: 'bank_account';
24
24
 
25
25
  /**
26
- * The ID of the account that the bank account is associated with.
26
+ * The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](https://stripe.com/api/external_account_bank_accounts/object) where [controller.is_controller](https://stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
27
27
  */
28
28
  account?: string | Stripe.Account | null;
29
29
 
@@ -162,6 +162,7 @@ declare module 'stripe' {
162
162
 
163
163
  namespace Error {
164
164
  type Code =
165
+ | 'information_missing'
165
166
  | 'invalid_address_city_state_postal_code'
166
167
  | 'invalid_address_highway_contract_box'
167
168
  | 'invalid_address_private_mailbox'
@@ -174,6 +175,7 @@ declare module 'stripe' {
174
175
  | 'invalid_product_description_length'
175
176
  | 'invalid_product_description_url_match'
176
177
  | 'invalid_representative_country'
178
+ | 'invalid_signator'
177
179
  | 'invalid_statement_descriptor_business_mismatch'
178
180
  | 'invalid_statement_descriptor_denylisted'
179
181
  | 'invalid_statement_descriptor_length'
@@ -235,6 +237,7 @@ declare module 'stripe' {
235
237
  | 'verification_document_type_not_supported'
236
238
  | 'verification_extraneous_directors'
237
239
  | 'verification_failed_address_match'
240
+ | 'verification_failed_authorizer_authority'
238
241
  | 'verification_failed_business_iec_number'
239
242
  | 'verification_failed_document_match'
240
243
  | 'verification_failed_id_number_match'
@@ -249,6 +252,7 @@ declare module 'stripe' {
249
252
  | 'verification_missing_directors'
250
253
  | 'verification_missing_executives'
251
254
  | 'verification_missing_owners'
255
+ | 'verification_rejected_ownership_exemption_reason'
252
256
  | 'verification_requires_additional_memorandum_of_associations'
253
257
  | 'verification_requires_additional_proof_of_registration'
254
258
  | 'verification_supportability';
@@ -297,6 +301,7 @@ declare module 'stripe' {
297
301
 
298
302
  namespace Error {
299
303
  type Code =
304
+ | 'information_missing'
300
305
  | 'invalid_address_city_state_postal_code'
301
306
  | 'invalid_address_highway_contract_box'
302
307
  | 'invalid_address_private_mailbox'
@@ -309,6 +314,7 @@ declare module 'stripe' {
309
314
  | 'invalid_product_description_length'
310
315
  | 'invalid_product_description_url_match'
311
316
  | 'invalid_representative_country'
317
+ | 'invalid_signator'
312
318
  | 'invalid_statement_descriptor_business_mismatch'
313
319
  | 'invalid_statement_descriptor_denylisted'
314
320
  | 'invalid_statement_descriptor_length'
@@ -370,6 +376,7 @@ declare module 'stripe' {
370
376
  | 'verification_document_type_not_supported'
371
377
  | 'verification_extraneous_directors'
372
378
  | 'verification_failed_address_match'
379
+ | 'verification_failed_authorizer_authority'
373
380
  | 'verification_failed_business_iec_number'
374
381
  | 'verification_failed_document_match'
375
382
  | 'verification_failed_id_number_match'
@@ -384,6 +391,7 @@ declare module 'stripe' {
384
391
  | 'verification_missing_directors'
385
392
  | 'verification_missing_executives'
386
393
  | 'verification_missing_owners'
394
+ | 'verification_rejected_ownership_exemption_reason'
387
395
  | 'verification_requires_additional_memorandum_of_associations'
388
396
  | 'verification_requires_additional_proof_of_registration'
389
397
  | 'verification_supportability';
@@ -41,12 +41,12 @@ declare module 'stripe' {
41
41
  namespace Filter {
42
42
  interface ApplicabilityScope {
43
43
  /**
44
- * The price type that credit grants can apply to. We currently only support the `metered` price type.
44
+ * The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
45
45
  */
46
46
  price_type?: 'metered';
47
47
 
48
48
  /**
49
- * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
49
+ * A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
50
50
  */
51
51
  prices?: Array<ApplicabilityScope.Price>;
52
52
  }
@@ -118,12 +118,12 @@ declare module 'stripe' {
118
118
  namespace ApplicabilityConfig {
119
119
  interface Scope {
120
120
  /**
121
- * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
121
+ * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
122
122
  */
123
123
  price_type?: 'metered';
124
124
 
125
125
  /**
126
- * The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
126
+ * The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
127
127
  */
128
128
  prices?: Array<Scope.Price>;
129
129
  }
@@ -92,12 +92,12 @@ declare module 'stripe' {
92
92
  namespace ApplicabilityConfig {
93
93
  interface Scope {
94
94
  /**
95
- * The price type that credit grants can apply to. We currently only support the `metered` price type.
95
+ * The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
96
96
  */
97
97
  price_type?: 'metered';
98
98
 
99
99
  /**
100
- * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
100
+ * A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
101
101
  */
102
102
  prices?: Array<Scope.Price>;
103
103
  }
@@ -84,7 +84,7 @@ declare module 'stripe' {
84
84
  }
85
85
 
86
86
  namespace DefaultAggregation {
87
- type Formula = 'count' | 'sum';
87
+ type Formula = 'count' | 'last' | 'sum';
88
88
  }
89
89
 
90
90
  type EventTimeWindow = 'day' | 'hour';
@@ -55,13 +55,13 @@ declare module 'stripe' {
55
55
 
56
56
  interface DefaultAggregation {
57
57
  /**
58
- * Specifies how events are aggregated. Allowed values are `count` to count the number of events and `sum` to sum each event's value.
58
+ * Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window.
59
59
  */
60
60
  formula: DefaultAggregation.Formula;
61
61
  }
62
62
 
63
63
  namespace DefaultAggregation {
64
- type Formula = 'count' | 'sum';
64
+ type Formula = 'count' | 'last' | 'sum';
65
65
  }
66
66
 
67
67
  type EventTimeWindow = 'day' | 'hour';
@@ -130,6 +130,7 @@ declare module 'stripe' {
130
130
 
131
131
  namespace Error {
132
132
  type Code =
133
+ | 'information_missing'
133
134
  | 'invalid_address_city_state_postal_code'
134
135
  | 'invalid_address_highway_contract_box'
135
136
  | 'invalid_address_private_mailbox'
@@ -142,6 +143,7 @@ declare module 'stripe' {
142
143
  | 'invalid_product_description_length'
143
144
  | 'invalid_product_description_url_match'
144
145
  | 'invalid_representative_country'
146
+ | 'invalid_signator'
145
147
  | 'invalid_statement_descriptor_business_mismatch'
146
148
  | 'invalid_statement_descriptor_denylisted'
147
149
  | 'invalid_statement_descriptor_length'
@@ -203,6 +205,7 @@ declare module 'stripe' {
203
205
  | 'verification_document_type_not_supported'
204
206
  | 'verification_extraneous_directors'
205
207
  | 'verification_failed_address_match'
208
+ | 'verification_failed_authorizer_authority'
206
209
  | 'verification_failed_business_iec_number'
207
210
  | 'verification_failed_document_match'
208
211
  | 'verification_failed_id_number_match'
@@ -217,6 +220,7 @@ declare module 'stripe' {
217
220
  | 'verification_missing_directors'
218
221
  | 'verification_missing_executives'
219
222
  | 'verification_missing_owners'
223
+ | 'verification_rejected_ownership_exemption_reason'
220
224
  | 'verification_requires_additional_memorandum_of_associations'
221
225
  | 'verification_requires_additional_proof_of_registration'
222
226
  | 'verification_supportability';
@@ -309,6 +313,7 @@ declare module 'stripe' {
309
313
 
310
314
  namespace Error {
311
315
  type Code =
316
+ | 'information_missing'
312
317
  | 'invalid_address_city_state_postal_code'
313
318
  | 'invalid_address_highway_contract_box'
314
319
  | 'invalid_address_private_mailbox'
@@ -321,6 +326,7 @@ declare module 'stripe' {
321
326
  | 'invalid_product_description_length'
322
327
  | 'invalid_product_description_url_match'
323
328
  | 'invalid_representative_country'
329
+ | 'invalid_signator'
324
330
  | 'invalid_statement_descriptor_business_mismatch'
325
331
  | 'invalid_statement_descriptor_denylisted'
326
332
  | 'invalid_statement_descriptor_length'
@@ -382,6 +388,7 @@ declare module 'stripe' {
382
388
  | 'verification_document_type_not_supported'
383
389
  | 'verification_extraneous_directors'
384
390
  | 'verification_failed_address_match'
391
+ | 'verification_failed_authorizer_authority'
385
392
  | 'verification_failed_business_iec_number'
386
393
  | 'verification_failed_document_match'
387
394
  | 'verification_failed_id_number_match'
@@ -396,6 +403,7 @@ declare module 'stripe' {
396
403
  | 'verification_missing_directors'
397
404
  | 'verification_missing_executives'
398
405
  | 'verification_missing_owners'
406
+ | 'verification_rejected_ownership_exemption_reason'
399
407
  | 'verification_requires_additional_memorandum_of_associations'
400
408
  | 'verification_requires_additional_proof_of_registration'
401
409
  | 'verification_supportability';
package/types/Cards.d.ts CHANGED
@@ -20,9 +20,6 @@ declare module 'stripe' {
20
20
  */
21
21
  object: 'card';
22
22
 
23
- /**
24
- * The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
25
- */
26
23
  account?: string | Stripe.Account | null;
27
24
 
28
25
  /**
@@ -80,18 +77,13 @@ declare module 'stripe' {
80
77
  */
81
78
  brand: string;
82
79
 
83
- /**
84
- * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
85
- */
86
- brand_product?: string | null;
87
-
88
80
  /**
89
81
  * 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.
90
82
  */
91
83
  country: string | null;
92
84
 
93
85
  /**
94
- * Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
86
+ * Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available when returned as an [External Account](https://stripe.com/api/external_account_cards/object) where [controller.is_controller](https://stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
95
87
  */
96
88
  currency?: string | null;
97
89
 
@@ -116,11 +116,6 @@ declare module 'stripe' {
116
116
  */
117
117
  fraud_details: Charge.FraudDetails | null;
118
118
 
119
- /**
120
- * ID of the invoice this charge is for if one exists.
121
- */
122
- invoice: string | Stripe.Invoice | null;
123
-
124
119
  level3?: Charge.Level3;
125
120
 
126
121
  /**
@@ -163,6 +158,8 @@ declare module 'stripe' {
163
158
  */
164
159
  payment_method_details: Charge.PaymentMethodDetails | null;
165
160
 
161
+ presentment_details?: Charge.PresentmentDetails;
162
+
166
163
  /**
167
164
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
168
165
  */
@@ -410,6 +407,8 @@ declare module 'stripe' {
410
407
 
411
408
  bancontact?: PaymentMethodDetails.Bancontact;
412
409
 
410
+ billie?: PaymentMethodDetails.Billie;
411
+
413
412
  blik?: PaymentMethodDetails.Blik;
414
413
 
415
414
  boleto?: PaymentMethodDetails.Boleto;
@@ -428,12 +427,8 @@ declare module 'stripe' {
428
427
 
429
428
  giropay?: PaymentMethodDetails.Giropay;
430
429
 
431
- gopay?: PaymentMethodDetails.Gopay;
432
-
433
430
  grabpay?: PaymentMethodDetails.Grabpay;
434
431
 
435
- id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
436
-
437
432
  ideal?: PaymentMethodDetails.Ideal;
438
433
 
439
434
  interac_present?: PaymentMethodDetails.InteracPresent;
@@ -448,14 +443,14 @@ declare module 'stripe' {
448
443
 
449
444
  link?: PaymentMethodDetails.Link;
450
445
 
451
- mb_way?: PaymentMethodDetails.MbWay;
452
-
453
446
  mobilepay?: PaymentMethodDetails.Mobilepay;
454
447
 
455
448
  multibanco?: PaymentMethodDetails.Multibanco;
456
449
 
457
450
  naver_pay?: PaymentMethodDetails.NaverPay;
458
451
 
452
+ nz_bank_account?: PaymentMethodDetails.NzBankAccount;
453
+
459
454
  oxxo?: PaymentMethodDetails.Oxxo;
460
455
 
461
456
  p24?: PaymentMethodDetails.P24;
@@ -468,26 +463,20 @@ declare module 'stripe' {
468
463
 
469
464
  paypal?: PaymentMethodDetails.Paypal;
470
465
 
471
- payto?: PaymentMethodDetails.Payto;
472
-
473
466
  pix?: PaymentMethodDetails.Pix;
474
467
 
475
468
  promptpay?: PaymentMethodDetails.Promptpay;
476
469
 
477
- qris?: PaymentMethodDetails.Qris;
478
-
479
- rechnung?: PaymentMethodDetails.Rechnung;
480
-
481
470
  revolut_pay?: PaymentMethodDetails.RevolutPay;
482
471
 
483
472
  samsung_pay?: PaymentMethodDetails.SamsungPay;
484
473
 
474
+ satispay?: PaymentMethodDetails.Satispay;
475
+
485
476
  sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
486
477
 
487
478
  sepa_debit?: PaymentMethodDetails.SepaDebit;
488
479
 
489
- shopeepay?: PaymentMethodDetails.Shopeepay;
490
-
491
480
  sofort?: PaymentMethodDetails.Sofort;
492
481
 
493
482
  stripe_account?: PaymentMethodDetails.StripeAccount;
@@ -662,11 +651,6 @@ declare module 'stripe' {
662
651
  */
663
652
  brand: string | null;
664
653
 
665
- /**
666
- * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
667
- */
668
- brand_product?: string | null;
669
-
670
654
  /**
671
655
  * 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.
672
656
  */
@@ -787,6 +771,8 @@ declare module 'stripe' {
787
771
  type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
788
772
  }
789
773
 
774
+ interface Billie {}
775
+
790
776
  interface Blik {
791
777
  /**
792
778
  * A unique and immutable identifier assigned by BLIK to every buyer.
@@ -807,11 +793,6 @@ declare module 'stripe' {
807
793
  */
808
794
  amount_authorized: number | null;
809
795
 
810
- /**
811
- * The latest amount intended to be authorized by this charge.
812
- */
813
- amount_requested?: number | null;
814
-
815
796
  /**
816
797
  * Authorization code on the charge.
817
798
  */
@@ -837,8 +818,6 @@ declare module 'stripe' {
837
818
  */
838
819
  country: string | null;
839
820
 
840
- decremental_authorization?: Card.DecrementalAuthorization;
841
-
842
821
  /**
843
822
  * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
844
823
  */
@@ -921,8 +900,6 @@ declare module 'stripe' {
921
900
 
922
901
  overcapture?: Card.Overcapture;
923
902
 
924
- partial_authorization?: Card.PartialAuthorization;
925
-
926
903
  /**
927
904
  * Status of a card based on the card issuer.
928
905
  */
@@ -957,17 +934,6 @@ declare module 'stripe' {
957
934
  cvc_check: string | null;
958
935
  }
959
936
 
960
- interface DecrementalAuthorization {
961
- /**
962
- * Indicates whether or not the decremental authorization feature is supported.
963
- */
964
- status: DecrementalAuthorization.Status;
965
- }
966
-
967
- namespace DecrementalAuthorization {
968
- type Status = 'available' | 'unavailable';
969
- }
970
-
971
937
  interface ExtendedAuthorization {
972
938
  /**
973
939
  * Indicates whether or not the capture window is extended beyond the standard authorization.
@@ -1051,21 +1017,6 @@ declare module 'stripe' {
1051
1017
  type Status = 'available' | 'unavailable';
1052
1018
  }
1053
1019
 
1054
- interface PartialAuthorization {
1055
- /**
1056
- * Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
1057
- */
1058
- status: PartialAuthorization.Status;
1059
- }
1060
-
1061
- namespace PartialAuthorization {
1062
- type Status =
1063
- | 'declined'
1064
- | 'fully_authorized'
1065
- | 'not_requested'
1066
- | 'partially_authorized';
1067
- }
1068
-
1069
1020
  type RegulatedStatus = 'regulated' | 'unregulated';
1070
1021
 
1071
1022
  interface ThreeDSecure {
@@ -1572,8 +1523,6 @@ declare module 'stripe' {
1572
1523
  verified_name: string | null;
1573
1524
  }
1574
1525
 
1575
- interface Gopay {}
1576
-
1577
1526
  interface Grabpay {
1578
1527
  /**
1579
1528
  * Unique transaction id generated by GrabPay
@@ -1581,37 +1530,6 @@ declare module 'stripe' {
1581
1530
  transaction_id: string | null;
1582
1531
  }
1583
1532
 
1584
- interface IdBankTransfer {
1585
- /**
1586
- * Account number of the bank account to transfer funds to.
1587
- */
1588
- account_number: string;
1589
-
1590
- /**
1591
- * Bank where the account is located.
1592
- */
1593
- bank: IdBankTransfer.Bank;
1594
-
1595
- /**
1596
- * Local bank code of the bank.
1597
- */
1598
- bank_code?: string;
1599
-
1600
- /**
1601
- * Name of the bank associated with the bank account.
1602
- */
1603
- bank_name?: string;
1604
-
1605
- /**
1606
- * Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1607
- */
1608
- display_name?: string;
1609
- }
1610
-
1611
- namespace IdBankTransfer {
1612
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1613
- }
1614
-
1615
1533
  interface Ideal {
1616
1534
  /**
1617
1535
  * The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1953,8 +1871,6 @@ declare module 'stripe' {
1953
1871
  country: string | null;
1954
1872
  }
1955
1873
 
1956
- interface MbWay {}
1957
-
1958
1874
  interface Mobilepay {
1959
1875
  /**
1960
1876
  * Internal card details
@@ -2010,6 +1926,38 @@ declare module 'stripe' {
2010
1926
  buyer_id: string | null;
2011
1927
  }
2012
1928
 
1929
+ interface NzBankAccount {
1930
+ /**
1931
+ * The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
1932
+ */
1933
+ account_holder_name: string | null;
1934
+
1935
+ /**
1936
+ * The numeric code for the bank account's bank.
1937
+ */
1938
+ bank_code: string;
1939
+
1940
+ /**
1941
+ * The name of the bank.
1942
+ */
1943
+ bank_name: string;
1944
+
1945
+ /**
1946
+ * The numeric code for the bank account's bank branch.
1947
+ */
1948
+ branch_code: string;
1949
+
1950
+ /**
1951
+ * Last four digits of the bank account number.
1952
+ */
1953
+ last4: string;
1954
+
1955
+ /**
1956
+ * The suffix of the bank account number.
1957
+ */
1958
+ suffix: string | null;
1959
+ }
1960
+
2013
1961
  interface Oxxo {
2014
1962
  /**
2015
1963
  * OXXO reference number
@@ -2110,36 +2058,10 @@ declare module 'stripe' {
2110
2058
  */
2111
2059
  seller_protection: Paypal.SellerProtection | null;
2112
2060
 
2113
- /**
2114
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2115
- * execution. This shipping address will not be updated if the merchant updates the shipping
2116
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2117
- */
2118
- shipping?: Stripe.Address | null;
2119
-
2120
2061
  /**
2121
2062
  * A unique ID generated by PayPal for this transaction.
2122
2063
  */
2123
2064
  transaction_id: string | null;
2124
-
2125
- /**
2126
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2127
- * execution. This shipping address will not be updated if the merchant updates the shipping
2128
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2129
- */
2130
- verified_address?: Stripe.Address | null;
2131
-
2132
- /**
2133
- * Owner's verified email. Values are verified or provided by PayPal directly
2134
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2135
- */
2136
- verified_email?: string | null;
2137
-
2138
- /**
2139
- * Owner's verified full name. Values are verified or provided by PayPal directly
2140
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2141
- */
2142
- verified_name?: string | null;
2143
2065
  }
2144
2066
 
2145
2067
  namespace Paypal {
@@ -2162,28 +2084,6 @@ declare module 'stripe' {
2162
2084
  }
2163
2085
  }
2164
2086
 
2165
- interface Payto {
2166
- /**
2167
- * Bank-State-Branch number of the bank account.
2168
- */
2169
- bsb_number: string | null;
2170
-
2171
- /**
2172
- * Last four digits of the bank account number.
2173
- */
2174
- last4: string | null;
2175
-
2176
- /**
2177
- * ID of the mandate used to make this payment.
2178
- */
2179
- mandate?: string;
2180
-
2181
- /**
2182
- * The PayID alias for the bank account.
2183
- */
2184
- pay_id: string | null;
2185
- }
2186
-
2187
2087
  interface Pix {
2188
2088
  /**
2189
2089
  * Unique transaction id generated by BCB
@@ -2198,10 +2098,6 @@ declare module 'stripe' {
2198
2098
  reference: string | null;
2199
2099
  }
2200
2100
 
2201
- interface Qris {}
2202
-
2203
- interface Rechnung {}
2204
-
2205
2101
  interface RevolutPay {
2206
2102
  funding?: RevolutPay.Funding;
2207
2103
  }
@@ -2223,11 +2119,6 @@ declare module 'stripe' {
2223
2119
  */
2224
2120
  brand: string | null;
2225
2121
 
2226
- /**
2227
- * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
2228
- */
2229
- brand_product?: string | null;
2230
-
2231
2122
  /**
2232
2123
  * 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.
2233
2124
  */
@@ -2263,6 +2154,8 @@ declare module 'stripe' {
2263
2154
  buyer_id: string | null;
2264
2155
  }
2265
2156
 
2157
+ interface Satispay {}
2158
+
2266
2159
  interface SepaCreditTransfer {
2267
2160
  /**
2268
2161
  * Name of the bank associated with the bank account.
@@ -2312,8 +2205,6 @@ declare module 'stripe' {
2312
2205
  mandate: string | null;
2313
2206
  }
2314
2207
 
2315
- interface Shopeepay {}
2316
-
2317
2208
  interface Sofort {
2318
2209
  /**
2319
2210
  * Bank code of bank associated with the bank account.
@@ -2460,6 +2351,18 @@ declare module 'stripe' {
2460
2351
  interface Zip {}
2461
2352
  }
2462
2353
 
2354
+ interface PresentmentDetails {
2355
+ /**
2356
+ * Amount intended to be collected by this payment, denominated in presentment_currency.
2357
+ */
2358
+ presentment_amount: number;
2359
+
2360
+ /**
2361
+ * Currency presented to the customer during payment.
2362
+ */
2363
+ presentment_currency: string;
2364
+ }
2365
+
2463
2366
  interface RadarOptions {
2464
2367
  /**
2465
2368
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.