stripe 17.5.0-beta.2 → 17.5.0
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 +132 -996
- package/README.md +33 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources.js +10 -48
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources.js +0 -33
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -50
- package/types/AccountSessionsResource.d.ts +5 -360
- package/types/Accounts.d.ts +5 -194
- package/types/AccountsResource.d.ts +0 -520
- package/types/Billing/CreditBalanceTransactions.d.ts +20 -1
- package/types/Capabilities.d.ts +2 -2
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +10 -136
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +25 -323
- package/types/Checkout/SessionsResource.d.ts +5 -445
- package/types/ConfirmationTokens.d.ts +7 -99
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +42 -11
- package/types/Disputes.d.ts +22 -0
- package/types/DisputesResource.d.ts +12 -0
- package/types/EventTypes.d.ts +0 -596
- package/types/Events.d.ts +0 -93
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/Forwarding/Requests.d.ts +2 -1
- package/types/Forwarding/RequestsResource.d.ts +2 -1
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -28
- package/types/Invoices.d.ts +23 -139
- package/types/InvoicesResource.d.ts +1907 -5535
- package/types/Issuing/Authorizations.d.ts +5 -0
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +5 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -32
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -644
- package/types/PaymentIntentsResource.d.ts +3768 -8055
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +7 -99
- package/types/PaymentMethodsResource.d.ts +0 -133
- package/types/Payouts.d.ts +1 -1
- package/types/Persons.d.ts +2 -2
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +0 -38
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -645
- package/types/Sources.d.ts +7 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -91
- package/types/SubscriptionsResource.d.ts +2 -369
- package/types/Tax/Calculations.d.ts +21 -2
- package/types/Tax/CalculationsResource.d.ts +21 -2
- package/types/Tax/Registrations.d.ts +189 -0
- package/types/Tax/RegistrationsResource.d.ts +252 -0
- package/types/Tax/Transactions.d.ts +21 -2
- package/types/TaxIds.d.ts +21 -2
- package/types/TaxIdsResource.d.ts +21 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +2 -71
- package/types/index.d.ts +0 -62
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentAttemptRecords.js +0 -17
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentAttemptRecords.js +0 -14
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -113
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1160
- package/types/OrdersResource.d.ts +0 -2923
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -259
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1634
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
billing_address_collection?: SessionCreateParams.BillingAddressCollection;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded
|
|
33
|
+
* If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded`.
|
|
34
34
|
*/
|
|
35
35
|
cancel_url?: string;
|
|
36
36
|
|
|
@@ -192,13 +192,6 @@ declare module 'stripe' {
|
|
|
192
192
|
*/
|
|
193
193
|
payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
|
|
194
194
|
|
|
195
|
-
/**
|
|
196
|
-
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
197
|
-
*
|
|
198
|
-
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
|
|
199
|
-
*/
|
|
200
|
-
permissions?: SessionCreateParams.Permissions;
|
|
201
|
-
|
|
202
195
|
/**
|
|
203
196
|
* Controls phone number collection settings for the session.
|
|
204
197
|
*
|
|
@@ -214,7 +207,7 @@ declare module 'stripe' {
|
|
|
214
207
|
|
|
215
208
|
/**
|
|
216
209
|
* The URL to redirect your customer back to after they authenticate or cancel their payment on the
|
|
217
|
-
* payment method's app or site. This parameter is required if
|
|
210
|
+
* payment method's app or site. This parameter is required if ui_mode is `embedded`
|
|
218
211
|
* and redirect-based payment methods are enabled on the session.
|
|
219
212
|
*/
|
|
220
213
|
return_url?: string;
|
|
@@ -254,7 +247,7 @@ declare module 'stripe' {
|
|
|
254
247
|
/**
|
|
255
248
|
* The URL to which Stripe should send customers when payment or setup
|
|
256
249
|
* is complete.
|
|
257
|
-
* This parameter is not allowed if ui_mode is `embedded
|
|
250
|
+
* This parameter is not allowed if ui_mode is `embedded`. If you'd like to use
|
|
258
251
|
* information from the successful Checkout Session on your page, read the
|
|
259
252
|
* guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
|
|
260
253
|
*/
|
|
@@ -687,11 +680,6 @@ declare module 'stripe' {
|
|
|
687
680
|
*/
|
|
688
681
|
dynamic_tax_rates?: Array<string>;
|
|
689
682
|
|
|
690
|
-
/**
|
|
691
|
-
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
692
|
-
*/
|
|
693
|
-
metadata?: Stripe.MetadataParam;
|
|
694
|
-
|
|
695
683
|
/**
|
|
696
684
|
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
697
685
|
*/
|
|
@@ -1159,11 +1147,6 @@ declare module 'stripe' {
|
|
|
1159
1147
|
*/
|
|
1160
1148
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1161
1149
|
|
|
1162
|
-
/**
|
|
1163
|
-
* contains details about the PayTo payment method options.
|
|
1164
|
-
*/
|
|
1165
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1166
|
-
|
|
1167
1150
|
/**
|
|
1168
1151
|
* contains details about the Pix payment method options.
|
|
1169
1152
|
*/
|
|
@@ -1418,11 +1401,6 @@ declare module 'stripe' {
|
|
|
1418
1401
|
*/
|
|
1419
1402
|
installments?: Card.Installments;
|
|
1420
1403
|
|
|
1421
|
-
/**
|
|
1422
|
-
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1423
|
-
*/
|
|
1424
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1425
|
-
|
|
1426
1404
|
/**
|
|
1427
1405
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1428
1406
|
*/
|
|
@@ -1479,8 +1457,6 @@ declare module 'stripe' {
|
|
|
1479
1457
|
enabled?: boolean;
|
|
1480
1458
|
}
|
|
1481
1459
|
|
|
1482
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1483
|
-
|
|
1484
1460
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1485
1461
|
|
|
1486
1462
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1859,11 +1835,6 @@ declare module 'stripe' {
|
|
|
1859
1835
|
*/
|
|
1860
1836
|
reference?: string;
|
|
1861
1837
|
|
|
1862
|
-
/**
|
|
1863
|
-
* A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1864
|
-
*/
|
|
1865
|
-
reference_id?: string;
|
|
1866
|
-
|
|
1867
1838
|
/**
|
|
1868
1839
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1869
1840
|
*/
|
|
@@ -1881,11 +1852,6 @@ declare module 'stripe' {
|
|
|
1881
1852
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1882
1853
|
*/
|
|
1883
1854
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1884
|
-
|
|
1885
|
-
/**
|
|
1886
|
-
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1887
|
-
*/
|
|
1888
|
-
subsellers?: Array<string>;
|
|
1889
1855
|
}
|
|
1890
1856
|
|
|
1891
1857
|
namespace Paypal {
|
|
@@ -1915,92 +1881,6 @@ declare module 'stripe' {
|
|
|
1915
1881
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1916
1882
|
}
|
|
1917
1883
|
|
|
1918
|
-
interface Payto {
|
|
1919
|
-
/**
|
|
1920
|
-
* Additional fields for Mandate creation
|
|
1921
|
-
*/
|
|
1922
|
-
mandate_options?: Payto.MandateOptions;
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1926
|
-
*
|
|
1927
|
-
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
1928
|
-
*
|
|
1929
|
-
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
1930
|
-
*
|
|
1931
|
-
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
1932
|
-
*/
|
|
1933
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
namespace Payto {
|
|
1937
|
-
interface MandateOptions {
|
|
1938
|
-
/**
|
|
1939
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1940
|
-
*/
|
|
1941
|
-
amount?: number;
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
1945
|
-
*/
|
|
1946
|
-
amount_type?: MandateOptions.AmountType;
|
|
1947
|
-
|
|
1948
|
-
/**
|
|
1949
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1950
|
-
*/
|
|
1951
|
-
end_date?: string;
|
|
1952
|
-
|
|
1953
|
-
/**
|
|
1954
|
-
* The periodicity at which payments will be collected.
|
|
1955
|
-
*/
|
|
1956
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
1960
|
-
*/
|
|
1961
|
-
payments_per_period?: number;
|
|
1962
|
-
|
|
1963
|
-
/**
|
|
1964
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1965
|
-
*/
|
|
1966
|
-
purpose?: MandateOptions.Purpose;
|
|
1967
|
-
|
|
1968
|
-
/**
|
|
1969
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1970
|
-
*/
|
|
1971
|
-
start_date?: string;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
namespace MandateOptions {
|
|
1975
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1976
|
-
|
|
1977
|
-
type PaymentSchedule =
|
|
1978
|
-
| 'adhoc'
|
|
1979
|
-
| 'annual'
|
|
1980
|
-
| 'daily'
|
|
1981
|
-
| 'fortnightly'
|
|
1982
|
-
| 'monthly'
|
|
1983
|
-
| 'quarterly'
|
|
1984
|
-
| 'semi_annual'
|
|
1985
|
-
| 'weekly';
|
|
1986
|
-
|
|
1987
|
-
type Purpose =
|
|
1988
|
-
| 'dependant_support'
|
|
1989
|
-
| 'government'
|
|
1990
|
-
| 'loan'
|
|
1991
|
-
| 'mortgage'
|
|
1992
|
-
| 'other'
|
|
1993
|
-
| 'pension'
|
|
1994
|
-
| 'personal'
|
|
1995
|
-
| 'retail'
|
|
1996
|
-
| 'salary'
|
|
1997
|
-
| 'tax'
|
|
1998
|
-
| 'utility';
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
1884
|
interface Pix {
|
|
2005
1885
|
/**
|
|
2006
1886
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2124,11 +2004,7 @@ declare module 'stripe' {
|
|
|
2124
2004
|
| 'payment_method'
|
|
2125
2005
|
| 'transactions';
|
|
2126
2006
|
|
|
2127
|
-
type Prefetch =
|
|
2128
|
-
| 'balances'
|
|
2129
|
-
| 'inferred_balances'
|
|
2130
|
-
| 'ownership'
|
|
2131
|
-
| 'transactions';
|
|
2007
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2132
2008
|
}
|
|
2133
2009
|
|
|
2134
2010
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2182,7 +2058,6 @@ declare module 'stripe' {
|
|
|
2182
2058
|
| 'eps'
|
|
2183
2059
|
| 'fpx'
|
|
2184
2060
|
| 'giropay'
|
|
2185
|
-
| 'gopay'
|
|
2186
2061
|
| 'grabpay'
|
|
2187
2062
|
| 'ideal'
|
|
2188
2063
|
| 'kakao_pay'
|
|
@@ -2190,7 +2065,6 @@ declare module 'stripe' {
|
|
|
2190
2065
|
| 'konbini'
|
|
2191
2066
|
| 'kr_card'
|
|
2192
2067
|
| 'link'
|
|
2193
|
-
| 'mb_way'
|
|
2194
2068
|
| 'mobilepay'
|
|
2195
2069
|
| 'multibanco'
|
|
2196
2070
|
| 'naver_pay'
|
|
@@ -2199,15 +2073,11 @@ declare module 'stripe' {
|
|
|
2199
2073
|
| 'payco'
|
|
2200
2074
|
| 'paynow'
|
|
2201
2075
|
| 'paypal'
|
|
2202
|
-
| 'payto'
|
|
2203
2076
|
| 'pix'
|
|
2204
2077
|
| 'promptpay'
|
|
2205
|
-
| 'qris'
|
|
2206
|
-
| 'rechnung'
|
|
2207
2078
|
| 'revolut_pay'
|
|
2208
2079
|
| 'samsung_pay'
|
|
2209
2080
|
| 'sepa_debit'
|
|
2210
|
-
| 'shopeepay'
|
|
2211
2081
|
| 'sofort'
|
|
2212
2082
|
| 'swish'
|
|
2213
2083
|
| 'twint'
|
|
@@ -2215,41 +2085,6 @@ declare module 'stripe' {
|
|
|
2215
2085
|
| 'wechat_pay'
|
|
2216
2086
|
| 'zip';
|
|
2217
2087
|
|
|
2218
|
-
interface Permissions {
|
|
2219
|
-
/**
|
|
2220
|
-
* Permissions for updating the Checkout Session.
|
|
2221
|
-
*/
|
|
2222
|
-
update?: Permissions.Update;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
namespace Permissions {
|
|
2226
|
-
interface Update {
|
|
2227
|
-
/**
|
|
2228
|
-
* Determines which entity is allowed to update the line items.
|
|
2229
|
-
*
|
|
2230
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2231
|
-
*
|
|
2232
|
-
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2233
|
-
*/
|
|
2234
|
-
line_items?: Update.LineItems;
|
|
2235
|
-
|
|
2236
|
-
/**
|
|
2237
|
-
* Determines which entity is allowed to update the shipping details.
|
|
2238
|
-
*
|
|
2239
|
-
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2240
|
-
*
|
|
2241
|
-
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
2242
|
-
*/
|
|
2243
|
-
shipping_details?: Update.ShippingDetails;
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
namespace Update {
|
|
2247
|
-
type LineItems = 'client_only' | 'server_only';
|
|
2248
|
-
|
|
2249
|
-
type ShippingDetails = 'client_only' | 'server_only';
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
2088
|
interface PhoneNumberCollection {
|
|
2254
2089
|
/**
|
|
2255
2090
|
* Set to `true` to enable phone number collection.
|
|
@@ -2831,7 +2666,7 @@ declare module 'stripe' {
|
|
|
2831
2666
|
type Required = 'if_supported' | 'never';
|
|
2832
2667
|
}
|
|
2833
2668
|
|
|
2834
|
-
type UiMode = '
|
|
2669
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2835
2670
|
}
|
|
2836
2671
|
|
|
2837
2672
|
interface SessionRetrieveParams {
|
|
@@ -2842,290 +2677,15 @@ declare module 'stripe' {
|
|
|
2842
2677
|
}
|
|
2843
2678
|
|
|
2844
2679
|
interface SessionUpdateParams {
|
|
2845
|
-
/**
|
|
2846
|
-
* Information about the customer collected within the Checkout Session.
|
|
2847
|
-
*/
|
|
2848
|
-
collected_information?: SessionUpdateParams.CollectedInformation;
|
|
2849
|
-
|
|
2850
2680
|
/**
|
|
2851
2681
|
* Specifies which fields in the response should be expanded.
|
|
2852
2682
|
*/
|
|
2853
2683
|
expand?: Array<string>;
|
|
2854
2684
|
|
|
2855
|
-
/**
|
|
2856
|
-
* A list of items the customer is purchasing.
|
|
2857
|
-
*
|
|
2858
|
-
* When updating line items, you must retransmit the entire array of line items.
|
|
2859
|
-
*
|
|
2860
|
-
* To retain an existing line item, specify its `id`.
|
|
2861
|
-
*
|
|
2862
|
-
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
2863
|
-
*
|
|
2864
|
-
* To add a new line item, specify a `price` and `quantity`. We don't currently support recurring prices.
|
|
2865
|
-
*
|
|
2866
|
-
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
2867
|
-
*
|
|
2868
|
-
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
2869
|
-
*/
|
|
2870
|
-
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
2871
|
-
|
|
2872
2685
|
/**
|
|
2873
2686
|
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2874
2687
|
*/
|
|
2875
2688
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2876
|
-
|
|
2877
|
-
/**
|
|
2878
|
-
* The shipping rate options to apply to this Session. Up to a maximum of 5.
|
|
2879
|
-
*/
|
|
2880
|
-
shipping_options?: Stripe.Emptyable<
|
|
2881
|
-
Array<SessionUpdateParams.ShippingOption>
|
|
2882
|
-
>;
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
namespace SessionUpdateParams {
|
|
2886
|
-
interface CollectedInformation {
|
|
2887
|
-
/**
|
|
2888
|
-
* The shipping details to apply to this Session.
|
|
2889
|
-
*/
|
|
2890
|
-
shipping_details?: CollectedInformation.ShippingDetails;
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
namespace CollectedInformation {
|
|
2894
|
-
interface ShippingDetails {
|
|
2895
|
-
/**
|
|
2896
|
-
* The address of the customer
|
|
2897
|
-
*/
|
|
2898
|
-
address: ShippingDetails.Address;
|
|
2899
|
-
|
|
2900
|
-
/**
|
|
2901
|
-
* The name of customer
|
|
2902
|
-
*/
|
|
2903
|
-
name: string;
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
namespace ShippingDetails {
|
|
2907
|
-
interface Address {
|
|
2908
|
-
/**
|
|
2909
|
-
* City, district, suburb, town, or village.
|
|
2910
|
-
*/
|
|
2911
|
-
city?: string;
|
|
2912
|
-
|
|
2913
|
-
/**
|
|
2914
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2915
|
-
*/
|
|
2916
|
-
country: string;
|
|
2917
|
-
|
|
2918
|
-
/**
|
|
2919
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2920
|
-
*/
|
|
2921
|
-
line1: string;
|
|
2922
|
-
|
|
2923
|
-
/**
|
|
2924
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2925
|
-
*/
|
|
2926
|
-
line2?: string;
|
|
2927
|
-
|
|
2928
|
-
/**
|
|
2929
|
-
* ZIP or postal code.
|
|
2930
|
-
*/
|
|
2931
|
-
postal_code?: string;
|
|
2932
|
-
|
|
2933
|
-
/**
|
|
2934
|
-
* State, county, province, or region.
|
|
2935
|
-
*/
|
|
2936
|
-
state?: string;
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
interface LineItem {
|
|
2942
|
-
/**
|
|
2943
|
-
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
2944
|
-
*/
|
|
2945
|
-
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
2946
|
-
|
|
2947
|
-
/**
|
|
2948
|
-
* ID of an existing line item.
|
|
2949
|
-
*/
|
|
2950
|
-
id?: string;
|
|
2951
|
-
|
|
2952
|
-
/**
|
|
2953
|
-
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2954
|
-
*/
|
|
2955
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2956
|
-
|
|
2957
|
-
/**
|
|
2958
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices).
|
|
2959
|
-
*/
|
|
2960
|
-
price?: string;
|
|
2961
|
-
|
|
2962
|
-
/**
|
|
2963
|
-
* The quantity of the line item being purchased.
|
|
2964
|
-
*/
|
|
2965
|
-
quantity?: number;
|
|
2966
|
-
|
|
2967
|
-
/**
|
|
2968
|
-
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
2969
|
-
*/
|
|
2970
|
-
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
namespace LineItem {
|
|
2974
|
-
interface AdjustableQuantity {
|
|
2975
|
-
/**
|
|
2976
|
-
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
2977
|
-
*/
|
|
2978
|
-
enabled: boolean;
|
|
2979
|
-
|
|
2980
|
-
/**
|
|
2981
|
-
* The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
|
|
2982
|
-
*/
|
|
2983
|
-
maximum?: number;
|
|
2984
|
-
|
|
2985
|
-
/**
|
|
2986
|
-
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
2987
|
-
*/
|
|
2988
|
-
minimum?: number;
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
interface ShippingOption {
|
|
2993
|
-
/**
|
|
2994
|
-
* The ID of the Shipping Rate to use for this shipping option.
|
|
2995
|
-
*/
|
|
2996
|
-
shipping_rate?: string;
|
|
2997
|
-
|
|
2998
|
-
/**
|
|
2999
|
-
* Parameters to be passed to Shipping Rate creation for this shipping option.
|
|
3000
|
-
*/
|
|
3001
|
-
shipping_rate_data?: ShippingOption.ShippingRateData;
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
namespace ShippingOption {
|
|
3005
|
-
interface ShippingRateData {
|
|
3006
|
-
/**
|
|
3007
|
-
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
3008
|
-
*/
|
|
3009
|
-
delivery_estimate?: ShippingRateData.DeliveryEstimate;
|
|
3010
|
-
|
|
3011
|
-
/**
|
|
3012
|
-
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
3013
|
-
*/
|
|
3014
|
-
display_name: string;
|
|
3015
|
-
|
|
3016
|
-
/**
|
|
3017
|
-
* Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
3018
|
-
*/
|
|
3019
|
-
fixed_amount?: ShippingRateData.FixedAmount;
|
|
3020
|
-
|
|
3021
|
-
/**
|
|
3022
|
-
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
3023
|
-
*/
|
|
3024
|
-
metadata?: Stripe.MetadataParam;
|
|
3025
|
-
|
|
3026
|
-
/**
|
|
3027
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
3028
|
-
*/
|
|
3029
|
-
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
3033
|
-
*/
|
|
3034
|
-
tax_code?: string;
|
|
3035
|
-
|
|
3036
|
-
/**
|
|
3037
|
-
* The type of calculation to use on the shipping rate.
|
|
3038
|
-
*/
|
|
3039
|
-
type?: 'fixed_amount';
|
|
3040
|
-
}
|
|
3041
|
-
|
|
3042
|
-
namespace ShippingRateData {
|
|
3043
|
-
interface DeliveryEstimate {
|
|
3044
|
-
/**
|
|
3045
|
-
* The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
|
3046
|
-
*/
|
|
3047
|
-
maximum?: DeliveryEstimate.Maximum;
|
|
3048
|
-
|
|
3049
|
-
/**
|
|
3050
|
-
* The lower bound of the estimated range. If empty, represents no lower bound.
|
|
3051
|
-
*/
|
|
3052
|
-
minimum?: DeliveryEstimate.Minimum;
|
|
3053
|
-
}
|
|
3054
|
-
|
|
3055
|
-
namespace DeliveryEstimate {
|
|
3056
|
-
interface Maximum {
|
|
3057
|
-
/**
|
|
3058
|
-
* A unit of time.
|
|
3059
|
-
*/
|
|
3060
|
-
unit: Maximum.Unit;
|
|
3061
|
-
|
|
3062
|
-
/**
|
|
3063
|
-
* Must be greater than 0.
|
|
3064
|
-
*/
|
|
3065
|
-
value: number;
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
namespace Maximum {
|
|
3069
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
interface Minimum {
|
|
3073
|
-
/**
|
|
3074
|
-
* A unit of time.
|
|
3075
|
-
*/
|
|
3076
|
-
unit: Minimum.Unit;
|
|
3077
|
-
|
|
3078
|
-
/**
|
|
3079
|
-
* Must be greater than 0.
|
|
3080
|
-
*/
|
|
3081
|
-
value: number;
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
namespace Minimum {
|
|
3085
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
interface FixedAmount {
|
|
3090
|
-
/**
|
|
3091
|
-
* A non-negative integer in cents representing how much to charge.
|
|
3092
|
-
*/
|
|
3093
|
-
amount: number;
|
|
3094
|
-
|
|
3095
|
-
/**
|
|
3096
|
-
* 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).
|
|
3097
|
-
*/
|
|
3098
|
-
currency: string;
|
|
3099
|
-
|
|
3100
|
-
/**
|
|
3101
|
-
* Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
3102
|
-
*/
|
|
3103
|
-
currency_options?: {
|
|
3104
|
-
[key: string]: FixedAmount.CurrencyOptions;
|
|
3105
|
-
};
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
|
-
namespace FixedAmount {
|
|
3109
|
-
interface CurrencyOptions {
|
|
3110
|
-
/**
|
|
3111
|
-
* A non-negative integer in cents representing how much to charge.
|
|
3112
|
-
*/
|
|
3113
|
-
amount: number;
|
|
3114
|
-
|
|
3115
|
-
/**
|
|
3116
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
3117
|
-
*/
|
|
3118
|
-
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
3119
|
-
}
|
|
3120
|
-
|
|
3121
|
-
namespace CurrencyOptions {
|
|
3122
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3127
|
-
}
|
|
3128
|
-
}
|
|
3129
2689
|
}
|
|
3130
2690
|
|
|
3131
2691
|
interface SessionListParams extends PaginationParams {
|