stripe 19.2.0-beta.1 → 19.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +300 -1
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -0
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/resources/PaymentRecords.js +4 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +37 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -0
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/resources/PaymentRecords.js +4 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +17 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +36 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +24 -0
- package/types/AccountsResource.d.ts +44 -0
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +15 -0
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +149 -2
- package/types/Billing/Analytics/MeterUsageResource.d.ts +5 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +7 -0
- package/types/Billing/CreditBalanceSummary.d.ts +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +34 -3
- package/types/Billing/MeterEventSummaries.d.ts +7 -0
- package/types/Billing/Meters.d.ts +5 -0
- package/types/Billing/MetersResource.d.ts +17 -0
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Capabilities.d.ts +2 -0
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +16 -2
- package/types/Checkout/Sessions.d.ts +73 -0
- package/types/Checkout/SessionsResource.d.ts +71 -3
- package/types/ConfirmationTokens.d.ts +15 -0
- package/types/CreditNotes.d.ts +26 -0
- package/types/CreditNotesResource.d.ts +78 -0
- package/types/CustomerSessions.d.ts +161 -0
- package/types/CustomerSessionsResource.d.ts +161 -0
- package/types/Customers.d.ts +7 -0
- package/types/CustomersResource.d.ts +1 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +292 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +2 -0
- package/types/FinancialConnections/AccountsResource.d.ts +1 -1
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/InvoiceItems.d.ts +104 -2
- package/types/InvoiceLineItems.d.ts +113 -2
- package/types/Invoices.d.ts +1 -0
- package/types/InvoicesResource.d.ts +5 -0
- package/types/PaymentAttemptRecords.d.ts +7 -2
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +4 -0
- package/types/PaymentIntents.d.ts +30 -2
- package/types/PaymentIntentsResource.d.ts +88 -0
- package/types/PaymentLinks.d.ts +34 -0
- package/types/PaymentLinksResource.d.ts +88 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +72 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
- package/types/PaymentMethods.d.ts +48 -0
- package/types/PaymentMethodsResource.d.ts +35 -1
- package/types/PaymentRecords.d.ts +7 -2
- package/types/PaymentRecordsResource.d.ts +89 -0
- package/types/PayoutsResource.d.ts +1 -1
- package/types/Persons.d.ts +2 -0
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/Refunds.d.ts +9 -0
- package/types/SetupAttempts.d.ts +1 -0
- package/types/SetupIntents.d.ts +87 -0
- package/types/SetupIntentsResource.d.ts +220 -0
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/Terminal/Configurations.d.ts +19 -0
- package/types/Terminal/ConfigurationsResource.d.ts +44 -0
- package/types/Terminal/Readers.d.ts +14 -9
- package/types/Terminal/ReadersResource.d.ts +30 -30
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
- package/types/TokensResource.d.ts +22 -0
- package/types/Transfers.d.ts +4 -0
- package/types/TransfersResource.d.ts +2 -0
- package/types/V2/Billing/Cadences.d.ts +47 -2
- package/types/V2/Billing/CadencesResource.d.ts +32 -3
- package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
- package/types/V2/Billing/CollectionSettings.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/RateCardRates.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +274 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
- package/types/V2/Core/Accounts.d.ts +1394 -29
- package/types/V2/Core/AccountsResource.d.ts +1475 -5
- package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
- package/types/V2/Core/EventTypes.d.ts +7308 -367
- package/types/V2/Core/Events.d.ts +12 -0
- package/types/V2/Core/EventsResource.d.ts +29 -3
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +14 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +6 -1
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +34 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +5 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +41 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +5 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +10 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +6 -1
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +2 -0
- package/types/crypto/crypto.d.ts +1 -1
- package/types/index.d.ts +69 -0
|
@@ -31,6 +31,16 @@ declare module 'stripe' {
|
|
|
31
31
|
*/
|
|
32
32
|
buy_button?: Components.BuyButton;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for the customer sheet.
|
|
36
|
+
*/
|
|
37
|
+
customer_sheet?: Components.CustomerSheet;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for the mobile payment element.
|
|
41
|
+
*/
|
|
42
|
+
mobile_payment_element?: Components.MobilePaymentElement;
|
|
43
|
+
|
|
34
44
|
/**
|
|
35
45
|
* Configuration for the Payment Element.
|
|
36
46
|
*/
|
|
@@ -40,6 +50,11 @@ declare module 'stripe' {
|
|
|
40
50
|
* Configuration for the pricing table.
|
|
41
51
|
*/
|
|
42
52
|
pricing_table?: Components.PricingTable;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Configuration for the Tax ID Element.
|
|
56
|
+
*/
|
|
57
|
+
tax_id_element?: Components.TaxIdElement;
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
namespace Components {
|
|
@@ -50,6 +65,116 @@ declare module 'stripe' {
|
|
|
50
65
|
enabled: boolean;
|
|
51
66
|
}
|
|
52
67
|
|
|
68
|
+
interface CustomerSheet {
|
|
69
|
+
/**
|
|
70
|
+
* Whether the customer sheet is enabled.
|
|
71
|
+
*/
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This hash defines whether the customer sheet supports certain features.
|
|
76
|
+
*/
|
|
77
|
+
features?: CustomerSheet.Features;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
namespace CustomerSheet {
|
|
81
|
+
interface Features {
|
|
82
|
+
/**
|
|
83
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
84
|
+
*
|
|
85
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
86
|
+
*/
|
|
87
|
+
payment_method_allow_redisplay_filters?: Array<
|
|
88
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Controls whether the customer sheet displays the option to remove a saved payment method."
|
|
93
|
+
*
|
|
94
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
95
|
+
*/
|
|
96
|
+
payment_method_remove?: Features.PaymentMethodRemove;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
namespace Features {
|
|
100
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
101
|
+
| 'always'
|
|
102
|
+
| 'limited'
|
|
103
|
+
| 'unspecified';
|
|
104
|
+
|
|
105
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface MobilePaymentElement {
|
|
110
|
+
/**
|
|
111
|
+
* Whether the mobile payment element is enabled.
|
|
112
|
+
*/
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* This hash defines whether the mobile payment element supports certain features.
|
|
117
|
+
*/
|
|
118
|
+
features?: MobilePaymentElement.Features;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace MobilePaymentElement {
|
|
122
|
+
interface Features {
|
|
123
|
+
/**
|
|
124
|
+
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
125
|
+
*
|
|
126
|
+
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
|
127
|
+
*/
|
|
128
|
+
payment_method_allow_redisplay_filters?: Array<
|
|
129
|
+
Features.PaymentMethodAllowRedisplayFilter
|
|
130
|
+
>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Controls whether or not the mobile payment element shows saved payment methods.
|
|
134
|
+
*/
|
|
135
|
+
payment_method_redisplay?: Features.PaymentMethodRedisplay;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Controls whether the mobile payment element displays the option to remove a saved payment method."
|
|
139
|
+
*
|
|
140
|
+
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
|
141
|
+
*/
|
|
142
|
+
payment_method_remove?: Features.PaymentMethodRemove;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
|
|
146
|
+
*
|
|
147
|
+
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
|
148
|
+
*/
|
|
149
|
+
payment_method_save?: Features.PaymentMethodSave;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
|
|
153
|
+
*
|
|
154
|
+
* If not specified, defaults to `nil` (no override value).
|
|
155
|
+
*/
|
|
156
|
+
payment_method_save_allow_redisplay_override?: Features.PaymentMethodSaveAllowRedisplayOverride;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
namespace Features {
|
|
160
|
+
type PaymentMethodAllowRedisplayFilter =
|
|
161
|
+
| 'always'
|
|
162
|
+
| 'limited'
|
|
163
|
+
| 'unspecified';
|
|
164
|
+
|
|
165
|
+
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
|
166
|
+
|
|
167
|
+
type PaymentMethodRemove = 'disabled' | 'enabled';
|
|
168
|
+
|
|
169
|
+
type PaymentMethodSave = 'disabled' | 'enabled';
|
|
170
|
+
|
|
171
|
+
type PaymentMethodSaveAllowRedisplayOverride =
|
|
172
|
+
| 'always'
|
|
173
|
+
| 'limited'
|
|
174
|
+
| 'unspecified';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
53
178
|
interface PaymentElement {
|
|
54
179
|
/**
|
|
55
180
|
* Whether the Payment Element is enabled.
|
|
@@ -127,6 +252,42 @@ declare module 'stripe' {
|
|
|
127
252
|
*/
|
|
128
253
|
enabled: boolean;
|
|
129
254
|
}
|
|
255
|
+
|
|
256
|
+
interface TaxIdElement {
|
|
257
|
+
/**
|
|
258
|
+
* Whether the Tax ID Element is enabled.
|
|
259
|
+
*/
|
|
260
|
+
enabled: boolean;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* This hash defines whether the Tax ID Element supports certain features.
|
|
264
|
+
*/
|
|
265
|
+
features?: TaxIdElement.Features;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
namespace TaxIdElement {
|
|
269
|
+
interface Features {
|
|
270
|
+
/**
|
|
271
|
+
* Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
272
|
+
*
|
|
273
|
+
* When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
274
|
+
*/
|
|
275
|
+
tax_id_redisplay?: Features.TaxIdRedisplay;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
279
|
+
*
|
|
280
|
+
* When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
281
|
+
*/
|
|
282
|
+
tax_id_save?: Features.TaxIdSave;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
namespace Features {
|
|
286
|
+
type TaxIdRedisplay = 'disabled' | 'enabled';
|
|
287
|
+
|
|
288
|
+
type TaxIdSave = 'disabled' | 'enabled';
|
|
289
|
+
}
|
|
290
|
+
}
|
|
130
291
|
}
|
|
131
292
|
}
|
|
132
293
|
|
package/types/Customers.d.ts
CHANGED
|
@@ -255,6 +255,11 @@ declare module 'stripe' {
|
|
|
255
255
|
* The identified tax location of the customer.
|
|
256
256
|
*/
|
|
257
257
|
location: Tax.Location | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps).
|
|
261
|
+
*/
|
|
262
|
+
provider: Tax.Provider;
|
|
258
263
|
}
|
|
259
264
|
|
|
260
265
|
namespace Tax {
|
|
@@ -288,6 +293,8 @@ declare module 'stripe' {
|
|
|
288
293
|
| 'payment_method'
|
|
289
294
|
| 'shipping_destination';
|
|
290
295
|
}
|
|
296
|
+
|
|
297
|
+
type Provider = 'anrok' | 'avalara' | 'sphere' | 'stripe';
|
|
291
298
|
}
|
|
292
299
|
|
|
293
300
|
type TaxExempt = 'exempt' | 'none' | 'reverse';
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace DelegatedCheckout {
|
|
6
|
+
/**
|
|
7
|
+
* A requested session is a session that has been requested by a customer.
|
|
8
|
+
*/
|
|
9
|
+
interface RequestedSession {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'delegated_checkout.requested_session';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The subtotal amount of the requested session.
|
|
22
|
+
*/
|
|
23
|
+
amount_subtotal: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The total amount of the requested session.
|
|
27
|
+
*/
|
|
28
|
+
amount_total: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
*/
|
|
33
|
+
created_at: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
37
|
+
*/
|
|
38
|
+
currency: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The customer for this requested session.
|
|
42
|
+
*/
|
|
43
|
+
customer: string | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
47
|
+
*/
|
|
48
|
+
expires_at: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The details of the fulfillment.
|
|
52
|
+
*/
|
|
53
|
+
fulfillment_details: RequestedSession.FulfillmentDetails | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The line items to be purchased.
|
|
57
|
+
*/
|
|
58
|
+
line_item_details: Array<RequestedSession.LineItemDetail>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
62
|
+
*/
|
|
63
|
+
livemode: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
67
|
+
*/
|
|
68
|
+
metadata: Stripe.Metadata | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The details of the order.
|
|
72
|
+
*/
|
|
73
|
+
order_details: RequestedSession.OrderDetails | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The payment method used for the requested session.
|
|
77
|
+
*/
|
|
78
|
+
payment_method: string | null;
|
|
79
|
+
|
|
80
|
+
seller_details: RequestedSession.SellerDetails;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Whether or not the payment method should be saved for future use.
|
|
84
|
+
*/
|
|
85
|
+
setup_future_usage: 'on_session' | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The metadata shared with the seller.
|
|
89
|
+
*/
|
|
90
|
+
shared_metadata: {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
} | null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The SPT used for payment.
|
|
96
|
+
*/
|
|
97
|
+
shared_payment_issued_token: string | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The status of the requested session.
|
|
101
|
+
*/
|
|
102
|
+
status: RequestedSession.Status;
|
|
103
|
+
|
|
104
|
+
total_details: RequestedSession.TotalDetails;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
108
|
+
*/
|
|
109
|
+
updated_at: number;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
namespace RequestedSession {
|
|
113
|
+
interface FulfillmentDetails {
|
|
114
|
+
/**
|
|
115
|
+
* The fulfillment address.
|
|
116
|
+
*/
|
|
117
|
+
address: Stripe.Address | null;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The email address for the fulfillment details.
|
|
121
|
+
*/
|
|
122
|
+
email: string | null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The fulfillment options.
|
|
126
|
+
*/
|
|
127
|
+
fulfillment_options: Array<
|
|
128
|
+
FulfillmentDetails.FulfillmentOption
|
|
129
|
+
> | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The name for the fulfillment details.
|
|
133
|
+
*/
|
|
134
|
+
name: string | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The phone number for the fulfillment details.
|
|
138
|
+
*/
|
|
139
|
+
phone: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The fulfillment option.
|
|
143
|
+
*/
|
|
144
|
+
selected_fulfillment_option: FulfillmentDetails.SelectedFulfillmentOption | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace FulfillmentDetails {
|
|
148
|
+
interface FulfillmentOption {
|
|
149
|
+
/**
|
|
150
|
+
* The shipping option.
|
|
151
|
+
*/
|
|
152
|
+
shipping: FulfillmentOption.Shipping | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The type of the fulfillment option.
|
|
156
|
+
*/
|
|
157
|
+
type: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
namespace FulfillmentOption {
|
|
161
|
+
interface Shipping {
|
|
162
|
+
/**
|
|
163
|
+
* The shipping options.
|
|
164
|
+
*/
|
|
165
|
+
shipping_options: Array<Shipping.ShippingOption> | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
namespace Shipping {
|
|
169
|
+
interface ShippingOption {
|
|
170
|
+
/**
|
|
171
|
+
* The description of the shipping option.
|
|
172
|
+
*/
|
|
173
|
+
description: string | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The display name of the shipping option.
|
|
177
|
+
*/
|
|
178
|
+
display_name: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The earliest delivery time of the shipping option.
|
|
182
|
+
*/
|
|
183
|
+
earliest_delivery_time: number | null;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The key of the shipping option.
|
|
187
|
+
*/
|
|
188
|
+
key: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The latest delivery time of the shipping option.
|
|
192
|
+
*/
|
|
193
|
+
latest_delivery_time: number | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The shipping amount of the shipping option.
|
|
197
|
+
*/
|
|
198
|
+
shipping_amount: number;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface SelectedFulfillmentOption {
|
|
204
|
+
/**
|
|
205
|
+
* The shipping option.
|
|
206
|
+
*/
|
|
207
|
+
shipping: SelectedFulfillmentOption.Shipping | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The type of the selected fulfillment option.
|
|
211
|
+
*/
|
|
212
|
+
type: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
namespace SelectedFulfillmentOption {
|
|
216
|
+
interface Shipping {
|
|
217
|
+
/**
|
|
218
|
+
* The shipping option.
|
|
219
|
+
*/
|
|
220
|
+
shipping_option: string | null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface LineItemDetail {
|
|
226
|
+
/**
|
|
227
|
+
* The description of the line item.
|
|
228
|
+
*/
|
|
229
|
+
description: string | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The images of the line item.
|
|
233
|
+
*/
|
|
234
|
+
images: Array<string> | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The key of the line item.
|
|
238
|
+
*/
|
|
239
|
+
key: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The name of the line item.
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The quantity of the line item.
|
|
248
|
+
*/
|
|
249
|
+
quantity: number;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The SKU ID of the line item.
|
|
253
|
+
*/
|
|
254
|
+
sku_id: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The unit amount of the line item.
|
|
258
|
+
*/
|
|
259
|
+
unit_amount: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface OrderDetails {
|
|
263
|
+
/**
|
|
264
|
+
* The URL to the order status.
|
|
265
|
+
*/
|
|
266
|
+
order_status_url: string | null;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
interface SellerDetails {}
|
|
270
|
+
|
|
271
|
+
type Status = 'completed' | 'expired' | 'open';
|
|
272
|
+
|
|
273
|
+
interface TotalDetails {
|
|
274
|
+
/**
|
|
275
|
+
* The amount discount of the total details.
|
|
276
|
+
*/
|
|
277
|
+
amount_discount: number | null;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The amount fulfillment of the total details.
|
|
281
|
+
*/
|
|
282
|
+
amount_fulfillment: number | null;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* The amount tax of the total details.
|
|
286
|
+
*/
|
|
287
|
+
amount_tax: number | null;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|