stripe 17.5.0-beta.1 → 17.5.0-beta.3
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 +19 -0
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +5 -5
- package/types/AccountSessionsResource.d.ts +6 -6
- package/types/Accounts.d.ts +11 -4
- package/types/AccountsResource.d.ts +26 -2
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactions.d.ts +20 -1
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +8 -8
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +1 -1
- package/types/Billing/MeterEvents.d.ts +1 -2
- package/types/Billing/MeterEventsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +8 -8
- package/types/Capabilities.d.ts +2 -2
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +12 -0
- package/types/Checkout/Sessions.d.ts +53 -7
- package/types/Checkout/SessionsResource.d.ts +15 -5
- package/types/ConfirmationTokens.d.ts +7 -0
- package/types/CustomersResource.d.ts +41 -5
- package/types/Disputes.d.ts +22 -0
- package/types/DisputesResource.d.ts +12 -0
- package/types/EventTypes.d.ts +2 -2
- package/types/Forwarding/Requests.d.ts +2 -1
- package/types/Forwarding/RequestsResource.d.ts +2 -1
- package/types/Invoices.d.ts +29 -2
- package/types/InvoicesResource.d.ts +65 -11
- package/types/Issuing/Authorizations.d.ts +7 -1
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Orders.d.ts +26 -3
- package/types/OrdersResource.d.ts +52 -6
- package/types/PaymentIntents.d.ts +12 -2
- package/types/PaymentIntentsResource.d.ts +36 -6
- package/types/PaymentLinksResource.d.ts +5 -0
- package/types/PaymentMethods.d.ts +7 -0
- package/types/PaymentRecords.d.ts +0 -17
- package/types/Payouts.d.ts +1 -1
- package/types/Persons.d.ts +2 -2
- package/types/QuotePreviewInvoices.d.ts +29 -2
- package/types/QuotePreviewSubscriptionSchedules.d.ts +10 -0
- package/types/SetupIntents.d.ts +12 -2
- package/types/SetupIntentsResource.d.ts +36 -6
- package/types/Sources.d.ts +7 -0
- package/types/SubscriptionSchedules.d.ts +10 -0
- package/types/Subscriptions.d.ts +5 -0
- package/types/SubscriptionsResource.d.ts +3 -3
- package/types/Tax/Calculations.d.ts +20 -2
- package/types/Tax/CalculationsResource.d.ts +20 -2
- package/types/Tax/Transactions.d.ts +20 -2
- package/types/TaxIds.d.ts +20 -2
- package/types/TaxIdsResource.d.ts +20 -2
- package/types/Terminal/Readers.d.ts +32 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +3 -3
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.5.0-beta.3 - 2024-12-12
|
|
4
|
+
* [#2235](https://github.com/stripe/stripe-node/pull/2235) Update generated code for beta
|
|
5
|
+
* Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional
|
|
6
|
+
* Add support for `allow_redisplay` on `Card` and `Source`
|
|
7
|
+
* Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `Checkout.Session.collected_information.tax_ids[].type` and `Order.tax_details.tax_ids[].type`
|
|
8
|
+
* Add support for new value `network_fallback` on enum `Issuing.Authorization.request_history[].reason`
|
|
9
|
+
* Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `OrderCreateParams.tax_details.tax_ids[].type` and `OrderUpdateParams.tax_details.tax_ids[].type`
|
|
10
|
+
* Remove support for `amount_refunded` on `PaymentRecord`
|
|
11
|
+
* Add support for `account` on `Terminal.Reader.action.collect_payment_method`, `Terminal.Reader.action.confirm_payment_intent`, `Terminal.Reader.action.process_payment_intent`, and `Terminal.Reader.action.refund_payment`
|
|
12
|
+
|
|
13
|
+
## 17.5.0-beta.2 - 2024-12-05
|
|
14
|
+
* [#2232](https://github.com/stripe/stripe-node/pull/2232) Update generated code for beta
|
|
15
|
+
* Add support for `automatic_indirect_tax` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
16
|
+
* Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type`
|
|
17
|
+
* Add support for `reference_prefix` on `Checkout.Session.payment_method_options.bacs_debit.mandate_options`, `Checkout.Session.payment_method_options.sepa_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options`, `Order.payment.settings.payment_method_options.sepa_debit.mandate_options`, `OrderCreateParams.payment.settings.payment_method_options.sepa_debit.mandate_options`, `OrderUpdateParams.payment.settings.payment_method_options.sepa_debit.mandate_options`, `PaymentIntent.payment_method_options.bacs_debit.mandate_options`, `PaymentIntent.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntent.payment_method_options.bacs_debit.mandate_options`, `SetupIntent.payment_method_options.sepa_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, and `SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`
|
|
18
|
+
* Add support for `disabled_reason` on `Invoice.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, and `SubscriptionSchedule.phases[].automatic_tax`
|
|
19
|
+
* Change `Issuing.Authorization.verified_by_fraud_challenge` to be required
|
|
20
|
+
* Add support for `trial_period_days` on `PaymentLinkUpdateParams.subscription_data`
|
|
21
|
+
|
|
3
22
|
## 17.5.0-beta.1 - 2024-11-21
|
|
4
23
|
* [#2229](https://github.com/stripe/stripe-node/pull/2229) Update generated code for beta
|
|
5
24
|
* Add support for `network_advice_code` and `network_decline_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.5.0-beta.
|
|
1
|
+
17.5.0-beta.3
|
package/cjs/apiVersion.js
CHANGED
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '17.5.0-beta.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.5.0-beta.3';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2024-
|
|
2
|
+
export const ApiVersion = '2024-12-18.acacia';
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '17.5.0-beta.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.5.0-beta.3';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@ declare module 'stripe' {
|
|
|
88
88
|
namespace AccountManagement {
|
|
89
89
|
interface Features {
|
|
90
90
|
/**
|
|
91
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
91
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
92
92
|
*/
|
|
93
93
|
disable_stripe_user_authentication: boolean;
|
|
94
94
|
|
|
@@ -111,7 +111,7 @@ declare module 'stripe' {
|
|
|
111
111
|
namespace AccountOnboarding {
|
|
112
112
|
interface Features {
|
|
113
113
|
/**
|
|
114
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
114
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
115
115
|
*/
|
|
116
116
|
disable_stripe_user_authentication: boolean;
|
|
117
117
|
|
|
@@ -134,7 +134,7 @@ declare module 'stripe' {
|
|
|
134
134
|
namespace Balances {
|
|
135
135
|
interface Features {
|
|
136
136
|
/**
|
|
137
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
137
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
138
138
|
*/
|
|
139
139
|
disable_stripe_user_authentication: boolean;
|
|
140
140
|
|
|
@@ -224,7 +224,7 @@ declare module 'stripe' {
|
|
|
224
224
|
namespace NotificationBanner {
|
|
225
225
|
interface Features {
|
|
226
226
|
/**
|
|
227
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
227
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
228
228
|
*/
|
|
229
229
|
disable_stripe_user_authentication: boolean;
|
|
230
230
|
|
|
@@ -313,7 +313,7 @@ declare module 'stripe' {
|
|
|
313
313
|
namespace Payouts {
|
|
314
314
|
interface Features {
|
|
315
315
|
/**
|
|
316
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
316
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
317
317
|
*/
|
|
318
318
|
disable_stripe_user_authentication: boolean;
|
|
319
319
|
|
|
@@ -158,7 +158,7 @@ declare module 'stripe' {
|
|
|
158
158
|
namespace AccountManagement {
|
|
159
159
|
interface Features {
|
|
160
160
|
/**
|
|
161
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
161
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
162
162
|
*/
|
|
163
163
|
disable_stripe_user_authentication?: boolean;
|
|
164
164
|
|
|
@@ -184,7 +184,7 @@ declare module 'stripe' {
|
|
|
184
184
|
namespace AccountOnboarding {
|
|
185
185
|
interface Features {
|
|
186
186
|
/**
|
|
187
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
187
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
188
188
|
*/
|
|
189
189
|
disable_stripe_user_authentication?: boolean;
|
|
190
190
|
|
|
@@ -252,7 +252,7 @@ declare module 'stripe' {
|
|
|
252
252
|
namespace Balances {
|
|
253
253
|
interface Features {
|
|
254
254
|
/**
|
|
255
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
255
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
256
256
|
*/
|
|
257
257
|
disable_stripe_user_authentication?: boolean;
|
|
258
258
|
|
|
@@ -373,7 +373,7 @@ declare module 'stripe' {
|
|
|
373
373
|
namespace FinancialAccount {
|
|
374
374
|
interface Features {
|
|
375
375
|
/**
|
|
376
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
376
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
377
377
|
*/
|
|
378
378
|
disable_stripe_user_authentication?: boolean;
|
|
379
379
|
|
|
@@ -507,7 +507,7 @@ declare module 'stripe' {
|
|
|
507
507
|
namespace NotificationBanner {
|
|
508
508
|
interface Features {
|
|
509
509
|
/**
|
|
510
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
510
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
511
511
|
*/
|
|
512
512
|
disable_stripe_user_authentication?: boolean;
|
|
513
513
|
|
|
@@ -621,7 +621,7 @@ declare module 'stripe' {
|
|
|
621
621
|
namespace Payouts {
|
|
622
622
|
interface Features {
|
|
623
623
|
/**
|
|
624
|
-
* Disables Stripe user authentication for this embedded component. This
|
|
624
|
+
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
|
625
625
|
*/
|
|
626
626
|
disable_stripe_user_authentication?: boolean;
|
|
627
627
|
|
package/types/Accounts.d.ts
CHANGED
|
@@ -131,12 +131,12 @@ declare module 'stripe' {
|
|
|
131
131
|
/**
|
|
132
132
|
* The applicant's gross annual revenue for its preceding fiscal year.
|
|
133
133
|
*/
|
|
134
|
-
annual_revenue
|
|
134
|
+
annual_revenue?: BusinessProfile.AnnualRevenue | null;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
|
138
138
|
*/
|
|
139
|
-
estimated_worker_count
|
|
139
|
+
estimated_worker_count?: number | null;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
|
@@ -249,6 +249,11 @@ declare module 'stripe' {
|
|
|
249
249
|
*/
|
|
250
250
|
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
|
|
251
251
|
|
|
252
|
+
/**
|
|
253
|
+
* The status of the automatic_indirect_tax capability of the account.
|
|
254
|
+
*/
|
|
255
|
+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
|
|
256
|
+
|
|
252
257
|
/**
|
|
253
258
|
* The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
|
|
254
259
|
*/
|
|
@@ -558,6 +563,8 @@ declare module 'stripe' {
|
|
|
558
563
|
|
|
559
564
|
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
|
|
560
565
|
|
|
566
|
+
type AutomaticIndirectTax = 'active' | 'inactive' | 'pending';
|
|
567
|
+
|
|
561
568
|
type BacsDebitPayments = 'active' | 'inactive' | 'pending';
|
|
562
569
|
|
|
563
570
|
type BancontactPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -1038,7 +1045,7 @@ declare module 'stripe' {
|
|
|
1038
1045
|
errors: Array<FutureRequirements.Error> | null;
|
|
1039
1046
|
|
|
1040
1047
|
/**
|
|
1041
|
-
* Fields
|
|
1048
|
+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
|
1042
1049
|
*/
|
|
1043
1050
|
eventually_due: Array<string> | null;
|
|
1044
1051
|
|
|
@@ -1229,7 +1236,7 @@ declare module 'stripe' {
|
|
|
1229
1236
|
errors: Array<Requirements.Error> | null;
|
|
1230
1237
|
|
|
1231
1238
|
/**
|
|
1232
|
-
* Fields
|
|
1239
|
+
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
|
1233
1240
|
*/
|
|
1234
1241
|
eventually_due: Array<string> | null;
|
|
1235
1242
|
|
|
@@ -73,7 +73,7 @@ declare module 'stripe' {
|
|
|
73
73
|
external_account?: string | AccountCreateParams.ExternalAccount;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* A hash of account group type to tokens. These are account groups this account should be added to
|
|
76
|
+
* A hash of account group type to tokens. These are account groups this account should be added to.
|
|
77
77
|
*/
|
|
78
78
|
groups?: AccountCreateParams.Groups;
|
|
79
79
|
|
|
@@ -234,6 +234,11 @@ declare module 'stripe' {
|
|
|
234
234
|
*/
|
|
235
235
|
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* The automatic_indirect_tax capability.
|
|
239
|
+
*/
|
|
240
|
+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
|
|
241
|
+
|
|
237
242
|
/**
|
|
238
243
|
* The bacs_debit_payments capability.
|
|
239
244
|
*/
|
|
@@ -573,6 +578,13 @@ declare module 'stripe' {
|
|
|
573
578
|
requested?: boolean;
|
|
574
579
|
}
|
|
575
580
|
|
|
581
|
+
interface AutomaticIndirectTax {
|
|
582
|
+
/**
|
|
583
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
584
|
+
*/
|
|
585
|
+
requested?: boolean;
|
|
586
|
+
}
|
|
587
|
+
|
|
576
588
|
interface BacsDebitPayments {
|
|
577
589
|
/**
|
|
578
590
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1986,7 +1998,7 @@ declare module 'stripe' {
|
|
|
1986
1998
|
>;
|
|
1987
1999
|
|
|
1988
2000
|
/**
|
|
1989
|
-
* A hash of account group type to tokens. These are account groups this account should be added to
|
|
2001
|
+
* A hash of account group type to tokens. These are account groups this account should be added to.
|
|
1990
2002
|
*/
|
|
1991
2003
|
groups?: AccountUpdateParams.Groups;
|
|
1992
2004
|
|
|
@@ -2180,6 +2192,11 @@ declare module 'stripe' {
|
|
|
2180
2192
|
*/
|
|
2181
2193
|
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
|
|
2182
2194
|
|
|
2195
|
+
/**
|
|
2196
|
+
* The automatic_indirect_tax capability.
|
|
2197
|
+
*/
|
|
2198
|
+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
|
|
2199
|
+
|
|
2183
2200
|
/**
|
|
2184
2201
|
* The bacs_debit_payments capability.
|
|
2185
2202
|
*/
|
|
@@ -2519,6 +2536,13 @@ declare module 'stripe' {
|
|
|
2519
2536
|
requested?: boolean;
|
|
2520
2537
|
}
|
|
2521
2538
|
|
|
2539
|
+
interface AutomaticIndirectTax {
|
|
2540
|
+
/**
|
|
2541
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2542
|
+
*/
|
|
2543
|
+
requested?: boolean;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2522
2546
|
interface BacsDebitPayments {
|
|
2523
2547
|
/**
|
|
2524
2548
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -80,7 +80,7 @@ declare module 'stripe' {
|
|
|
80
80
|
status: string;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
|
83
|
+
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
|
84
84
|
*/
|
|
85
85
|
type: BalanceTransaction.Type;
|
|
86
86
|
}
|
|
@@ -141,6 +141,8 @@ declare module 'stripe' {
|
|
|
141
141
|
| 'payout'
|
|
142
142
|
| 'payout_cancel'
|
|
143
143
|
| 'payout_failure'
|
|
144
|
+
| 'payout_minimum_balance_hold'
|
|
145
|
+
| 'payout_minimum_balance_release'
|
|
144
146
|
| 'refund'
|
|
145
147
|
| 'refund_failure'
|
|
146
148
|
| 'reserve_transaction'
|
|
@@ -36,7 +36,7 @@ declare module 'stripe' {
|
|
|
36
36
|
source?: string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
|
39
|
+
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
|
40
40
|
*/
|
|
41
41
|
type?: string;
|
|
42
42
|
}
|
|
@@ -41,7 +41,7 @@ declare module 'stripe' {
|
|
|
41
41
|
namespace Filter {
|
|
42
42
|
interface ApplicabilityScope {
|
|
43
43
|
/**
|
|
44
|
-
* The price type
|
|
44
|
+
* The price type that credit grants can apply to. We currently only support the `metered` price type.
|
|
45
45
|
*/
|
|
46
46
|
price_type: 'metered';
|
|
47
47
|
}
|
|
@@ -52,7 +52,7 @@ declare module 'stripe' {
|
|
|
52
52
|
|
|
53
53
|
class CreditBalanceSummaryResource {
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves the credit balance summary for a customer
|
|
55
|
+
* Retrieves the credit balance summary for a customer.
|
|
56
56
|
*/
|
|
57
57
|
retrieve(
|
|
58
58
|
params: CreditBalanceSummaryRetrieveParams,
|
|
@@ -62,10 +62,15 @@ declare module 'stripe' {
|
|
|
62
62
|
interface Credit {
|
|
63
63
|
amount: Credit.Amount;
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
|
|
67
|
+
*/
|
|
68
|
+
credits_application_invoice_voided?: Credit.CreditsApplicationInvoiceVoided | null;
|
|
69
|
+
|
|
65
70
|
/**
|
|
66
71
|
* The type of credit transaction.
|
|
67
72
|
*/
|
|
68
|
-
type:
|
|
73
|
+
type: Credit.Type;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
namespace Credit {
|
|
@@ -94,6 +99,20 @@ declare module 'stripe' {
|
|
|
94
99
|
value: number;
|
|
95
100
|
}
|
|
96
101
|
}
|
|
102
|
+
|
|
103
|
+
interface CreditsApplicationInvoiceVoided {
|
|
104
|
+
/**
|
|
105
|
+
* The invoice to which the reinstated billing credits were originally applied.
|
|
106
|
+
*/
|
|
107
|
+
invoice: string | Stripe.Invoice;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The invoice line item to which the reinstated billing credits were originally applied.
|
|
111
|
+
*/
|
|
112
|
+
invoice_line_item: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
type Type = 'credits_application_invoice_voided' | 'credits_granted';
|
|
97
116
|
}
|
|
98
117
|
|
|
99
118
|
interface Debit {
|
|
@@ -29,7 +29,7 @@ declare module 'stripe' {
|
|
|
29
29
|
|
|
30
30
|
class CreditBalanceTransactionsResource {
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves a credit balance transaction
|
|
32
|
+
* Retrieves a credit balance transaction.
|
|
33
33
|
*/
|
|
34
34
|
retrieve(
|
|
35
35
|
id: string,
|
|
@@ -42,7 +42,7 @@ declare module 'stripe' {
|
|
|
42
42
|
): Promise<Stripe.Response<Stripe.Billing.CreditBalanceTransaction>>;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Retrieve a list of credit balance transactions
|
|
45
|
+
* Retrieve a list of credit balance transactions.
|
|
46
46
|
*/
|
|
47
47
|
list(
|
|
48
48
|
params: CreditBalanceTransactionListParams,
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* The time when the billing credits become effective
|
|
42
|
+
* The time when the billing credits become effective-when they're eligible for use.
|
|
43
43
|
*/
|
|
44
44
|
effective_at: number | null;
|
|
45
45
|
|
|
@@ -113,7 +113,7 @@ declare module 'stripe' {
|
|
|
113
113
|
namespace ApplicabilityConfig {
|
|
114
114
|
interface Scope {
|
|
115
115
|
/**
|
|
116
|
-
* The price type
|
|
116
|
+
* The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
|
|
117
117
|
*/
|
|
118
118
|
price_type: 'metered';
|
|
119
119
|
}
|
|
@@ -25,7 +25,7 @@ declare module 'stripe' {
|
|
|
25
25
|
customer: string;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* The time when the billing credits become effective
|
|
28
|
+
* The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
|
|
29
29
|
*/
|
|
30
30
|
effective_at?: number;
|
|
31
31
|
|
|
@@ -35,12 +35,12 @@ declare module 'stripe' {
|
|
|
35
35
|
expand?: Array<string>;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* The time when the billing credits
|
|
38
|
+
* The time when the billing credits expire. If not specified, the billing credits don't expire.
|
|
39
39
|
*/
|
|
40
40
|
expires_at?: number;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Set of key-value pairs that you can attach to an object.
|
|
43
|
+
* Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
|
|
44
44
|
*/
|
|
45
45
|
metadata?: Stripe.MetadataParam;
|
|
46
46
|
|
|
@@ -87,7 +87,7 @@ declare module 'stripe' {
|
|
|
87
87
|
namespace ApplicabilityConfig {
|
|
88
88
|
interface Scope {
|
|
89
89
|
/**
|
|
90
|
-
* The price type
|
|
90
|
+
* The price type that credit grants can apply to. We currently only support the `metered` price type.
|
|
91
91
|
*/
|
|
92
92
|
price_type: 'metered';
|
|
93
93
|
}
|
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
expires_at?: Stripe.Emptyable<number>;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
|
-
* Set of key-value pairs you can attach to an object.
|
|
118
|
+
* Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
|
|
119
119
|
*/
|
|
120
120
|
metadata?: Stripe.MetadataParam;
|
|
121
121
|
}
|
|
@@ -148,7 +148,7 @@ declare module 'stripe' {
|
|
|
148
148
|
|
|
149
149
|
class CreditGrantsResource {
|
|
150
150
|
/**
|
|
151
|
-
* Creates a credit grant
|
|
151
|
+
* Creates a credit grant.
|
|
152
152
|
*/
|
|
153
153
|
create(
|
|
154
154
|
params: CreditGrantCreateParams,
|
|
@@ -156,7 +156,7 @@ declare module 'stripe' {
|
|
|
156
156
|
): Promise<Stripe.Response<Stripe.Billing.CreditGrant>>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Retrieves a credit grant
|
|
159
|
+
* Retrieves a credit grant.
|
|
160
160
|
*/
|
|
161
161
|
retrieve(
|
|
162
162
|
id: string,
|
|
@@ -169,7 +169,7 @@ declare module 'stripe' {
|
|
|
169
169
|
): Promise<Stripe.Response<Stripe.Billing.CreditGrant>>;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* Updates a credit grant
|
|
172
|
+
* Updates a credit grant.
|
|
173
173
|
*/
|
|
174
174
|
update(
|
|
175
175
|
id: string,
|
|
@@ -4,8 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing.
|
|
7
|
+
* Meter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event's payload and how to aggregate those events.
|
|
9
8
|
*/
|
|
10
9
|
interface MeterEvent {
|
|
11
10
|
/**
|
|
@@ -22,7 +22,7 @@ declare module 'stripe' {
|
|
|
22
22
|
expand?: Array<string>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* A unique identifier for the event. If not provided, one
|
|
25
|
+
* A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
|
|
26
26
|
*/
|
|
27
27
|
identifier?: string;
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ declare module 'stripe' {
|
|
|
34
34
|
|
|
35
35
|
class MeterEventsResource {
|
|
36
36
|
/**
|
|
37
|
-
* Creates a billing meter event
|
|
37
|
+
* Creates a billing meter event.
|
|
38
38
|
*/
|
|
39
39
|
create(
|
|
40
40
|
params: MeterEventCreateParams,
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.
|
|
8
8
|
*
|
|
9
9
|
* Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)
|
|
10
10
|
*/
|
|
@@ -10,7 +10,7 @@ declare module 'stripe' {
|
|
|
10
10
|
default_aggregation: MeterCreateParams.DefaultAggregation;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The meter's name.
|
|
13
|
+
* The meter's name. Not visible to the customer.
|
|
14
14
|
*/
|
|
15
15
|
display_name: string;
|
|
16
16
|
|
|
@@ -43,7 +43,7 @@ declare module 'stripe' {
|
|
|
43
43
|
namespace MeterCreateParams {
|
|
44
44
|
interface CustomerMapping {
|
|
45
45
|
/**
|
|
46
|
-
* The key in the
|
|
46
|
+
* The key in the meter event payload to use for mapping the event to a customer.
|
|
47
47
|
*/
|
|
48
48
|
event_payload_key: string;
|
|
49
49
|
|
|
@@ -83,7 +83,7 @@ declare module 'stripe' {
|
|
|
83
83
|
|
|
84
84
|
interface MeterUpdateParams {
|
|
85
85
|
/**
|
|
86
|
-
* The meter's name.
|
|
86
|
+
* The meter's name. Not visible to the customer.
|
|
87
87
|
*/
|
|
88
88
|
display_name?: string;
|
|
89
89
|
|
|
@@ -156,7 +156,7 @@ declare module 'stripe' {
|
|
|
156
156
|
|
|
157
157
|
class MetersResource {
|
|
158
158
|
/**
|
|
159
|
-
* Creates a billing meter
|
|
159
|
+
* Creates a billing meter.
|
|
160
160
|
*/
|
|
161
161
|
create(
|
|
162
162
|
params: MeterCreateParams,
|
|
@@ -164,7 +164,7 @@ declare module 'stripe' {
|
|
|
164
164
|
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Retrieves a billing meter given an ID
|
|
167
|
+
* Retrieves a billing meter given an ID.
|
|
168
168
|
*/
|
|
169
169
|
retrieve(
|
|
170
170
|
id: string,
|
|
@@ -177,7 +177,7 @@ declare module 'stripe' {
|
|
|
177
177
|
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Updates a billing meter
|
|
180
|
+
* Updates a billing meter.
|
|
181
181
|
*/
|
|
182
182
|
update(
|
|
183
183
|
id: string,
|
|
@@ -195,7 +195,7 @@ declare module 'stripe' {
|
|
|
195
195
|
list(options?: RequestOptions): ApiListPromise<Stripe.Billing.Meter>;
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
|
|
199
199
|
*/
|
|
200
200
|
deactivate(
|
|
201
201
|
id: string,
|
|
@@ -217,7 +217,7 @@ declare module 'stripe' {
|
|
|
217
217
|
): ApiListPromise<Stripe.Billing.MeterEventSummary>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
220
|
+
* When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
|
|
221
221
|
*/
|
|
222
222
|
reactivate(
|
|
223
223
|
id: string,
|