stripe 16.13.0-beta.1 → 17.1.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 (221) hide show
  1. package/CHANGELOG.md +139 -849
  2. package/README.md +4 -3
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +31 -4
  5. package/cjs/RequestSender.js +114 -74
  6. package/cjs/StripeResource.js +8 -3
  7. package/cjs/apiVersion.js +2 -3
  8. package/cjs/autoPagination.js +51 -7
  9. package/cjs/crypto/CryptoProvider.js +6 -0
  10. package/cjs/crypto/NodeCryptoProvider.js +7 -0
  11. package/cjs/crypto/SubtleCryptoProvider.js +4 -0
  12. package/cjs/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +3 -3
  13. package/cjs/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +4 -4
  14. package/cjs/resources/Billing/CreditGrants.js +30 -0
  15. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  16. package/cjs/resources/Invoices.js +0 -17
  17. package/cjs/resources/PaymentIntents.js +0 -4
  18. package/cjs/resources/Quotes.js +0 -32
  19. package/cjs/resources/SubscriptionSchedules.js +0 -4
  20. package/cjs/resources/Terminal/Readers.js +0 -12
  21. package/cjs/resources/V2/Billing/MeterEventAdjustments.js +12 -0
  22. package/cjs/resources/V2/Billing/MeterEventSession.js +12 -0
  23. package/cjs/resources/V2/Billing/MeterEventStream.js +13 -0
  24. package/cjs/resources/V2/Billing/MeterEvents.js +9 -0
  25. package/cjs/resources/V2/Billing.js +18 -0
  26. package/cjs/resources/V2/Core/Events.js +14 -0
  27. package/cjs/resources/V2/Core.js +12 -0
  28. package/cjs/resources/V2.js +14 -0
  29. package/cjs/resources.js +18 -42
  30. package/cjs/stripe.core.js +20 -8
  31. package/cjs/utils.js +41 -10
  32. package/esm/Error.js +27 -2
  33. package/esm/RequestSender.js +115 -75
  34. package/esm/StripeResource.js +9 -4
  35. package/esm/apiVersion.js +1 -2
  36. package/esm/autoPagination.js +52 -8
  37. package/esm/crypto/CryptoProvider.js +6 -0
  38. package/esm/crypto/NodeCryptoProvider.js +7 -0
  39. package/esm/crypto/SubtleCryptoProvider.js +4 -0
  40. package/esm/resources/{Capital/FinancingSummary.js → Billing/CreditBalanceSummary.js} +2 -2
  41. package/esm/resources/{FinancialConnections/Institutions.js → Billing/CreditBalanceTransactions.js} +3 -3
  42. package/esm/resources/Billing/CreditGrants.js +27 -0
  43. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  44. package/esm/resources/Invoices.js +0 -17
  45. package/esm/resources/PaymentIntents.js +0 -4
  46. package/esm/resources/Quotes.js +0 -32
  47. package/esm/resources/SubscriptionSchedules.js +0 -4
  48. package/esm/resources/Terminal/Readers.js +0 -12
  49. package/esm/resources/V2/Billing/MeterEventAdjustments.js +9 -0
  50. package/esm/resources/V2/Billing/MeterEventSession.js +9 -0
  51. package/esm/resources/V2/Billing/MeterEventStream.js +10 -0
  52. package/esm/resources/V2/Billing/MeterEvents.js +6 -0
  53. package/esm/resources/V2/Billing.js +15 -0
  54. package/esm/resources/V2/Core/Events.js +11 -0
  55. package/esm/resources/V2/Core.js +9 -0
  56. package/esm/resources/V2.js +11 -0
  57. package/esm/resources.js +7 -29
  58. package/esm/stripe.core.js +21 -9
  59. package/esm/utils.js +38 -9
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +1 -5
  62. package/types/AccountSessions.d.ts +0 -45
  63. package/types/AccountSessionsResource.d.ts +0 -288
  64. package/types/Accounts.d.ts +1 -113
  65. package/types/AccountsResource.d.ts +0 -270
  66. package/types/Billing/Alerts.d.ts +17 -13
  67. package/types/Billing/AlertsResource.d.ts +18 -21
  68. package/types/Billing/CreditBalanceSummary.d.ts +94 -0
  69. package/types/Billing/CreditBalanceSummaryResource.d.ts +64 -0
  70. package/types/Billing/CreditBalanceTransactions.d.ts +159 -0
  71. package/types/Billing/CreditBalanceTransactionsResource.d.ts +54 -0
  72. package/types/Billing/CreditGrants.d.ts +124 -0
  73. package/types/Billing/CreditGrantsResource.d.ts +219 -0
  74. package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
  75. package/types/Capabilities.d.ts +1 -1
  76. package/types/Charges.d.ts +0 -71
  77. package/types/ChargesResource.d.ts +0 -1294
  78. package/types/Checkout/Sessions.d.ts +4 -296
  79. package/types/Checkout/SessionsResource.d.ts +6 -352
  80. package/types/ConfirmationTokens.d.ts +0 -67
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNoteLineItems.d.ts +30 -0
  84. package/types/CreditNotes.d.ts +27 -18
  85. package/types/CreditNotesResource.d.ts +0 -51
  86. package/types/Customers.d.ts +2 -3
  87. package/types/CustomersResource.d.ts +0 -3
  88. package/types/Disputes.d.ts +0 -152
  89. package/types/DisputesResource.d.ts +0 -120
  90. package/types/Errors.d.ts +32 -2
  91. package/types/EventTypes.d.ts +2 -545
  92. package/types/Events.d.ts +0 -90
  93. package/types/FinancialConnections/Accounts.d.ts +1 -29
  94. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  95. package/types/FinancialConnections/Sessions.d.ts +1 -49
  96. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  97. package/types/InvoiceItems.d.ts +0 -5
  98. package/types/InvoiceItemsResource.d.ts +0 -98
  99. package/types/InvoiceLineItems.d.ts +29 -20
  100. package/types/Invoices.d.ts +25 -108
  101. package/types/InvoicesResource.d.ts +1835 -5493
  102. package/types/Issuing/CardholdersResource.d.ts +1 -2
  103. package/types/Issuing/Transactions.d.ts +0 -2
  104. package/types/Issuing/TransactionsResource.d.ts +0 -5
  105. package/types/LineItems.d.ts +0 -7
  106. package/types/Mandates.d.ts +0 -77
  107. package/types/PaymentIntents.d.ts +1 -503
  108. package/types/PaymentIntentsResource.d.ts +3464 -7064
  109. package/types/PaymentLinks.d.ts +0 -3
  110. package/types/PaymentLinksResource.d.ts +0 -6
  111. package/types/PaymentMethodConfigurations.d.ts +0 -36
  112. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  113. package/types/PaymentMethods.d.ts +0 -67
  114. package/types/PaymentMethodsResource.d.ts +0 -88
  115. package/types/Prices.d.ts +0 -22
  116. package/types/PricesResource.d.ts +0 -22
  117. package/types/Products.d.ts +0 -39
  118. package/types/ProductsResource.d.ts +28 -37
  119. package/types/PromotionCodes.d.ts +1 -1
  120. package/types/PromotionCodesResource.d.ts +3 -1
  121. package/types/Quotes.d.ts +1 -596
  122. package/types/QuotesResource.d.ts +199 -2531
  123. package/types/SetupAttempts.d.ts +0 -10
  124. package/types/SetupIntents.d.ts +1 -111
  125. package/types/SetupIntentsResource.d.ts +3 -522
  126. package/types/Sources.d.ts +0 -23
  127. package/types/SubscriptionItems.d.ts +0 -21
  128. package/types/SubscriptionItemsResource.d.ts +0 -109
  129. package/types/SubscriptionSchedules.d.ts +0 -200
  130. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  131. package/types/Subscriptions.d.ts +1 -82
  132. package/types/SubscriptionsResource.d.ts +5 -350
  133. package/types/Tax/Settings.d.ts +1 -1
  134. package/types/Terminal/Readers.d.ts +0 -278
  135. package/types/Terminal/ReadersResource.d.ts +13 -212
  136. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  137. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  138. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  139. package/types/ThinEvent.d.ts +36 -0
  140. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  141. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  142. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  143. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  144. package/types/Treasury/ReceivedCredits.d.ts +5 -27
  145. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  146. package/types/V2/Billing/MeterEventAdjustments.d.ts +65 -0
  147. package/types/V2/Billing/MeterEventAdjustmentsResource.d.ts +47 -0
  148. package/types/V2/Billing/MeterEventSessionResource.d.ts +26 -0
  149. package/types/V2/Billing/MeterEventSessions.d.ts +45 -0
  150. package/types/V2/Billing/MeterEventStreamResource.d.ts +62 -0
  151. package/types/V2/Billing/MeterEvents.d.ts +54 -0
  152. package/types/V2/Billing/MeterEventsResource.d.ts +52 -0
  153. package/types/V2/BillingResource.d.ts +14 -0
  154. package/types/V2/Core/EventsResource.d.ts +57 -0
  155. package/types/V2/CoreResource.d.ts +11 -0
  156. package/types/V2/EventTypes.d.ts +214 -0
  157. package/types/V2/Events.d.ts +75 -0
  158. package/types/V2Resource.d.ts +10 -0
  159. package/types/WebhookEndpointsResource.d.ts +2 -65
  160. package/types/index.d.ts +67 -53
  161. package/types/lib.d.ts +1 -6
  162. package/types/test/typescriptTest.ts +3 -3
  163. package/cjs/resources/AccountNotices.js +0 -21
  164. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  165. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  166. package/cjs/resources/GiftCards/Cards.js +0 -23
  167. package/cjs/resources/GiftCards/Transactions.js +0 -33
  168. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  169. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  170. package/cjs/resources/Margins.js +0 -22
  171. package/cjs/resources/Orders.js +0 -24
  172. package/cjs/resources/Tax/Associations.js +0 -9
  173. package/cjs/resources/Tax/Forms.js +0 -20
  174. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  175. package/esm/resources/AccountNotices.js +0 -18
  176. package/esm/resources/Capital/FinancingOffers.js +0 -18
  177. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  178. package/esm/resources/GiftCards/Cards.js +0 -20
  179. package/esm/resources/GiftCards/Transactions.js +0 -30
  180. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  181. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  182. package/esm/resources/Margins.js +0 -19
  183. package/esm/resources/Orders.js +0 -21
  184. package/esm/resources/Tax/Associations.js +0 -6
  185. package/esm/resources/Tax/Forms.js +0 -17
  186. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  187. package/types/AccountNotices.d.ts +0 -113
  188. package/types/AccountNoticesResource.d.ts +0 -98
  189. package/types/Billing/MeterErrorReports.d.ts +0 -106
  190. package/types/Capital/FinancingOffers.d.ts +0 -188
  191. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  192. package/types/Capital/FinancingSummary.d.ts +0 -106
  193. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  194. package/types/Capital/FinancingTransactions.d.ts +0 -135
  195. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  196. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  197. package/types/FinancialConnections/Institutions.d.ts +0 -93
  198. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  199. package/types/GiftCards/Cards.d.ts +0 -118
  200. package/types/GiftCards/CardsResource.d.ts +0 -159
  201. package/types/GiftCards/Transactions.d.ts +0 -129
  202. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  203. package/types/InvoicePayments.d.ts +0 -138
  204. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  205. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  206. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  207. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  208. package/types/Issuing/Settlements.d.ts +0 -103
  209. package/types/Margins.d.ts +0 -56
  210. package/types/MarginsResource.d.ts +0 -114
  211. package/types/Orders.d.ts +0 -1084
  212. package/types/OrdersResource.d.ts +0 -2765
  213. package/types/QuoteLines.d.ts +0 -634
  214. package/types/QuotePreviewInvoices.d.ts +0 -1548
  215. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  216. package/types/Tax/Associations.d.ts +0 -126
  217. package/types/Tax/AssociationsResource.d.ts +0 -29
  218. package/types/Tax/Forms.d.ts +0 -133
  219. package/types/Tax/FormsResource.d.ts +0 -90
  220. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  221. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
package/types/index.d.ts CHANGED
@@ -8,9 +8,10 @@
8
8
  ///<reference path='./EventTypes.d.ts' />
9
9
  ///<reference path='./UpcomingInvoices.d.ts' />
10
10
  ///<reference path='./Deprecations.d.ts' />
11
+ ///<reference path='./ThinEvent.d.ts' />
12
+ ///<reference path='./crypto/crypto.d.ts' />
11
13
  // Imports: The beginning of the section generated from our OpenAPI spec
12
14
  ///<reference path='./AccountLinksResource.d.ts' />
13
- ///<reference path='./AccountNoticesResource.d.ts' />
14
15
  ///<reference path='./AccountSessionsResource.d.ts' />
15
16
  ///<reference path='./AccountsResource.d.ts' />
16
17
  ///<reference path='./ApplePayDomainsResource.d.ts' />
@@ -19,14 +20,14 @@
19
20
  ///<reference path='./BalanceResource.d.ts' />
20
21
  ///<reference path='./BalanceTransactionsResource.d.ts' />
21
22
  ///<reference path='./Billing/AlertsResource.d.ts' />
23
+ ///<reference path='./Billing/CreditBalanceSummaryResource.d.ts' />
24
+ ///<reference path='./Billing/CreditBalanceTransactionsResource.d.ts' />
25
+ ///<reference path='./Billing/CreditGrantsResource.d.ts' />
22
26
  ///<reference path='./Billing/MeterEventAdjustmentsResource.d.ts' />
23
27
  ///<reference path='./Billing/MeterEventsResource.d.ts' />
24
28
  ///<reference path='./Billing/MetersResource.d.ts' />
25
29
  ///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
26
30
  ///<reference path='./BillingPortal/SessionsResource.d.ts' />
27
- ///<reference path='./Capital/FinancingOffersResource.d.ts' />
28
- ///<reference path='./Capital/FinancingSummaryResource.d.ts' />
29
- ///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
30
31
  ///<reference path='./ChargesResource.d.ts' />
31
32
  ///<reference path='./Checkout/SessionsResource.d.ts' />
32
33
  ///<reference path='./Climate/OrdersResource.d.ts' />
@@ -47,12 +48,9 @@
47
48
  ///<reference path='./FileLinksResource.d.ts' />
48
49
  ///<reference path='./FilesResource.d.ts' />
49
50
  ///<reference path='./FinancialConnections/AccountsResource.d.ts' />
50
- ///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
51
51
  ///<reference path='./FinancialConnections/SessionsResource.d.ts' />
52
52
  ///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
53
53
  ///<reference path='./Forwarding/RequestsResource.d.ts' />
54
- ///<reference path='./GiftCards/CardsResource.d.ts' />
55
- ///<reference path='./GiftCards/TransactionsResource.d.ts' />
56
54
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
57
55
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
58
56
  ///<reference path='./InvoiceItemsResource.d.ts' />
@@ -61,16 +59,12 @@
61
59
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
62
60
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
63
61
  ///<reference path='./Issuing/CardsResource.d.ts' />
64
- ///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
65
- ///<reference path='./Issuing/DisputeSettlementDetailsResource.d.ts' />
66
62
  ///<reference path='./Issuing/DisputesResource.d.ts' />
67
63
  ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
68
64
  ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
69
65
  ///<reference path='./Issuing/TokensResource.d.ts' />
70
66
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
71
67
  ///<reference path='./MandatesResource.d.ts' />
72
- ///<reference path='./MarginsResource.d.ts' />
73
- ///<reference path='./OrdersResource.d.ts' />
74
68
  ///<reference path='./PaymentIntentsResource.d.ts' />
75
69
  ///<reference path='./PaymentLinksResource.d.ts' />
76
70
  ///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
@@ -97,9 +91,7 @@
97
91
  ///<reference path='./SubscriptionItemsResource.d.ts' />
98
92
  ///<reference path='./SubscriptionSchedulesResource.d.ts' />
99
93
  ///<reference path='./SubscriptionsResource.d.ts' />
100
- ///<reference path='./Tax/AssociationsResource.d.ts' />
101
94
  ///<reference path='./Tax/CalculationsResource.d.ts' />
102
- ///<reference path='./Tax/FormsResource.d.ts' />
103
95
  ///<reference path='./Tax/RegistrationsResource.d.ts' />
104
96
  ///<reference path='./Tax/SettingsResource.d.ts' />
105
97
  ///<reference path='./Tax/TransactionsResource.d.ts' />
@@ -109,7 +101,6 @@
109
101
  ///<reference path='./Terminal/ConfigurationsResource.d.ts' />
110
102
  ///<reference path='./Terminal/ConnectionTokensResource.d.ts' />
111
103
  ///<reference path='./Terminal/LocationsResource.d.ts' />
112
- ///<reference path='./Terminal/ReaderCollectedDataResource.d.ts' />
113
104
  ///<reference path='./Terminal/ReadersResource.d.ts' />
114
105
  ///<reference path='./TestHelpers/ConfirmationTokensResource.d.ts' />
115
106
  ///<reference path='./TestHelpers/CustomersResource.d.ts' />
@@ -138,9 +129,16 @@
138
129
  ///<reference path='./Treasury/ReceivedDebitsResource.d.ts' />
139
130
  ///<reference path='./Treasury/TransactionEntriesResource.d.ts' />
140
131
  ///<reference path='./Treasury/TransactionsResource.d.ts' />
132
+ ///<reference path='./V2/Billing/MeterEventAdjustmentsResource.d.ts' />
133
+ ///<reference path='./V2/Billing/MeterEventSessionResource.d.ts' />
134
+ ///<reference path='./V2/Billing/MeterEventStreamResource.d.ts' />
135
+ ///<reference path='./V2/Billing/MeterEventsResource.d.ts' />
136
+ ///<reference path='./V2/BillingResource.d.ts' />
137
+ ///<reference path='./V2/Core/EventsResource.d.ts' />
138
+ ///<reference path='./V2/CoreResource.d.ts' />
139
+ ///<reference path='./V2Resource.d.ts' />
141
140
  ///<reference path='./WebhookEndpointsResource.d.ts' />
142
141
  ///<reference path='./AccountLinks.d.ts' />
143
- ///<reference path='./AccountNotices.d.ts' />
144
142
  ///<reference path='./AccountSessions.d.ts' />
145
143
  ///<reference path='./Accounts.d.ts' />
146
144
  ///<reference path='./ApplePayDomains.d.ts' />
@@ -153,7 +151,9 @@
153
151
  ///<reference path='./BankAccounts.d.ts' />
154
152
  ///<reference path='./Billing/AlertTriggereds.d.ts' />
155
153
  ///<reference path='./Billing/Alerts.d.ts' />
156
- ///<reference path='./Billing/MeterErrorReports.d.ts' />
154
+ ///<reference path='./Billing/CreditBalanceSummary.d.ts' />
155
+ ///<reference path='./Billing/CreditBalanceTransactions.d.ts' />
156
+ ///<reference path='./Billing/CreditGrants.d.ts' />
157
157
  ///<reference path='./Billing/MeterEventAdjustments.d.ts' />
158
158
  ///<reference path='./Billing/MeterEventSummaries.d.ts' />
159
159
  ///<reference path='./Billing/MeterEvents.d.ts' />
@@ -161,9 +161,6 @@
161
161
  ///<reference path='./BillingPortal/Configurations.d.ts' />
162
162
  ///<reference path='./BillingPortal/Sessions.d.ts' />
163
163
  ///<reference path='./Capabilities.d.ts' />
164
- ///<reference path='./Capital/FinancingOffers.d.ts' />
165
- ///<reference path='./Capital/FinancingSummary.d.ts' />
166
- ///<reference path='./Capital/FinancingTransactions.d.ts' />
167
164
  ///<reference path='./Cards.d.ts' />
168
165
  ///<reference path='./CashBalances.d.ts' />
169
166
  ///<reference path='./Charges.d.ts' />
@@ -194,40 +191,30 @@
194
191
  ///<reference path='./FeeRefunds.d.ts' />
195
192
  ///<reference path='./FileLinks.d.ts' />
196
193
  ///<reference path='./Files.d.ts' />
197
- ///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
198
194
  ///<reference path='./FinancialConnections/AccountOwners.d.ts' />
199
195
  ///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
200
196
  ///<reference path='./FinancialConnections/Accounts.d.ts' />
201
- ///<reference path='./FinancialConnections/Institutions.d.ts' />
202
197
  ///<reference path='./FinancialConnections/Sessions.d.ts' />
203
198
  ///<reference path='./FinancialConnections/Transactions.d.ts' />
204
199
  ///<reference path='./Forwarding/Requests.d.ts' />
205
200
  ///<reference path='./FundingInstructions.d.ts' />
206
- ///<reference path='./GiftCards/Cards.d.ts' />
207
- ///<reference path='./GiftCards/Transactions.d.ts' />
208
201
  ///<reference path='./Identity/VerificationReports.d.ts' />
209
202
  ///<reference path='./Identity/VerificationSessions.d.ts' />
210
203
  ///<reference path='./InvoiceItems.d.ts' />
211
204
  ///<reference path='./InvoiceLineItems.d.ts' />
212
- ///<reference path='./InvoicePayments.d.ts' />
213
205
  ///<reference path='./InvoiceRenderingTemplates.d.ts' />
214
206
  ///<reference path='./Invoices.d.ts' />
215
207
  ///<reference path='./Issuing/Authorizations.d.ts' />
216
208
  ///<reference path='./Issuing/Cardholders.d.ts' />
217
209
  ///<reference path='./Issuing/Cards.d.ts' />
218
- ///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
219
- ///<reference path='./Issuing/DisputeSettlementDetails.d.ts' />
220
210
  ///<reference path='./Issuing/Disputes.d.ts' />
221
211
  ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
222
212
  ///<reference path='./Issuing/PhysicalBundles.d.ts' />
223
- ///<reference path='./Issuing/Settlements.d.ts' />
224
213
  ///<reference path='./Issuing/Tokens.d.ts' />
225
214
  ///<reference path='./Issuing/Transactions.d.ts' />
226
215
  ///<reference path='./LineItems.d.ts' />
227
216
  ///<reference path='./LoginLinks.d.ts' />
228
217
  ///<reference path='./Mandates.d.ts' />
229
- ///<reference path='./Margins.d.ts' />
230
- ///<reference path='./Orders.d.ts' />
231
218
  ///<reference path='./PaymentIntents.d.ts' />
232
219
  ///<reference path='./PaymentLinks.d.ts' />
233
220
  ///<reference path='./PaymentMethodConfigurations.d.ts' />
@@ -240,9 +227,6 @@
240
227
  ///<reference path='./ProductFeatures.d.ts' />
241
228
  ///<reference path='./Products.d.ts' />
242
229
  ///<reference path='./PromotionCodes.d.ts' />
243
- ///<reference path='./QuoteLines.d.ts' />
244
- ///<reference path='./QuotePreviewInvoices.d.ts' />
245
- ///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
246
230
  ///<reference path='./Quotes.d.ts' />
247
231
  ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
248
232
  ///<reference path='./Radar/ValueListItems.d.ts' />
@@ -262,10 +246,8 @@
262
246
  ///<reference path='./SubscriptionItems.d.ts' />
263
247
  ///<reference path='./SubscriptionSchedules.d.ts' />
264
248
  ///<reference path='./Subscriptions.d.ts' />
265
- ///<reference path='./Tax/Associations.d.ts' />
266
249
  ///<reference path='./Tax/CalculationLineItems.d.ts' />
267
250
  ///<reference path='./Tax/Calculations.d.ts' />
268
- ///<reference path='./Tax/Forms.d.ts' />
269
251
  ///<reference path='./Tax/Registrations.d.ts' />
270
252
  ///<reference path='./Tax/Settings.d.ts' />
271
253
  ///<reference path='./Tax/TransactionLineItems.d.ts' />
@@ -277,7 +259,6 @@
277
259
  ///<reference path='./Terminal/Configurations.d.ts' />
278
260
  ///<reference path='./Terminal/ConnectionTokens.d.ts' />
279
261
  ///<reference path='./Terminal/Locations.d.ts' />
280
- ///<reference path='./Terminal/ReaderCollectedData.d.ts' />
281
262
  ///<reference path='./Terminal/Readers.d.ts' />
282
263
  ///<reference path='./TestHelpers/TestClocks.d.ts' />
283
264
  ///<reference path='./Tokens.d.ts' />
@@ -297,6 +278,10 @@
297
278
  ///<reference path='./Treasury/Transactions.d.ts' />
298
279
  ///<reference path='./UsageRecordSummaries.d.ts' />
299
280
  ///<reference path='./UsageRecords.d.ts' />
281
+ ///<reference path='./V2/Billing/MeterEventAdjustments.d.ts' />
282
+ ///<reference path='./V2/Billing/MeterEventSessions.d.ts' />
283
+ ///<reference path='./V2/Billing/MeterEvents.d.ts' />
284
+ ///<reference path='./V2/Events.d.ts' />
300
285
  ///<reference path='./WebhookEndpoints.d.ts' />
301
286
  // Imports: The end of the section generated from our OpenAPI spec
302
287
 
@@ -319,7 +304,6 @@ declare module 'stripe' {
319
304
 
320
305
  // Fields: The beginning of the section generated from our OpenAPI spec
321
306
  accountLinks: Stripe.AccountLinksResource;
322
- accountNotices: Stripe.AccountNoticesResource;
323
307
  accountSessions: Stripe.AccountSessionsResource;
324
308
  accounts: Stripe.AccountsResource;
325
309
  applePayDomains: Stripe.ApplePayDomainsResource;
@@ -343,8 +327,6 @@ declare module 'stripe' {
343
327
  invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
344
328
  invoices: Stripe.InvoicesResource;
345
329
  mandates: Stripe.MandatesResource;
346
- margins: Stripe.MarginsResource;
347
- orders: Stripe.OrdersResource;
348
330
  paymentIntents: Stripe.PaymentIntentsResource;
349
331
  paymentLinks: Stripe.PaymentLinksResource;
350
332
  paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
@@ -371,12 +353,16 @@ declare module 'stripe' {
371
353
  tokens: Stripe.TokensResource;
372
354
  topups: Stripe.TopupsResource;
373
355
  transfers: Stripe.TransfersResource;
356
+ v2: Stripe.V2Resource;
374
357
  webhookEndpoints: Stripe.WebhookEndpointsResource;
375
358
  apps: {
376
359
  secrets: Stripe.Apps.SecretsResource;
377
360
  };
378
361
  billing: {
379
362
  alerts: Stripe.Billing.AlertsResource;
363
+ creditBalanceSummary: Stripe.Billing.CreditBalanceSummaryResource;
364
+ creditBalanceTransactions: Stripe.Billing.CreditBalanceTransactionsResource;
365
+ creditGrants: Stripe.Billing.CreditGrantsResource;
380
366
  meters: Stripe.Billing.MetersResource;
381
367
  meterEvents: Stripe.Billing.MeterEventsResource;
382
368
  meterEventAdjustments: Stripe.Billing.MeterEventAdjustmentsResource;
@@ -385,11 +371,6 @@ declare module 'stripe' {
385
371
  configurations: Stripe.BillingPortal.ConfigurationsResource;
386
372
  sessions: Stripe.BillingPortal.SessionsResource;
387
373
  };
388
- capital: {
389
- financingOffers: Stripe.Capital.FinancingOffersResource;
390
- financingSummary: Stripe.Capital.FinancingSummaryResource;
391
- financingTransactions: Stripe.Capital.FinancingTransactionsResource;
392
- };
393
374
  checkout: {
394
375
  sessions: Stripe.Checkout.SessionsResource;
395
376
  };
@@ -404,17 +385,12 @@ declare module 'stripe' {
404
385
  };
405
386
  financialConnections: {
406
387
  accounts: Stripe.FinancialConnections.AccountsResource;
407
- institutions: Stripe.FinancialConnections.InstitutionsResource;
408
388
  sessions: Stripe.FinancialConnections.SessionsResource;
409
389
  transactions: Stripe.FinancialConnections.TransactionsResource;
410
390
  };
411
391
  forwarding: {
412
392
  requests: Stripe.Forwarding.RequestsResource;
413
393
  };
414
- giftCards: {
415
- cards: Stripe.GiftCards.CardsResource;
416
- transactions: Stripe.GiftCards.TransactionsResource;
417
- };
418
394
  identity: {
419
395
  verificationReports: Stripe.Identity.VerificationReportsResource;
420
396
  verificationSessions: Stripe.Identity.VerificationSessionsResource;
@@ -423,9 +399,7 @@ declare module 'stripe' {
423
399
  authorizations: Stripe.Issuing.AuthorizationsResource;
424
400
  cards: Stripe.Issuing.CardsResource;
425
401
  cardholders: Stripe.Issuing.CardholdersResource;
426
- creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
427
402
  disputes: Stripe.Issuing.DisputesResource;
428
- disputeSettlementDetails: Stripe.Issuing.DisputeSettlementDetailsResource;
429
403
  personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
430
404
  physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
431
405
  tokens: Stripe.Issuing.TokensResource;
@@ -444,9 +418,7 @@ declare module 'stripe' {
444
418
  scheduledQueryRuns: Stripe.Sigma.ScheduledQueryRunsResource;
445
419
  };
446
420
  tax: {
447
- associations: Stripe.Tax.AssociationsResource;
448
421
  calculations: Stripe.Tax.CalculationsResource;
449
- forms: Stripe.Tax.FormsResource;
450
422
  registrations: Stripe.Tax.RegistrationsResource;
451
423
  settings: Stripe.Tax.SettingsResource;
452
424
  transactions: Stripe.Tax.TransactionsResource;
@@ -456,7 +428,6 @@ declare module 'stripe' {
456
428
  connectionTokens: Stripe.Terminal.ConnectionTokensResource;
457
429
  locations: Stripe.Terminal.LocationsResource;
458
430
  readers: Stripe.Terminal.ReadersResource;
459
- readerCollectedData: Stripe.Terminal.ReaderCollectedDataResource;
460
431
  };
461
432
  testHelpers: {
462
433
  confirmationTokens: Stripe.TestHelpers.ConfirmationTokensResource;
@@ -531,6 +502,49 @@ declare module 'stripe' {
531
502
  params?: {[key: string]: unknown},
532
503
  options?: Stripe.RawRequestOptions
533
504
  ): Promise<Stripe.Response<unknown>>;
505
+
506
+ /**
507
+ * Parses webhook event payload into a ThinEvent and verifies webhook signature.
508
+ * To get more information on the event, pass the id from the returned object to
509
+ * `stripe.v2.core.events.retrieve()`
510
+ *
511
+ * @throws Stripe.errors.StripeSignatureVerificationError
512
+ */
513
+ parseThinEvent: (
514
+ /**
515
+ * Raw text body payload received from Stripe.
516
+ */
517
+ payload: string | Buffer,
518
+ /**
519
+ * Value of the `stripe-signature` header from Stripe.
520
+ * Typically a string.
521
+ *
522
+ * Note that this is typed to accept an array of strings
523
+ * so that it works seamlessly with express's types,
524
+ * but will throw if an array is passed in practice
525
+ * since express should never return this header as an array,
526
+ * only a string.
527
+ */
528
+ header: string | Buffer | Array<string>,
529
+ /**
530
+ * Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...').
531
+ * You can get this [in your dashboard](https://dashboard.stripe.com/webhooks).
532
+ */
533
+ secret: string,
534
+ /**
535
+ * Seconds of tolerance on timestamps.
536
+ */
537
+ tolerance?: number,
538
+ /**
539
+ * Optional CryptoProvider to use for computing HMAC signatures.
540
+ */
541
+ cryptoProvider?: Stripe.CryptoProvider,
542
+
543
+ /**
544
+ * Optional: timestamp to use when checking signature validity. Defaults to Date.now().
545
+ */
546
+ receivedAt?: number
547
+ ) => Stripe.ThinEvent;
534
548
  }
535
549
 
536
550
  export default Stripe;
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2024-06-20';
30
+ export type LatestApiVersion = '2024-09-30.acacia';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -154,11 +154,6 @@ declare module 'stripe' {
154
154
  }
155
155
 
156
156
  export type RawRequestOptions = RequestOptions & {
157
- /**
158
- * Specify encoding for the request body. This is an experimental interface and is not yet stable.
159
- */
160
- apiMode?: 'standard' | 'preview';
161
-
162
157
  /**
163
158
  * Specify additional request headers. This is an experimental interface and is not yet stable.
164
159
  */
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2024-06-20',
12
+ apiVersion: '2024-09-30.acacia',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2024-06-20',
29
+ apiVersion: '2024-09-30.acacia',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2024-06-20',
47
+ apiVersion: '2024-09-30.acacia',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50
 
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AccountNotices = void 0;
5
- const StripeResource_js_1 = require("../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.AccountNotices = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/account_notices/{account_notice}',
11
- }),
12
- update: stripeMethod({
13
- method: 'POST',
14
- fullPath: '/v1/account_notices/{account_notice}',
15
- }),
16
- list: stripeMethod({
17
- method: 'GET',
18
- fullPath: '/v1/account_notices',
19
- methodType: 'list',
20
- }),
21
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FinancingOffers = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.FinancingOffers = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/capital/financing_offers/{financing_offer}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/capital/financing_offers',
15
- methodType: 'list',
16
- }),
17
- markDelivered: stripeMethod({
18
- method: 'POST',
19
- fullPath: '/v1/capital/financing_offers/{financing_offer}/mark_delivered',
20
- }),
21
- });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FinancingTransactions = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.FinancingTransactions = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/capital/financing_transactions/{financing_transaction}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/capital/financing_transactions',
15
- methodType: 'list',
16
- }),
17
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Cards = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Cards = StripeResource_js_1.StripeResource.extend({
8
- create: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards' }),
9
- retrieve: stripeMethod({
10
- method: 'GET',
11
- fullPath: '/v1/gift_cards/cards/{id}',
12
- }),
13
- update: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards/{id}' }),
14
- list: stripeMethod({
15
- method: 'GET',
16
- fullPath: '/v1/gift_cards/cards',
17
- methodType: 'list',
18
- }),
19
- validate: stripeMethod({
20
- method: 'POST',
21
- fullPath: '/v1/gift_cards/cards/validate',
22
- }),
23
- });
@@ -1,33 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Transactions = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Transactions = StripeResource_js_1.StripeResource.extend({
8
- create: stripeMethod({
9
- method: 'POST',
10
- fullPath: '/v1/gift_cards/transactions',
11
- }),
12
- retrieve: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/gift_cards/transactions/{id}',
15
- }),
16
- update: stripeMethod({
17
- method: 'POST',
18
- fullPath: '/v1/gift_cards/transactions/{id}',
19
- }),
20
- list: stripeMethod({
21
- method: 'GET',
22
- fullPath: '/v1/gift_cards/transactions',
23
- methodType: 'list',
24
- }),
25
- cancel: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/gift_cards/transactions/{id}/cancel',
28
- }),
29
- confirm: stripeMethod({
30
- method: 'POST',
31
- fullPath: '/v1/gift_cards/transactions/{id}/confirm',
32
- }),
33
- });
@@ -1,33 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreditUnderwritingRecords = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.CreditUnderwritingRecords = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/issuing/credit_underwriting_records',
15
- methodType: 'list',
16
- }),
17
- correct: stripeMethod({
18
- method: 'POST',
19
- fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct',
20
- }),
21
- createFromApplication: stripeMethod({
22
- method: 'POST',
23
- fullPath: '/v1/issuing/credit_underwriting_records/create_from_application',
24
- }),
25
- createFromProactiveReview: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/issuing/credit_underwriting_records/create_from_proactive_review',
28
- }),
29
- reportDecision: stripeMethod({
30
- method: 'POST',
31
- fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision',
32
- }),
33
- });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DisputeSettlementDetails = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.DisputeSettlementDetails = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/issuing/dispute_settlement_details/{dispute_settlement_detail}',
11
- }),
12
- list: stripeMethod({
13
- method: 'GET',
14
- fullPath: '/v1/issuing/dispute_settlement_details',
15
- methodType: 'list',
16
- }),
17
- });
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Margins = void 0;
5
- const StripeResource_js_1 = require("../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Margins = StripeResource_js_1.StripeResource.extend({
8
- create: stripeMethod({ method: 'POST', fullPath: '/v1/billing/margins' }),
9
- retrieve: stripeMethod({
10
- method: 'GET',
11
- fullPath: '/v1/billing/margins/{margin}',
12
- }),
13
- update: stripeMethod({
14
- method: 'POST',
15
- fullPath: '/v1/billing/margins/{margin}',
16
- }),
17
- list: stripeMethod({
18
- method: 'GET',
19
- fullPath: '/v1/billing/margins',
20
- methodType: 'list',
21
- }),
22
- });
@@ -1,24 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Orders = void 0;
5
- const StripeResource_js_1 = require("../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Orders = StripeResource_js_1.StripeResource.extend({
8
- create: stripeMethod({ method: 'POST', fullPath: '/v1/orders' }),
9
- retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/orders/{id}' }),
10
- update: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}' }),
11
- list: stripeMethod({
12
- method: 'GET',
13
- fullPath: '/v1/orders',
14
- methodType: 'list',
15
- }),
16
- cancel: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/cancel' }),
17
- listLineItems: stripeMethod({
18
- method: 'GET',
19
- fullPath: '/v1/orders/{id}/line_items',
20
- methodType: 'list',
21
- }),
22
- reopen: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/reopen' }),
23
- submit: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/submit' }),
24
- });
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Associations = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Associations = StripeResource_js_1.StripeResource.extend({
8
- find: stripeMethod({ method: 'GET', fullPath: '/v1/tax/associations/find' }),
9
- });
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Forms = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.Forms = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/tax/forms/{id}' }),
9
- list: stripeMethod({
10
- method: 'GET',
11
- fullPath: '/v1/tax/forms',
12
- methodType: 'list',
13
- }),
14
- pdf: stripeMethod({
15
- method: 'GET',
16
- fullPath: '/v1/tax/forms/{id}/pdf',
17
- host: 'files.stripe.com',
18
- streaming: true,
19
- }),
20
- });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ReaderCollectedData = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
6
- const stripeMethod = StripeResource_js_1.StripeResource.method;
7
- exports.ReaderCollectedData = StripeResource_js_1.StripeResource.extend({
8
- retrieve: stripeMethod({
9
- method: 'GET',
10
- fullPath: '/v1/terminal/reader_collected_data/{reader_collected_data}',
11
- }),
12
- });