stripe 20.1.0-alpha.4 → 20.2.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 +39 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +9 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/SharedPayment/GrantedTokens.js +12 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +16 -0
- package/cjs/resources/V2/Iam/ApiKeys.js +24 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +20 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +33 -0
- package/cjs/resources/V2/Tax/ManualRules.js +23 -0
- package/cjs/resources.js +15 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +7 -0
- package/esm/apiVersion.js +1 -1
- package/esm/resources/SharedPayment/GrantedTokens.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +13 -0
- package/esm/resources/V2/Iam/ApiKeys.js +21 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +17 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +30 -0
- package/esm/resources/V2/Tax/ManualRules.js +20 -0
- package/esm/resources.js +14 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinks.d.ts +1 -1
- package/types/AccountNotices.d.ts +6 -6
- package/types/AccountNoticesResource.d.ts +1 -1
- package/types/AccountSessions.d.ts +7 -7
- package/types/AccountSessionsResource.d.ts +21 -0
- package/types/Accounts.d.ts +25 -25
- package/types/AccountsResource.d.ts +107 -63
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -2
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +1 -1
- package/types/BalanceTransfers.d.ts +3 -3
- package/types/BalanceTransfersResource.d.ts +1 -1
- package/types/BankAccounts.d.ts +10 -10
- package/types/Billing/Alerts.d.ts +2 -2
- package/types/Billing/CreditBalanceSummary.d.ts +3 -3
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactions.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +4 -4
- package/types/Billing/CreditGrantsResource.d.ts +3 -3
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +10 -3
- package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
- package/types/BillingPortal/Sessions.d.ts +7 -7
- package/types/BillingPortal/SessionsResource.d.ts +7 -7
- package/types/Capabilities.d.ts +16 -16
- package/types/Capital/FinancingOffers.d.ts +2 -2
- package/types/Capital/FinancingSummary.d.ts +7 -4
- package/types/Capital/FinancingSummaryResource.d.ts +1 -1
- package/types/Cards.d.ts +2 -2
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -27
- package/types/ChargesResource.d.ts +22 -22
- package/types/Checkout/Sessions.d.ts +18 -18
- package/types/Checkout/SessionsResource.d.ts +90 -60
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -6
- package/types/Coupons.d.ts +3 -3
- package/types/CouponsResource.d.ts +2 -2
- package/types/CreditNoteLineItems.d.ts +3 -0
- package/types/CreditNotes.d.ts +8 -5
- package/types/CreditNotesResource.d.ts +5 -5
- package/types/CustomerBalanceTransactions.d.ts +9 -6
- package/types/CustomerCashBalanceTransactions.d.ts +13 -10
- package/types/CustomerSessions.d.ts +1 -1
- package/types/Customers.d.ts +8 -5
- package/types/CustomersResource.d.ts +21 -16
- package/types/DelegatedCheckout/RequestedSessions.d.ts +83 -17
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +102 -0
- package/types/Discounts.d.ts +6 -6
- package/types/Disputes.d.ts +3 -3
- package/types/DisputesResource.d.ts +1 -1
- package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
- package/types/Errors.d.ts +6 -0
- package/types/Events.d.ts +1 -1
- package/types/ExchangeRates.d.ts +2 -2
- package/types/ExternalAccountsResource.d.ts +4 -4
- package/types/FeeRefunds.d.ts +2 -2
- package/types/FileLinks.d.ts +1 -1
- package/types/FileLinksResource.d.ts +2 -2
- package/types/Files.d.ts +4 -4
- package/types/FilesResource.d.ts +3 -3
- package/types/FinancialConnections/Accounts.d.ts +3 -3
- package/types/FinancialConnections/AccountsResource.d.ts +3 -3
- package/types/FinancialConnections/Sessions.d.ts +2 -2
- package/types/FinancialConnections/SessionsResource.d.ts +3 -3
- package/types/Forwarding/Requests.d.ts +1 -1
- package/types/Forwarding/RequestsResource.d.ts +1 -1
- package/types/FundingInstructions.d.ts +2 -2
- package/types/Identity/BlocklistEntries.d.ts +1 -1
- package/types/Identity/VerificationReports.d.ts +8 -8
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +12 -12
- package/types/InvoiceItemsResource.d.ts +16 -16
- package/types/InvoiceLineItems.d.ts +11 -8
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +83 -33
- package/types/InvoicesResource.d.ts +237 -111
- package/types/Issuing/Authorizations.d.ts +20 -20
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/Cardholders.d.ts +13 -13
- package/types/Issuing/CardholdersResource.d.ts +21 -21
- package/types/Issuing/Cards.d.ts +20 -10
- package/types/Issuing/CardsResource.d.ts +46 -13
- package/types/Issuing/CreditUnderwritingRecords.d.ts +5 -5
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +15 -15
- package/types/Issuing/Disputes.d.ts +7 -7
- package/types/Issuing/DisputesResource.d.ts +5 -5
- package/types/Issuing/FraudLiabilityDebits.d.ts +1 -1
- package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
- package/types/Issuing/Programs.d.ts +1 -1
- package/types/Issuing/ProgramsResource.d.ts +1 -1
- package/types/Issuing/Settlements.d.ts +2 -2
- package/types/Issuing/Tokens.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +13 -13
- package/types/Issuing/TransactionsResource.d.ts +1 -1
- package/types/LineItems.d.ts +3 -3
- package/types/LoginLinks.d.ts +1 -1
- package/types/MandatesResource.d.ts +1 -1
- package/types/Margins.d.ts +1 -1
- package/types/MarginsResource.d.ts +2 -2
- package/types/Orders.d.ts +11 -11
- package/types/OrdersResource.d.ts +24 -24
- package/types/PaymentAttemptRecords.d.ts +119 -18
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
- package/types/PaymentIntents.d.ts +72 -44
- package/types/PaymentIntentsResource.d.ts +172 -159
- package/types/PaymentLinks.d.ts +7 -7
- package/types/PaymentLinksResource.d.ts +42 -28
- package/types/PaymentMethodConfigurations.d.ts +4 -4
- package/types/PaymentMethodConfigurationsResource.d.ts +80 -80
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +10 -8
- package/types/PaymentMethodsResource.d.ts +7 -6
- package/types/PaymentRecords.d.ts +126 -18
- package/types/PaymentRecordsResource.d.ts +7 -7
- package/types/Payouts.d.ts +7 -7
- package/types/PayoutsResource.d.ts +3 -3
- package/types/Persons.d.ts +21 -21
- package/types/Plans.d.ts +5 -5
- package/types/PlansResource.d.ts +6 -6
- package/types/Prices.d.ts +6 -6
- package/types/PricesResource.d.ts +10 -10
- package/types/ProductCatalog/TrialOffers.d.ts +1 -1
- package/types/Products.d.ts +10 -10
- package/types/ProductsResource.d.ts +38 -14
- package/types/PromotionCodes.d.ts +5 -5
- package/types/PromotionCodesResource.d.ts +5 -5
- package/types/QuoteLines.d.ts +3 -3
- package/types/QuotePreviewInvoices.d.ts +81 -31
- package/types/QuotePreviewSubscriptionSchedules.d.ts +18 -18
- package/types/Quotes.d.ts +16 -16
- package/types/QuotesResource.d.ts +30 -30
- package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
- package/types/Radar/ValueListItems.d.ts +1 -1
- package/types/Radar/ValueLists.d.ts +2 -2
- package/types/Radar/ValueListsResource.d.ts +2 -2
- package/types/Refunds.d.ts +3 -3
- package/types/RefundsResource.d.ts +3 -3
- package/types/Reporting/ReportRuns.d.ts +3 -3
- package/types/Reporting/ReportRunsResource.d.ts +2 -2
- package/types/Reporting/ReportTypes.d.ts +3 -3
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +21 -18
- package/types/SetupIntents.d.ts +20 -19
- package/types/SetupIntentsResource.d.ts +47 -44
- package/types/SharedPayment/GrantedTokens.d.ts +102 -0
- package/types/SharedPayment/GrantedTokensResource.d.ts +29 -0
- package/types/ShippingRates.d.ts +3 -3
- package/types/ShippingRatesResource.d.ts +3 -3
- package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/types/SourceMandateNotifications.d.ts +3 -3
- package/types/Sources.d.ts +5 -5
- package/types/SourcesResource.d.ts +2 -2
- package/types/SubscriptionItems.d.ts +7 -7
- package/types/SubscriptionItemsResource.d.ts +22 -22
- package/types/SubscriptionSchedules.d.ts +19 -19
- package/types/SubscriptionSchedulesResource.d.ts +61 -61
- package/types/Subscriptions.d.ts +61 -15
- package/types/SubscriptionsResource.d.ts +142 -58
- package/types/Tax/Associations.d.ts +3 -3
- package/types/Tax/AssociationsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +7 -7
- package/types/Tax/Calculations.d.ts +12 -12
- package/types/Tax/CalculationsResource.d.ts +7 -7
- package/types/Tax/Registrations.d.ts +3 -3
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Tax/SettingsResource.d.ts +1 -1
- package/types/Tax/TransactionLineItems.d.ts +5 -5
- package/types/Tax/Transactions.d.ts +9 -9
- package/types/Tax/TransactionsResource.d.ts +10 -10
- package/types/TaxIds.d.ts +6 -6
- package/types/TaxIdsResource.d.ts +4 -4
- package/types/TaxRates.d.ts +1 -1
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/Locations.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +3 -3
- package/types/Terminal/Readers.d.ts +10 -10
- package/types/Terminal/ReadersResource.d.ts +7 -7
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -4
- package/types/TestHelpers/CustomersResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
- package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +87 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -1
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -1
- package/types/Tokens.d.ts +4 -4
- package/types/TokensResource.d.ts +17 -17
- package/types/Topups.d.ts +3 -3
- package/types/TopupsResource.d.ts +3 -3
- package/types/TransferReversals.d.ts +4 -4
- package/types/Transfers.d.ts +5 -5
- package/types/TransfersResource.d.ts +6 -6
- package/types/Treasury/CreditReversals.d.ts +3 -3
- package/types/Treasury/CreditReversalsResource.d.ts +1 -1
- package/types/Treasury/DebitReversals.d.ts +3 -3
- package/types/Treasury/DebitReversalsResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +2 -2
- package/types/Treasury/InboundTransfers.d.ts +4 -4
- package/types/Treasury/InboundTransfersResource.d.ts +2 -2
- package/types/Treasury/OutboundPayments.d.ts +5 -5
- package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
- package/types/Treasury/OutboundTransfers.d.ts +4 -4
- package/types/Treasury/OutboundTransfersResource.d.ts +3 -3
- package/types/Treasury/ReceivedCredits.d.ts +9 -9
- package/types/Treasury/ReceivedDebits.d.ts +6 -6
- package/types/Treasury/TransactionEntries.d.ts +11 -11
- package/types/Treasury/Transactions.d.ts +11 -11
- package/types/V2/Billing/IntentActions.d.ts +141 -36
- package/types/V2/Billing/IntentsResource.d.ts +141 -42
- package/types/V2/Core/AccountLinks.d.ts +11 -11
- package/types/V2/Core/AccountLinksResource.d.ts +6 -6
- package/types/V2/Core/AccountPersons.d.ts +55 -10
- package/types/V2/Core/AccountTokensResource.d.ts +99 -10
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
- package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
- package/types/V2/Core/Accounts.d.ts +298 -509
- package/types/V2/Core/AccountsResource.d.ts +256 -51
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +1 -1
- package/types/V2/Core/EventTypes.d.ts +601 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +21 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +26 -0
- package/types/V2/Iam/ApiKeys.d.ts +154 -0
- package/types/V2/Iam/ApiKeysResource.d.ts +215 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +31 -1
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +8 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +2 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +26 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +2 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +10 -1
- package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +111 -0
- package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +126 -0
- package/types/V2/Payments/SettlementAllocationIntents.d.ts +122 -0
- package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +168 -0
- package/types/V2/Tax/ManualRules.d.ts +142 -0
- package/types/V2/Tax/ManualRulesResource.d.ts +292 -0
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +4 -3
- package/types/apiVersion.d.ts +1 -1
- package/types/index.d.ts +24 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Tax {
|
|
7
|
+
interface ManualRuleCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* Tax rates to be applied.
|
|
10
|
+
*/
|
|
11
|
+
scheduled_tax_rates: Array<ManualRuleCreateParams.ScheduledTaxRate>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Location where the rule applies.
|
|
15
|
+
*/
|
|
16
|
+
location?: ManualRuleCreateParams.Location;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Products associated with the rule.
|
|
20
|
+
*/
|
|
21
|
+
products?: Array<ManualRuleCreateParams.Product>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
namespace ManualRuleCreateParams {
|
|
25
|
+
interface Location {
|
|
26
|
+
/**
|
|
27
|
+
* Country ISO-3166.
|
|
28
|
+
*/
|
|
29
|
+
country: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* State ISO-3166.
|
|
33
|
+
*/
|
|
34
|
+
state?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface Product {
|
|
38
|
+
/**
|
|
39
|
+
* The type of the product.
|
|
40
|
+
*/
|
|
41
|
+
type: Product.Type;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The licensed item identifier.
|
|
45
|
+
*/
|
|
46
|
+
licensed_item?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The metered item identifier.
|
|
50
|
+
*/
|
|
51
|
+
metered_item?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The tax code for the product.
|
|
55
|
+
*/
|
|
56
|
+
tax_code?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
namespace Product {
|
|
60
|
+
type Type = 'licensed_item' | 'metered_item' | 'tax_code';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface ScheduledTaxRate {
|
|
64
|
+
/**
|
|
65
|
+
* The tax rates to be applied.
|
|
66
|
+
*/
|
|
67
|
+
rates: Array<ScheduledTaxRate.Rate>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The start time for the tax rate.
|
|
71
|
+
*/
|
|
72
|
+
starts_at?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
namespace ScheduledTaxRate {
|
|
76
|
+
interface Rate {
|
|
77
|
+
/**
|
|
78
|
+
* Country of the tax rate.
|
|
79
|
+
*/
|
|
80
|
+
country?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Description of the tax rate.
|
|
84
|
+
*/
|
|
85
|
+
description?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Display name of the tax rate as it will be shown on the invoice.
|
|
89
|
+
*/
|
|
90
|
+
display_name: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Jurisdiction of the tax rate should apply as it will be shown on the invoice.
|
|
94
|
+
*/
|
|
95
|
+
jurisdiction?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Percentage of the tax rate. Must be positive and maximum of 4 decimal points.
|
|
99
|
+
*/
|
|
100
|
+
percentage: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* State of the tax rate.
|
|
104
|
+
*/
|
|
105
|
+
state?: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
namespace Tax {
|
|
112
|
+
interface ManualRuleRetrieveParams {}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
namespace Tax {
|
|
116
|
+
interface ManualRuleUpdateParams {
|
|
117
|
+
/**
|
|
118
|
+
* Tax rates to be applied.
|
|
119
|
+
*/
|
|
120
|
+
scheduled_tax_rates: Array<ManualRuleUpdateParams.ScheduledTaxRate>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Location where the rule applies.
|
|
124
|
+
*/
|
|
125
|
+
location?: ManualRuleUpdateParams.Location;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Products associated with the rule.
|
|
129
|
+
*/
|
|
130
|
+
products?: Array<ManualRuleUpdateParams.Product>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
namespace ManualRuleUpdateParams {
|
|
134
|
+
interface Location {
|
|
135
|
+
/**
|
|
136
|
+
* Country ISO-3166.
|
|
137
|
+
*/
|
|
138
|
+
country: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* State ISO-3166.
|
|
142
|
+
*/
|
|
143
|
+
state?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface Product {
|
|
147
|
+
/**
|
|
148
|
+
* The type of the product.
|
|
149
|
+
*/
|
|
150
|
+
type: Product.Type;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The licensed item identifier.
|
|
154
|
+
*/
|
|
155
|
+
licensed_item?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The metered item identifier.
|
|
159
|
+
*/
|
|
160
|
+
metered_item?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The tax code for the product.
|
|
164
|
+
*/
|
|
165
|
+
tax_code?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
namespace Product {
|
|
169
|
+
type Type = 'licensed_item' | 'metered_item' | 'tax_code';
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ScheduledTaxRate {
|
|
173
|
+
/**
|
|
174
|
+
* The tax rates to be applied.
|
|
175
|
+
*/
|
|
176
|
+
rates: Array<ScheduledTaxRate.Rate>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The start time for the tax rate.
|
|
180
|
+
*/
|
|
181
|
+
starts_at?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
namespace ScheduledTaxRate {
|
|
185
|
+
interface Rate {
|
|
186
|
+
/**
|
|
187
|
+
* Country of the tax rate.
|
|
188
|
+
*/
|
|
189
|
+
country?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Description of the tax rate.
|
|
193
|
+
*/
|
|
194
|
+
description?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Display name of the tax rate as it will be shown on the invoice.
|
|
198
|
+
*/
|
|
199
|
+
display_name: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Jurisdiction of the tax rate should apply as it will be shown on the invoice.
|
|
203
|
+
*/
|
|
204
|
+
jurisdiction?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Percentage of the tax rate. Must be positive and maximum of 4 decimal points.
|
|
208
|
+
*/
|
|
209
|
+
percentage: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* State of the tax rate.
|
|
213
|
+
*/
|
|
214
|
+
state?: string;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
namespace Tax {
|
|
221
|
+
interface ManualRuleListParams {
|
|
222
|
+
/**
|
|
223
|
+
* Optionally set the maximum number of results per page. Defaults to 20.
|
|
224
|
+
*/
|
|
225
|
+
limit?: number;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
namespace Tax {
|
|
230
|
+
interface ManualRuleDeactivateParams {}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
namespace Tax {
|
|
234
|
+
class ManualRulesResource {
|
|
235
|
+
/**
|
|
236
|
+
* Creates a ManualRule object.
|
|
237
|
+
*/
|
|
238
|
+
create(
|
|
239
|
+
params: ManualRuleCreateParams,
|
|
240
|
+
options?: RequestOptions
|
|
241
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Retrieves a ManualRule object by ID.
|
|
245
|
+
*/
|
|
246
|
+
retrieve(
|
|
247
|
+
id: string,
|
|
248
|
+
params?: ManualRuleRetrieveParams,
|
|
249
|
+
options?: RequestOptions
|
|
250
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
251
|
+
retrieve(
|
|
252
|
+
id: string,
|
|
253
|
+
options?: RequestOptions
|
|
254
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Updates the Tax configuration for a ManualRule object.
|
|
258
|
+
*/
|
|
259
|
+
update(
|
|
260
|
+
id: string,
|
|
261
|
+
params: ManualRuleUpdateParams,
|
|
262
|
+
options?: RequestOptions
|
|
263
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* List all ManualRule objects.
|
|
267
|
+
*/
|
|
268
|
+
list(
|
|
269
|
+
params?: ManualRuleListParams,
|
|
270
|
+
options?: RequestOptions
|
|
271
|
+
): ApiListPromise<Stripe.V2.Tax.ManualRule>;
|
|
272
|
+
list(
|
|
273
|
+
options?: RequestOptions
|
|
274
|
+
): ApiListPromise<Stripe.V2.Tax.ManualRule>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Deactivates a ManualRule object.
|
|
278
|
+
*/
|
|
279
|
+
deactivate(
|
|
280
|
+
id: string,
|
|
281
|
+
params?: ManualRuleDeactivateParams,
|
|
282
|
+
options?: RequestOptions
|
|
283
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
284
|
+
deactivate(
|
|
285
|
+
id: string,
|
|
286
|
+
options?: RequestOptions
|
|
287
|
+
): Promise<Stripe.Response<Stripe.V2.Tax.ManualRule>>;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -78,7 +78,7 @@ declare module 'stripe' {
|
|
|
78
78
|
livemode: boolean;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
81
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
82
82
|
*/
|
|
83
83
|
metadata: Stripe.Metadata;
|
|
84
84
|
|
|
@@ -34,7 +34,7 @@ declare module 'stripe' {
|
|
|
34
34
|
expand?: Array<string>;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
37
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
38
38
|
*/
|
|
39
39
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
40
40
|
}
|
|
@@ -158,7 +158,8 @@ declare module 'stripe' {
|
|
|
158
158
|
| '2025-08-27.basil'
|
|
159
159
|
| '2025-09-30.clover'
|
|
160
160
|
| '2025-10-29.clover'
|
|
161
|
-
| '2025-11-17.clover'
|
|
161
|
+
| '2025-11-17.clover'
|
|
162
|
+
| '2025-12-15.clover';
|
|
162
163
|
|
|
163
164
|
type EnabledEvent =
|
|
164
165
|
| '*'
|
|
@@ -484,7 +485,7 @@ declare module 'stripe' {
|
|
|
484
485
|
expand?: Array<string>;
|
|
485
486
|
|
|
486
487
|
/**
|
|
487
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
488
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
488
489
|
*/
|
|
489
490
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
490
491
|
|
package/types/apiVersion.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
///<reference path='./ReviewsResource.d.ts' />
|
|
109
109
|
///<reference path='./SetupAttemptsResource.d.ts' />
|
|
110
110
|
///<reference path='./SetupIntentsResource.d.ts' />
|
|
111
|
+
///<reference path='./SharedPayment/GrantedTokensResource.d.ts' />
|
|
111
112
|
///<reference path='./ShippingRatesResource.d.ts' />
|
|
112
113
|
///<reference path='./Sigma/ScheduledQueryRunsResource.d.ts' />
|
|
113
114
|
///<reference path='./SourcesResource.d.ts' />
|
|
@@ -137,6 +138,7 @@
|
|
|
137
138
|
///<reference path='./TestHelpers/Issuing/PersonalizationDesignsResource.d.ts' />
|
|
138
139
|
///<reference path='./TestHelpers/Issuing/TransactionsResource.d.ts' />
|
|
139
140
|
///<reference path='./TestHelpers/RefundsResource.d.ts' />
|
|
141
|
+
///<reference path='./TestHelpers/SharedPayment/GrantedTokensResource.d.ts' />
|
|
140
142
|
///<reference path='./TestHelpers/Terminal/ReadersResource.d.ts' />
|
|
141
143
|
///<reference path='./TestHelpers/TestClocksResource.d.ts' />
|
|
142
144
|
///<reference path='./TestHelpers/Treasury/InboundTransfersResource.d.ts' />
|
|
@@ -195,6 +197,7 @@
|
|
|
195
197
|
///<reference path='./V2/Core/EventsResource.d.ts' />
|
|
196
198
|
///<reference path='./V2/Core/Vault/GbBankAccountsResource.d.ts' />
|
|
197
199
|
///<reference path='./V2/Core/Vault/UsBankAccountsResource.d.ts' />
|
|
200
|
+
///<reference path='./V2/Iam/ApiKeysResource.d.ts' />
|
|
198
201
|
///<reference path='./V2/MoneyManagement/AdjustmentsResource.d.ts' />
|
|
199
202
|
///<reference path='./V2/MoneyManagement/CurrencyConversionsResource.d.ts' />
|
|
200
203
|
///<reference path='./V2/MoneyManagement/FinancialAccountsResource.d.ts' />
|
|
@@ -212,8 +215,11 @@
|
|
|
212
215
|
///<reference path='./V2/MoneyManagement/TransactionEntriesResource.d.ts' />
|
|
213
216
|
///<reference path='./V2/MoneyManagement/TransactionsResource.d.ts' />
|
|
214
217
|
///<reference path='./V2/Payments/OffSessionPaymentsResource.d.ts' />
|
|
218
|
+
///<reference path='./V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts' />
|
|
219
|
+
///<reference path='./V2/Payments/SettlementAllocationIntentsResource.d.ts' />
|
|
215
220
|
///<reference path='./V2/Reporting/ReportRunsResource.d.ts' />
|
|
216
221
|
///<reference path='./V2/Reporting/ReportsResource.d.ts' />
|
|
222
|
+
///<reference path='./V2/Tax/ManualRulesResource.d.ts' />
|
|
217
223
|
///<reference path='./V2/TestHelpers/FinancialAddressesResource.d.ts' />
|
|
218
224
|
///<reference path='./V2/TestHelpers/MoneyManagementResource.d.ts' />
|
|
219
225
|
///<reference path='./WebhookEndpointsResource.d.ts' />
|
|
@@ -349,6 +355,7 @@
|
|
|
349
355
|
///<reference path='./Reviews.d.ts' />
|
|
350
356
|
///<reference path='./SetupAttempts.d.ts' />
|
|
351
357
|
///<reference path='./SetupIntents.d.ts' />
|
|
358
|
+
///<reference path='./SharedPayment/GrantedTokens.d.ts' />
|
|
352
359
|
///<reference path='./ShippingRates.d.ts' />
|
|
353
360
|
///<reference path='./Sigma/ScheduledQueryRuns.d.ts' />
|
|
354
361
|
///<reference path='./SourceMandateNotifications.d.ts' />
|
|
@@ -432,6 +439,7 @@
|
|
|
432
439
|
///<reference path='./V2/DeletedObject.d.ts' />
|
|
433
440
|
///<reference path='./V2/FinancialAddressCreditSimulations.d.ts' />
|
|
434
441
|
///<reference path='./V2/FinancialAddressGeneratedMicrodeposits.d.ts' />
|
|
442
|
+
///<reference path='./V2/Iam/ApiKeys.d.ts' />
|
|
435
443
|
///<reference path='./V2/MoneyManagement/Adjustments.d.ts' />
|
|
436
444
|
///<reference path='./V2/MoneyManagement/CurrencyConversions.d.ts' />
|
|
437
445
|
///<reference path='./V2/MoneyManagement/FinancialAccounts.d.ts' />
|
|
@@ -449,8 +457,11 @@
|
|
|
449
457
|
///<reference path='./V2/MoneyManagement/TransactionEntries.d.ts' />
|
|
450
458
|
///<reference path='./V2/MoneyManagement/Transactions.d.ts' />
|
|
451
459
|
///<reference path='./V2/Payments/OffSessionPayments.d.ts' />
|
|
460
|
+
///<reference path='./V2/Payments/SettlementAllocationIntentSplits.d.ts' />
|
|
461
|
+
///<reference path='./V2/Payments/SettlementAllocationIntents.d.ts' />
|
|
452
462
|
///<reference path='./V2/Reporting/ReportRuns.d.ts' />
|
|
453
463
|
///<reference path='./V2/Reporting/Reports.d.ts' />
|
|
464
|
+
///<reference path='./V2/Tax/ManualRules.d.ts' />
|
|
454
465
|
///<reference path='./WebhookEndpoints.d.ts' />
|
|
455
466
|
// Imports: The end of the section generated from our OpenAPI spec
|
|
456
467
|
|
|
@@ -616,6 +627,9 @@ declare module 'stripe' {
|
|
|
616
627
|
reportRuns: Stripe.Reporting.ReportRunsResource;
|
|
617
628
|
reportTypes: Stripe.Reporting.ReportTypesResource;
|
|
618
629
|
};
|
|
630
|
+
sharedPayment: {
|
|
631
|
+
grantedTokens: Stripe.SharedPayment.GrantedTokensResource;
|
|
632
|
+
};
|
|
619
633
|
sigma: {
|
|
620
634
|
scheduledQueryRuns: Stripe.Sigma.ScheduledQueryRunsResource;
|
|
621
635
|
};
|
|
@@ -649,6 +663,9 @@ declare module 'stripe' {
|
|
|
649
663
|
personalizationDesigns: Stripe.TestHelpers.Issuing.PersonalizationDesignsResource;
|
|
650
664
|
transactions: Stripe.TestHelpers.Issuing.TransactionsResource;
|
|
651
665
|
};
|
|
666
|
+
sharedPayment: {
|
|
667
|
+
grantedTokens: Stripe.TestHelpers.SharedPayment.GrantedTokensResource;
|
|
668
|
+
};
|
|
652
669
|
terminal: {
|
|
653
670
|
readers: Stripe.TestHelpers.Terminal.ReadersResource;
|
|
654
671
|
};
|
|
@@ -706,6 +723,9 @@ declare module 'stripe' {
|
|
|
706
723
|
usBankAccounts: Stripe.V2.Core.Vault.UsBankAccountsResource;
|
|
707
724
|
};
|
|
708
725
|
};
|
|
726
|
+
iam: {
|
|
727
|
+
apiKeys: Stripe.V2.Iam.ApiKeysResource;
|
|
728
|
+
};
|
|
709
729
|
moneyManagement: {
|
|
710
730
|
adjustments: Stripe.V2.MoneyManagement.AdjustmentsResource;
|
|
711
731
|
currencyConversions: Stripe.V2.MoneyManagement.CurrencyConversionsResource;
|
|
@@ -726,11 +746,15 @@ declare module 'stripe' {
|
|
|
726
746
|
};
|
|
727
747
|
payment: {
|
|
728
748
|
offSessionPayments: Stripe.V2.Payments.OffSessionPaymentsResource;
|
|
749
|
+
settlementAllocationIntents: Stripe.V2.Payments.SettlementAllocationIntentsResource;
|
|
729
750
|
};
|
|
730
751
|
reporting: {
|
|
731
752
|
reports: Stripe.V2.Reporting.ReportsResource;
|
|
732
753
|
reportRuns: Stripe.V2.Reporting.ReportRunsResource;
|
|
733
754
|
};
|
|
755
|
+
tax: {
|
|
756
|
+
manualRules: Stripe.V2.Tax.ManualRulesResource;
|
|
757
|
+
};
|
|
734
758
|
testHelper: {
|
|
735
759
|
financialAddresses: Stripe.V2.TestHelpers.FinancialAddressesResource;
|
|
736
760
|
moneyManagement: Stripe.V2.TestHelpers.MoneyManagementResource;
|