stripe 11.0.0 → 11.2.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 (205) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +4 -6
  3. package/VERSION +1 -1
  4. package/lib/resources.js +7 -7
  5. package/package.json +2 -2
  6. package/types/AccountLinks.d.ts +33 -0
  7. package/types/{2022-11-15/AccountLinks.d.ts → AccountLinksResource.d.ts} +0 -28
  8. package/types/Accounts.d.ts +1154 -0
  9. package/types/{2022-11-15/Accounts.d.ts → AccountsResource.d.ts} +2013 -2392
  10. package/types/ApplePayDomains.d.ts +54 -0
  11. package/types/{2022-11-15/ApplePayDomains.d.ts → ApplePayDomainsResource.d.ts} +0 -49
  12. package/types/ApplicationFees.d.ts +80 -0
  13. package/types/{2022-11-15/ApplicationFees.d.ts → ApplicationFeesResource.d.ts} +27 -59
  14. package/types/{2022-11-15/Applications.d.ts → Applications.d.ts} +0 -0
  15. package/types/Apps/Secrets.d.ts +80 -0
  16. package/types/{2022-11-15/Apps/Secrets.d.ts → Apps/SecretsResource.d.ts} +0 -73
  17. package/types/{2022-11-15/Balance.d.ts → Balance.d.ts} +0 -21
  18. package/types/BalanceResource.d.ts +26 -0
  19. package/types/{2022-11-15/BalanceTransactions.d.ts → BalanceTransactions.d.ts} +0 -69
  20. package/types/BalanceTransactionsResource.d.ts +74 -0
  21. package/types/{2022-11-15/BankAccounts.d.ts → BankAccounts.d.ts} +0 -0
  22. package/types/BillingPortal/Configurations.d.ts +260 -0
  23. package/types/{2022-11-15/BillingPortal/Configurations.d.ts → BillingPortal/ConfigurationsResource.d.ts} +0 -253
  24. package/types/{2022-11-15/BillingPortal → BillingPortal}/Sessions.d.ts +64 -92
  25. package/types/BillingPortal/SessionsResource.d.ts +168 -0
  26. package/types/{2022-11-15/Capabilities.d.ts → Capabilities.d.ts} +0 -26
  27. package/types/{2022-11-15/Cards.d.ts → Cards.d.ts} +0 -0
  28. package/types/{2022-11-15/CashBalances.d.ts → CashBalances.d.ts} +0 -32
  29. package/types/{2022-11-15/Charges.d.ts → Charges.d.ts} +0 -410
  30. package/types/ChargesResource.d.ts +415 -0
  31. package/types/Checkout/Sessions.d.ts +1523 -0
  32. package/types/{2022-11-15/Checkout/Sessions.d.ts → Checkout/SessionsResource.d.ts} +111 -1410
  33. package/types/{2022-11-15/ConnectCollectionTransfers.d.ts → ConnectCollectionTransfers.d.ts} +0 -0
  34. package/types/{2022-11-15/CountrySpecs.d.ts → CountrySpecs.d.ts} +0 -38
  35. package/types/CountrySpecsResource.d.ts +43 -0
  36. package/types/Coupons.d.ts +136 -0
  37. package/types/{2022-11-15/Coupons.d.ts → CouponsResource.d.ts} +0 -131
  38. package/types/{2022-11-15/CreditNoteLineItems.d.ts → CreditNoteLineItems.d.ts} +0 -7
  39. package/types/CreditNotes.d.ts +191 -0
  40. package/types/{2022-11-15/CreditNotes.d.ts → CreditNotesResource.d.ts} +7 -186
  41. package/types/{2022-11-15/CustomerBalanceTransactions.d.ts → CustomerBalanceTransactions.d.ts} +0 -58
  42. package/types/{2022-11-15/CustomerCashBalanceTransactions.d.ts → CustomerCashBalanceTransactions.d.ts} +0 -15
  43. package/types/Customers.d.ts +295 -0
  44. package/types/{2022-11-15/Customers.d.ts → CustomersResource.d.ts} +345 -290
  45. package/types/{2022-11-15/Discounts.d.ts → Discounts.d.ts} +0 -0
  46. package/types/{2022-11-15/Disputes.d.ts → Disputes.d.ts} +0 -244
  47. package/types/DisputesResource.d.ts +249 -0
  48. package/types/EphemeralKeys.d.ts +40 -0
  49. package/types/{2022-11-15/EphemeralKeys.d.ts → EphemeralKeysResource.d.ts} +0 -35
  50. package/types/{2022-11-15/Events.d.ts → Events.d.ts} +0 -55
  51. package/types/EventsResource.d.ts +60 -0
  52. package/types/{2022-11-15/ExchangeRates.d.ts → ExchangeRates.d.ts} +0 -38
  53. package/types/ExchangeRatesResource.d.ts +43 -0
  54. package/types/{2022-11-15/FeeRefunds.d.ts → FeeRefunds.d.ts} +0 -43
  55. package/types/FileLinks.d.ts +57 -0
  56. package/types/{2022-11-15/FileLinks.d.ts → FileLinksResource.d.ts} +0 -52
  57. package/types/Files.d.ts +90 -0
  58. package/types/{2022-11-15/Files.d.ts → FilesResource.d.ts} +0 -85
  59. package/types/{2022-11-15/FinancialConnections → FinancialConnections}/AccountOwners.d.ts +0 -0
  60. package/types/{2022-11-15/FinancialConnections → FinancialConnections}/AccountOwnerships.d.ts +0 -0
  61. package/types/{2022-11-15/FinancialConnections → FinancialConnections}/Accounts.d.ts +0 -130
  62. package/types/FinancialConnections/AccountsResource.d.ts +137 -0
  63. package/types/FinancialConnections/Sessions.d.ts +90 -0
  64. package/types/{2022-11-15/FinancialConnections/Sessions.d.ts → FinancialConnections/SessionsResource.d.ts} +0 -83
  65. package/types/{2022-11-15/FundingInstructions.d.ts → FundingInstructions.d.ts} +0 -0
  66. package/types/{2022-11-15/Identity → Identity}/VerificationReports.d.ts +0 -56
  67. package/types/Identity/VerificationReportsResource.d.ts +63 -0
  68. package/types/Identity/VerificationSessions.d.ts +229 -0
  69. package/types/{2022-11-15/Identity/VerificationSessions.d.ts → Identity/VerificationSessionsResource.d.ts} +0 -222
  70. package/types/InvoiceItems.d.ts +164 -0
  71. package/types/{2022-11-15/InvoiceItems.d.ts → InvoiceItemsResource.d.ts} +2 -161
  72. package/types/{2022-11-15/InvoiceLineItems.d.ts → InvoiceLineItems.d.ts} +0 -7
  73. package/types/Invoices.d.ts +990 -0
  74. package/types/{2022-11-15/Invoices.d.ts → InvoicesResource.d.ts} +12 -990
  75. package/types/{2022-11-15/Issuing → Issuing}/Authorizations.d.ts +5 -147
  76. package/types/Issuing/AuthorizationsResource.d.ts +149 -0
  77. package/types/Issuing/Cardholders.d.ts +1108 -0
  78. package/types/{2022-11-15/Issuing/Cardholders.d.ts → Issuing/CardholdersResource.d.ts} +0 -1101
  79. package/types/Issuing/Cards.d.ts +1190 -0
  80. package/types/{2022-11-15/Issuing/Cards.d.ts → Issuing/CardsResource.d.ts} +0 -1183
  81. package/types/Issuing/Disputes.d.ts +341 -0
  82. package/types/{2022-11-15/Issuing/Disputes.d.ts → Issuing/DisputesResource.d.ts} +0 -334
  83. package/types/{2022-11-15/Issuing → Issuing}/Transactions.d.ts +1 -86
  84. package/types/Issuing/TransactionsResource.d.ts +92 -0
  85. package/types/{2022-11-15/LineItems.d.ts → LineItems.d.ts} +0 -0
  86. package/types/{2022-11-15/LoginLinks.d.ts → LoginLinks.d.ts} +0 -7
  87. package/types/{2022-11-15/Mandates.d.ts → Mandates.d.ts} +0 -22
  88. package/types/MandatesResource.d.ts +27 -0
  89. package/types/PaymentIntents.d.ts +1815 -0
  90. package/types/{2022-11-15/PaymentIntents.d.ts → PaymentIntentsResource.d.ts} +0 -1800
  91. package/types/PaymentLinks.d.ts +574 -0
  92. package/types/{2022-11-15/PaymentLinks.d.ts → PaymentLinksResource.d.ts} +70 -543
  93. package/types/PaymentMethods.d.ts +791 -0
  94. package/types/{2022-11-15/PaymentMethods.d.ts → PaymentMethodsResource.d.ts} +0 -786
  95. package/types/Payouts.d.ts +137 -0
  96. package/types/{2022-11-15/Payouts.d.ts → PayoutsResource.d.ts} +0 -132
  97. package/types/{2022-11-15/Persons.d.ts → Persons.d.ts} +0 -577
  98. package/types/Plans.d.ts +194 -0
  99. package/types/{2022-11-15/Plans.d.ts → PlansResource.d.ts} +0 -189
  100. package/types/{2022-11-15/PlatformTaxFees.d.ts → PlatformTaxFees.d.ts} +0 -0
  101. package/types/Prices.d.ts +328 -0
  102. package/types/{2022-11-15/Prices.d.ts → PricesResource.d.ts} +0 -323
  103. package/types/Products.d.ts +170 -0
  104. package/types/{2022-11-15/Products.d.ts → ProductsResource.d.ts} +0 -165
  105. package/types/PromotionCodes.d.ts +110 -0
  106. package/types/{2022-11-15/PromotionCodes.d.ts → PromotionCodesResource.d.ts} +0 -105
  107. package/types/Quotes.d.ts +519 -0
  108. package/types/{2022-11-15/Quotes.d.ts → QuotesResource.d.ts} +0 -514
  109. package/types/{2022-11-15/Radar → Radar}/EarlyFraudWarnings.d.ts +0 -52
  110. package/types/Radar/EarlyFraudWarningsResource.d.ts +59 -0
  111. package/types/Radar/ValueListItems.d.ts +71 -0
  112. package/types/{2022-11-15/Radar/ValueListItems.d.ts → Radar/ValueListItemsResource.d.ts} +0 -64
  113. package/types/Radar/ValueLists.d.ts +98 -0
  114. package/types/{2022-11-15/Radar/ValueLists.d.ts → Radar/ValueListsResource.d.ts} +0 -91
  115. package/types/Refunds.d.ts +151 -0
  116. package/types/{2022-11-15/Refunds.d.ts → RefundsResource.d.ts} +0 -146
  117. package/types/Reporting/ReportRuns.d.ts +115 -0
  118. package/types/{2022-11-15/Reporting/ReportRuns.d.ts → Reporting/ReportRunsResource.d.ts} +0 -108
  119. package/types/{2022-11-15/Reporting → Reporting}/ReportTypes.d.ts +0 -40
  120. package/types/Reporting/ReportTypesResource.d.ts +47 -0
  121. package/types/{2022-11-15/ReserveTransactions.d.ts → ReserveTransactions.d.ts} +0 -0
  122. package/types/{2022-11-15/Reviews.d.ts → Reviews.d.ts} +0 -60
  123. package/types/ReviewsResource.d.ts +65 -0
  124. package/types/{2022-11-15/SetupAttempts.d.ts → SetupAttempts.d.ts} +0 -30
  125. package/types/SetupAttemptsResource.d.ts +35 -0
  126. package/types/SetupIntents.d.ts +593 -0
  127. package/types/{2022-11-15/SetupIntents.d.ts → SetupIntentsResource.d.ts} +0 -588
  128. package/types/ShippingRates.d.ts +156 -0
  129. package/types/{2022-11-15/ShippingRates.d.ts → ShippingRatesResource.d.ts} +0 -151
  130. package/types/{2022-11-15/Sigma → Sigma}/ScheduledQueryRuns.d.ts +0 -40
  131. package/types/Sigma/ScheduledQueryRunsResource.d.ts +47 -0
  132. package/types/{2022-11-15/SourceMandateNotifications.d.ts → SourceMandateNotifications.d.ts} +0 -0
  133. package/types/{2022-11-15/SourceTransactions.d.ts → SourceTransactions.d.ts} +0 -0
  134. package/types/{2022-11-15/Sources.d.ts → Sources.d.ts} +0 -606
  135. package/types/SourcesResource.d.ts +611 -0
  136. package/types/SubscriptionItems.d.ts +104 -0
  137. package/types/{2022-11-15/SubscriptionItems.d.ts → SubscriptionItemsResource.d.ts} +33 -99
  138. package/types/SubscriptionSchedules.d.ts +425 -0
  139. package/types/{2022-11-15/SubscriptionSchedules.d.ts → SubscriptionSchedulesResource.d.ts} +10 -415
  140. package/types/Subscriptions.d.ts +553 -0
  141. package/types/{2022-11-15/Subscriptions.d.ts → SubscriptionsResource.d.ts} +0 -548
  142. package/types/TaxCodes.d.ts +30 -0
  143. package/types/{2022-11-15/TaxCodes.d.ts → TaxCodesResource.d.ts} +0 -25
  144. package/types/{2022-11-15/TaxDeductedAtSources.d.ts → TaxDeductedAtSources.d.ts} +0 -0
  145. package/types/{2022-11-15/TaxIds.d.ts → TaxIds.d.ts} +0 -88
  146. package/types/TaxRates.d.ts +94 -0
  147. package/types/{2022-11-15/TaxRates.d.ts → TaxRatesResource.d.ts} +0 -89
  148. package/types/Terminal/Configurations.d.ts +346 -0
  149. package/types/{2022-11-15/Terminal/Configurations.d.ts → Terminal/ConfigurationsResource.d.ts} +0 -339
  150. package/types/Terminal/ConnectionTokens.d.ts +29 -0
  151. package/types/{2022-11-15/Terminal/ConnectionTokens.d.ts → Terminal/ConnectionTokensResource.d.ts} +0 -22
  152. package/types/Terminal/Locations.d.ts +68 -0
  153. package/types/{2022-11-15/Terminal/Locations.d.ts → Terminal/LocationsResource.d.ts} +0 -61
  154. package/types/Terminal/Readers.d.ts +254 -0
  155. package/types/{2022-11-15/Terminal/Readers.d.ts → Terminal/ReadersResource.d.ts} +0 -247
  156. package/types/{2022-11-15/TestHelpers/Customers.d.ts → TestHelpers/CustomersResource.d.ts} +0 -0
  157. package/types/{2022-11-15/TestHelpers/Issuing/Cards.d.ts → TestHelpers/Issuing/CardsResource.d.ts} +0 -0
  158. package/types/{2022-11-15/TestHelpers/Refunds.d.ts → TestHelpers/RefundsResource.d.ts} +0 -0
  159. package/types/{2022-11-15/TestHelpers/Terminal/Readers.d.ts → TestHelpers/Terminal/ReadersResource.d.ts} +0 -0
  160. package/types/TestHelpers/TestClocks.d.ts +80 -0
  161. package/types/{2022-11-15/TestHelpers/TestClocks.d.ts → TestHelpers/TestClocksResource.d.ts} +0 -73
  162. package/types/{2022-11-15/TestHelpers/Treasury/InboundTransfers.d.ts → TestHelpers/Treasury/InboundTransfersResource.d.ts} +0 -0
  163. package/types/{2022-11-15/TestHelpers/Treasury/OutboundPayments.d.ts → TestHelpers/Treasury/OutboundPaymentsResource.d.ts} +0 -0
  164. package/types/{2022-11-15/TestHelpers/Treasury/OutboundTransfers.d.ts → TestHelpers/Treasury/OutboundTransfersResource.d.ts} +0 -0
  165. package/types/{2022-11-15/TestHelpers/Treasury/ReceivedCredits.d.ts → TestHelpers/Treasury/ReceivedCreditsResource.d.ts} +0 -0
  166. package/types/{2022-11-15/TestHelpers/Treasury/ReceivedDebits.d.ts → TestHelpers/Treasury/ReceivedDebitsResource.d.ts} +0 -0
  167. package/types/Tokens.d.ts +86 -0
  168. package/types/{2022-11-15/Tokens.d.ts → TokensResource.d.ts} +0 -81
  169. package/types/Topups.d.ts +103 -0
  170. package/types/{2022-11-15/Topups.d.ts → TopupsResource.d.ts} +0 -98
  171. package/types/{2022-11-15/TransferReversals.d.ts → TransferReversals.d.ts} +0 -53
  172. package/types/Transfers.d.ts +104 -0
  173. package/types/{2022-11-15/Transfers.d.ts → TransfersResource.d.ts} +53 -99
  174. package/types/{2022-11-15/Treasury → Treasury}/CreditReversals.d.ts +0 -81
  175. package/types/Treasury/CreditReversalsResource.d.ts +88 -0
  176. package/types/{2022-11-15/Treasury → Treasury}/DebitReversals.d.ts +0 -88
  177. package/types/Treasury/DebitReversalsResource.d.ts +95 -0
  178. package/types/{2022-11-15/Treasury → Treasury}/FinancialAccountFeatures.d.ts +0 -0
  179. package/types/Treasury/FinancialAccounts.d.ts +240 -0
  180. package/types/{2022-11-15/Treasury/FinancialAccounts.d.ts → Treasury/FinancialAccountsResource.d.ts} +0 -233
  181. package/types/{2022-11-15/Treasury → Treasury}/InboundTransfers.d.ts +0 -121
  182. package/types/Treasury/InboundTransfersResource.d.ts +128 -0
  183. package/types/Treasury/OutboundPayments.d.ts +273 -0
  184. package/types/{2022-11-15/Treasury/OutboundPayments.d.ts → Treasury/OutboundPaymentsResource.d.ts} +0 -266
  185. package/types/{2022-11-15/Treasury → Treasury}/OutboundTransfers.d.ts +0 -155
  186. package/types/Treasury/OutboundTransfersResource.d.ts +162 -0
  187. package/types/{2022-11-15/Treasury → Treasury}/ReceivedCredits.d.ts +0 -71
  188. package/types/Treasury/ReceivedCreditsResource.d.ts +78 -0
  189. package/types/{2022-11-15/Treasury → Treasury}/ReceivedDebits.d.ts +0 -51
  190. package/types/Treasury/ReceivedDebitsResource.d.ts +58 -0
  191. package/types/{2022-11-15/Treasury → Treasury}/TransactionEntries.d.ts +0 -60
  192. package/types/Treasury/TransactionEntriesResource.d.ts +67 -0
  193. package/types/{2022-11-15/Treasury → Treasury}/Transactions.d.ts +0 -72
  194. package/types/Treasury/TransactionsResource.d.ts +79 -0
  195. package/types/UpcomingInvoices.d.ts +5 -0
  196. package/types/{2022-11-15/UsageRecordSummaries.d.ts → UsageRecordSummaries.d.ts} +0 -7
  197. package/types/UsageRecords.d.ts +43 -0
  198. package/types/WebhookEndpoints.d.ts +98 -0
  199. package/types/{2022-11-15/WebhookEndpoints.d.ts → WebhookEndpointsResource.d.ts} +0 -93
  200. package/types/{2022-11-15/index.d.ts → index.d.ts} +95 -18
  201. package/types/lib.d.ts +1 -26
  202. package/types/test/typescriptTest.ts +5 -2
  203. package/types/2022-11-15/CustomerSources.d.ts +0 -157
  204. package/types/2022-11-15/ExternalAccounts.d.ts +0 -134
  205. package/types/2022-11-15/UsageRecords.d.ts +0 -69
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 11.2.0 - 2022-12-06
4
+ * [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates
5
+ * Add support for `flow_data` on `BillingPortalSessionCreateParams`
6
+ * Add support for `flow` on `BillingPortal.Session`
7
+ * [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates
8
+ * Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
9
+ * Add support for `invoice_creation` on `Checkout.Session` and `CheckoutSessionCreateParams`
10
+ * Add support for `invoice` on `Checkout.Session`
11
+ * Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]`
12
+ * [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions
13
+ * [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming()
14
+ * [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE
15
+ * [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path
16
+ * [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations
17
+ * [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types
18
+
19
+ ## 11.1.0 - 2022-11-17
20
+ * [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates
21
+ * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code`
22
+ * [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates
23
+ * Add support for `custom_text` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
24
+ * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code`
25
+
26
+
3
27
  ## 11.0.0 - 2022-11-16
4
28
 
5
29
  This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15
package/README.md CHANGED
@@ -54,13 +54,11 @@ Or using ES modules and `async`/`await`:
54
54
  import Stripe from 'stripe';
55
55
  const stripe = new Stripe('sk_test_...');
56
56
 
57
- (async () => {
58
- const customer = await stripe.customers.create({
59
- email: 'customer@example.com',
60
- });
57
+ const customer = await stripe.customers.create({
58
+ email: 'customer@example.com',
59
+ });
61
60
 
62
- console.log(customer.id);
63
- })();
61
+ console.log(customer.id);
64
62
  ```
65
63
 
66
64
  ### Usage with TypeScript
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.0.0
1
+ 11.2.0
package/lib/resources.js CHANGED
@@ -2,10 +2,10 @@
2
2
  'use strict';
3
3
  const resourceNamespace = require('./ResourceNamespace');
4
4
  module.exports = {
5
- Accounts: require('./resources/Accounts'),
6
5
  // Support Accounts for consistency, Account for backwards compatibility
7
6
  Account: require('./resources/Accounts'),
8
7
  AccountLinks: require('./resources/AccountLinks'),
8
+ Accounts: require('./resources/Accounts'),
9
9
  ApplePayDomains: require('./resources/ApplePayDomains'),
10
10
  ApplicationFees: require('./resources/ApplicationFees'),
11
11
  Balance: require('./resources/Balance'),
@@ -19,10 +19,10 @@ module.exports = {
19
19
  EphemeralKeys: require('./resources/EphemeralKeys'),
20
20
  Events: require('./resources/Events'),
21
21
  ExchangeRates: require('./resources/ExchangeRates'),
22
- Files: require('./resources/Files'),
23
22
  FileLinks: require('./resources/FileLinks'),
24
- Invoices: require('./resources/Invoices'),
23
+ Files: require('./resources/Files'),
25
24
  InvoiceItems: require('./resources/InvoiceItems'),
25
+ Invoices: require('./resources/Invoices'),
26
26
  Mandates: require('./resources/Mandates'),
27
27
  OAuth: require('./resources/OAuth'),
28
28
  PaymentIntents: require('./resources/PaymentIntents'),
@@ -40,8 +40,8 @@ module.exports = {
40
40
  SetupIntents: require('./resources/SetupIntents'),
41
41
  ShippingRates: require('./resources/ShippingRates'),
42
42
  Sources: require('./resources/Sources'),
43
- Subscriptions: require('./resources/Subscriptions'),
44
43
  SubscriptionItems: require('./resources/SubscriptionItems'),
44
+ Subscriptions: require('./resources/Subscriptions'),
45
45
  SubscriptionSchedules: require('./resources/SubscriptionSchedules'),
46
46
  TaxCodes: require('./resources/TaxCodes'),
47
47
  TaxRates: require('./resources/TaxRates'),
@@ -69,15 +69,15 @@ module.exports = {
69
69
  }),
70
70
  Issuing: resourceNamespace('issuing', {
71
71
  Authorizations: require('./resources/Issuing/Authorizations'),
72
- Cards: require('./resources/Issuing/Cards'),
73
72
  Cardholders: require('./resources/Issuing/Cardholders'),
73
+ Cards: require('./resources/Issuing/Cards'),
74
74
  Disputes: require('./resources/Issuing/Disputes'),
75
75
  Transactions: require('./resources/Issuing/Transactions'),
76
76
  }),
77
77
  Radar: resourceNamespace('radar', {
78
78
  EarlyFraudWarnings: require('./resources/Radar/EarlyFraudWarnings'),
79
- ValueLists: require('./resources/Radar/ValueLists'),
80
79
  ValueListItems: require('./resources/Radar/ValueListItems'),
80
+ ValueLists: require('./resources/Radar/ValueLists'),
81
81
  }),
82
82
  Reporting: resourceNamespace('reporting', {
83
83
  ReportRuns: require('./resources/Reporting/ReportRuns'),
@@ -119,7 +119,7 @@ module.exports = {
119
119
  OutboundTransfers: require('./resources/Treasury/OutboundTransfers'),
120
120
  ReceivedCredits: require('./resources/Treasury/ReceivedCredits'),
121
121
  ReceivedDebits: require('./resources/Treasury/ReceivedDebits'),
122
- Transactions: require('./resources/Treasury/Transactions'),
123
122
  TransactionEntries: require('./resources/Treasury/TransactionEntries'),
123
+ Transactions: require('./resources/Treasury/Transactions'),
124
124
  }),
125
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "11.0.0",
3
+ "version": "11.2.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -25,7 +25,7 @@
25
25
  "node": ">=12.*"
26
26
  },
27
27
  "main": "lib/stripe.js",
28
- "types": "types/2022-11-15/index.d.ts",
28
+ "types": "types/index.d.ts",
29
29
  "devDependencies": {
30
30
  "@typescript-eslint/eslint-plugin": "^4.33.0",
31
31
  "@typescript-eslint/parser": "^4.33.0",
@@ -0,0 +1,33 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ /**
6
+ * Account Links are the means by which a Connect platform grants a connected account permission to access
7
+ * Stripe-hosted applications, such as Connect Onboarding.
8
+ *
9
+ * Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding).
10
+ */
11
+ interface AccountLink {
12
+ /**
13
+ * String representing the object's type. Objects of the same type share the same value.
14
+ */
15
+ object: 'account_link';
16
+
17
+ /**
18
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
19
+ */
20
+ created: number;
21
+
22
+ /**
23
+ * The timestamp at which this account link will expire.
24
+ */
25
+ expires_at: number;
26
+
27
+ /**
28
+ * The URL for the account link.
29
+ */
30
+ url: string;
31
+ }
32
+ }
33
+ }
@@ -2,34 +2,6 @@
2
2
 
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
- /**
6
- * Account Links are the means by which a Connect platform grants a connected account permission to access
7
- * Stripe-hosted applications, such as Connect Onboarding.
8
- *
9
- * Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding).
10
- */
11
- interface AccountLink {
12
- /**
13
- * String representing the object's type. Objects of the same type share the same value.
14
- */
15
- object: 'account_link';
16
-
17
- /**
18
- * Time at which the object was created. Measured in seconds since the Unix epoch.
19
- */
20
- created: number;
21
-
22
- /**
23
- * The timestamp at which this account link will expire.
24
- */
25
- expires_at: number;
26
-
27
- /**
28
- * The URL for the account link.
29
- */
30
- url: string;
31
- }
32
-
33
5
  interface AccountLinkCreateParams {
34
6
  /**
35
7
  * The identifier of the account to create an account link for.