stripe 18.5.0-beta.2 → 18.6.0-alpha.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 +108 -0
- package/OPENAPI_VERSION +1 -1
- package/README.md +5 -3
- package/VERSION +1 -1
- package/cjs/Error.js +63 -55
- package/cjs/RequestSender.js +7 -4
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +16 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +12 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources.js +64 -24
- package/cjs/stripe.core.js +27 -1
- package/esm/Error.js +50 -43
- package/esm/RequestSender.js +7 -4
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +13 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +9 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources.js +45 -5
- package/esm/stripe.core.js +27 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +76 -13
- package/types/Accounts.d.ts +2 -2
- package/types/Balance.d.ts +2 -7
- package/types/BalanceSettings.d.ts +52 -46
- package/types/BalanceSettingsResource.d.ts +55 -46
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +93 -2
- package/types/Billing/CreditBalanceSummary.d.ts +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +32 -1
- package/types/Billing/MeterUsageRows.d.ts +1 -1
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Charges.d.ts +71 -5
- package/types/Checkout/Sessions.d.ts +128 -2
- package/types/Checkout/SessionsResource.d.ts +167 -3
- package/types/CreditNotesResource.d.ts +3 -3
- package/types/Disputes.d.ts +7 -2
- package/types/Errors.d.ts +51 -45
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/InvoiceItems.d.ts +104 -2
- package/types/InvoiceLineItems.d.ts +113 -2
- package/types/InvoicePaymentsResource.d.ts +3 -0
- package/types/Invoices.d.ts +19 -2
- package/types/InvoicesResource.d.ts +64 -0
- package/types/Mandates.d.ts +58 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/PaymentAttemptRecords.d.ts +154 -9
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntents.d.ts +136 -2
- package/types/PaymentIntentsResource.d.ts +280 -3
- package/types/PaymentLinksResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentRecords.d.ts +154 -9
- package/types/PaymentRecordsResource.d.ts +24 -3
- package/types/Payouts.d.ts +1 -1
- package/types/PromotionCodes.d.ts +5 -2
- package/types/QuotePreviewInvoices.d.ts +19 -2
- package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
- package/types/SetupAttempts.d.ts +7 -1
- package/types/SetupIntents.d.ts +95 -1
- package/types/SetupIntentsResource.d.ts +207 -0
- package/types/SubscriptionSchedules.d.ts +47 -0
- package/types/SubscriptionSchedulesResource.d.ts +112 -0
- package/types/Subscriptions.d.ts +5 -0
- package/types/SubscriptionsResource.d.ts +145 -7
- package/types/Terminal/Configurations.d.ts +28 -0
- package/types/Terminal/ConfigurationsResource.d.ts +72 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +354 -0
- package/types/V2/Billing/CadencesResource.d.ts +489 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +458 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +574 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +163 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +134 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +93 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +138 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +134 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +209 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +240 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +302 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
- package/types/V2/Core/Accounts.d.ts +49 -0
- package/types/V2/Core/AccountsResource.d.ts +78 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +349 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +310 -0
- package/types/V2/Core/Persons.d.ts +16 -0
- package/types/V2/EventTypes.d.ts +3682 -632
- package/types/V2/Events.d.ts +7 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +7 -2
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
- package/types/V2/Reporting/ReportRuns.d.ts +178 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +99 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +2 -0
- package/types/index.d.ts +125 -5
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Tax {
|
|
7
|
+
interface AutomaticRuleCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The BillableItem ID to set automatic Tax configuration for.
|
|
10
|
+
*/
|
|
11
|
+
billable_item: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The TaxCode object to be used for automatic tax calculations.
|
|
15
|
+
*/
|
|
16
|
+
tax_code: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
namespace Tax {
|
|
21
|
+
interface AutomaticRuleRetrieveParams {}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
namespace Tax {
|
|
25
|
+
interface AutomaticRuleUpdateParams {
|
|
26
|
+
/**
|
|
27
|
+
* The TaxCode object to be used for automatic tax calculations.
|
|
28
|
+
*/
|
|
29
|
+
tax_code: string;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
namespace Tax {
|
|
34
|
+
interface AutomaticRuleDeactivateParams {}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
namespace Tax {
|
|
38
|
+
interface AutomaticRuleFindParams {
|
|
39
|
+
/**
|
|
40
|
+
* The BillableItem ID to search by.
|
|
41
|
+
*/
|
|
42
|
+
billable_item: string;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
namespace Tax {
|
|
47
|
+
class AutomaticRulesResource {
|
|
48
|
+
/**
|
|
49
|
+
* Creates an AutomaticRule object.
|
|
50
|
+
*/
|
|
51
|
+
create(
|
|
52
|
+
params: AutomaticRuleCreateParams,
|
|
53
|
+
options?: RequestOptions
|
|
54
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves an AutomaticRule object by ID.
|
|
58
|
+
*/
|
|
59
|
+
retrieve(
|
|
60
|
+
id: string,
|
|
61
|
+
params?: AutomaticRuleRetrieveParams,
|
|
62
|
+
options?: RequestOptions
|
|
63
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
64
|
+
retrieve(
|
|
65
|
+
id: string,
|
|
66
|
+
options?: RequestOptions
|
|
67
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Updates the automatic Tax configuration for an AutomaticRule object.
|
|
71
|
+
*/
|
|
72
|
+
update(
|
|
73
|
+
id: string,
|
|
74
|
+
params: AutomaticRuleUpdateParams,
|
|
75
|
+
options?: RequestOptions
|
|
76
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Deactivates an AutomaticRule object. Deactivated AutomaticRule objects are ignored in future tax calculations.
|
|
80
|
+
*/
|
|
81
|
+
deactivate(
|
|
82
|
+
id: string,
|
|
83
|
+
params?: AutomaticRuleDeactivateParams,
|
|
84
|
+
options?: RequestOptions
|
|
85
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
86
|
+
deactivate(
|
|
87
|
+
id: string,
|
|
88
|
+
options?: RequestOptions
|
|
89
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Finds an AutomaticRule object by BillableItem ID.
|
|
93
|
+
*/
|
|
94
|
+
find(
|
|
95
|
+
params: AutomaticRuleFindParams,
|
|
96
|
+
options?: RequestOptions
|
|
97
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.AutomaticRule>>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
package/types/Webhooks.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -150,13 +150,37 @@
|
|
|
150
150
|
///<reference path='./Treasury/ReceivedDebitsResource.d.ts' />
|
|
151
151
|
///<reference path='./Treasury/TransactionEntriesResource.d.ts' />
|
|
152
152
|
///<reference path='./Treasury/TransactionsResource.d.ts' />
|
|
153
|
+
///<reference path='./V2/Billing/BillSettings/VersionsResource.d.ts' />
|
|
154
|
+
///<reference path='./V2/Billing/BillSettingsResource.d.ts' />
|
|
155
|
+
///<reference path='./V2/Billing/CadencesResource.d.ts' />
|
|
156
|
+
///<reference path='./V2/Billing/CollectionSettings/VersionsResource.d.ts' />
|
|
157
|
+
///<reference path='./V2/Billing/CollectionSettingsResource.d.ts' />
|
|
158
|
+
///<reference path='./V2/Billing/CustomPricingUnitsResource.d.ts' />
|
|
159
|
+
///<reference path='./V2/Billing/Intents/ActionsResource.d.ts' />
|
|
160
|
+
///<reference path='./V2/Billing/IntentsResource.d.ts' />
|
|
161
|
+
///<reference path='./V2/Billing/LicenseFeeSubscriptionsResource.d.ts' />
|
|
162
|
+
///<reference path='./V2/Billing/LicenseFees/VersionsResource.d.ts' />
|
|
163
|
+
///<reference path='./V2/Billing/LicenseFeesResource.d.ts' />
|
|
164
|
+
///<reference path='./V2/Billing/LicensedItemsResource.d.ts' />
|
|
153
165
|
///<reference path='./V2/Billing/MeterEventAdjustmentsResource.d.ts' />
|
|
154
166
|
///<reference path='./V2/Billing/MeterEventSessionResource.d.ts' />
|
|
155
167
|
///<reference path='./V2/Billing/MeterEventStreamResource.d.ts' />
|
|
156
168
|
///<reference path='./V2/Billing/MeterEventsResource.d.ts' />
|
|
169
|
+
///<reference path='./V2/Billing/MeteredItemsResource.d.ts' />
|
|
170
|
+
///<reference path='./V2/Billing/PricingPlanSubscriptionsResource.d.ts' />
|
|
171
|
+
///<reference path='./V2/Billing/PricingPlans/ComponentsResource.d.ts' />
|
|
172
|
+
///<reference path='./V2/Billing/PricingPlans/VersionsResource.d.ts' />
|
|
173
|
+
///<reference path='./V2/Billing/PricingPlansResource.d.ts' />
|
|
174
|
+
///<reference path='./V2/Billing/ProfilesResource.d.ts' />
|
|
175
|
+
///<reference path='./V2/Billing/RateCardSubscriptionsResource.d.ts' />
|
|
176
|
+
///<reference path='./V2/Billing/RateCards/RatesResource.d.ts' />
|
|
177
|
+
///<reference path='./V2/Billing/RateCards/VersionsResource.d.ts' />
|
|
178
|
+
///<reference path='./V2/Billing/RateCardsResource.d.ts' />
|
|
179
|
+
///<reference path='./V2/Billing/ServiceActionsResource.d.ts' />
|
|
157
180
|
///<reference path='./V2/Core/AccountLinksResource.d.ts' />
|
|
158
181
|
///<reference path='./V2/Core/Accounts/PersonsResource.d.ts' />
|
|
159
182
|
///<reference path='./V2/Core/AccountsResource.d.ts' />
|
|
183
|
+
///<reference path='./V2/Core/ClaimableSandboxesResource.d.ts' />
|
|
160
184
|
///<reference path='./V2/Core/EventDestinationsResource.d.ts' />
|
|
161
185
|
///<reference path='./V2/Core/EventsResource.d.ts' />
|
|
162
186
|
///<reference path='./V2/Core/Vault/GbBankAccountsResource.d.ts' />
|
|
@@ -176,6 +200,9 @@
|
|
|
176
200
|
///<reference path='./V2/MoneyManagement/TransactionEntriesResource.d.ts' />
|
|
177
201
|
///<reference path='./V2/MoneyManagement/TransactionsResource.d.ts' />
|
|
178
202
|
///<reference path='./V2/Payments/OffSessionPaymentsResource.d.ts' />
|
|
203
|
+
///<reference path='./V2/Reporting/ReportRunsResource.d.ts' />
|
|
204
|
+
///<reference path='./V2/Reporting/ReportsResource.d.ts' />
|
|
205
|
+
///<reference path='./V2/Tax/AutomaticRulesResource.d.ts' />
|
|
179
206
|
///<reference path='./V2/TestHelpers/FinancialAddressesResource.d.ts' />
|
|
180
207
|
///<reference path='./WebhookEndpointsResource.d.ts' />
|
|
181
208
|
///<reference path='./AccountLinks.d.ts' />
|
|
@@ -345,11 +372,35 @@
|
|
|
345
372
|
///<reference path='./Treasury/ReceivedDebits.d.ts' />
|
|
346
373
|
///<reference path='./Treasury/TransactionEntries.d.ts' />
|
|
347
374
|
///<reference path='./Treasury/Transactions.d.ts' />
|
|
375
|
+
///<reference path='./V2/Billing/BillSettingVersions.d.ts' />
|
|
376
|
+
///<reference path='./V2/Billing/BillSettings.d.ts' />
|
|
377
|
+
///<reference path='./V2/Billing/Cadences.d.ts' />
|
|
378
|
+
///<reference path='./V2/Billing/CollectionSettingVersions.d.ts' />
|
|
379
|
+
///<reference path='./V2/Billing/CollectionSettings.d.ts' />
|
|
380
|
+
///<reference path='./V2/Billing/CustomPricingUnits.d.ts' />
|
|
381
|
+
///<reference path='./V2/Billing/IntentActions.d.ts' />
|
|
382
|
+
///<reference path='./V2/Billing/Intents.d.ts' />
|
|
383
|
+
///<reference path='./V2/Billing/LicenseFeeSubscriptions.d.ts' />
|
|
384
|
+
///<reference path='./V2/Billing/LicenseFeeVersions.d.ts' />
|
|
385
|
+
///<reference path='./V2/Billing/LicenseFees.d.ts' />
|
|
386
|
+
///<reference path='./V2/Billing/LicensedItems.d.ts' />
|
|
348
387
|
///<reference path='./V2/Billing/MeterEventAdjustments.d.ts' />
|
|
349
388
|
///<reference path='./V2/Billing/MeterEventSessions.d.ts' />
|
|
350
389
|
///<reference path='./V2/Billing/MeterEvents.d.ts' />
|
|
390
|
+
///<reference path='./V2/Billing/MeteredItems.d.ts' />
|
|
391
|
+
///<reference path='./V2/Billing/PricingPlanComponents.d.ts' />
|
|
392
|
+
///<reference path='./V2/Billing/PricingPlanSubscriptions.d.ts' />
|
|
393
|
+
///<reference path='./V2/Billing/PricingPlanVersions.d.ts' />
|
|
394
|
+
///<reference path='./V2/Billing/PricingPlans.d.ts' />
|
|
395
|
+
///<reference path='./V2/Billing/Profiles.d.ts' />
|
|
396
|
+
///<reference path='./V2/Billing/RateCardRates.d.ts' />
|
|
397
|
+
///<reference path='./V2/Billing/RateCardSubscriptions.d.ts' />
|
|
398
|
+
///<reference path='./V2/Billing/RateCardVersions.d.ts' />
|
|
399
|
+
///<reference path='./V2/Billing/RateCards.d.ts' />
|
|
400
|
+
///<reference path='./V2/Billing/ServiceActions.d.ts' />
|
|
351
401
|
///<reference path='./V2/Core/AccountLinks.d.ts' />
|
|
352
402
|
///<reference path='./V2/Core/Accounts.d.ts' />
|
|
403
|
+
///<reference path='./V2/Core/ClaimableSandboxes.d.ts' />
|
|
353
404
|
///<reference path='./V2/Core/Persons.d.ts' />
|
|
354
405
|
///<reference path='./V2/Core/Vault/GbBankAccounts.d.ts' />
|
|
355
406
|
///<reference path='./V2/Core/Vault/UsBankAccounts.d.ts' />
|
|
@@ -372,6 +423,9 @@
|
|
|
372
423
|
///<reference path='./V2/MoneyManagement/TransactionEntries.d.ts' />
|
|
373
424
|
///<reference path='./V2/MoneyManagement/Transactions.d.ts' />
|
|
374
425
|
///<reference path='./V2/Payments/OffSessionPayments.d.ts' />
|
|
426
|
+
///<reference path='./V2/Reporting/ReportRuns.d.ts' />
|
|
427
|
+
///<reference path='./V2/Reporting/Reports.d.ts' />
|
|
428
|
+
///<reference path='./V2/Tax/AutomaticRules.d.ts' />
|
|
375
429
|
///<reference path='./WebhookEndpoints.d.ts' />
|
|
376
430
|
// Imports: The end of the section generated from our OpenAPI spec
|
|
377
431
|
|
|
@@ -580,16 +634,32 @@ declare module 'stripe' {
|
|
|
580
634
|
};
|
|
581
635
|
v2: {
|
|
582
636
|
billing: {
|
|
637
|
+
billSettings: Stripe.V2.Billing.BillSettingsResource;
|
|
638
|
+
cadences: Stripe.V2.Billing.CadencesResource;
|
|
639
|
+
collectionSettings: Stripe.V2.Billing.CollectionSettingsResource;
|
|
640
|
+
customPricingUnits: Stripe.V2.Billing.CustomPricingUnitsResource;
|
|
641
|
+
intents: Stripe.V2.Billing.IntentsResource;
|
|
642
|
+
licenseFees: Stripe.V2.Billing.LicenseFeesResource;
|
|
643
|
+
licenseFeeSubscriptions: Stripe.V2.Billing.LicenseFeeSubscriptionsResource;
|
|
644
|
+
licensedItems: Stripe.V2.Billing.LicensedItemsResource;
|
|
645
|
+
meterEvents: Stripe.V2.Billing.MeterEventsResource;
|
|
583
646
|
meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource;
|
|
584
647
|
meterEventSession: Stripe.V2.Billing.MeterEventSessionResource;
|
|
585
648
|
meterEventStream: Stripe.V2.Billing.MeterEventStreamResource;
|
|
586
|
-
|
|
649
|
+
meteredItems: Stripe.V2.Billing.MeteredItemsResource;
|
|
650
|
+
pricingPlans: Stripe.V2.Billing.PricingPlansResource;
|
|
651
|
+
pricingPlanSubscriptions: Stripe.V2.Billing.PricingPlanSubscriptionsResource;
|
|
652
|
+
profiles: Stripe.V2.Billing.ProfilesResource;
|
|
653
|
+
rateCards: Stripe.V2.Billing.RateCardsResource;
|
|
654
|
+
rateCardSubscriptions: Stripe.V2.Billing.RateCardSubscriptionsResource;
|
|
655
|
+
serviceActions: Stripe.V2.Billing.ServiceActionsResource;
|
|
587
656
|
};
|
|
588
657
|
core: {
|
|
589
|
-
accountLinks: Stripe.V2.Core.AccountLinksResource;
|
|
590
658
|
accounts: Stripe.V2.Core.AccountsResource;
|
|
591
|
-
|
|
659
|
+
accountLinks: Stripe.V2.Core.AccountLinksResource;
|
|
660
|
+
claimableSandboxes: Stripe.V2.Core.ClaimableSandboxesResource;
|
|
592
661
|
events: Stripe.V2.Core.EventsResource;
|
|
662
|
+
eventDestinations: Stripe.V2.Core.EventDestinationsResource;
|
|
593
663
|
vault: {
|
|
594
664
|
gbBankAccounts: Stripe.V2.Core.Vault.GbBankAccountsResource;
|
|
595
665
|
usBankAccounts: Stripe.V2.Core.Vault.UsBankAccountsResource;
|
|
@@ -600,20 +670,27 @@ declare module 'stripe' {
|
|
|
600
670
|
financialAccounts: Stripe.V2.MoneyManagement.FinancialAccountsResource;
|
|
601
671
|
financialAddresses: Stripe.V2.MoneyManagement.FinancialAddressesResource;
|
|
602
672
|
inboundTransfers: Stripe.V2.MoneyManagement.InboundTransfersResource;
|
|
603
|
-
outboundPaymentQuotes: Stripe.V2.MoneyManagement.OutboundPaymentQuotesResource;
|
|
604
673
|
outboundPayments: Stripe.V2.MoneyManagement.OutboundPaymentsResource;
|
|
674
|
+
outboundPaymentQuotes: Stripe.V2.MoneyManagement.OutboundPaymentQuotesResource;
|
|
605
675
|
outboundSetupIntents: Stripe.V2.MoneyManagement.OutboundSetupIntentsResource;
|
|
606
676
|
outboundTransfers: Stripe.V2.MoneyManagement.OutboundTransfersResource;
|
|
607
677
|
payoutMethods: Stripe.V2.MoneyManagement.PayoutMethodsResource;
|
|
608
678
|
payoutMethodsBankAccountSpec: Stripe.V2.MoneyManagement.PayoutMethodsBankAccountSpecResource;
|
|
609
679
|
receivedCredits: Stripe.V2.MoneyManagement.ReceivedCreditsResource;
|
|
610
680
|
receivedDebits: Stripe.V2.MoneyManagement.ReceivedDebitsResource;
|
|
611
|
-
transactionEntries: Stripe.V2.MoneyManagement.TransactionEntriesResource;
|
|
612
681
|
transactions: Stripe.V2.MoneyManagement.TransactionsResource;
|
|
682
|
+
transactionEntries: Stripe.V2.MoneyManagement.TransactionEntriesResource;
|
|
613
683
|
};
|
|
614
684
|
payment: {
|
|
615
685
|
offSessionPayments: Stripe.V2.Payments.OffSessionPaymentsResource;
|
|
616
686
|
};
|
|
687
|
+
reporting: {
|
|
688
|
+
reports: Stripe.V2.Reporting.ReportsResource;
|
|
689
|
+
reportRuns: Stripe.V2.Reporting.ReportRunsResource;
|
|
690
|
+
};
|
|
691
|
+
tax: {
|
|
692
|
+
automaticRules: Stripe.V2.Tax.AutomaticRulesResource;
|
|
693
|
+
};
|
|
617
694
|
testHelper: {
|
|
618
695
|
financialAddresses: Stripe.V2.TestHelpers.FinancialAddressesResource;
|
|
619
696
|
};
|
|
@@ -700,6 +777,49 @@ declare module 'stripe' {
|
|
|
700
777
|
*/
|
|
701
778
|
receivedAt?: number
|
|
702
779
|
) => Stripe.ThinEvent;
|
|
780
|
+
|
|
781
|
+
// these arguments are duplicated from the above
|
|
782
|
+
/**
|
|
783
|
+
* Parses webhook event payload into a PushedThinEvent and verifies webhook signature.
|
|
784
|
+
* To get more information on the event, call the `.pull()` method on the object returned from this function.
|
|
785
|
+
*
|
|
786
|
+
* @throws Stripe.errors.StripeSignatureVerificationError
|
|
787
|
+
*/
|
|
788
|
+
parseThinEvent__experimental: (
|
|
789
|
+
/**
|
|
790
|
+
* Raw text body payload received from Stripe.
|
|
791
|
+
*/
|
|
792
|
+
payload: string | Buffer,
|
|
793
|
+
/**
|
|
794
|
+
* Value of the `stripe-signature` header from Stripe.
|
|
795
|
+
* Typically a string.
|
|
796
|
+
*
|
|
797
|
+
* Note that this is typed to accept an array of strings
|
|
798
|
+
* so that it works seamlessly with express's types,
|
|
799
|
+
* but will throw if an array is passed in practice
|
|
800
|
+
* since express should never return this header as an array,
|
|
801
|
+
* only a string.
|
|
802
|
+
*/
|
|
803
|
+
header: string | Buffer | Array<string>,
|
|
804
|
+
/**
|
|
805
|
+
* Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...').
|
|
806
|
+
* You can get this [in your dashboard](https://dashboard.stripe.com/webhooks).
|
|
807
|
+
*/
|
|
808
|
+
secret: string,
|
|
809
|
+
/**
|
|
810
|
+
* Seconds of tolerance on timestamps.
|
|
811
|
+
*/
|
|
812
|
+
tolerance?: number,
|
|
813
|
+
/**
|
|
814
|
+
* Optional CryptoProvider to use for computing HMAC signatures.
|
|
815
|
+
*/
|
|
816
|
+
cryptoProvider?: Stripe.CryptoProvider,
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Optional: timestamp to use when checking signature validity. Defaults to Date.now().
|
|
820
|
+
*/
|
|
821
|
+
receivedAt?: number
|
|
822
|
+
) => Stripe.V2.PushedEvent;
|
|
703
823
|
}
|
|
704
824
|
|
|
705
825
|
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 = '2025-
|
|
30
|
+
export type LatestApiVersion = '2025-08-27.preview';
|
|
31
31
|
export const API_VERSION: string;
|
|
32
32
|
export type HttpAgent = Agent;
|
|
33
33
|
export type HttpProtocol = 'http' | 'https';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import Stripe from 'stripe';
|
|
10
10
|
|
|
11
11
|
let stripe = new Stripe('sk_test_123', {
|
|
12
|
-
apiVersion: '2025-
|
|
12
|
+
apiVersion: '2025-08-27.preview',
|
|
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: '2025-
|
|
29
|
+
apiVersion: '2025-08-27.preview',
|
|
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: '2025-
|
|
47
|
+
apiVersion: '2025-08-27.preview',
|
|
48
48
|
};
|
|
49
49
|
const customer: Stripe.Customer = await stripe.customers.create(params, opts);
|
|
50
50
|
|