stripe 18.4.0-beta.2 → 18.4.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 (299) hide show
  1. package/CHANGELOG.md +37 -1293
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -107
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  9. package/cjs/resources/PaymentIntents.js +0 -13
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionSchedules.js +0 -4
  12. package/cjs/resources.js +10 -98
  13. package/cjs/stripe.core.js +2 -1
  14. package/esm/Error.js +0 -93
  15. package/esm/apiVersion.js +2 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  18. package/esm/resources/PaymentIntents.js +0 -13
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources.js +1 -82
  22. package/esm/stripe.core.js +2 -1
  23. package/package.json +1 -1
  24. package/types/AccountLinksResource.d.ts +4 -6
  25. package/types/AccountSessions.d.ts +30 -45
  26. package/types/AccountSessionsResource.d.ts +36 -264
  27. package/types/Accounts.d.ts +2 -213
  28. package/types/AccountsResource.d.ts +3 -547
  29. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  30. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  31. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  32. package/types/Billing/CreditGrants.d.ts +0 -5
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -12
  34. package/types/BillingPortal/Configurations.d.ts +21 -0
  35. package/types/BillingPortal/ConfigurationsResource.d.ts +48 -0
  36. package/types/BillingPortal/Sessions.d.ts +0 -5
  37. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  38. package/types/Capabilities.d.ts +1 -6
  39. package/types/Cards.d.ts +0 -5
  40. package/types/CashBalances.d.ts +0 -5
  41. package/types/Charges.d.ts +10 -171
  42. package/types/ChargesResource.d.ts +0 -1406
  43. package/types/Checkout/Sessions.d.ts +20 -310
  44. package/types/Checkout/SessionsResource.d.ts +21 -326
  45. package/types/ConfirmationTokens.d.ts +3 -128
  46. package/types/Coupons.d.ts +0 -33
  47. package/types/CouponsResource.d.ts +0 -21
  48. package/types/CreditNoteLineItems.d.ts +0 -17
  49. package/types/CreditNotes.d.ts +0 -5
  50. package/types/CreditNotesResource.d.ts +0 -5
  51. package/types/CustomerBalanceTransactions.d.ts +0 -2
  52. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  53. package/types/CustomerSessions.d.ts +0 -5
  54. package/types/CustomerSessionsResource.d.ts +1 -6
  55. package/types/Customers.d.ts +1 -3
  56. package/types/CustomersResource.d.ts +0 -8
  57. package/types/Discounts.d.ts +0 -10
  58. package/types/Disputes.d.ts +1 -8
  59. package/types/Errors.d.ts +2 -81
  60. package/types/EventTypes.d.ts +0 -664
  61. package/types/Events.d.ts +14 -123
  62. package/types/FinancialConnections/Accounts.d.ts +1 -36
  63. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  64. package/types/FinancialConnections/Sessions.d.ts +1 -51
  65. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  66. package/types/Identity/VerificationSessions.d.ts +2 -7
  67. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  68. package/types/InvoiceItems.d.ts +0 -10
  69. package/types/InvoiceItemsResource.d.ts +7 -118
  70. package/types/InvoiceLineItems.d.ts +1 -45
  71. package/types/InvoicePayments.d.ts +0 -5
  72. package/types/InvoicePaymentsResource.d.ts +74 -0
  73. package/types/Invoices.d.ts +3 -133
  74. package/types/InvoicesResource.d.ts +31 -1433
  75. package/types/Issuing/CardholdersResource.d.ts +1 -2
  76. package/types/Issuing/Transactions.d.ts +0 -5
  77. package/types/Issuing/TransactionsResource.d.ts +0 -5
  78. package/types/LineItems.d.ts +0 -49
  79. package/types/Mandates.d.ts +0 -77
  80. package/types/PaymentIntents.d.ts +3 -769
  81. package/types/PaymentIntentsResource.d.ts +4133 -8848
  82. package/types/PaymentLinks.d.ts +5 -6
  83. package/types/PaymentLinksResource.d.ts +102 -15
  84. package/types/PaymentMethodConfigurations.d.ts +0 -180
  85. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  86. package/types/PaymentMethods.d.ts +3 -128
  87. package/types/PaymentMethodsResource.d.ts +3 -168
  88. package/types/Payouts.d.ts +0 -5
  89. package/types/PayoutsResource.d.ts +0 -5
  90. package/types/Prices.d.ts +0 -22
  91. package/types/PricesResource.d.ts +0 -22
  92. package/types/PromotionCodes.d.ts +0 -5
  93. package/types/PromotionCodesResource.d.ts +0 -10
  94. package/types/Quotes.d.ts +1 -594
  95. package/types/QuotesResource.d.ts +281 -2623
  96. package/types/Radar/ValueLists.d.ts +1 -1
  97. package/types/Radar/ValueListsResource.d.ts +1 -1
  98. package/types/Refunds.d.ts +1 -15
  99. package/types/Reporting/ReportRunsResource.d.ts +1 -0
  100. package/types/Reviews.d.ts +2 -2
  101. package/types/SetupAttempts.d.ts +2 -48
  102. package/types/SetupIntents.d.ts +2 -118
  103. package/types/SetupIntentsResource.d.ts +3 -730
  104. package/types/Sources.d.ts +0 -29
  105. package/types/SubscriptionItems.d.ts +0 -21
  106. package/types/SubscriptionItemsResource.d.ts +2 -111
  107. package/types/SubscriptionSchedules.d.ts +0 -205
  108. package/types/SubscriptionSchedulesResource.d.ts +41 -1224
  109. package/types/Subscriptions.d.ts +1 -97
  110. package/types/SubscriptionsResource.d.ts +12 -391
  111. package/types/Tax/Registrations.d.ts +228 -27
  112. package/types/Tax/RegistrationsResource.d.ts +648 -27
  113. package/types/TaxIds.d.ts +0 -10
  114. package/types/TaxIdsResource.d.ts +0 -10
  115. package/types/Terminal/Configurations.d.ts +76 -0
  116. package/types/Terminal/ConfigurationsResource.d.ts +176 -0
  117. package/types/Terminal/Readers.d.ts +0 -20
  118. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  119. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  120. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  121. package/types/Transfers.d.ts +0 -5
  122. package/types/TransfersResource.d.ts +0 -5
  123. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  124. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  125. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  126. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  127. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  128. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  129. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  130. package/types/V2/EventTypes.d.ts +4 -957
  131. package/types/WebhookEndpointsResource.d.ts +2 -79
  132. package/types/index.d.ts +2 -138
  133. package/types/lib.d.ts +2 -11
  134. package/types/test/typescriptTest.ts +3 -3
  135. package/cjs/resources/AccountNotices.js +0 -21
  136. package/cjs/resources/BalanceSettings.js +0 -10
  137. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  138. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  139. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  140. package/cjs/resources/ExternalAccounts.js +0 -23
  141. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  142. package/cjs/resources/FxQuotes.js +0 -15
  143. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  144. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  145. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  146. package/cjs/resources/Margins.js +0 -22
  147. package/cjs/resources/Orders.js +0 -24
  148. package/cjs/resources/PaymentRecords.js +0 -29
  149. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  150. package/cjs/resources/Tax/Associations.js +0 -9
  151. package/cjs/resources/Tax/Forms.js +0 -20
  152. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  153. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  154. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  155. package/cjs/resources/V2/Core/Accounts.js +0 -25
  156. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  157. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  158. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  159. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  160. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  161. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  162. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  163. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  164. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  165. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  166. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  167. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  168. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  169. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  171. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  172. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  173. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  174. package/esm/resources/AccountNotices.js +0 -18
  175. package/esm/resources/BalanceSettings.js +0 -7
  176. package/esm/resources/Capital/FinancingOffers.js +0 -18
  177. package/esm/resources/Capital/FinancingSummary.js +0 -9
  178. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  179. package/esm/resources/ExternalAccounts.js +0 -20
  180. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  181. package/esm/resources/FxQuotes.js +0 -12
  182. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  183. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  184. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  185. package/esm/resources/Margins.js +0 -19
  186. package/esm/resources/Orders.js +0 -21
  187. package/esm/resources/PaymentRecords.js +0 -26
  188. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  189. package/esm/resources/Tax/Associations.js +0 -6
  190. package/esm/resources/Tax/Forms.js +0 -17
  191. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  192. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  193. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  194. package/esm/resources/V2/Core/Accounts.js +0 -22
  195. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  196. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  197. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  198. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  199. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  200. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  201. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  202. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  203. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  204. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  205. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  206. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  207. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  208. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  209. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  210. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  211. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  212. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  213. package/types/AccountNotices.d.ts +0 -113
  214. package/types/AccountNoticesResource.d.ts +0 -98
  215. package/types/BalanceSettings.d.ts +0 -89
  216. package/types/BalanceSettingsResource.d.ts +0 -108
  217. package/types/Capital/FinancingOffers.d.ts +0 -188
  218. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  219. package/types/Capital/FinancingSummary.d.ts +0 -106
  220. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  221. package/types/Capital/FinancingTransactions.d.ts +0 -135
  222. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  223. package/types/ExternalAccountsResource.d.ts +0 -304
  224. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  225. package/types/FinancialConnections/Institutions.d.ts +0 -98
  226. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  227. package/types/FxQuotes.d.ts +0 -153
  228. package/types/FxQuotesResource.d.ts +0 -130
  229. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  230. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  231. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  232. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  233. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  234. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  235. package/types/Issuing/Settlements.d.ts +0 -113
  236. package/types/Margins.d.ts +0 -56
  237. package/types/MarginsResource.d.ts +0 -114
  238. package/types/Orders.d.ts +0 -1163
  239. package/types/OrdersResource.d.ts +0 -3139
  240. package/types/PaymentAttemptRecords.d.ts +0 -2161
  241. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  242. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  243. package/types/PaymentRecords.d.ts +0 -2154
  244. package/types/PaymentRecordsResource.d.ts +0 -455
  245. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  246. package/types/Privacy/RedactionJobs.d.ts +0 -111
  247. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  248. package/types/QuoteLines.d.ts +0 -634
  249. package/types/QuotePreviewInvoices.d.ts +0 -1696
  250. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -845
  251. package/types/Tax/Associations.d.ts +0 -82
  252. package/types/Tax/AssociationsResource.d.ts +0 -29
  253. package/types/Tax/Forms.d.ts +0 -220
  254. package/types/Tax/FormsResource.d.ts +0 -107
  255. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  256. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  257. package/types/V2/Core/AccountLinks.d.ts +0 -106
  258. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  259. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3780
  260. package/types/V2/Core/Accounts.d.ts +0 -8791
  261. package/types/V2/Core/AccountsResource.d.ts +0 -10582
  262. package/types/V2/Core/Persons.d.ts +0 -1872
  263. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  264. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  265. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  266. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  267. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  268. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  269. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  270. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  271. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -580
  272. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -326
  273. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  274. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
  275. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  276. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  277. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  278. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  279. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  280. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  281. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  282. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  283. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  284. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  285. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
  286. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  287. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  288. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  289. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
  290. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  291. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  292. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  293. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  294. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  295. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  296. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  297. package/types/V2/Payments/OffSessionPayments.d.ts +0 -162
  298. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -159
  299. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -22,11 +22,6 @@ declare module 'stripe' {
22
22
  */
23
23
  customer: string | Stripe.Customer | Stripe.DeletedCustomer;
24
24
 
25
- /**
26
- * The account the balance is for.
27
- */
28
- customer_account?: string | null;
29
-
30
25
  /**
31
26
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
27
  */
@@ -4,20 +4,15 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace Billing {
6
6
  interface CreditBalanceSummaryRetrieveParams {
7
- /**
8
- * The filter criteria for the credit balance summary.
9
- */
10
- filter: CreditBalanceSummaryRetrieveParams.Filter;
11
-
12
7
  /**
13
8
  * The customer for which to fetch credit balance summary.
14
9
  */
15
- customer?: string;
10
+ customer: string;
16
11
 
17
12
  /**
18
- * The account for which to fetch credit balance summary.
13
+ * The filter criteria for the credit balance summary.
19
14
  */
20
- customer_account?: string;
15
+ filter: CreditBalanceSummaryRetrieveParams.Filter;
21
16
 
22
17
  /**
23
18
  * Specifies which fields in the response should be expanded.
@@ -11,20 +11,15 @@ declare module 'stripe' {
11
11
  }
12
12
 
13
13
  interface CreditBalanceTransactionListParams extends PaginationParams {
14
- /**
15
- * The credit grant for which to fetch credit balance transactions.
16
- */
17
- credit_grant?: string;
18
-
19
14
  /**
20
15
  * The customer for which to fetch credit balance transactions.
21
16
  */
22
- customer?: string;
17
+ customer: string;
23
18
 
24
19
  /**
25
- * The account for which to fetch credit balance transactions.
20
+ * The credit grant for which to fetch credit balance transactions.
26
21
  */
27
- customer_account?: string;
22
+ credit_grant?: string;
28
23
 
29
24
  /**
30
25
  * Specifies which fields in the response should be expanded.
@@ -50,10 +45,7 @@ declare module 'stripe' {
50
45
  * Retrieve a list of credit balance transactions.
51
46
  */
52
47
  list(
53
- params?: CreditBalanceTransactionListParams,
54
- options?: RequestOptions
55
- ): ApiListPromise<Stripe.Billing.CreditBalanceTransaction>;
56
- list(
48
+ params: CreditBalanceTransactionListParams,
57
49
  options?: RequestOptions
58
50
  ): ApiListPromise<Stripe.Billing.CreditBalanceTransaction>;
59
51
  }
@@ -38,11 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  customer: string | Stripe.Customer | Stripe.DeletedCustomer;
40
40
 
41
- /**
42
- * ID of the account receiving the billing credits
43
- */
44
- customer_account?: string | null;
45
-
46
41
  /**
47
42
  * The time when the billing credits become effective-when they're eligible for use.
48
43
  */
@@ -22,12 +22,7 @@ declare module 'stripe' {
22
22
  /**
23
23
  * ID of the customer to receive the billing credits.
24
24
  */
25
- customer?: string;
26
-
27
- /**
28
- * ID of the account to receive the billing credits.
29
- */
30
- customer_account?: string;
25
+ customer: string;
31
26
 
32
27
  /**
33
28
  * The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
@@ -68,7 +63,7 @@ declare module 'stripe' {
68
63
  monetary?: Amount.Monetary;
69
64
 
70
65
  /**
71
- * Specify the type of this amount. We currently only support `monetary` billing credits.
66
+ * The type of this amount. We currently only support `monetary` billing credits.
72
67
  */
73
68
  type: 'monetary';
74
69
  }
@@ -150,11 +145,6 @@ declare module 'stripe' {
150
145
  */
151
146
  customer?: string;
152
147
 
153
- /**
154
- * Only return credit grants for this account.
155
- */
156
- customer_account?: string;
157
-
158
148
  /**
159
149
  * Specifies which fields in the response should be expanded.
160
150
  */
@@ -217,6 +217,8 @@ declare module 'stripe' {
217
217
  type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
218
218
 
219
219
  interface Product {
220
+ adjustable_quantity: Product.AdjustableQuantity;
221
+
220
222
  /**
221
223
  * The list of price IDs which, when subscribed to, a subscription can be updated.
222
224
  */
@@ -228,6 +230,25 @@ declare module 'stripe' {
228
230
  product: string;
229
231
  }
230
232
 
233
+ namespace Product {
234
+ interface AdjustableQuantity {
235
+ /**
236
+ * If true, the quantity can be adjusted to any non-negative integer.
237
+ */
238
+ enabled: boolean;
239
+
240
+ /**
241
+ * The maximum quantity that can be set for the product.
242
+ */
243
+ maximum: number | null;
244
+
245
+ /**
246
+ * The minimum quantity that can be set for the product.
247
+ */
248
+ minimum: number;
249
+ }
250
+ }
251
+
231
252
  type ProrationBehavior =
232
253
  | 'always_invoice'
233
254
  | 'create_prorations'
@@ -207,6 +207,11 @@ declare module 'stripe' {
207
207
  type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
208
208
 
209
209
  interface Product {
210
+ /**
211
+ * Control whether the quantity of the product can be adjusted.
212
+ */
213
+ adjustable_quantity?: Product.AdjustableQuantity;
214
+
210
215
  /**
211
216
  * The list of price IDs for the product that a subscription can be updated to.
212
217
  */
@@ -218,6 +223,25 @@ declare module 'stripe' {
218
223
  product: string;
219
224
  }
220
225
 
226
+ namespace Product {
227
+ interface AdjustableQuantity {
228
+ /**
229
+ * Set to true if the quantity can be adjusted to any non-negative integer.
230
+ */
231
+ enabled: boolean;
232
+
233
+ /**
234
+ * The maximum quantity that can be set for the product.
235
+ */
236
+ maximum?: number;
237
+
238
+ /**
239
+ * The minimum quantity that can be set for the product.
240
+ */
241
+ minimum?: number;
242
+ }
243
+ }
244
+
221
245
  type ProrationBehavior =
222
246
  | 'always_invoice'
223
247
  | 'create_prorations'
@@ -469,6 +493,11 @@ declare module 'stripe' {
469
493
  type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
470
494
 
471
495
  interface Product {
496
+ /**
497
+ * Control whether the quantity of the product can be adjusted.
498
+ */
499
+ adjustable_quantity?: Product.AdjustableQuantity;
500
+
472
501
  /**
473
502
  * The list of price IDs for the product that a subscription can be updated to.
474
503
  */
@@ -480,6 +509,25 @@ declare module 'stripe' {
480
509
  product: string;
481
510
  }
482
511
 
512
+ namespace Product {
513
+ interface AdjustableQuantity {
514
+ /**
515
+ * Set to true if the quantity can be adjusted to any non-negative integer.
516
+ */
517
+ enabled: boolean;
518
+
519
+ /**
520
+ * The maximum quantity that can be set for the product.
521
+ */
522
+ maximum?: number;
523
+
524
+ /**
525
+ * The minimum quantity that can be set for the product.
526
+ */
527
+ minimum?: number;
528
+ }
529
+ }
530
+
483
531
  type ProrationBehavior =
484
532
  | 'always_invoice'
485
533
  | 'create_prorations'
@@ -45,11 +45,6 @@ declare module 'stripe' {
45
45
  */
46
46
  customer: string;
47
47
 
48
- /**
49
- * The ID of the account for this session.
50
- */
51
- customer_account?: string | null;
52
-
53
48
  /**
54
49
  * Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
55
50
  */
@@ -4,20 +4,15 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace BillingPortal {
6
6
  interface SessionCreateParams {
7
- /**
8
- * The ID of an existing [configuration](https://stripe.com/docs/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
9
- */
10
- configuration?: string;
11
-
12
7
  /**
13
8
  * The ID of an existing customer.
14
9
  */
15
- customer?: string;
10
+ customer: string;
16
11
 
17
12
  /**
18
- * The ID of an existing account.
13
+ * The ID of an existing [configuration](https://stripe.com/docs/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
19
14
  */
20
- customer_account?: string;
15
+ configuration?: string;
21
16
 
22
17
  /**
23
18
  * Specifies which fields in the response should be expanded.
@@ -261,10 +256,7 @@ declare module 'stripe' {
261
256
  * Creates a session of the customer portal.
262
257
  */
263
258
  create(
264
- params?: SessionCreateParams,
265
- options?: RequestOptions
266
- ): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
267
- create(
259
+ params: SessionCreateParams,
268
260
  options?: RequestOptions
269
261
  ): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
270
262
  }
@@ -412,12 +412,7 @@ declare module 'stripe' {
412
412
  }
413
413
  }
414
414
 
415
- type Status =
416
- | 'active'
417
- | 'disabled'
418
- | 'inactive'
419
- | 'pending'
420
- | 'unrequested';
415
+ type Status = 'active' | 'inactive' | 'pending' | 'unrequested';
421
416
  }
422
417
  }
423
418
  }
package/types/Cards.d.ts CHANGED
@@ -77,11 +77,6 @@ declare module 'stripe' {
77
77
  */
78
78
  brand: string;
79
79
 
80
- /**
81
- * 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.)
82
- */
83
- brand_product?: string | null;
84
-
85
80
  /**
86
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.
87
82
  */
@@ -23,11 +23,6 @@ declare module 'stripe' {
23
23
  */
24
24
  customer: string;
25
25
 
26
- /**
27
- * The ID of the account whose cash balance this object represents.
28
- */
29
- customer_account?: string | null;
30
-
31
26
  /**
32
27
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
33
28
  */
@@ -434,12 +434,8 @@ declare module 'stripe' {
434
434
 
435
435
  giropay?: PaymentMethodDetails.Giropay;
436
436
 
437
- gopay?: PaymentMethodDetails.Gopay;
438
-
439
437
  grabpay?: PaymentMethodDetails.Grabpay;
440
438
 
441
- id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
442
-
443
439
  ideal?: PaymentMethodDetails.Ideal;
444
440
 
445
441
  interac_present?: PaymentMethodDetails.InteracPresent;
@@ -454,8 +450,6 @@ declare module 'stripe' {
454
450
 
455
451
  link?: PaymentMethodDetails.Link;
456
452
 
457
- mb_way?: PaymentMethodDetails.MbWay;
458
-
459
453
  mobilepay?: PaymentMethodDetails.Mobilepay;
460
454
 
461
455
  multibanco?: PaymentMethodDetails.Multibanco;
@@ -476,16 +470,10 @@ declare module 'stripe' {
476
470
 
477
471
  paypal?: PaymentMethodDetails.Paypal;
478
472
 
479
- payto?: PaymentMethodDetails.Payto;
480
-
481
473
  pix?: PaymentMethodDetails.Pix;
482
474
 
483
475
  promptpay?: PaymentMethodDetails.Promptpay;
484
476
 
485
- qris?: PaymentMethodDetails.Qris;
486
-
487
- rechnung?: PaymentMethodDetails.Rechnung;
488
-
489
477
  revolut_pay?: PaymentMethodDetails.RevolutPay;
490
478
 
491
479
  samsung_pay?: PaymentMethodDetails.SamsungPay;
@@ -496,14 +484,10 @@ declare module 'stripe' {
496
484
 
497
485
  sepa_debit?: PaymentMethodDetails.SepaDebit;
498
486
 
499
- shopeepay?: PaymentMethodDetails.Shopeepay;
500
-
501
487
  sofort?: PaymentMethodDetails.Sofort;
502
488
 
503
489
  stripe_account?: PaymentMethodDetails.StripeAccount;
504
490
 
505
- stripe_balance?: PaymentMethodDetails.StripeBalance;
506
-
507
491
  swish?: PaymentMethodDetails.Swish;
508
492
 
509
493
  twint?: PaymentMethodDetails.Twint;
@@ -680,15 +664,10 @@ declare module 'stripe' {
680
664
  namespace Funding {
681
665
  interface Card {
682
666
  /**
683
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
667
+ * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
684
668
  */
685
669
  brand: string | null;
686
670
 
687
- /**
688
- * 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.)
689
- */
690
- brand_product?: string | null;
691
-
692
671
  /**
693
672
  * 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.
694
673
  */
@@ -831,18 +810,13 @@ declare module 'stripe' {
831
810
  */
832
811
  amount_authorized: number | null;
833
812
 
834
- /**
835
- * The latest amount intended to be authorized by this charge.
836
- */
837
- amount_requested?: number | null;
838
-
839
813
  /**
840
814
  * Authorization code on the charge.
841
815
  */
842
816
  authorization_code: string | null;
843
817
 
844
818
  /**
845
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
819
+ * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
846
820
  */
847
821
  brand: string | null;
848
822
 
@@ -861,8 +835,6 @@ declare module 'stripe' {
861
835
  */
862
836
  country: string | null;
863
837
 
864
- decremental_authorization?: Card.DecrementalAuthorization;
865
-
866
838
  /**
867
839
  * 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.)
868
840
  */
@@ -945,8 +917,6 @@ declare module 'stripe' {
945
917
 
946
918
  overcapture?: Card.Overcapture;
947
919
 
948
- partial_authorization?: Card.PartialAuthorization;
949
-
950
920
  /**
951
921
  * Status of a card based on the card issuer.
952
922
  */
@@ -981,17 +951,6 @@ declare module 'stripe' {
981
951
  cvc_check: string | null;
982
952
  }
983
953
 
984
- interface DecrementalAuthorization {
985
- /**
986
- * Indicates whether or not the decremental authorization feature is supported.
987
- */
988
- status: DecrementalAuthorization.Status;
989
- }
990
-
991
- namespace DecrementalAuthorization {
992
- type Status = 'available' | 'unavailable';
993
- }
994
-
995
954
  interface ExtendedAuthorization {
996
955
  /**
997
956
  * Indicates whether or not the capture window is extended beyond the standard authorization.
@@ -1079,21 +1038,6 @@ declare module 'stripe' {
1079
1038
  type Status = 'available' | 'unavailable';
1080
1039
  }
1081
1040
 
1082
- interface PartialAuthorization {
1083
- /**
1084
- * Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
1085
- */
1086
- status: PartialAuthorization.Status;
1087
- }
1088
-
1089
- namespace PartialAuthorization {
1090
- type Status =
1091
- | 'declined'
1092
- | 'fully_authorized'
1093
- | 'not_requested'
1094
- | 'partially_authorized';
1095
- }
1096
-
1097
1041
  type RegulatedStatus = 'regulated' | 'unregulated';
1098
1042
 
1099
1043
  interface ThreeDSecure {
@@ -1269,7 +1213,7 @@ declare module 'stripe' {
1269
1213
  amount_authorized: number | null;
1270
1214
 
1271
1215
  /**
1272
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1216
+ * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
1273
1217
  */
1274
1218
  brand: string | null;
1275
1219
 
@@ -1481,6 +1425,11 @@ declare module 'stripe' {
1481
1425
  * A public identifier for buyers using Cash App.
1482
1426
  */
1483
1427
  cashtag: string | null;
1428
+
1429
+ /**
1430
+ * A unique and immutable identifier of payments assigned by Cash App
1431
+ */
1432
+ transaction_id: string | null;
1484
1433
  }
1485
1434
 
1486
1435
  interface Crypto {
@@ -1628,8 +1577,6 @@ declare module 'stripe' {
1628
1577
  verified_name: string | null;
1629
1578
  }
1630
1579
 
1631
- interface Gopay {}
1632
-
1633
1580
  interface Grabpay {
1634
1581
  /**
1635
1582
  * Unique transaction id generated by GrabPay
@@ -1637,37 +1584,6 @@ declare module 'stripe' {
1637
1584
  transaction_id: string | null;
1638
1585
  }
1639
1586
 
1640
- interface IdBankTransfer {
1641
- /**
1642
- * Account number of the bank account to transfer funds to.
1643
- */
1644
- account_number: string;
1645
-
1646
- /**
1647
- * Bank where the account is located.
1648
- */
1649
- bank: IdBankTransfer.Bank;
1650
-
1651
- /**
1652
- * Local bank code of the bank.
1653
- */
1654
- bank_code?: string;
1655
-
1656
- /**
1657
- * Name of the bank associated with the bank account.
1658
- */
1659
- bank_name?: string;
1660
-
1661
- /**
1662
- * Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1663
- */
1664
- display_name?: string;
1665
- }
1666
-
1667
- namespace IdBankTransfer {
1668
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1669
- }
1670
-
1671
1587
  interface Ideal {
1672
1588
  /**
1673
1589
  * The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -2011,8 +1927,6 @@ declare module 'stripe' {
2011
1927
  country: string | null;
2012
1928
  }
2013
1929
 
2014
- interface MbWay {}
2015
-
2016
1930
  interface Mobilepay {
2017
1931
  /**
2018
1932
  * Internal card details
@@ -2200,36 +2114,10 @@ declare module 'stripe' {
2200
2114
  */
2201
2115
  seller_protection: Paypal.SellerProtection | null;
2202
2116
 
2203
- /**
2204
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2205
- * execution. This shipping address will not be updated if the merchant updates the shipping
2206
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2207
- */
2208
- shipping?: Stripe.Address | null;
2209
-
2210
2117
  /**
2211
2118
  * A unique ID generated by PayPal for this transaction.
2212
2119
  */
2213
2120
  transaction_id: string | null;
2214
-
2215
- /**
2216
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2217
- * execution. This shipping address will not be updated if the merchant updates the shipping
2218
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2219
- */
2220
- verified_address?: Stripe.Address | null;
2221
-
2222
- /**
2223
- * Owner's verified email. Values are verified or provided by PayPal directly
2224
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2225
- */
2226
- verified_email?: string | null;
2227
-
2228
- /**
2229
- * Owner's verified full name. Values are verified or provided by PayPal directly
2230
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2231
- */
2232
- verified_name?: string | null;
2233
2121
  }
2234
2122
 
2235
2123
  namespace Paypal {
@@ -2252,28 +2140,6 @@ declare module 'stripe' {
2252
2140
  }
2253
2141
  }
2254
2142
 
2255
- interface Payto {
2256
- /**
2257
- * Bank-State-Branch number of the bank account.
2258
- */
2259
- bsb_number: string | null;
2260
-
2261
- /**
2262
- * Last four digits of the bank account number.
2263
- */
2264
- last4: string | null;
2265
-
2266
- /**
2267
- * ID of the mandate used to make this payment.
2268
- */
2269
- mandate?: string;
2270
-
2271
- /**
2272
- * The PayID alias for the bank account.
2273
- */
2274
- pay_id: string | null;
2275
- }
2276
-
2277
2143
  interface Pix {
2278
2144
  /**
2279
2145
  * Unique transaction id generated by BCB
@@ -2288,10 +2154,6 @@ declare module 'stripe' {
2288
2154
  reference: string | null;
2289
2155
  }
2290
2156
 
2291
- interface Qris {}
2292
-
2293
- interface Rechnung {}
2294
-
2295
2157
  interface RevolutPay {
2296
2158
  funding?: RevolutPay.Funding;
2297
2159
  }
@@ -2309,15 +2171,10 @@ declare module 'stripe' {
2309
2171
  namespace Funding {
2310
2172
  interface Card {
2311
2173
  /**
2312
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
2174
+ * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
2313
2175
  */
2314
2176
  brand: string | null;
2315
2177
 
2316
- /**
2317
- * 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.)
2318
- */
2319
- brand_product?: string | null;
2320
-
2321
2178
  /**
2322
2179
  * 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.
2323
2180
  */
@@ -2404,8 +2261,6 @@ declare module 'stripe' {
2404
2261
  mandate: string | null;
2405
2262
  }
2406
2263
 
2407
- interface Shopeepay {}
2408
-
2409
2264
  interface Sofort {
2410
2265
  /**
2411
2266
  * Bank code of bank associated with the bank account.
@@ -2468,22 +2323,6 @@ declare module 'stripe' {
2468
2323
 
2469
2324
  interface StripeAccount {}
2470
2325
 
2471
- interface StripeBalance {
2472
- /**
2473
- * The connected account ID whose Stripe balance to use as the source of payment
2474
- */
2475
- account?: string | null;
2476
-
2477
- /**
2478
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2479
- */
2480
- source_type: StripeBalance.SourceType;
2481
- }
2482
-
2483
- namespace StripeBalance {
2484
- type SourceType = 'bank_account' | 'card' | 'fpx';
2485
- }
2486
-
2487
2326
  interface Swish {
2488
2327
  /**
2489
2328
  * Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
@@ -2580,7 +2419,7 @@ declare module 'stripe' {
2580
2419
 
2581
2420
  interface PresentmentDetails {
2582
2421
  /**
2583
- * Amount intended to be collected by this payment, denominated in presentment_currency.
2422
+ * Amount intended to be collected by this payment, denominated in `presentment_currency`.
2584
2423
  */
2585
2424
  presentment_amount: number;
2586
2425