stripe 17.5.0-beta.3 → 17.6.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 +49 -0
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/resources/Treasury/FinancialAccounts.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/Treasury/FinancialAccounts.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +28 -0
- package/types/AccountsResource.d.ts +16 -0
- package/types/BillingPortal/Configurations.d.ts +1 -4
- package/types/BillingPortal/ConfigurationsResource.d.ts +2 -8
- package/types/Cards.d.ts +6 -1
- package/types/Charges.d.ts +17 -2
- package/types/Checkout/Sessions.d.ts +4 -2
- package/types/Checkout/SessionsResource.d.ts +2 -0
- package/types/ConfirmationTokens.d.ts +6 -1
- package/types/CreditNoteLineItems.d.ts +1 -1
- package/types/CreditNotes.d.ts +1 -1
- package/types/CustomersResource.d.ts +4 -2
- package/types/Disputes.d.ts +2 -2
- package/types/DisputesResource.d.ts +2 -2
- package/types/InvoiceLineItems.d.ts +1 -1
- package/types/Invoices.d.ts +8 -2
- package/types/InvoicesResource.d.ts +6 -3
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +1 -1
- package/types/Orders.d.ts +2 -1
- package/types/OrdersResource.d.ts +4 -2
- package/types/PaymentIntents.d.ts +5 -0
- package/types/PaymentLinksResource.d.ts +14 -0
- package/types/PaymentMethods.d.ts +6 -1
- package/types/QuotePreviewInvoices.d.ts +8 -2
- package/types/SetupAttempts.d.ts +5 -0
- package/types/SetupIntents.d.ts +5 -0
- package/types/Sources.d.ts +6 -0
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +2 -1
- package/types/Tax/Forms.d.ts +2 -2
- package/types/Tax/Registrations.d.ts +189 -0
- package/types/Tax/RegistrationsResource.d.ts +252 -0
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/TokensResource.d.ts +8 -0
- package/types/Treasury/FinancialAccounts.d.ts +7 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +84 -0
- package/types/Treasury/OutboundTransfers.d.ts +17 -1
- package/types/Treasury/OutboundTransfersResource.d.ts +17 -0
- package/types/Treasury/ReceivedCredits.d.ts +10 -0
- package/types/Treasury/ReceivedCreditsResource.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.6.0-beta.1 - 2025-01-09
|
|
4
|
+
* [#2239](https://github.com/stripe/stripe-node/pull/2239) Update generated code for beta
|
|
5
|
+
* Add support for `close` method on resource `Treasury.FinancialAccount`
|
|
6
|
+
* Add support for `ownership_exemption_reason` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
|
7
|
+
* Add support for `directorship_declaration` on `Account.company`
|
|
8
|
+
* 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`
|
|
9
|
+
* Remove support for value `always_invoice` from enums `BillingPortal.Configuration.features.subscription_cancel.proration_behavior`, `BillingPortal.ConfigurationCreateParams.features.subscription_cancel.proration_behavior`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_cancel.proration_behavior`
|
|
10
|
+
* Add support for `brand_product` on `Card`, `Source.card_present`, `Source.card`, and `Source.three_d_secure`
|
|
11
|
+
* Change `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
|
|
12
|
+
* Add support for `country` on `Charge.payment_method_details.paypal`, `ConfirmationToken.payment_method_preview.paypal`, and `PaymentMethod.paypal`
|
|
13
|
+
* Add support for new value `al_tin` on enums `Checkout.Session.collected_information.tax_ids[].type` and `Order.tax_details.tax_ids[].type`
|
|
14
|
+
* Add support for new value `al_tin` on enums `OrderCreateParams.tax_details.tax_ids[].type` and `OrderUpdateParams.tax_details.tax_ids[].type`
|
|
15
|
+
* Add support for `phone_number_collection` on `PaymentLinkUpdateParams`
|
|
16
|
+
* Add support for `nickname` on `Treasury.FinancialAccountCreateParams`, `Treasury.FinancialAccountUpdateParams`, and `Treasury.FinancialAccount`
|
|
17
|
+
* Add support for `forwarding_settings` on `Treasury.FinancialAccountUpdateParams`
|
|
18
|
+
* Add support for `is_default` on `Treasury.FinancialAccount`
|
|
19
|
+
* Add support for `destination_payment_method_data` on `Treasury.OutboundTransferCreateParams`
|
|
20
|
+
* Add support for `financial_account` on `Treasury.OutboundTransfer.destination_payment_method_details`
|
|
21
|
+
* Change type of `Treasury.OutboundTransfer.destination_payment_method_details.type` from `literal('us_bank_account')` to `enum('financial_account'|'us_bank_account')`
|
|
22
|
+
* 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`
|
|
23
|
+
* Add support for `outbound_transfer` on `Treasury.ReceivedCredit.linked_flows.source_flow_details`
|
|
24
|
+
|
|
25
|
+
## 17.5.0 - 2024-12-18
|
|
26
|
+
* [#2237](https://github.com/stripe/stripe-node/pull/2237) This release changes the pinned API version to `2024-12-18.acacia`.
|
|
27
|
+
* Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional
|
|
28
|
+
* 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`
|
|
29
|
+
* Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type`
|
|
30
|
+
* Add support for `credits_application_invoice_voided` on `Billing.CreditBalanceTransaction.credit`
|
|
31
|
+
* Change type of `Billing.CreditBalanceTransaction.credit.type` from `literal('credits_granted')` to `enum('credits_application_invoice_voided'|'credits_granted')`
|
|
32
|
+
* Change `BillingPortal.Configuration.features.subscription_update.schedule_at_period_end`, `Issuing.Authorization.verified_by_fraud_challenge`, `LineItem.description`, and `Payout.trace_id` to be required
|
|
33
|
+
* Add support for `allow_redisplay` on `Card` and `Source`
|
|
34
|
+
* Add support for `regulated_status` on `Card`, `Charge.payment_method_details.card`, `ConfirmationToken.payment_method_preview.card`, and `PaymentMethod.card`
|
|
35
|
+
* Add support for `funding` on `Charge.payment_method_details.amazon_pay` and `Charge.payment_method_details.revolut_pay`
|
|
36
|
+
* Add support for `network_transaction_id` on `Charge.payment_method_details.card`
|
|
37
|
+
* 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`, `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`
|
|
38
|
+
* Add support for new values `al_tin`, `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.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
39
|
+
* Add support for new values `al_tin`, `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 `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
40
|
+
* Add support for `visa_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence`
|
|
41
|
+
* Add support for new value `request_signature` on enums `Forwarding.Request.replacements[]` and `Forwarding.RequestCreateParams.replacements[]`
|
|
42
|
+
* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
|
|
43
|
+
* Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`
|
|
44
|
+
* Add support for `disabled_reason` on `Invoice.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, and `SubscriptionSchedule.phases[].automatic_tax`
|
|
45
|
+
* Add support for `tax_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data`
|
|
46
|
+
* Change type of `LineItem.description` from `string` to `string | null`
|
|
47
|
+
* Add support for `trial_period_days` on `PaymentLinkUpdateParams.subscription_data`
|
|
48
|
+
* Add support for `al`, `am`, `ao`, `ba`, `bb`, `bs`, `cd`, `gn`, `kh`, `me`, `mk`, `mr`, `np`, `pe`, `sn`, `sr`, `tj`, `ug`, `uy`, `zm`, and `zw` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
|
|
49
|
+
* Add support for new value `2024-12-18.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
|
50
|
+
* [#2238](https://github.com/stripe/stripe-node/pull/2238) add missing key warning to README
|
|
51
|
+
|
|
3
52
|
## 17.5.0-beta.3 - 2024-12-12
|
|
4
53
|
* [#2235](https://github.com/stripe/stripe-node/pull/2235) Update generated code for beta
|
|
5
54
|
* Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional
|
package/README.md
CHANGED
|
@@ -61,6 +61,39 @@ const customer = await stripe.customers.create({
|
|
|
61
61
|
console.log(customer.id);
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
> [!WARNING]
|
|
65
|
+
> If you're using `v17.x.x` or later and getting an error about a missing API key despite being sure it's available, it's likely you're importing the file that instantiates `Stripe` while the key isn't present (for instance, during a build step).
|
|
66
|
+
> If that's the case, consider instantiating the client lazily:
|
|
67
|
+
>
|
|
68
|
+
> ```ts
|
|
69
|
+
> import Stripe from 'stripe';
|
|
70
|
+
>
|
|
71
|
+
> let _stripe: Stripe | null = null;
|
|
72
|
+
> const getStripe = (): Stripe => {
|
|
73
|
+
> if (!_stripe) {
|
|
74
|
+
> _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, {
|
|
75
|
+
> // ...
|
|
76
|
+
> });
|
|
77
|
+
> }
|
|
78
|
+
> return _stripe;
|
|
79
|
+
> };
|
|
80
|
+
>
|
|
81
|
+
> const getCustomers = () => getStripe().customers.list();
|
|
82
|
+
> ```
|
|
83
|
+
>
|
|
84
|
+
> Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step):
|
|
85
|
+
>
|
|
86
|
+
> ```ts
|
|
87
|
+
> import Stripe from 'stripe';
|
|
88
|
+
>
|
|
89
|
+
> export const stripe = new Stripe(
|
|
90
|
+
> process.env.STRIPE_SECRET_KEY || 'api_key_placeholder',
|
|
91
|
+
> {
|
|
92
|
+
> // ...
|
|
93
|
+
> }
|
|
94
|
+
> );
|
|
95
|
+
> ```
|
|
96
|
+
|
|
64
97
|
### Usage with TypeScript
|
|
65
98
|
|
|
66
99
|
As of 8.0.1, Stripe maintains types for the latest [API version][api-versions].
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.
|
|
1
|
+
17.6.0-beta.1
|
|
@@ -22,6 +22,10 @@ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
|
|
|
22
22
|
fullPath: '/v1/treasury/financial_accounts',
|
|
23
23
|
methodType: 'list',
|
|
24
24
|
}),
|
|
25
|
+
close: stripeMethod({
|
|
26
|
+
method: 'POST',
|
|
27
|
+
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
|
|
28
|
+
}),
|
|
25
29
|
retrieveFeatures: stripeMethod({
|
|
26
30
|
method: 'GET',
|
|
27
31
|
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',
|
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.6.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;
|
|
@@ -19,6 +19,10 @@ export const FinancialAccounts = StripeResource.extend({
|
|
|
19
19
|
fullPath: '/v1/treasury/financial_accounts',
|
|
20
20
|
methodType: 'list',
|
|
21
21
|
}),
|
|
22
|
+
close: stripeMethod({
|
|
23
|
+
method: 'POST',
|
|
24
|
+
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
|
|
25
|
+
}),
|
|
22
26
|
retrieveFeatures: stripeMethod({
|
|
23
27
|
method: 'GET',
|
|
24
28
|
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',
|
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.6.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
package/types/Accounts.d.ts
CHANGED
|
@@ -702,6 +702,11 @@ declare module 'stripe' {
|
|
|
702
702
|
*/
|
|
703
703
|
directors_provided?: boolean;
|
|
704
704
|
|
|
705
|
+
/**
|
|
706
|
+
* This hash is used to attest that the director information provided to Stripe is both current and correct.
|
|
707
|
+
*/
|
|
708
|
+
directorship_declaration?: Company.DirectorshipDeclaration | null;
|
|
709
|
+
|
|
705
710
|
/**
|
|
706
711
|
* Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
|
|
707
712
|
*/
|
|
@@ -742,6 +747,8 @@ declare module 'stripe' {
|
|
|
742
747
|
*/
|
|
743
748
|
ownership_declaration?: Company.OwnershipDeclaration | null;
|
|
744
749
|
|
|
750
|
+
ownership_exemption_reason?: Company.OwnershipExemptionReason;
|
|
751
|
+
|
|
745
752
|
/**
|
|
746
753
|
* The company's phone number (used for verification).
|
|
747
754
|
*/
|
|
@@ -848,6 +855,23 @@ declare module 'stripe' {
|
|
|
848
855
|
town: string | null;
|
|
849
856
|
}
|
|
850
857
|
|
|
858
|
+
interface DirectorshipDeclaration {
|
|
859
|
+
/**
|
|
860
|
+
* The Unix timestamp marking when the directorship declaration attestation was made.
|
|
861
|
+
*/
|
|
862
|
+
date: number | null;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* The IP address from which the directorship declaration attestation was made.
|
|
866
|
+
*/
|
|
867
|
+
ip: string | null;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* The user-agent string from the browser where the directorship declaration attestation was made.
|
|
871
|
+
*/
|
|
872
|
+
user_agent: string | null;
|
|
873
|
+
}
|
|
874
|
+
|
|
851
875
|
interface OwnershipDeclaration {
|
|
852
876
|
/**
|
|
853
877
|
* The Unix timestamp marking when the beneficial owner attestation was made.
|
|
@@ -865,6 +889,10 @@ declare module 'stripe' {
|
|
|
865
889
|
user_agent: string | null;
|
|
866
890
|
}
|
|
867
891
|
|
|
892
|
+
type OwnershipExemptionReason =
|
|
893
|
+
| 'qualified_entity_exceeds_ownership_threshold'
|
|
894
|
+
| 'qualifies_as_financial_institution';
|
|
895
|
+
|
|
868
896
|
type Structure =
|
|
869
897
|
| 'free_zone_establishment'
|
|
870
898
|
| 'free_zone_llc'
|
|
@@ -1060,6 +1060,10 @@ declare module 'stripe' {
|
|
|
1060
1060
|
*/
|
|
1061
1061
|
ownership_declaration?: Company.OwnershipDeclaration;
|
|
1062
1062
|
|
|
1063
|
+
ownership_exemption_reason?: Stripe.Emptyable<
|
|
1064
|
+
Company.OwnershipExemptionReason
|
|
1065
|
+
>;
|
|
1066
|
+
|
|
1063
1067
|
/**
|
|
1064
1068
|
* The company's phone number (used for verification).
|
|
1065
1069
|
*/
|
|
@@ -1114,6 +1118,10 @@ declare module 'stripe' {
|
|
|
1114
1118
|
user_agent?: string;
|
|
1115
1119
|
}
|
|
1116
1120
|
|
|
1121
|
+
type OwnershipExemptionReason =
|
|
1122
|
+
| 'qualified_entity_exceeds_ownership_threshold'
|
|
1123
|
+
| 'qualifies_as_financial_institution';
|
|
1124
|
+
|
|
1117
1125
|
type Structure =
|
|
1118
1126
|
| 'free_zone_establishment'
|
|
1119
1127
|
| 'free_zone_llc'
|
|
@@ -3061,6 +3069,10 @@ declare module 'stripe' {
|
|
|
3061
3069
|
*/
|
|
3062
3070
|
ownership_declaration?: Company.OwnershipDeclaration;
|
|
3063
3071
|
|
|
3072
|
+
ownership_exemption_reason?: Stripe.Emptyable<
|
|
3073
|
+
Company.OwnershipExemptionReason
|
|
3074
|
+
>;
|
|
3075
|
+
|
|
3064
3076
|
/**
|
|
3065
3077
|
* The company's phone number (used for verification).
|
|
3066
3078
|
*/
|
|
@@ -3115,6 +3127,10 @@ declare module 'stripe' {
|
|
|
3115
3127
|
user_agent?: string;
|
|
3116
3128
|
}
|
|
3117
3129
|
|
|
3130
|
+
type OwnershipExemptionReason =
|
|
3131
|
+
| 'qualified_entity_exceeds_ownership_threshold'
|
|
3132
|
+
| 'qualifies_as_financial_institution';
|
|
3133
|
+
|
|
3118
3134
|
type Structure =
|
|
3119
3135
|
| 'free_zone_establishment'
|
|
3120
3136
|
| 'free_zone_llc'
|
|
@@ -181,10 +181,7 @@ declare module 'stripe' {
|
|
|
181
181
|
|
|
182
182
|
type Mode = 'at_period_end' | 'immediately';
|
|
183
183
|
|
|
184
|
-
type ProrationBehavior =
|
|
185
|
-
| 'always_invoice'
|
|
186
|
-
| 'create_prorations'
|
|
187
|
-
| 'none';
|
|
184
|
+
type ProrationBehavior = 'create_prorations' | 'none';
|
|
188
185
|
}
|
|
189
186
|
|
|
190
187
|
interface SubscriptionUpdate {
|
|
@@ -168,10 +168,7 @@ declare module 'stripe' {
|
|
|
168
168
|
|
|
169
169
|
type Mode = 'at_period_end' | 'immediately';
|
|
170
170
|
|
|
171
|
-
type ProrationBehavior =
|
|
172
|
-
| 'always_invoice'
|
|
173
|
-
| 'create_prorations'
|
|
174
|
-
| 'none';
|
|
171
|
+
type ProrationBehavior = 'create_prorations' | 'none';
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
interface SubscriptionUpdate {
|
|
@@ -430,10 +427,7 @@ declare module 'stripe' {
|
|
|
430
427
|
|
|
431
428
|
type Mode = 'at_period_end' | 'immediately';
|
|
432
429
|
|
|
433
|
-
type ProrationBehavior =
|
|
434
|
-
| 'always_invoice'
|
|
435
|
-
| 'create_prorations'
|
|
436
|
-
| 'none';
|
|
430
|
+
type ProrationBehavior = 'create_prorations' | 'none';
|
|
437
431
|
}
|
|
438
432
|
|
|
439
433
|
interface SubscriptionUpdate {
|
package/types/Cards.d.ts
CHANGED
|
@@ -80,6 +80,11 @@ declare module 'stripe' {
|
|
|
80
80
|
*/
|
|
81
81
|
brand: string;
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* 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.)
|
|
85
|
+
*/
|
|
86
|
+
brand_product?: string | null;
|
|
87
|
+
|
|
83
88
|
/**
|
|
84
89
|
* 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.
|
|
85
90
|
*/
|
|
@@ -172,7 +177,7 @@ declare module 'stripe' {
|
|
|
172
177
|
/**
|
|
173
178
|
* Status of a card based on the card issuer.
|
|
174
179
|
*/
|
|
175
|
-
regulated_status
|
|
180
|
+
regulated_status: Card.RegulatedStatus | null;
|
|
176
181
|
|
|
177
182
|
/**
|
|
178
183
|
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
|
package/types/Charges.d.ts
CHANGED
|
@@ -312,6 +312,11 @@ declare module 'stripe' {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
interface Outcome {
|
|
315
|
+
/**
|
|
316
|
+
* An enumerated value providing a more detailed explanation on [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines).
|
|
317
|
+
*/
|
|
318
|
+
advice_code: Outcome.AdviceCode | null;
|
|
319
|
+
|
|
315
320
|
/**
|
|
316
321
|
* For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
|
|
317
322
|
*/
|
|
@@ -359,6 +364,11 @@ declare module 'stripe' {
|
|
|
359
364
|
}
|
|
360
365
|
|
|
361
366
|
namespace Outcome {
|
|
367
|
+
type AdviceCode =
|
|
368
|
+
| 'confirm_card_data'
|
|
369
|
+
| 'do_not_try_again'
|
|
370
|
+
| 'try_again_later';
|
|
371
|
+
|
|
362
372
|
interface Rule {
|
|
363
373
|
/**
|
|
364
374
|
* The action taken on the payment.
|
|
@@ -900,7 +910,7 @@ declare module 'stripe' {
|
|
|
900
910
|
/**
|
|
901
911
|
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
|
|
902
912
|
*/
|
|
903
|
-
network_transaction_id
|
|
913
|
+
network_transaction_id: string | null;
|
|
904
914
|
|
|
905
915
|
overcapture?: Card.Overcapture;
|
|
906
916
|
|
|
@@ -909,7 +919,7 @@ declare module 'stripe' {
|
|
|
909
919
|
/**
|
|
910
920
|
* Status of a card based on the card issuer.
|
|
911
921
|
*/
|
|
912
|
-
regulated_status
|
|
922
|
+
regulated_status: Card.RegulatedStatus | null;
|
|
913
923
|
|
|
914
924
|
/**
|
|
915
925
|
* Populated if this transaction used 3D Secure authentication.
|
|
@@ -2064,6 +2074,11 @@ declare module 'stripe' {
|
|
|
2064
2074
|
}
|
|
2065
2075
|
|
|
2066
2076
|
interface Paypal {
|
|
2077
|
+
/**
|
|
2078
|
+
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
2079
|
+
*/
|
|
2080
|
+
country: string | null;
|
|
2081
|
+
|
|
2067
2082
|
/**
|
|
2068
2083
|
* Owner's email. Values are provided by PayPal directly
|
|
2069
2084
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -451,7 +451,7 @@ declare module 'stripe' {
|
|
|
451
451
|
|
|
452
452
|
interface TaxId {
|
|
453
453
|
/**
|
|
454
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
454
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
455
455
|
*/
|
|
456
456
|
type: TaxId.Type;
|
|
457
457
|
|
|
@@ -465,6 +465,7 @@ declare module 'stripe' {
|
|
|
465
465
|
type Type =
|
|
466
466
|
| 'ad_nrt'
|
|
467
467
|
| 'ae_trn'
|
|
468
|
+
| 'al_tin'
|
|
468
469
|
| 'am_tin'
|
|
469
470
|
| 'ao_tin'
|
|
470
471
|
| 'ar_cuit'
|
|
@@ -683,7 +684,7 @@ declare module 'stripe' {
|
|
|
683
684
|
|
|
684
685
|
interface TaxId {
|
|
685
686
|
/**
|
|
686
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
687
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
687
688
|
*/
|
|
688
689
|
type: TaxId.Type;
|
|
689
690
|
|
|
@@ -697,6 +698,7 @@ declare module 'stripe' {
|
|
|
697
698
|
type Type =
|
|
698
699
|
| 'ad_nrt'
|
|
699
700
|
| 'ae_trn'
|
|
701
|
+
| 'al_tin'
|
|
700
702
|
| 'am_tin'
|
|
701
703
|
| 'ao_tin'
|
|
702
704
|
| 'ar_cuit'
|
|
@@ -443,7 +443,7 @@ declare module 'stripe' {
|
|
|
443
443
|
/**
|
|
444
444
|
* Status of a card based on the card issuer.
|
|
445
445
|
*/
|
|
446
|
-
regulated_status
|
|
446
|
+
regulated_status: Card.RegulatedStatus | null;
|
|
447
447
|
|
|
448
448
|
/**
|
|
449
449
|
* Contains details on how this Card may be used for 3D Secure authentication.
|
|
@@ -1365,6 +1365,11 @@ declare module 'stripe' {
|
|
|
1365
1365
|
interface Paynow {}
|
|
1366
1366
|
|
|
1367
1367
|
interface Paypal {
|
|
1368
|
+
/**
|
|
1369
|
+
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1370
|
+
*/
|
|
1371
|
+
country: string | null;
|
|
1372
|
+
|
|
1368
1373
|
/**
|
|
1369
1374
|
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1370
1375
|
*/
|
|
@@ -54,7 +54,7 @@ declare module 'stripe' {
|
|
|
54
54
|
/**
|
|
55
55
|
* The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
|
|
56
56
|
*/
|
|
57
|
-
pretax_credit_amounts
|
|
57
|
+
pretax_credit_amounts: Array<CreditNoteLineItem.PretaxCreditAmount>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* The number of units of product being credited.
|
package/types/CreditNotes.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ declare module 'stripe' {
|
|
|
113
113
|
/**
|
|
114
114
|
* The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
|
115
115
|
*/
|
|
116
|
-
pretax_credit_amounts
|
|
116
|
+
pretax_credit_amounts: Array<CreditNote.PretaxCreditAmount>;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
|
|
@@ -220,7 +220,7 @@ declare module 'stripe' {
|
|
|
220
220
|
|
|
221
221
|
interface TaxIdDatum {
|
|
222
222
|
/**
|
|
223
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
223
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
224
224
|
*/
|
|
225
225
|
type: TaxIdDatum.Type;
|
|
226
226
|
|
|
@@ -234,6 +234,7 @@ declare module 'stripe' {
|
|
|
234
234
|
type Type =
|
|
235
235
|
| 'ad_nrt'
|
|
236
236
|
| 'ae_trn'
|
|
237
|
+
| 'al_tin'
|
|
237
238
|
| 'am_tin'
|
|
238
239
|
| 'ao_tin'
|
|
239
240
|
| 'ar_cuit'
|
|
@@ -688,7 +689,7 @@ declare module 'stripe' {
|
|
|
688
689
|
|
|
689
690
|
interface CustomerCreateTaxIdParams {
|
|
690
691
|
/**
|
|
691
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
692
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
692
693
|
*/
|
|
693
694
|
type: CustomerCreateTaxIdParams.Type;
|
|
694
695
|
|
|
@@ -707,6 +708,7 @@ declare module 'stripe' {
|
|
|
707
708
|
type Type =
|
|
708
709
|
| 'ad_nrt'
|
|
709
710
|
| 'ae_trn'
|
|
711
|
+
| 'al_tin'
|
|
710
712
|
| 'am_tin'
|
|
711
713
|
| 'ao_tin'
|
|
712
714
|
| 'ar_cuit'
|
package/types/Disputes.d.ts
CHANGED
|
@@ -346,7 +346,7 @@ declare module 'stripe' {
|
|
|
346
346
|
|
|
347
347
|
interface VisaCompliance {
|
|
348
348
|
/**
|
|
349
|
-
* A field acknowledging the fee incurred when countering a Visa
|
|
349
|
+
* A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
|
350
350
|
*/
|
|
351
351
|
fee_acknowledged: boolean;
|
|
352
352
|
}
|
|
@@ -410,7 +410,7 @@ declare module 'stripe' {
|
|
|
410
410
|
|
|
411
411
|
interface VisaCompliance {
|
|
412
412
|
/**
|
|
413
|
-
* Visa
|
|
413
|
+
* Visa compliance eligibility status.
|
|
414
414
|
*/
|
|
415
415
|
status: VisaCompliance.Status;
|
|
416
416
|
}
|
|
@@ -182,7 +182,7 @@ declare module 'stripe' {
|
|
|
182
182
|
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* Evidence provided for Visa
|
|
185
|
+
* Evidence provided for Visa compliance evidence submission.
|
|
186
186
|
*/
|
|
187
187
|
visa_compliance?: EnhancedEvidence.VisaCompliance;
|
|
188
188
|
}
|
|
@@ -294,7 +294,7 @@ declare module 'stripe' {
|
|
|
294
294
|
|
|
295
295
|
interface VisaCompliance {
|
|
296
296
|
/**
|
|
297
|
-
* A field acknowledging the fee incurred when countering a Visa
|
|
297
|
+
* A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
|
298
298
|
*/
|
|
299
299
|
fee_acknowledged?: boolean;
|
|
300
300
|
}
|
|
@@ -93,7 +93,7 @@ declare module 'stripe' {
|
|
|
93
93
|
/**
|
|
94
94
|
* Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item.
|
|
95
95
|
*/
|
|
96
|
-
pretax_credit_amounts
|
|
96
|
+
pretax_credit_amounts: Array<InvoiceLineItem.PretaxCreditAmount> | null;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* The price of the line item.
|
package/types/Invoices.d.ts
CHANGED
|
@@ -489,7 +489,7 @@ declare module 'stripe' {
|
|
|
489
489
|
/**
|
|
490
490
|
* Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
|
|
491
491
|
*/
|
|
492
|
-
total_pretax_credit_amounts
|
|
492
|
+
total_pretax_credit_amounts: Array<
|
|
493
493
|
Invoice.TotalPretaxCreditAmount
|
|
494
494
|
> | null;
|
|
495
495
|
|
|
@@ -643,7 +643,7 @@ declare module 'stripe' {
|
|
|
643
643
|
|
|
644
644
|
interface CustomerTaxId {
|
|
645
645
|
/**
|
|
646
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
646
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
|
647
647
|
*/
|
|
648
648
|
type: CustomerTaxId.Type;
|
|
649
649
|
|
|
@@ -657,6 +657,7 @@ declare module 'stripe' {
|
|
|
657
657
|
type Type =
|
|
658
658
|
| 'ad_nrt'
|
|
659
659
|
| 'ae_trn'
|
|
660
|
+
| 'al_tin'
|
|
660
661
|
| 'am_tin'
|
|
661
662
|
| 'ao_tin'
|
|
662
663
|
| 'ar_cuit'
|
|
@@ -798,6 +799,11 @@ declare module 'stripe' {
|
|
|
798
799
|
}
|
|
799
800
|
|
|
800
801
|
interface LastFinalizationError {
|
|
802
|
+
/**
|
|
803
|
+
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
|
|
804
|
+
*/
|
|
805
|
+
advice_code?: string;
|
|
806
|
+
|
|
801
807
|
/**
|
|
802
808
|
* For card errors, the ID of the failed charge.
|
|
803
809
|
*/
|