stripe 17.2.0-beta.1 → 17.2.0-beta.2
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 +33 -3
- package/README.md +4 -3
- package/VERSION +1 -1
- package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +30 -5
- package/types/AccountSessionsResource.d.ts +46 -6
- package/types/Accounts.d.ts +14 -2
- package/types/AccountsResource.d.ts +26 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +2 -0
- package/types/Charges.d.ts +81 -0
- package/types/Checkout/Sessions.d.ts +14 -2
- package/types/Checkout/SessionsResource.d.ts +5 -0
- package/types/ConfirmationTokens.d.ts +70 -0
- package/types/CustomersResource.d.ts +19 -2
- package/types/EventTypes.d.ts +19 -2
- package/types/Events.d.ts +1 -0
- package/types/Forwarding/Requests.d.ts +5 -0
- package/types/InvoiceLineItems.d.ts +3 -0
- package/types/Invoices.d.ts +11 -1
- package/types/InvoicesResource.d.ts +24 -3
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Mandates.d.ts +8 -0
- package/types/Orders.d.ts +71 -1
- package/types/OrdersResource.d.ts +148 -2
- package/types/PaymentIntents.d.ts +140 -0
- package/types/PaymentIntentsResource.d.ts +680 -4
- package/types/PaymentMethodConfigurationsResource.d.ts +2 -2
- package/types/PaymentMethods.d.ts +70 -0
- package/types/PaymentMethodsResource.d.ts +70 -0
- package/types/Persons.d.ts +1 -1
- package/types/QuotePreviewInvoices.d.ts +11 -1
- package/types/SetupAttempts.d.ts +9 -0
- package/types/SetupIntents.d.ts +1 -0
- package/types/SetupIntentsResource.d.ts +147 -0
- package/types/SubscriptionsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +1 -0
- package/types/Tax/Calculations.d.ts +33 -1
- package/types/Tax/CalculationsResource.d.ts +7 -1
- package/types/Tax/Registrations.d.ts +82 -0
- package/types/Tax/RegistrationsResource.d.ts +109 -0
- package/types/Tax/Transactions.d.ts +8 -1
- package/types/TaxIds.d.ts +7 -1
- package/types/TaxIdsResource.d.ts +7 -1
- package/types/TaxRates.d.ts +25 -0
- package/types/TaxRatesResource.d.ts +2 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +49 -0
- package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -1
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.2.0-beta.2 - 2024-10-08
|
|
4
|
+
* [#2180](https://github.com/stripe/stripe-node/pull/2180) Update generated code for beta
|
|
5
|
+
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
|
6
|
+
* Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
|
|
7
|
+
* Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.financial_account.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
|
|
8
|
+
* Add support for `card_spend_dispute_management` and `spend_control_management` on `AccountSessionCreateParams.components.issuing_cards_list.features`
|
|
9
|
+
* Add support for new value `payout_statement_descriptor_profanity` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
|
10
|
+
* Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
11
|
+
* Add support for `naver_pay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
12
|
+
* Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
13
|
+
* Add support for new values `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
14
|
+
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.collected_information.tax_ids[].type`, `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
15
|
+
* Add support for new values `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
|
|
16
|
+
* Add support for new values `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
17
|
+
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
18
|
+
* Add support for new value `refund.failed` on enum `Event.type`
|
|
19
|
+
* Add support for `metadata` on `Forwarding.Request`
|
|
20
|
+
* Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
|
|
21
|
+
* Add support for new value `expired` on enums `Issuing.Authorization.status` and `Issuing.AuthorizationListParams.status`
|
|
22
|
+
* Add support for `line_items` on `Order.payment.settings.payment_method_options.paypal`, `OrderCreateParams.payment.settings.payment_method_options.paypal`, `OrderUpdateParams.payment.settings.payment_method_options.paypal`, `PaymentIntent.payment_method_options.paypal`, `PaymentIntentConfirmParams.payment_method_options.paypal`, `PaymentIntentCreateParams.payment_method_options.paypal`, and `PaymentIntentUpdateParams.payment_method_options.paypal`
|
|
23
|
+
* Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
|
|
24
|
+
* Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
|
|
25
|
+
* Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
|
|
26
|
+
* Add support for new value `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
27
|
+
* [#2203](https://github.com/stripe/stripe-node/pull/2203) Merge into beta using the merge script
|
|
28
|
+
|
|
3
29
|
## 17.2.0-beta.1 - 2024-10-03
|
|
4
|
-
* [#2200](https://github.com/stripe/stripe-node/pull/2200) Updates beta branch with changes in master
|
|
5
|
-
* Add support for `reporting_chart` on `AccountSessionCreateParams.components`
|
|
6
|
-
* Remove support for `from_schedule` on `Quote.subscription_data`
|
|
30
|
+
* [#2200](https://github.com/stripe/stripe-node/pull/2200) Updates beta branch with changes in master
|
|
31
|
+
* Add support for `reporting_chart` on `AccountSessionCreateParams.components`
|
|
32
|
+
* Remove support for `from_schedule` on `Quote.subscription_data`
|
|
7
33
|
* Add support for `allow_redisplay` on `Terminal.ReaderCollectPaymentMethodParams.collect_config`
|
|
8
34
|
|
|
35
|
+
## 17.1.0 - 2024-10-03
|
|
36
|
+
* [#2199](https://github.com/stripe/stripe-node/pull/2199) Update generated code
|
|
37
|
+
* Remove the support for resource `Margin` that was accidentally made public in the last release
|
|
38
|
+
|
|
9
39
|
## 17.0.0 - 2024-10-01
|
|
10
40
|
* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia
|
|
11
41
|
|
package/README.md
CHANGED
|
@@ -519,12 +519,13 @@ const stripe = new Stripe('sk_test_...', {
|
|
|
519
519
|
|
|
520
520
|
### Custom requests
|
|
521
521
|
|
|
522
|
-
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the
|
|
522
|
+
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
|
|
523
523
|
|
|
524
524
|
```javascript
|
|
525
|
-
|
|
525
|
+
import Stripe from 'stripe';
|
|
526
|
+
const client = new Stripe('sk_test_...');
|
|
526
527
|
|
|
527
|
-
|
|
528
|
+
client.rawRequest(
|
|
528
529
|
'POST',
|
|
529
530
|
'/v1/beta_endpoint',
|
|
530
531
|
{ param: 123 },
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.2.0-beta.
|
|
1
|
+
17.2.0-beta.2
|
|
@@ -21,4 +21,8 @@ exports.Cards = StripeResource_js_1.StripeResource.extend({
|
|
|
21
21
|
method: 'POST',
|
|
22
22
|
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
|
|
23
23
|
}),
|
|
24
|
+
submitCard: stripeMethod({
|
|
25
|
+
method: 'POST',
|
|
26
|
+
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
|
|
27
|
+
}),
|
|
24
28
|
});
|
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.2.0-beta.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.2.0-beta.2';
|
|
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;
|
|
@@ -18,4 +18,8 @@ export const Cards = StripeResource.extend({
|
|
|
18
18
|
method: 'POST',
|
|
19
19
|
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
|
|
20
20
|
}),
|
|
21
|
+
submitCard: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
|
|
24
|
+
}),
|
|
21
25
|
});
|
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.2.0-beta.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.2.0-beta.2';
|
|
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,12 @@ declare module 'stripe' {
|
|
|
88
88
|
namespace AccountManagement {
|
|
89
89
|
interface Features {
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
92
|
+
*/
|
|
93
|
+
disable_stripe_user_authentication?: boolean;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
92
97
|
*/
|
|
93
98
|
external_account_collection: boolean;
|
|
94
99
|
}
|
|
@@ -106,7 +111,12 @@ declare module 'stripe' {
|
|
|
106
111
|
namespace AccountOnboarding {
|
|
107
112
|
interface Features {
|
|
108
113
|
/**
|
|
109
|
-
*
|
|
114
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
115
|
+
*/
|
|
116
|
+
disable_stripe_user_authentication?: boolean;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
110
120
|
*/
|
|
111
121
|
external_account_collection: boolean;
|
|
112
122
|
}
|
|
@@ -123,13 +133,18 @@ declare module 'stripe' {
|
|
|
123
133
|
|
|
124
134
|
namespace Balances {
|
|
125
135
|
interface Features {
|
|
136
|
+
/**
|
|
137
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
138
|
+
*/
|
|
139
|
+
disable_stripe_user_authentication?: boolean;
|
|
140
|
+
|
|
126
141
|
/**
|
|
127
142
|
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
128
143
|
*/
|
|
129
144
|
edit_payout_schedule: boolean;
|
|
130
145
|
|
|
131
146
|
/**
|
|
132
|
-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for
|
|
147
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
133
148
|
*/
|
|
134
149
|
external_account_collection: boolean;
|
|
135
150
|
|
|
@@ -209,7 +224,12 @@ declare module 'stripe' {
|
|
|
209
224
|
namespace NotificationBanner {
|
|
210
225
|
interface Features {
|
|
211
226
|
/**
|
|
212
|
-
*
|
|
227
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
228
|
+
*/
|
|
229
|
+
disable_stripe_user_authentication?: boolean;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
213
233
|
*/
|
|
214
234
|
external_account_collection: boolean;
|
|
215
235
|
}
|
|
@@ -292,13 +312,18 @@ declare module 'stripe' {
|
|
|
292
312
|
|
|
293
313
|
namespace Payouts {
|
|
294
314
|
interface Features {
|
|
315
|
+
/**
|
|
316
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
317
|
+
*/
|
|
318
|
+
disable_stripe_user_authentication?: boolean;
|
|
319
|
+
|
|
295
320
|
/**
|
|
296
321
|
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
297
322
|
*/
|
|
298
323
|
edit_payout_schedule: boolean;
|
|
299
324
|
|
|
300
325
|
/**
|
|
301
|
-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for
|
|
326
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
302
327
|
*/
|
|
303
328
|
external_account_collection: boolean;
|
|
304
329
|
|
|
@@ -155,7 +155,12 @@ declare module 'stripe' {
|
|
|
155
155
|
namespace AccountManagement {
|
|
156
156
|
interface Features {
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and true otherwise.
|
|
159
|
+
*/
|
|
160
|
+
disable_stripe_user_authentication?: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
159
164
|
*/
|
|
160
165
|
external_account_collection?: boolean;
|
|
161
166
|
}
|
|
@@ -176,7 +181,12 @@ declare module 'stripe' {
|
|
|
176
181
|
namespace AccountOnboarding {
|
|
177
182
|
interface Features {
|
|
178
183
|
/**
|
|
179
|
-
*
|
|
184
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and true otherwise.
|
|
185
|
+
*/
|
|
186
|
+
disable_stripe_user_authentication?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
180
190
|
*/
|
|
181
191
|
external_account_collection?: boolean;
|
|
182
192
|
}
|
|
@@ -238,13 +248,18 @@ declare module 'stripe' {
|
|
|
238
248
|
|
|
239
249
|
namespace Balances {
|
|
240
250
|
interface Features {
|
|
251
|
+
/**
|
|
252
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
253
|
+
*/
|
|
254
|
+
disable_stripe_user_authentication?: boolean;
|
|
255
|
+
|
|
241
256
|
/**
|
|
242
257
|
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
243
258
|
*/
|
|
244
259
|
edit_payout_schedule?: boolean;
|
|
245
260
|
|
|
246
261
|
/**
|
|
247
|
-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for
|
|
262
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
248
263
|
*/
|
|
249
264
|
external_account_collection?: boolean;
|
|
250
265
|
|
|
@@ -351,6 +366,11 @@ declare module 'stripe' {
|
|
|
351
366
|
|
|
352
367
|
namespace FinancialAccount {
|
|
353
368
|
interface Features {
|
|
369
|
+
/**
|
|
370
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
371
|
+
*/
|
|
372
|
+
disable_stripe_user_authentication?: boolean;
|
|
373
|
+
|
|
354
374
|
/**
|
|
355
375
|
* Whether to allow external accounts to be linked for money transfer.
|
|
356
376
|
*/
|
|
@@ -385,7 +405,7 @@ declare module 'stripe' {
|
|
|
385
405
|
namespace FinancialAccountTransactions {
|
|
386
406
|
interface Features {
|
|
387
407
|
/**
|
|
388
|
-
* Whether to allow card spend dispute features.
|
|
408
|
+
* Whether to allow card spend dispute management features.
|
|
389
409
|
*/
|
|
390
410
|
card_spend_dispute_management?: boolean;
|
|
391
411
|
}
|
|
@@ -426,10 +446,20 @@ declare module 'stripe' {
|
|
|
426
446
|
*/
|
|
427
447
|
card_management?: boolean;
|
|
428
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Whether to allow card spend dispute management features.
|
|
451
|
+
*/
|
|
452
|
+
card_spend_dispute_management?: boolean;
|
|
453
|
+
|
|
429
454
|
/**
|
|
430
455
|
* Whether to allow cardholder management features.
|
|
431
456
|
*/
|
|
432
457
|
cardholder_management?: boolean;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Whether to allow spend control management features.
|
|
461
|
+
*/
|
|
462
|
+
spend_control_management?: boolean;
|
|
433
463
|
}
|
|
434
464
|
}
|
|
435
465
|
|
|
@@ -448,7 +478,12 @@ declare module 'stripe' {
|
|
|
448
478
|
namespace NotificationBanner {
|
|
449
479
|
interface Features {
|
|
450
480
|
/**
|
|
451
|
-
*
|
|
481
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and true otherwise.
|
|
482
|
+
*/
|
|
483
|
+
disable_stripe_user_authentication?: boolean;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
452
487
|
*/
|
|
453
488
|
external_account_collection?: boolean;
|
|
454
489
|
}
|
|
@@ -556,13 +591,18 @@ declare module 'stripe' {
|
|
|
556
591
|
|
|
557
592
|
namespace Payouts {
|
|
558
593
|
interface Features {
|
|
594
|
+
/**
|
|
595
|
+
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
|
|
596
|
+
*/
|
|
597
|
+
disable_stripe_user_authentication?: boolean;
|
|
598
|
+
|
|
559
599
|
/**
|
|
560
600
|
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
|
561
601
|
*/
|
|
562
602
|
edit_payout_schedule?: boolean;
|
|
563
603
|
|
|
564
604
|
/**
|
|
565
|
-
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for
|
|
605
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
|
566
606
|
*/
|
|
567
607
|
external_account_collection?: boolean;
|
|
568
608
|
|
package/types/Accounts.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare module 'stripe' {
|
|
|
40
40
|
capabilities?: Account.Capabilities;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Whether the account can
|
|
43
|
+
* Whether the account can process charges.
|
|
44
44
|
*/
|
|
45
45
|
charges_enabled: boolean;
|
|
46
46
|
|
|
@@ -85,6 +85,11 @@ declare module 'stripe' {
|
|
|
85
85
|
|
|
86
86
|
future_requirements?: Account.FutureRequirements;
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* The groups associated with the account.
|
|
90
|
+
*/
|
|
91
|
+
groups?: Account.Groups | null;
|
|
92
|
+
|
|
88
93
|
/**
|
|
89
94
|
* This is an object representing a person associated with a Stripe account.
|
|
90
95
|
*
|
|
@@ -100,7 +105,7 @@ declare module 'stripe' {
|
|
|
100
105
|
metadata?: Stripe.Metadata;
|
|
101
106
|
|
|
102
107
|
/**
|
|
103
|
-
* Whether
|
|
108
|
+
* Whether the funds in this account can be paid out.
|
|
104
109
|
*/
|
|
105
110
|
payouts_enabled: boolean;
|
|
106
111
|
|
|
@@ -1075,6 +1080,13 @@ declare module 'stripe' {
|
|
|
1075
1080
|
}
|
|
1076
1081
|
}
|
|
1077
1082
|
|
|
1083
|
+
interface Groups {
|
|
1084
|
+
/**
|
|
1085
|
+
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
|
1086
|
+
*/
|
|
1087
|
+
payments_pricing: string | null;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1078
1090
|
interface Requirements {
|
|
1079
1091
|
/**
|
|
1080
1092
|
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
|
@@ -72,6 +72,11 @@ declare module 'stripe' {
|
|
|
72
72
|
*/
|
|
73
73
|
external_account?: string | AccountCreateParams.ExternalAccount;
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* A hash of account group type to tokens. These are account groups this account should be added to
|
|
77
|
+
*/
|
|
78
|
+
groups?: AccountCreateParams.Groups;
|
|
79
|
+
|
|
75
80
|
/**
|
|
76
81
|
* Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
|
77
82
|
*/
|
|
@@ -1198,6 +1203,13 @@ declare module 'stripe' {
|
|
|
1198
1203
|
account_number: string;
|
|
1199
1204
|
}
|
|
1200
1205
|
|
|
1206
|
+
interface Groups {
|
|
1207
|
+
/**
|
|
1208
|
+
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
|
1209
|
+
*/
|
|
1210
|
+
payments_pricing?: Stripe.Emptyable<string>;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1201
1213
|
interface Individual {
|
|
1202
1214
|
/**
|
|
1203
1215
|
* The individual's primary address.
|
|
@@ -1245,7 +1257,7 @@ declare module 'stripe' {
|
|
|
1245
1257
|
full_name_aliases?: Stripe.Emptyable<Array<string>>;
|
|
1246
1258
|
|
|
1247
1259
|
/**
|
|
1248
|
-
* The individual's gender
|
|
1260
|
+
* The individual's gender
|
|
1249
1261
|
*/
|
|
1250
1262
|
gender?: string;
|
|
1251
1263
|
|
|
@@ -1788,6 +1800,11 @@ declare module 'stripe' {
|
|
|
1788
1800
|
| AccountUpdateParams.CardToken
|
|
1789
1801
|
>;
|
|
1790
1802
|
|
|
1803
|
+
/**
|
|
1804
|
+
* A hash of account group type to tokens. These are account groups this account should be added to
|
|
1805
|
+
*/
|
|
1806
|
+
groups?: AccountUpdateParams.Groups;
|
|
1807
|
+
|
|
1791
1808
|
/**
|
|
1792
1809
|
* Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
|
1793
1810
|
*/
|
|
@@ -2856,6 +2873,13 @@ declare module 'stripe' {
|
|
|
2856
2873
|
}
|
|
2857
2874
|
}
|
|
2858
2875
|
|
|
2876
|
+
interface Groups {
|
|
2877
|
+
/**
|
|
2878
|
+
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
|
2879
|
+
*/
|
|
2880
|
+
payments_pricing?: Stripe.Emptyable<string>;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2859
2883
|
interface Individual {
|
|
2860
2884
|
/**
|
|
2861
2885
|
* The individual's primary address.
|
|
@@ -2903,7 +2927,7 @@ declare module 'stripe' {
|
|
|
2903
2927
|
full_name_aliases?: Stripe.Emptyable<Array<string>>;
|
|
2904
2928
|
|
|
2905
2929
|
/**
|
|
2906
|
-
* The individual's gender
|
|
2930
|
+
* The individual's gender
|
|
2907
2931
|
*/
|
|
2908
2932
|
gender?: string;
|
|
2909
2933
|
|
|
@@ -32,7 +32,7 @@ declare module 'stripe' {
|
|
|
32
32
|
created: number;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* ID of the customer to whom the credit was granted.
|
|
36
36
|
*/
|
|
37
37
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
38
38
|
|
|
@@ -57,7 +57,7 @@ declare module 'stripe' {
|
|
|
57
57
|
metadata: Stripe.Metadata;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* A descriptive name shown in dashboard
|
|
60
|
+
* A descriptive name shown in dashboard.
|
|
61
61
|
*/
|
|
62
62
|
name: string | null;
|
|
63
63
|
|
|
@@ -20,7 +20,7 @@ declare module 'stripe' {
|
|
|
20
20
|
category: CreditGrantCreateParams.Category;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* ID of the customer to whom the credit should be granted.
|
|
24
24
|
*/
|
|
25
25
|
customer: string;
|
|
26
26
|
|
|
@@ -45,7 +45,7 @@ declare module 'stripe' {
|
|
|
45
45
|
metadata?: Stripe.MetadataParam;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* A descriptive name shown in dashboard
|
|
48
|
+
* A descriptive name shown in dashboard.
|
|
49
49
|
*/
|
|
50
50
|
name?: string;
|
|
51
51
|
}
|
|
@@ -5,6 +5,8 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
7
|
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make.
|
|
8
|
+
*
|
|
9
|
+
* Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)
|
|
8
10
|
*/
|
|
9
11
|
interface Meter {
|
|
10
12
|
/**
|
package/types/Charges.d.ts
CHANGED
|
@@ -412,10 +412,14 @@ declare module 'stripe' {
|
|
|
412
412
|
|
|
413
413
|
interac_present?: PaymentMethodDetails.InteracPresent;
|
|
414
414
|
|
|
415
|
+
kakao_pay?: PaymentMethodDetails.KakaoPay;
|
|
416
|
+
|
|
415
417
|
klarna?: PaymentMethodDetails.Klarna;
|
|
416
418
|
|
|
417
419
|
konbini?: PaymentMethodDetails.Konbini;
|
|
418
420
|
|
|
421
|
+
kr_card?: PaymentMethodDetails.KrCard;
|
|
422
|
+
|
|
419
423
|
link?: PaymentMethodDetails.Link;
|
|
420
424
|
|
|
421
425
|
mb_way?: PaymentMethodDetails.MbWay;
|
|
@@ -424,10 +428,14 @@ declare module 'stripe' {
|
|
|
424
428
|
|
|
425
429
|
multibanco?: PaymentMethodDetails.Multibanco;
|
|
426
430
|
|
|
431
|
+
naver_pay?: PaymentMethodDetails.NaverPay;
|
|
432
|
+
|
|
427
433
|
oxxo?: PaymentMethodDetails.Oxxo;
|
|
428
434
|
|
|
429
435
|
p24?: PaymentMethodDetails.P24;
|
|
430
436
|
|
|
437
|
+
payco?: PaymentMethodDetails.Payco;
|
|
438
|
+
|
|
431
439
|
paynow?: PaymentMethodDetails.Paynow;
|
|
432
440
|
|
|
433
441
|
paypal?: PaymentMethodDetails.Paypal;
|
|
@@ -442,6 +450,8 @@ declare module 'stripe' {
|
|
|
442
450
|
|
|
443
451
|
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
|
444
452
|
|
|
453
|
+
samsung_pay?: PaymentMethodDetails.SamsungPay;
|
|
454
|
+
|
|
445
455
|
sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
|
|
446
456
|
|
|
447
457
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
@@ -1675,6 +1685,13 @@ declare module 'stripe' {
|
|
|
1675
1685
|
}
|
|
1676
1686
|
}
|
|
1677
1687
|
|
|
1688
|
+
interface KakaoPay {
|
|
1689
|
+
/**
|
|
1690
|
+
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1691
|
+
*/
|
|
1692
|
+
buyer_id: string | null;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1678
1695
|
interface Klarna {
|
|
1679
1696
|
/**
|
|
1680
1697
|
* The payer details for this transaction.
|
|
@@ -1732,6 +1749,49 @@ declare module 'stripe' {
|
|
|
1732
1749
|
}
|
|
1733
1750
|
}
|
|
1734
1751
|
|
|
1752
|
+
interface KrCard {
|
|
1753
|
+
/**
|
|
1754
|
+
* The local credit or debit card brand.
|
|
1755
|
+
*/
|
|
1756
|
+
brand: KrCard.Brand | null;
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1760
|
+
*/
|
|
1761
|
+
buyer_id: string | null;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* The last four digits of the card. This may not be present for American Express cards.
|
|
1765
|
+
*/
|
|
1766
|
+
last4: string | null;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
namespace KrCard {
|
|
1770
|
+
type Brand =
|
|
1771
|
+
| 'bc'
|
|
1772
|
+
| 'citi'
|
|
1773
|
+
| 'hana'
|
|
1774
|
+
| 'hyundai'
|
|
1775
|
+
| 'jeju'
|
|
1776
|
+
| 'jeonbuk'
|
|
1777
|
+
| 'kakaobank'
|
|
1778
|
+
| 'kbank'
|
|
1779
|
+
| 'kdbbank'
|
|
1780
|
+
| 'kookmin'
|
|
1781
|
+
| 'kwangju'
|
|
1782
|
+
| 'lotte'
|
|
1783
|
+
| 'mg'
|
|
1784
|
+
| 'nh'
|
|
1785
|
+
| 'post'
|
|
1786
|
+
| 'samsung'
|
|
1787
|
+
| 'savingsbank'
|
|
1788
|
+
| 'shinhan'
|
|
1789
|
+
| 'shinhyup'
|
|
1790
|
+
| 'suhyup'
|
|
1791
|
+
| 'tossbank'
|
|
1792
|
+
| 'woori';
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1735
1795
|
interface Link {
|
|
1736
1796
|
/**
|
|
1737
1797
|
* Two-letter ISO code representing the funding source country beneath the Link payment.
|
|
@@ -1790,6 +1850,13 @@ declare module 'stripe' {
|
|
|
1790
1850
|
reference: string | null;
|
|
1791
1851
|
}
|
|
1792
1852
|
|
|
1853
|
+
interface NaverPay {
|
|
1854
|
+
/**
|
|
1855
|
+
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1856
|
+
*/
|
|
1857
|
+
buyer_id: string | null;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1793
1860
|
interface Oxxo {
|
|
1794
1861
|
/**
|
|
1795
1862
|
* OXXO reference number
|
|
@@ -1846,6 +1913,13 @@ declare module 'stripe' {
|
|
|
1846
1913
|
| 'volkswagen_bank';
|
|
1847
1914
|
}
|
|
1848
1915
|
|
|
1916
|
+
interface Payco {
|
|
1917
|
+
/**
|
|
1918
|
+
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1919
|
+
*/
|
|
1920
|
+
buyer_id: string | null;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1849
1923
|
interface Paynow {
|
|
1850
1924
|
/**
|
|
1851
1925
|
* Reference number associated with this PayNow payment
|
|
@@ -1968,6 +2042,13 @@ declare module 'stripe' {
|
|
|
1968
2042
|
|
|
1969
2043
|
interface RevolutPay {}
|
|
1970
2044
|
|
|
2045
|
+
interface SamsungPay {
|
|
2046
|
+
/**
|
|
2047
|
+
* A unique identifier for the buyer as determined by the local payment processor.
|
|
2048
|
+
*/
|
|
2049
|
+
buyer_id: string | null;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
1971
2052
|
interface SepaCreditTransfer {
|
|
1972
2053
|
/**
|
|
1973
2054
|
* Name of the bank associated with the bank account.
|