stripe 16.12.0 → 16.13.0-beta.1
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.
- package/CHANGELOG.md +850 -109
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +66 -5
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -1
- package/cjs/multipart.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +6 -3
- package/cjs/utils.js +30 -3
- package/esm/RequestSender.js +67 -6
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -0
- package/esm/multipart.js +2 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +29 -0
- package/esm/stripe.core.js +6 -3
- package/esm/utils.js +27 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +288 -0
- package/types/Accounts.d.ts +113 -1
- package/types/AccountsResource.d.ts +270 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +71 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +296 -4
- package/types/Checkout/SessionsResource.d.ts +351 -5
- package/types/ConfirmationTokens.d.ts +67 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +3 -0
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +545 -0
- package/types/Events.d.ts +90 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +22 -0
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +117 -1
- package/types/InvoicesResource.d.ts +5454 -1796
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1084 -0
- package/types/OrdersResource.d.ts +2765 -0
- package/types/PaymentIntents.d.ts +503 -1
- package/types/PaymentIntentsResource.d.ts +7000 -3400
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +67 -0
- package/types/PaymentMethodsResource.d.ts +88 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1548 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +596 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +10 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +522 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +208 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +64 -0
- package/types/index.d.ts +72 -0
- package/types/lib.d.ts +12 -0
package/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
///<reference path='./Deprecations.d.ts' />
|
|
11
11
|
// Imports: The beginning of the section generated from our OpenAPI spec
|
|
12
12
|
///<reference path='./AccountLinksResource.d.ts' />
|
|
13
|
+
///<reference path='./AccountNoticesResource.d.ts' />
|
|
13
14
|
///<reference path='./AccountSessionsResource.d.ts' />
|
|
14
15
|
///<reference path='./AccountsResource.d.ts' />
|
|
15
16
|
///<reference path='./ApplePayDomainsResource.d.ts' />
|
|
@@ -23,6 +24,9 @@
|
|
|
23
24
|
///<reference path='./Billing/MetersResource.d.ts' />
|
|
24
25
|
///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
|
|
25
26
|
///<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' />
|
|
26
30
|
///<reference path='./ChargesResource.d.ts' />
|
|
27
31
|
///<reference path='./Checkout/SessionsResource.d.ts' />
|
|
28
32
|
///<reference path='./Climate/OrdersResource.d.ts' />
|
|
@@ -43,9 +47,12 @@
|
|
|
43
47
|
///<reference path='./FileLinksResource.d.ts' />
|
|
44
48
|
///<reference path='./FilesResource.d.ts' />
|
|
45
49
|
///<reference path='./FinancialConnections/AccountsResource.d.ts' />
|
|
50
|
+
///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
|
|
46
51
|
///<reference path='./FinancialConnections/SessionsResource.d.ts' />
|
|
47
52
|
///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
|
|
48
53
|
///<reference path='./Forwarding/RequestsResource.d.ts' />
|
|
54
|
+
///<reference path='./GiftCards/CardsResource.d.ts' />
|
|
55
|
+
///<reference path='./GiftCards/TransactionsResource.d.ts' />
|
|
49
56
|
///<reference path='./Identity/VerificationReportsResource.d.ts' />
|
|
50
57
|
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
|
|
51
58
|
///<reference path='./InvoiceItemsResource.d.ts' />
|
|
@@ -54,12 +61,16 @@
|
|
|
54
61
|
///<reference path='./Issuing/AuthorizationsResource.d.ts' />
|
|
55
62
|
///<reference path='./Issuing/CardholdersResource.d.ts' />
|
|
56
63
|
///<reference path='./Issuing/CardsResource.d.ts' />
|
|
64
|
+
///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
|
|
65
|
+
///<reference path='./Issuing/DisputeSettlementDetailsResource.d.ts' />
|
|
57
66
|
///<reference path='./Issuing/DisputesResource.d.ts' />
|
|
58
67
|
///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
|
|
59
68
|
///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
|
|
60
69
|
///<reference path='./Issuing/TokensResource.d.ts' />
|
|
61
70
|
///<reference path='./Issuing/TransactionsResource.d.ts' />
|
|
62
71
|
///<reference path='./MandatesResource.d.ts' />
|
|
72
|
+
///<reference path='./MarginsResource.d.ts' />
|
|
73
|
+
///<reference path='./OrdersResource.d.ts' />
|
|
63
74
|
///<reference path='./PaymentIntentsResource.d.ts' />
|
|
64
75
|
///<reference path='./PaymentLinksResource.d.ts' />
|
|
65
76
|
///<reference path='./PaymentMethodConfigurationsResource.d.ts' />
|
|
@@ -86,7 +97,9 @@
|
|
|
86
97
|
///<reference path='./SubscriptionItemsResource.d.ts' />
|
|
87
98
|
///<reference path='./SubscriptionSchedulesResource.d.ts' />
|
|
88
99
|
///<reference path='./SubscriptionsResource.d.ts' />
|
|
100
|
+
///<reference path='./Tax/AssociationsResource.d.ts' />
|
|
89
101
|
///<reference path='./Tax/CalculationsResource.d.ts' />
|
|
102
|
+
///<reference path='./Tax/FormsResource.d.ts' />
|
|
90
103
|
///<reference path='./Tax/RegistrationsResource.d.ts' />
|
|
91
104
|
///<reference path='./Tax/SettingsResource.d.ts' />
|
|
92
105
|
///<reference path='./Tax/TransactionsResource.d.ts' />
|
|
@@ -96,6 +109,7 @@
|
|
|
96
109
|
///<reference path='./Terminal/ConfigurationsResource.d.ts' />
|
|
97
110
|
///<reference path='./Terminal/ConnectionTokensResource.d.ts' />
|
|
98
111
|
///<reference path='./Terminal/LocationsResource.d.ts' />
|
|
112
|
+
///<reference path='./Terminal/ReaderCollectedDataResource.d.ts' />
|
|
99
113
|
///<reference path='./Terminal/ReadersResource.d.ts' />
|
|
100
114
|
///<reference path='./TestHelpers/ConfirmationTokensResource.d.ts' />
|
|
101
115
|
///<reference path='./TestHelpers/CustomersResource.d.ts' />
|
|
@@ -126,6 +140,7 @@
|
|
|
126
140
|
///<reference path='./Treasury/TransactionsResource.d.ts' />
|
|
127
141
|
///<reference path='./WebhookEndpointsResource.d.ts' />
|
|
128
142
|
///<reference path='./AccountLinks.d.ts' />
|
|
143
|
+
///<reference path='./AccountNotices.d.ts' />
|
|
129
144
|
///<reference path='./AccountSessions.d.ts' />
|
|
130
145
|
///<reference path='./Accounts.d.ts' />
|
|
131
146
|
///<reference path='./ApplePayDomains.d.ts' />
|
|
@@ -138,6 +153,7 @@
|
|
|
138
153
|
///<reference path='./BankAccounts.d.ts' />
|
|
139
154
|
///<reference path='./Billing/AlertTriggereds.d.ts' />
|
|
140
155
|
///<reference path='./Billing/Alerts.d.ts' />
|
|
156
|
+
///<reference path='./Billing/MeterErrorReports.d.ts' />
|
|
141
157
|
///<reference path='./Billing/MeterEventAdjustments.d.ts' />
|
|
142
158
|
///<reference path='./Billing/MeterEventSummaries.d.ts' />
|
|
143
159
|
///<reference path='./Billing/MeterEvents.d.ts' />
|
|
@@ -145,6 +161,9 @@
|
|
|
145
161
|
///<reference path='./BillingPortal/Configurations.d.ts' />
|
|
146
162
|
///<reference path='./BillingPortal/Sessions.d.ts' />
|
|
147
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' />
|
|
148
167
|
///<reference path='./Cards.d.ts' />
|
|
149
168
|
///<reference path='./CashBalances.d.ts' />
|
|
150
169
|
///<reference path='./Charges.d.ts' />
|
|
@@ -175,30 +194,40 @@
|
|
|
175
194
|
///<reference path='./FeeRefunds.d.ts' />
|
|
176
195
|
///<reference path='./FileLinks.d.ts' />
|
|
177
196
|
///<reference path='./Files.d.ts' />
|
|
197
|
+
///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
|
|
178
198
|
///<reference path='./FinancialConnections/AccountOwners.d.ts' />
|
|
179
199
|
///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
|
|
180
200
|
///<reference path='./FinancialConnections/Accounts.d.ts' />
|
|
201
|
+
///<reference path='./FinancialConnections/Institutions.d.ts' />
|
|
181
202
|
///<reference path='./FinancialConnections/Sessions.d.ts' />
|
|
182
203
|
///<reference path='./FinancialConnections/Transactions.d.ts' />
|
|
183
204
|
///<reference path='./Forwarding/Requests.d.ts' />
|
|
184
205
|
///<reference path='./FundingInstructions.d.ts' />
|
|
206
|
+
///<reference path='./GiftCards/Cards.d.ts' />
|
|
207
|
+
///<reference path='./GiftCards/Transactions.d.ts' />
|
|
185
208
|
///<reference path='./Identity/VerificationReports.d.ts' />
|
|
186
209
|
///<reference path='./Identity/VerificationSessions.d.ts' />
|
|
187
210
|
///<reference path='./InvoiceItems.d.ts' />
|
|
188
211
|
///<reference path='./InvoiceLineItems.d.ts' />
|
|
212
|
+
///<reference path='./InvoicePayments.d.ts' />
|
|
189
213
|
///<reference path='./InvoiceRenderingTemplates.d.ts' />
|
|
190
214
|
///<reference path='./Invoices.d.ts' />
|
|
191
215
|
///<reference path='./Issuing/Authorizations.d.ts' />
|
|
192
216
|
///<reference path='./Issuing/Cardholders.d.ts' />
|
|
193
217
|
///<reference path='./Issuing/Cards.d.ts' />
|
|
218
|
+
///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
|
|
219
|
+
///<reference path='./Issuing/DisputeSettlementDetails.d.ts' />
|
|
194
220
|
///<reference path='./Issuing/Disputes.d.ts' />
|
|
195
221
|
///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
|
|
196
222
|
///<reference path='./Issuing/PhysicalBundles.d.ts' />
|
|
223
|
+
///<reference path='./Issuing/Settlements.d.ts' />
|
|
197
224
|
///<reference path='./Issuing/Tokens.d.ts' />
|
|
198
225
|
///<reference path='./Issuing/Transactions.d.ts' />
|
|
199
226
|
///<reference path='./LineItems.d.ts' />
|
|
200
227
|
///<reference path='./LoginLinks.d.ts' />
|
|
201
228
|
///<reference path='./Mandates.d.ts' />
|
|
229
|
+
///<reference path='./Margins.d.ts' />
|
|
230
|
+
///<reference path='./Orders.d.ts' />
|
|
202
231
|
///<reference path='./PaymentIntents.d.ts' />
|
|
203
232
|
///<reference path='./PaymentLinks.d.ts' />
|
|
204
233
|
///<reference path='./PaymentMethodConfigurations.d.ts' />
|
|
@@ -211,6 +240,9 @@
|
|
|
211
240
|
///<reference path='./ProductFeatures.d.ts' />
|
|
212
241
|
///<reference path='./Products.d.ts' />
|
|
213
242
|
///<reference path='./PromotionCodes.d.ts' />
|
|
243
|
+
///<reference path='./QuoteLines.d.ts' />
|
|
244
|
+
///<reference path='./QuotePreviewInvoices.d.ts' />
|
|
245
|
+
///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
|
|
214
246
|
///<reference path='./Quotes.d.ts' />
|
|
215
247
|
///<reference path='./Radar/EarlyFraudWarnings.d.ts' />
|
|
216
248
|
///<reference path='./Radar/ValueListItems.d.ts' />
|
|
@@ -230,8 +262,10 @@
|
|
|
230
262
|
///<reference path='./SubscriptionItems.d.ts' />
|
|
231
263
|
///<reference path='./SubscriptionSchedules.d.ts' />
|
|
232
264
|
///<reference path='./Subscriptions.d.ts' />
|
|
265
|
+
///<reference path='./Tax/Associations.d.ts' />
|
|
233
266
|
///<reference path='./Tax/CalculationLineItems.d.ts' />
|
|
234
267
|
///<reference path='./Tax/Calculations.d.ts' />
|
|
268
|
+
///<reference path='./Tax/Forms.d.ts' />
|
|
235
269
|
///<reference path='./Tax/Registrations.d.ts' />
|
|
236
270
|
///<reference path='./Tax/Settings.d.ts' />
|
|
237
271
|
///<reference path='./Tax/TransactionLineItems.d.ts' />
|
|
@@ -243,6 +277,7 @@
|
|
|
243
277
|
///<reference path='./Terminal/Configurations.d.ts' />
|
|
244
278
|
///<reference path='./Terminal/ConnectionTokens.d.ts' />
|
|
245
279
|
///<reference path='./Terminal/Locations.d.ts' />
|
|
280
|
+
///<reference path='./Terminal/ReaderCollectedData.d.ts' />
|
|
246
281
|
///<reference path='./Terminal/Readers.d.ts' />
|
|
247
282
|
///<reference path='./TestHelpers/TestClocks.d.ts' />
|
|
248
283
|
///<reference path='./Tokens.d.ts' />
|
|
@@ -284,6 +319,7 @@ declare module 'stripe' {
|
|
|
284
319
|
|
|
285
320
|
// Fields: The beginning of the section generated from our OpenAPI spec
|
|
286
321
|
accountLinks: Stripe.AccountLinksResource;
|
|
322
|
+
accountNotices: Stripe.AccountNoticesResource;
|
|
287
323
|
accountSessions: Stripe.AccountSessionsResource;
|
|
288
324
|
accounts: Stripe.AccountsResource;
|
|
289
325
|
applePayDomains: Stripe.ApplePayDomainsResource;
|
|
@@ -307,6 +343,8 @@ declare module 'stripe' {
|
|
|
307
343
|
invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
|
|
308
344
|
invoices: Stripe.InvoicesResource;
|
|
309
345
|
mandates: Stripe.MandatesResource;
|
|
346
|
+
margins: Stripe.MarginsResource;
|
|
347
|
+
orders: Stripe.OrdersResource;
|
|
310
348
|
paymentIntents: Stripe.PaymentIntentsResource;
|
|
311
349
|
paymentLinks: Stripe.PaymentLinksResource;
|
|
312
350
|
paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource;
|
|
@@ -347,6 +385,11 @@ declare module 'stripe' {
|
|
|
347
385
|
configurations: Stripe.BillingPortal.ConfigurationsResource;
|
|
348
386
|
sessions: Stripe.BillingPortal.SessionsResource;
|
|
349
387
|
};
|
|
388
|
+
capital: {
|
|
389
|
+
financingOffers: Stripe.Capital.FinancingOffersResource;
|
|
390
|
+
financingSummary: Stripe.Capital.FinancingSummaryResource;
|
|
391
|
+
financingTransactions: Stripe.Capital.FinancingTransactionsResource;
|
|
392
|
+
};
|
|
350
393
|
checkout: {
|
|
351
394
|
sessions: Stripe.Checkout.SessionsResource;
|
|
352
395
|
};
|
|
@@ -361,12 +404,17 @@ declare module 'stripe' {
|
|
|
361
404
|
};
|
|
362
405
|
financialConnections: {
|
|
363
406
|
accounts: Stripe.FinancialConnections.AccountsResource;
|
|
407
|
+
institutions: Stripe.FinancialConnections.InstitutionsResource;
|
|
364
408
|
sessions: Stripe.FinancialConnections.SessionsResource;
|
|
365
409
|
transactions: Stripe.FinancialConnections.TransactionsResource;
|
|
366
410
|
};
|
|
367
411
|
forwarding: {
|
|
368
412
|
requests: Stripe.Forwarding.RequestsResource;
|
|
369
413
|
};
|
|
414
|
+
giftCards: {
|
|
415
|
+
cards: Stripe.GiftCards.CardsResource;
|
|
416
|
+
transactions: Stripe.GiftCards.TransactionsResource;
|
|
417
|
+
};
|
|
370
418
|
identity: {
|
|
371
419
|
verificationReports: Stripe.Identity.VerificationReportsResource;
|
|
372
420
|
verificationSessions: Stripe.Identity.VerificationSessionsResource;
|
|
@@ -375,7 +423,9 @@ declare module 'stripe' {
|
|
|
375
423
|
authorizations: Stripe.Issuing.AuthorizationsResource;
|
|
376
424
|
cards: Stripe.Issuing.CardsResource;
|
|
377
425
|
cardholders: Stripe.Issuing.CardholdersResource;
|
|
426
|
+
creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
|
|
378
427
|
disputes: Stripe.Issuing.DisputesResource;
|
|
428
|
+
disputeSettlementDetails: Stripe.Issuing.DisputeSettlementDetailsResource;
|
|
379
429
|
personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
|
|
380
430
|
physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
|
|
381
431
|
tokens: Stripe.Issuing.TokensResource;
|
|
@@ -394,7 +444,9 @@ declare module 'stripe' {
|
|
|
394
444
|
scheduledQueryRuns: Stripe.Sigma.ScheduledQueryRunsResource;
|
|
395
445
|
};
|
|
396
446
|
tax: {
|
|
447
|
+
associations: Stripe.Tax.AssociationsResource;
|
|
397
448
|
calculations: Stripe.Tax.CalculationsResource;
|
|
449
|
+
forms: Stripe.Tax.FormsResource;
|
|
398
450
|
registrations: Stripe.Tax.RegistrationsResource;
|
|
399
451
|
settings: Stripe.Tax.SettingsResource;
|
|
400
452
|
transactions: Stripe.Tax.TransactionsResource;
|
|
@@ -404,6 +456,7 @@ declare module 'stripe' {
|
|
|
404
456
|
connectionTokens: Stripe.Terminal.ConnectionTokensResource;
|
|
405
457
|
locations: Stripe.Terminal.LocationsResource;
|
|
406
458
|
readers: Stripe.Terminal.ReadersResource;
|
|
459
|
+
readerCollectedData: Stripe.Terminal.ReaderCollectedDataResource;
|
|
407
460
|
};
|
|
408
461
|
testHelpers: {
|
|
409
462
|
confirmationTokens: Stripe.TestHelpers.ConfirmationTokensResource;
|
|
@@ -459,6 +512,25 @@ declare module 'stripe' {
|
|
|
459
512
|
event: 'response',
|
|
460
513
|
handler: (event: Stripe.ResponseEvent) => void
|
|
461
514
|
): void;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Allows for sending "raw" requests to the Stripe API, which can be used for
|
|
518
|
+
* testing new API endpoints or performing requests that the library does
|
|
519
|
+
* not support yet.
|
|
520
|
+
*
|
|
521
|
+
* This is an experimental interface and is not yet stable.
|
|
522
|
+
*
|
|
523
|
+
* @param method - HTTP request method, 'GET', 'POST', or 'DELETE'
|
|
524
|
+
* @param path - The path of the request, e.g. '/v1/beta_endpoint'
|
|
525
|
+
* @param params - The parameters to include in the request body.
|
|
526
|
+
* @param options - Additional request options.
|
|
527
|
+
*/
|
|
528
|
+
rawRequest(
|
|
529
|
+
method: string,
|
|
530
|
+
path: string,
|
|
531
|
+
params?: {[key: string]: unknown},
|
|
532
|
+
options?: Stripe.RawRequestOptions
|
|
533
|
+
): Promise<Stripe.Response<unknown>>;
|
|
462
534
|
}
|
|
463
535
|
|
|
464
536
|
export default Stripe;
|
package/types/lib.d.ts
CHANGED
|
@@ -153,6 +153,18 @@ declare module 'stripe' {
|
|
|
153
153
|
host?: string;
|
|
154
154
|
}
|
|
155
155
|
|
|
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
|
+
/**
|
|
163
|
+
* Specify additional request headers. This is an experimental interface and is not yet stable.
|
|
164
|
+
*/
|
|
165
|
+
additionalHeaders?: {[headerName: string]: string};
|
|
166
|
+
};
|
|
167
|
+
|
|
156
168
|
export type Response<T> = T & {
|
|
157
169
|
lastResponse: {
|
|
158
170
|
headers: {[key: string]: string};
|