stripe 17.6.0-beta.3 → 17.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/OPENAPI_VERSION +1 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessionsResource.d.ts +21 -0
- package/types/Accounts.d.ts +15 -0
- package/types/AccountsResource.d.ts +6 -2
- package/types/Balance.d.ts +18 -18
- package/types/Billing/CreditBalanceSummaryResource.d.ts +14 -0
- package/types/Billing/CreditGrants.d.ts +15 -1
- package/types/Billing/CreditGrantsResource.d.ts +14 -0
- package/types/Billing/MeterEventSummaries.d.ts +2 -0
- package/types/Charges.d.ts +10 -0
- package/types/Checkout/Sessions.d.ts +27 -10
- package/types/Checkout/SessionsResource.d.ts +20 -0
- package/types/ConfirmationTokens.d.ts +3 -3
- package/types/CreditNotes.d.ts +2 -2
- package/types/EventTypes.d.ts +1 -1
- package/types/FinancialConnections/SessionsResource.d.ts +1 -1
- package/types/Invoices.d.ts +2 -2
- package/types/InvoicesResource.d.ts +1 -1
- package/types/LineItems.d.ts +2 -2
- package/types/Orders.d.ts +4 -4
- package/types/PaymentIntentsResource.d.ts +3 -3
- package/types/PaymentMethods.d.ts +3 -3
- package/types/QuotePreviewInvoices.d.ts +2 -2
- package/types/Quotes.d.ts +6 -6
- package/types/SetupIntentsResource.d.ts +3 -3
- package/types/Tax/CalculationLineItems.d.ts +1 -1
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/Transactions.d.ts +1 -1
- package/types/TaxRates.d.ts +3 -3
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/TokensResource.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.7.0-beta.1 - 2025-02-07
|
|
4
|
+
* [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
|
|
5
|
+
* Add support for `rejected_reason` on `Account.risk_controls`
|
|
6
|
+
* Add support for `product_tax_code_selector` on `AccountSessionCreateParams.components`
|
|
7
|
+
* Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
|
|
8
|
+
* Change `Billing.CreditGrant.applicability_config.scope.price_type`, `Checkout.Session.collected_information.business_name`, `Checkout.Session.collected_information.email`, `Checkout.Session.collected_information.phone`, `Checkout.Session.collected_information.shipping_details`, and `Checkout.Session.collected_information.tax_ids` to be optional
|
|
9
|
+
* Add support for `brand_product` on `Charge.payment_method_details.amazon_pay.funding.card` and `Charge.payment_method_details.revolut_pay.funding.card`
|
|
10
|
+
* Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
|
|
11
|
+
* Change `Checkout.Session.discounts` to be required
|
|
12
|
+
* Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
|
|
13
|
+
|
|
14
|
+
## 17.6.0 - 2025-01-27
|
|
15
|
+
* [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
|
|
16
|
+
* Add support for `close` method on resource `Treasury.FinancialAccount`
|
|
17
|
+
* Add support for `pay_by_bank_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
18
|
+
* Add support for `directorship_declaration` and `ownership_exemption_reason` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
|
19
|
+
* Add support for `proof_of_ultimate_beneficial_ownership` on `AccountCreateParams.documents` and `AccountUpdateParams.documents`
|
|
20
|
+
* Add support for `financial_account` on `AccountSession.components`, `AccountSessionCreateParams.components`, and `Treasury.OutboundTransfer.destination_payment_method_details`
|
|
21
|
+
* Add support for `financial_account_transactions`, `issuing_card`, and `issuing_cards_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
22
|
+
* Add support for `advice_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
|
|
23
|
+
* Change `Billing.CreditBalanceTransaction.credit.credits_application_invoice_voided`, `Card.regulated_status`, `Charge.payment_method_details.card.network_transaction_id`, `Charge.payment_method_details.card.regulated_status`, `ConfirmationToken.payment_method_preview.card.regulated_status`, `CreditNote.pretax_credit_amounts`, `Invoice.total_pretax_credit_amounts`, `Issuing.Authorization.merchant_data.tax_id`, `Issuing.Transaction.merchant_data.tax_id`, and `PaymentMethod.card.regulated_status` to be required
|
|
24
|
+
* Add support for `pay_by_bank` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `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`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
25
|
+
* Add support for `country` on `Charge.payment_method_details.paypal`, `ConfirmationToken.payment_method_preview.paypal`, and `PaymentMethod.paypal`
|
|
26
|
+
* Add support for new value `pay_by_bank` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
27
|
+
* Add support for new value `SD` on enums `Checkout.Session.shipping_address_collection.allowed_countries[]`, `Checkout.SessionCreateParams.shipping_address_collection.allowed_countries[]`, `PaymentLink.shipping_address_collection.allowed_countries[]`, `PaymentLinkCreateParams.shipping_address_collection.allowed_countries[]`, and `PaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]`
|
|
28
|
+
* Add support for `discounts` on `Checkout.Session`
|
|
29
|
+
* Add support for new value `pay_by_bank` 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`
|
|
30
|
+
* Add support for new value `pay_by_bank` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
31
|
+
* Add support for new value `pay_by_bank` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
|
32
|
+
* Add support for `phone_number_collection` on `PaymentLinkUpdateParams`
|
|
33
|
+
* Add support for `jpy` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
|
|
34
|
+
* Add support for `nickname` on `Treasury.FinancialAccountCreateParams`, `Treasury.FinancialAccountUpdateParams`, and `Treasury.FinancialAccount`
|
|
35
|
+
* Add support for `forwarding_settings` on `Treasury.FinancialAccountUpdateParams`
|
|
36
|
+
* Add support for `is_default` on `Treasury.FinancialAccount`
|
|
37
|
+
* Add support for `destination_payment_method_data` on `Treasury.OutboundTransferCreateParams`
|
|
38
|
+
* Change type of `Treasury.OutboundTransfer.destination_payment_method_details.type` from `literal('us_bank_account')` to `enum('financial_account'|'us_bank_account')`
|
|
39
|
+
* Add support for new value `outbound_transfer` on enums `Treasury.ReceivedCredit.linked_flows.source_flow_details.type` and `Treasury.ReceivedCreditListParams.linked_flows.source_flow_type`
|
|
40
|
+
* Add support for `outbound_transfer` on `Treasury.ReceivedCredit.linked_flows.source_flow_details`
|
|
41
|
+
* Add support for new value `2025-01-27.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
|
42
|
+
* [#2249](https://github.com/stripe/stripe-node/pull/2249) add justfile, remove coveralls, tweak ESLint
|
|
43
|
+
* [#2252](https://github.com/stripe/stripe-node/pull/2252) Added CONTRIBUTING.md file
|
|
44
|
+
* [#2242](https://github.com/stripe/stripe-node/pull/2242) Added pull request template
|
|
45
|
+
|
|
3
46
|
## 17.6.0-beta.3 - 2025-01-23
|
|
4
47
|
* [#2253](https://github.com/stripe/stripe-node/pull/2253) Update generated code for beta
|
|
5
48
|
* Change `Refund.destination_details.blik.network_decline_code` and `Refund.destination_details.swish.network_decline_code` to be required
|
package/OPENAPI_VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v1472
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.
|
|
1
|
+
17.7.0-beta.1
|
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.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.7.0-beta.1';
|
|
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/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.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.7.0-beta.1';
|
|
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
|
@@ -121,6 +121,11 @@ declare module 'stripe' {
|
|
|
121
121
|
*/
|
|
122
122
|
payouts_list?: Components.PayoutsList;
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Configuration for the product tax code selector embedded component.
|
|
126
|
+
*/
|
|
127
|
+
product_tax_code_selector?: Components.ProductTaxCodeSelector;
|
|
128
|
+
|
|
124
129
|
/**
|
|
125
130
|
* Configuration for the recipients component.
|
|
126
131
|
*/
|
|
@@ -668,6 +673,22 @@ declare module 'stripe' {
|
|
|
668
673
|
interface Features {}
|
|
669
674
|
}
|
|
670
675
|
|
|
676
|
+
interface ProductTaxCodeSelector {
|
|
677
|
+
/**
|
|
678
|
+
* Whether the embedded component is enabled.
|
|
679
|
+
*/
|
|
680
|
+
enabled: boolean;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* The list of features enabled in the embedded component.
|
|
684
|
+
*/
|
|
685
|
+
features?: ProductTaxCodeSelector.Features;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
namespace ProductTaxCodeSelector {
|
|
689
|
+
interface Features {}
|
|
690
|
+
}
|
|
691
|
+
|
|
671
692
|
interface Recipients {
|
|
672
693
|
/**
|
|
673
694
|
* Whether the embedded component is enabled.
|
package/types/Accounts.d.ts
CHANGED
|
@@ -1432,6 +1432,11 @@ declare module 'stripe' {
|
|
|
1432
1432
|
charges: RiskControls.Charges;
|
|
1433
1433
|
|
|
1434
1434
|
payouts: RiskControls.Payouts;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/)
|
|
1438
|
+
*/
|
|
1439
|
+
rejected_reason?: RiskControls.RejectedReason;
|
|
1435
1440
|
}
|
|
1436
1441
|
|
|
1437
1442
|
namespace RiskControls {
|
|
@@ -1448,6 +1453,16 @@ declare module 'stripe' {
|
|
|
1448
1453
|
*/
|
|
1449
1454
|
pause_requested: boolean;
|
|
1450
1455
|
}
|
|
1456
|
+
|
|
1457
|
+
type RejectedReason =
|
|
1458
|
+
| 'credit'
|
|
1459
|
+
| 'fraud'
|
|
1460
|
+
| 'fraud_no_intent_to_fulfill'
|
|
1461
|
+
| 'fraud_other'
|
|
1462
|
+
| 'fraud_payment_method_casher'
|
|
1463
|
+
| 'fraud_payment_method_tester'
|
|
1464
|
+
| 'other'
|
|
1465
|
+
| 'terms_of_service';
|
|
1451
1466
|
}
|
|
1452
1467
|
|
|
1453
1468
|
interface Settings {
|
|
@@ -4157,7 +4157,7 @@ declare module 'stripe' {
|
|
|
4157
4157
|
/**
|
|
4158
4158
|
* Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
|
4159
4159
|
*/
|
|
4160
|
-
political_exposure?:
|
|
4160
|
+
political_exposure?: AccountCreatePersonParams.PoliticalExposure;
|
|
4161
4161
|
|
|
4162
4162
|
/**
|
|
4163
4163
|
* The person's registered address.
|
|
@@ -4264,6 +4264,8 @@ declare module 'stripe' {
|
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
4266
|
|
|
4267
|
+
type PoliticalExposure = 'existing' | 'none';
|
|
4268
|
+
|
|
4267
4269
|
interface Relationship {
|
|
4268
4270
|
/**
|
|
4269
4271
|
* Whether the person is the authorizer of the account's representative.
|
|
@@ -4697,7 +4699,7 @@ declare module 'stripe' {
|
|
|
4697
4699
|
/**
|
|
4698
4700
|
* Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
|
4699
4701
|
*/
|
|
4700
|
-
political_exposure?:
|
|
4702
|
+
political_exposure?: AccountUpdatePersonParams.PoliticalExposure;
|
|
4701
4703
|
|
|
4702
4704
|
/**
|
|
4703
4705
|
* The person's registered address.
|
|
@@ -4804,6 +4806,8 @@ declare module 'stripe' {
|
|
|
4804
4806
|
}
|
|
4805
4807
|
}
|
|
4806
4808
|
|
|
4809
|
+
type PoliticalExposure = 'existing' | 'none';
|
|
4810
|
+
|
|
4807
4811
|
interface Relationship {
|
|
4808
4812
|
/**
|
|
4809
4813
|
* Whether the person is the authorizer of the account's representative.
|
package/types/Balance.d.ts
CHANGED
|
@@ -67,17 +67,17 @@ declare module 'stripe' {
|
|
|
67
67
|
namespace Available {
|
|
68
68
|
interface SourceTypes {
|
|
69
69
|
/**
|
|
70
|
-
* Amount
|
|
70
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
71
71
|
*/
|
|
72
72
|
bank_account?: number;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Amount
|
|
75
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
76
76
|
*/
|
|
77
77
|
card?: number;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Amount
|
|
80
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
81
81
|
*/
|
|
82
82
|
fpx?: number;
|
|
83
83
|
}
|
|
@@ -100,17 +100,17 @@ declare module 'stripe' {
|
|
|
100
100
|
namespace ConnectReserved {
|
|
101
101
|
interface SourceTypes {
|
|
102
102
|
/**
|
|
103
|
-
* Amount
|
|
103
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
104
104
|
*/
|
|
105
105
|
bank_account?: number;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Amount
|
|
108
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
109
109
|
*/
|
|
110
110
|
card?: number;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Amount
|
|
113
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
114
114
|
*/
|
|
115
115
|
fpx?: number;
|
|
116
116
|
}
|
|
@@ -153,17 +153,17 @@ declare module 'stripe' {
|
|
|
153
153
|
namespace NetAvailable {
|
|
154
154
|
interface SourceTypes {
|
|
155
155
|
/**
|
|
156
|
-
* Amount
|
|
156
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
157
157
|
*/
|
|
158
158
|
bank_account?: number;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* Amount
|
|
161
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
162
162
|
*/
|
|
163
163
|
card?: number;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* Amount
|
|
166
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
167
167
|
*/
|
|
168
168
|
fpx?: number;
|
|
169
169
|
}
|
|
@@ -171,17 +171,17 @@ declare module 'stripe' {
|
|
|
171
171
|
|
|
172
172
|
interface SourceTypes {
|
|
173
173
|
/**
|
|
174
|
-
* Amount
|
|
174
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
175
175
|
*/
|
|
176
176
|
bank_account?: number;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
* Amount
|
|
179
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
180
180
|
*/
|
|
181
181
|
card?: number;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* Amount
|
|
184
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
185
185
|
*/
|
|
186
186
|
fpx?: number;
|
|
187
187
|
}
|
|
@@ -212,17 +212,17 @@ declare module 'stripe' {
|
|
|
212
212
|
namespace Available {
|
|
213
213
|
interface SourceTypes {
|
|
214
214
|
/**
|
|
215
|
-
* Amount
|
|
215
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
216
216
|
*/
|
|
217
217
|
bank_account?: number;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Amount
|
|
220
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
221
221
|
*/
|
|
222
222
|
card?: number;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
* Amount
|
|
225
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
226
226
|
*/
|
|
227
227
|
fpx?: number;
|
|
228
228
|
}
|
|
@@ -246,17 +246,17 @@ declare module 'stripe' {
|
|
|
246
246
|
namespace Pending {
|
|
247
247
|
interface SourceTypes {
|
|
248
248
|
/**
|
|
249
|
-
* Amount
|
|
249
|
+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
250
250
|
*/
|
|
251
251
|
bank_account?: number;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
|
-
* Amount
|
|
254
|
+
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
255
255
|
*/
|
|
256
256
|
card?: number;
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* Amount
|
|
259
|
+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
260
260
|
*/
|
|
261
261
|
fpx?: number;
|
|
262
262
|
}
|
|
@@ -44,6 +44,20 @@ declare module 'stripe' {
|
|
|
44
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
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
|
|
50
|
+
*/
|
|
51
|
+
prices?: Array<ApplicabilityScope.Price>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
namespace ApplicabilityScope {
|
|
55
|
+
interface Price {
|
|
56
|
+
/**
|
|
57
|
+
* The price ID this credit grant should apply to.
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
}
|
|
47
61
|
}
|
|
48
62
|
|
|
49
63
|
type Type = 'applicability_scope' | 'credit_grant';
|
|
@@ -115,7 +115,21 @@ declare module 'stripe' {
|
|
|
115
115
|
/**
|
|
116
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
|
-
price_type
|
|
118
|
+
price_type?: 'metered';
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
|
|
122
|
+
*/
|
|
123
|
+
prices?: Array<Scope.Price>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
namespace Scope {
|
|
127
|
+
interface Price {
|
|
128
|
+
/**
|
|
129
|
+
* Unique identifier for the object.
|
|
130
|
+
*/
|
|
131
|
+
id: string | null;
|
|
132
|
+
}
|
|
119
133
|
}
|
|
120
134
|
}
|
|
121
135
|
|
|
@@ -90,6 +90,20 @@ declare module 'stripe' {
|
|
|
90
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
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
|
|
96
|
+
*/
|
|
97
|
+
prices?: Array<Scope.Price>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
namespace Scope {
|
|
101
|
+
interface Price {
|
|
102
|
+
/**
|
|
103
|
+
* The price ID this credit grant should apply to.
|
|
104
|
+
*/
|
|
105
|
+
id: string;
|
|
106
|
+
}
|
|
93
107
|
}
|
|
94
108
|
}
|
|
95
109
|
|
|
@@ -6,6 +6,8 @@ declare module 'stripe' {
|
|
|
6
6
|
/**
|
|
7
7
|
* A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
|
|
8
8
|
* usage was accrued by a customer for that period.
|
|
9
|
+
*
|
|
10
|
+
* Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
|
|
9
11
|
*/
|
|
10
12
|
interface MeterEventSummary {
|
|
11
13
|
/**
|
package/types/Charges.d.ts
CHANGED
|
@@ -662,6 +662,11 @@ declare module 'stripe' {
|
|
|
662
662
|
*/
|
|
663
663
|
brand: string | null;
|
|
664
664
|
|
|
665
|
+
/**
|
|
666
|
+
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
667
|
+
*/
|
|
668
|
+
brand_product?: string | null;
|
|
669
|
+
|
|
665
670
|
/**
|
|
666
671
|
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
667
672
|
*/
|
|
@@ -2218,6 +2223,11 @@ declare module 'stripe' {
|
|
|
2218
2223
|
*/
|
|
2219
2224
|
brand: string | null;
|
|
2220
2225
|
|
|
2226
|
+
/**
|
|
2227
|
+
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
2228
|
+
*/
|
|
2229
|
+
brand_product?: string | null;
|
|
2230
|
+
|
|
2221
2231
|
/**
|
|
2222
2232
|
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
2223
2233
|
*/
|
|
@@ -147,7 +147,7 @@ declare module 'stripe' {
|
|
|
147
147
|
/**
|
|
148
148
|
* List of coupons and promotion codes attached to the Checkout Session.
|
|
149
149
|
*/
|
|
150
|
-
discounts
|
|
150
|
+
discounts: Array<Session.Discount> | null;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* The timestamp at which the Checkout Session will expire.
|
|
@@ -406,27 +406,27 @@ declare module 'stripe' {
|
|
|
406
406
|
/**
|
|
407
407
|
* Customer's business name for this Checkout Session
|
|
408
408
|
*/
|
|
409
|
-
business_name
|
|
409
|
+
business_name?: string | null;
|
|
410
410
|
|
|
411
411
|
/**
|
|
412
412
|
* Customer's email for this Checkout Session
|
|
413
413
|
*/
|
|
414
|
-
email
|
|
414
|
+
email?: string | null;
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
417
|
* Customer's phone number for this Checkout Session
|
|
418
418
|
*/
|
|
419
|
-
phone
|
|
419
|
+
phone?: string | null;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Shipping information for this Checkout Session.
|
|
423
423
|
*/
|
|
424
|
-
shipping_details
|
|
424
|
+
shipping_details?: CollectedInformation.ShippingDetails | null;
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
427
|
* Customer's tax ids for this Checkout Session.
|
|
428
428
|
*/
|
|
429
|
-
tax_ids
|
|
429
|
+
tax_ids?: Array<CollectedInformation.TaxId> | null;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
namespace CollectedInformation {
|
|
@@ -1441,6 +1441,8 @@ declare module 'stripe' {
|
|
|
1441
1441
|
*/
|
|
1442
1442
|
request_three_d_secure: Card.RequestThreeDSecure;
|
|
1443
1443
|
|
|
1444
|
+
restrictions?: Card.Restrictions;
|
|
1445
|
+
|
|
1444
1446
|
/**
|
|
1445
1447
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1446
1448
|
*
|
|
@@ -1483,6 +1485,21 @@ declare module 'stripe' {
|
|
|
1483
1485
|
|
|
1484
1486
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1485
1487
|
|
|
1488
|
+
interface Restrictions {
|
|
1489
|
+
/**
|
|
1490
|
+
* Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
|
1491
|
+
*/
|
|
1492
|
+
brands_blocked?: Array<Restrictions.BrandsBlocked>;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
namespace Restrictions {
|
|
1496
|
+
type BrandsBlocked =
|
|
1497
|
+
| 'american_express'
|
|
1498
|
+
| 'discover_global_network'
|
|
1499
|
+
| 'mastercard'
|
|
1500
|
+
| 'visa';
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1486
1503
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
1487
1504
|
}
|
|
1488
1505
|
|
|
@@ -2457,9 +2474,9 @@ declare module 'stripe' {
|
|
|
2457
2474
|
amount: number;
|
|
2458
2475
|
|
|
2459
2476
|
/**
|
|
2460
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
2477
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
2461
2478
|
*
|
|
2462
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
2479
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
2463
2480
|
*/
|
|
2464
2481
|
rate: Stripe.TaxRate;
|
|
2465
2482
|
|
|
@@ -2605,9 +2622,9 @@ declare module 'stripe' {
|
|
|
2605
2622
|
amount: number;
|
|
2606
2623
|
|
|
2607
2624
|
/**
|
|
2608
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
2625
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
2609
2626
|
*
|
|
2610
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
2627
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
2611
2628
|
*/
|
|
2612
2629
|
rate: Stripe.TaxRate;
|
|
2613
2630
|
|
|
@@ -1453,6 +1453,11 @@ declare module 'stripe' {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1455
1455
|
|
|
1456
|
+
/**
|
|
1457
|
+
* Restrictions to apply to the card payment method. For example, you can block specific card brands.
|
|
1458
|
+
*/
|
|
1459
|
+
restrictions?: Card.Restrictions;
|
|
1460
|
+
|
|
1456
1461
|
/**
|
|
1457
1462
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1458
1463
|
*
|
|
@@ -1496,6 +1501,21 @@ declare module 'stripe' {
|
|
|
1496
1501
|
|
|
1497
1502
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
|
|
1498
1503
|
|
|
1504
|
+
interface Restrictions {
|
|
1505
|
+
/**
|
|
1506
|
+
* Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
|
1507
|
+
*/
|
|
1508
|
+
brands_blocked?: Array<Restrictions.BrandsBlocked>;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
namespace Restrictions {
|
|
1512
|
+
type BrandsBlocked =
|
|
1513
|
+
| 'american_express'
|
|
1514
|
+
| 'discover_global_network'
|
|
1515
|
+
| 'mastercard'
|
|
1516
|
+
| 'visa';
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1499
1519
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
1500
1520
|
}
|
|
1501
1521
|
|
|
@@ -725,7 +725,7 @@ declare module 'stripe' {
|
|
|
725
725
|
|
|
726
726
|
interface Networks {
|
|
727
727
|
/**
|
|
728
|
-
* All available
|
|
728
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
729
729
|
*/
|
|
730
730
|
available: Array<string>;
|
|
731
731
|
|
|
@@ -925,7 +925,7 @@ declare module 'stripe' {
|
|
|
925
925
|
namespace CardPresent {
|
|
926
926
|
interface Networks {
|
|
927
927
|
/**
|
|
928
|
-
* All available
|
|
928
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
929
929
|
*/
|
|
930
930
|
available: Array<string>;
|
|
931
931
|
|
|
@@ -1207,7 +1207,7 @@ declare module 'stripe' {
|
|
|
1207
1207
|
namespace InteracPresent {
|
|
1208
1208
|
interface Networks {
|
|
1209
1209
|
/**
|
|
1210
|
-
* All available
|
|
1210
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
1211
1211
|
*/
|
|
1212
1212
|
available: Array<string>;
|
|
1213
1213
|
|
package/types/CreditNotes.d.ts
CHANGED
|
@@ -270,9 +270,9 @@ declare module 'stripe' {
|
|
|
270
270
|
amount: number;
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
273
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
274
274
|
*
|
|
275
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
275
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
276
276
|
*/
|
|
277
277
|
rate: Stripe.TaxRate;
|
|
278
278
|
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -681,7 +681,7 @@ declare module 'stripe' {
|
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
/**
|
|
684
|
-
* Occurs whenever a replacement for a financing offer has been created.
|
|
684
|
+
* Occurs whenever a replacement for a financing offer has been created. More details can be [found here](https://docs.stripe.com/capital/replacements).
|
|
685
685
|
*/
|
|
686
686
|
interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
|
|
687
687
|
type: 'capital.financing_offer.replacement_created';
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1422,9 +1422,9 @@ declare module 'stripe' {
|
|
|
1422
1422
|
amount: number;
|
|
1423
1423
|
|
|
1424
1424
|
/**
|
|
1425
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
1425
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1426
1426
|
*
|
|
1427
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
1427
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
1428
1428
|
*/
|
|
1429
1429
|
rate: Stripe.TaxRate;
|
|
1430
1430
|
|
package/types/LineItems.d.ts
CHANGED
|
@@ -122,9 +122,9 @@ declare module 'stripe' {
|
|
|
122
122
|
amount: number;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
125
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
126
126
|
*
|
|
127
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
127
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
128
128
|
*/
|
|
129
129
|
rate: Stripe.TaxRate;
|
|
130
130
|
|
package/types/Orders.d.ts
CHANGED
|
@@ -886,9 +886,9 @@ declare module 'stripe' {
|
|
|
886
886
|
amount: number;
|
|
887
887
|
|
|
888
888
|
/**
|
|
889
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
889
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
890
890
|
*
|
|
891
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
891
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
892
892
|
*/
|
|
893
893
|
rate: Stripe.TaxRate;
|
|
894
894
|
|
|
@@ -1137,9 +1137,9 @@ declare module 'stripe' {
|
|
|
1137
1137
|
amount: number;
|
|
1138
1138
|
|
|
1139
1139
|
/**
|
|
1140
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
1140
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1141
1141
|
*
|
|
1142
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
1142
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
1143
1143
|
*/
|
|
1144
1144
|
rate: Stripe.TaxRate;
|
|
1145
1145
|
|
|
@@ -3680,7 +3680,7 @@ declare module 'stripe' {
|
|
|
3680
3680
|
namespace UsBankAccount {
|
|
3681
3681
|
interface FinancialConnections {
|
|
3682
3682
|
/**
|
|
3683
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
3683
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
3684
3684
|
*/
|
|
3685
3685
|
filters?: FinancialConnections.Filters;
|
|
3686
3686
|
|
|
@@ -7468,7 +7468,7 @@ declare module 'stripe' {
|
|
|
7468
7468
|
namespace UsBankAccount {
|
|
7469
7469
|
interface FinancialConnections {
|
|
7470
7470
|
/**
|
|
7471
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
7471
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
7472
7472
|
*/
|
|
7473
7473
|
filters?: FinancialConnections.Filters;
|
|
7474
7474
|
|
|
@@ -12011,7 +12011,7 @@ declare module 'stripe' {
|
|
|
12011
12011
|
namespace UsBankAccount {
|
|
12012
12012
|
interface FinancialConnections {
|
|
12013
12013
|
/**
|
|
12014
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
12014
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
12015
12015
|
*/
|
|
12016
12016
|
filters?: FinancialConnections.Filters;
|
|
12017
12017
|
|
|
@@ -627,7 +627,7 @@ declare module 'stripe' {
|
|
|
627
627
|
|
|
628
628
|
interface Networks {
|
|
629
629
|
/**
|
|
630
|
-
* All available
|
|
630
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
631
631
|
*/
|
|
632
632
|
available: Array<string>;
|
|
633
633
|
|
|
@@ -827,7 +827,7 @@ declare module 'stripe' {
|
|
|
827
827
|
namespace CardPresent {
|
|
828
828
|
interface Networks {
|
|
829
829
|
/**
|
|
830
|
-
* All available
|
|
830
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
831
831
|
*/
|
|
832
832
|
available: Array<string>;
|
|
833
833
|
|
|
@@ -1109,7 +1109,7 @@ declare module 'stripe' {
|
|
|
1109
1109
|
namespace InteracPresent {
|
|
1110
1110
|
interface Networks {
|
|
1111
1111
|
/**
|
|
1112
|
-
* All available
|
|
1112
|
+
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
1113
1113
|
*/
|
|
1114
1114
|
available: Array<string>;
|
|
1115
1115
|
|
|
@@ -1396,9 +1396,9 @@ declare module 'stripe' {
|
|
|
1396
1396
|
amount: number;
|
|
1397
1397
|
|
|
1398
1398
|
/**
|
|
1399
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
1399
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1400
1400
|
*
|
|
1401
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
1401
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
1402
1402
|
*/
|
|
1403
1403
|
rate: Stripe.TaxRate;
|
|
1404
1404
|
|
package/types/Quotes.d.ts
CHANGED
|
@@ -375,9 +375,9 @@ declare module 'stripe' {
|
|
|
375
375
|
amount: number;
|
|
376
376
|
|
|
377
377
|
/**
|
|
378
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
378
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
379
379
|
*
|
|
380
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
380
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
381
381
|
*/
|
|
382
382
|
rate: Stripe.TaxRate;
|
|
383
383
|
|
|
@@ -489,9 +489,9 @@ declare module 'stripe' {
|
|
|
489
489
|
amount: number;
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
492
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
493
493
|
*
|
|
494
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
494
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
495
495
|
*/
|
|
496
496
|
rate: Stripe.TaxRate;
|
|
497
497
|
|
|
@@ -1180,9 +1180,9 @@ declare module 'stripe' {
|
|
|
1180
1180
|
amount: number;
|
|
1181
1181
|
|
|
1182
1182
|
/**
|
|
1183
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
1183
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1184
1184
|
*
|
|
1185
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
1185
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
1186
1186
|
*/
|
|
1187
1187
|
rate: Stripe.TaxRate;
|
|
1188
1188
|
|
|
@@ -1418,7 +1418,7 @@ declare module 'stripe' {
|
|
|
1418
1418
|
namespace UsBankAccount {
|
|
1419
1419
|
interface FinancialConnections {
|
|
1420
1420
|
/**
|
|
1421
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
1421
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
1422
1422
|
*/
|
|
1423
1423
|
filters?: FinancialConnections.Filters;
|
|
1424
1424
|
|
|
@@ -2835,7 +2835,7 @@ declare module 'stripe' {
|
|
|
2835
2835
|
namespace UsBankAccount {
|
|
2836
2836
|
interface FinancialConnections {
|
|
2837
2837
|
/**
|
|
2838
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
2838
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2839
2839
|
*/
|
|
2840
2840
|
filters?: FinancialConnections.Filters;
|
|
2841
2841
|
|
|
@@ -4301,7 +4301,7 @@ declare module 'stripe' {
|
|
|
4301
4301
|
namespace UsBankAccount {
|
|
4302
4302
|
interface FinancialConnections {
|
|
4303
4303
|
/**
|
|
4304
|
-
* Provide filters for the linked accounts that the customer can select for the payment method
|
|
4304
|
+
* Provide filters for the linked accounts that the customer can select for the payment method.
|
|
4305
4305
|
*/
|
|
4306
4306
|
filters?: FinancialConnections.Filters;
|
|
4307
4307
|
|
|
@@ -113,7 +113,7 @@ declare module 'stripe' {
|
|
|
113
113
|
level: Jurisdiction.Level;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
116
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
117
117
|
*/
|
|
118
118
|
state: string | null;
|
|
119
119
|
}
|
|
@@ -322,7 +322,7 @@ declare module 'stripe' {
|
|
|
322
322
|
level: Jurisdiction.Level;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
325
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
326
326
|
*/
|
|
327
327
|
state: string | null;
|
|
328
328
|
}
|
|
@@ -334,7 +334,7 @@ declare module 'stripe' {
|
|
|
334
334
|
level: Jurisdiction.Level;
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
337
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
338
338
|
*/
|
|
339
339
|
state: string | null;
|
|
340
340
|
}
|
package/types/TaxRates.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
/**
|
|
6
|
-
* Tax rates can be applied to [invoices](https://stripe.com/
|
|
6
|
+
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
7
7
|
*
|
|
8
|
-
* Related guide: [Tax rates](https://stripe.com/
|
|
8
|
+
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
9
9
|
*/
|
|
10
10
|
interface TaxRate {
|
|
11
11
|
/**
|
|
@@ -91,7 +91,7 @@ declare module 'stripe' {
|
|
|
91
91
|
rate_type: TaxRate.RateType | null;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
94
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
95
95
|
*/
|
|
96
96
|
state: string | null;
|
|
97
97
|
|
|
@@ -49,7 +49,7 @@ declare module 'stripe' {
|
|
|
49
49
|
metadata?: Stripe.MetadataParam;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
52
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
53
53
|
*/
|
|
54
54
|
state?: string;
|
|
55
55
|
|
|
@@ -121,7 +121,7 @@ declare module 'stripe' {
|
|
|
121
121
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2
|
|
124
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
125
125
|
*/
|
|
126
126
|
state?: string;
|
|
127
127
|
|
|
@@ -719,7 +719,7 @@ declare module 'stripe' {
|
|
|
719
719
|
/**
|
|
720
720
|
* Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
|
721
721
|
*/
|
|
722
|
-
political_exposure?:
|
|
722
|
+
political_exposure?: Person.PoliticalExposure;
|
|
723
723
|
|
|
724
724
|
/**
|
|
725
725
|
* The person's registered address.
|
|
@@ -826,6 +826,8 @@ declare module 'stripe' {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
+
type PoliticalExposure = 'existing' | 'none';
|
|
830
|
+
|
|
829
831
|
interface Relationship {
|
|
830
832
|
/**
|
|
831
833
|
* Whether the person is the authorizer of the account's representative.
|