stripe 17.6.0-beta.2 → 17.6.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 +124 -1035
- package/README.md +0 -1
- package/VERSION +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/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 +0 -45
- package/types/AccountSessionsResource.d.ts +0 -222
- package/types/Accounts.d.ts +1 -190
- package/types/AccountsResource.d.ts +0 -520
- package/types/Cards.d.ts +0 -5
- package/types/Charges.d.ts +0 -138
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +4 -340
- package/types/Checkout/SessionsResource.d.ts +5 -445
- package/types/ConfirmationTokens.d.ts +0 -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 +0 -7
- 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/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -28
- package/types/Invoices.d.ts +2 -137
- package/types/InvoicesResource.d.ts +1882 -5567
- package/types/Issuing/Authorizations.d.ts +0 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -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 +3734 -8021
- 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 +0 -99
- package/types/PaymentMethodsResource.d.ts +0 -133
- 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 +0 -29
- 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/Terminal/Readers.d.ts +0 -310
- 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 +0 -70
- package/types/index.d.ts +0 -62
- 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 -1179
- package/types/OrdersResource.d.ts +0 -2961
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -242
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1658
- 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
|
*/
|
|
@@ -1164,11 +1152,6 @@ declare module 'stripe' {
|
|
|
1164
1152
|
*/
|
|
1165
1153
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1166
1154
|
|
|
1167
|
-
/**
|
|
1168
|
-
* contains details about the PayTo payment method options.
|
|
1169
|
-
*/
|
|
1170
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1171
|
-
|
|
1172
1155
|
/**
|
|
1173
1156
|
* contains details about the Pix payment method options.
|
|
1174
1157
|
*/
|
|
@@ -1423,11 +1406,6 @@ declare module 'stripe' {
|
|
|
1423
1406
|
*/
|
|
1424
1407
|
installments?: Card.Installments;
|
|
1425
1408
|
|
|
1426
|
-
/**
|
|
1427
|
-
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1428
|
-
*/
|
|
1429
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1430
|
-
|
|
1431
1409
|
/**
|
|
1432
1410
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1433
1411
|
*/
|
|
@@ -1484,8 +1462,6 @@ declare module 'stripe' {
|
|
|
1484
1462
|
enabled?: boolean;
|
|
1485
1463
|
}
|
|
1486
1464
|
|
|
1487
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1488
|
-
|
|
1489
1465
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1490
1466
|
|
|
1491
1467
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1866,11 +1842,6 @@ declare module 'stripe' {
|
|
|
1866
1842
|
*/
|
|
1867
1843
|
reference?: string;
|
|
1868
1844
|
|
|
1869
|
-
/**
|
|
1870
|
-
* 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.
|
|
1871
|
-
*/
|
|
1872
|
-
reference_id?: string;
|
|
1873
|
-
|
|
1874
1845
|
/**
|
|
1875
1846
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1876
1847
|
*/
|
|
@@ -1888,11 +1859,6 @@ declare module 'stripe' {
|
|
|
1888
1859
|
* 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`.
|
|
1889
1860
|
*/
|
|
1890
1861
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1891
|
-
|
|
1892
|
-
/**
|
|
1893
|
-
* 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.
|
|
1894
|
-
*/
|
|
1895
|
-
subsellers?: Array<string>;
|
|
1896
1862
|
}
|
|
1897
1863
|
|
|
1898
1864
|
namespace Paypal {
|
|
@@ -1922,92 +1888,6 @@ declare module 'stripe' {
|
|
|
1922
1888
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1923
1889
|
}
|
|
1924
1890
|
|
|
1925
|
-
interface Payto {
|
|
1926
|
-
/**
|
|
1927
|
-
* Additional fields for Mandate creation
|
|
1928
|
-
*/
|
|
1929
|
-
mandate_options?: Payto.MandateOptions;
|
|
1930
|
-
|
|
1931
|
-
/**
|
|
1932
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1933
|
-
*
|
|
1934
|
-
* 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.
|
|
1935
|
-
*
|
|
1936
|
-
* 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.
|
|
1937
|
-
*
|
|
1938
|
-
* 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).
|
|
1939
|
-
*/
|
|
1940
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
namespace Payto {
|
|
1944
|
-
interface MandateOptions {
|
|
1945
|
-
/**
|
|
1946
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1947
|
-
*/
|
|
1948
|
-
amount?: number;
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* 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.
|
|
1952
|
-
*/
|
|
1953
|
-
amount_type?: MandateOptions.AmountType;
|
|
1954
|
-
|
|
1955
|
-
/**
|
|
1956
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1957
|
-
*/
|
|
1958
|
-
end_date?: string;
|
|
1959
|
-
|
|
1960
|
-
/**
|
|
1961
|
-
* The periodicity at which payments will be collected.
|
|
1962
|
-
*/
|
|
1963
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1964
|
-
|
|
1965
|
-
/**
|
|
1966
|
-
* 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.
|
|
1967
|
-
*/
|
|
1968
|
-
payments_per_period?: number;
|
|
1969
|
-
|
|
1970
|
-
/**
|
|
1971
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1972
|
-
*/
|
|
1973
|
-
purpose?: MandateOptions.Purpose;
|
|
1974
|
-
|
|
1975
|
-
/**
|
|
1976
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1977
|
-
*/
|
|
1978
|
-
start_date?: string;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
namespace MandateOptions {
|
|
1982
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1983
|
-
|
|
1984
|
-
type PaymentSchedule =
|
|
1985
|
-
| 'adhoc'
|
|
1986
|
-
| 'annual'
|
|
1987
|
-
| 'daily'
|
|
1988
|
-
| 'fortnightly'
|
|
1989
|
-
| 'monthly'
|
|
1990
|
-
| 'quarterly'
|
|
1991
|
-
| 'semi_annual'
|
|
1992
|
-
| 'weekly';
|
|
1993
|
-
|
|
1994
|
-
type Purpose =
|
|
1995
|
-
| 'dependant_support'
|
|
1996
|
-
| 'government'
|
|
1997
|
-
| 'loan'
|
|
1998
|
-
| 'mortgage'
|
|
1999
|
-
| 'other'
|
|
2000
|
-
| 'pension'
|
|
2001
|
-
| 'personal'
|
|
2002
|
-
| 'retail'
|
|
2003
|
-
| 'salary'
|
|
2004
|
-
| 'tax'
|
|
2005
|
-
| 'utility';
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
1891
|
interface Pix {
|
|
2012
1892
|
/**
|
|
2013
1893
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2131,11 +2011,7 @@ declare module 'stripe' {
|
|
|
2131
2011
|
| 'payment_method'
|
|
2132
2012
|
| 'transactions';
|
|
2133
2013
|
|
|
2134
|
-
type Prefetch =
|
|
2135
|
-
| 'balances'
|
|
2136
|
-
| 'inferred_balances'
|
|
2137
|
-
| 'ownership'
|
|
2138
|
-
| 'transactions';
|
|
2014
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2139
2015
|
}
|
|
2140
2016
|
|
|
2141
2017
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2189,7 +2065,6 @@ declare module 'stripe' {
|
|
|
2189
2065
|
| 'eps'
|
|
2190
2066
|
| 'fpx'
|
|
2191
2067
|
| 'giropay'
|
|
2192
|
-
| 'gopay'
|
|
2193
2068
|
| 'grabpay'
|
|
2194
2069
|
| 'ideal'
|
|
2195
2070
|
| 'kakao_pay'
|
|
@@ -2197,7 +2072,6 @@ declare module 'stripe' {
|
|
|
2197
2072
|
| 'konbini'
|
|
2198
2073
|
| 'kr_card'
|
|
2199
2074
|
| 'link'
|
|
2200
|
-
| 'mb_way'
|
|
2201
2075
|
| 'mobilepay'
|
|
2202
2076
|
| 'multibanco'
|
|
2203
2077
|
| 'naver_pay'
|
|
@@ -2207,15 +2081,11 @@ declare module 'stripe' {
|
|
|
2207
2081
|
| 'payco'
|
|
2208
2082
|
| 'paynow'
|
|
2209
2083
|
| 'paypal'
|
|
2210
|
-
| 'payto'
|
|
2211
2084
|
| 'pix'
|
|
2212
2085
|
| 'promptpay'
|
|
2213
|
-
| 'qris'
|
|
2214
|
-
| 'rechnung'
|
|
2215
2086
|
| 'revolut_pay'
|
|
2216
2087
|
| 'samsung_pay'
|
|
2217
2088
|
| 'sepa_debit'
|
|
2218
|
-
| 'shopeepay'
|
|
2219
2089
|
| 'sofort'
|
|
2220
2090
|
| 'swish'
|
|
2221
2091
|
| 'twint'
|
|
@@ -2223,41 +2093,6 @@ declare module 'stripe' {
|
|
|
2223
2093
|
| 'wechat_pay'
|
|
2224
2094
|
| 'zip';
|
|
2225
2095
|
|
|
2226
|
-
interface Permissions {
|
|
2227
|
-
/**
|
|
2228
|
-
* Permissions for updating the Checkout Session.
|
|
2229
|
-
*/
|
|
2230
|
-
update?: Permissions.Update;
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
namespace Permissions {
|
|
2234
|
-
interface Update {
|
|
2235
|
-
/**
|
|
2236
|
-
* Determines which entity is allowed to update the line items.
|
|
2237
|
-
*
|
|
2238
|
-
* 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.
|
|
2239
|
-
*
|
|
2240
|
-
* 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.
|
|
2241
|
-
*/
|
|
2242
|
-
line_items?: Update.LineItems;
|
|
2243
|
-
|
|
2244
|
-
/**
|
|
2245
|
-
* Determines which entity is allowed to update the shipping details.
|
|
2246
|
-
*
|
|
2247
|
-
* 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.
|
|
2248
|
-
*
|
|
2249
|
-
* 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.
|
|
2250
|
-
*/
|
|
2251
|
-
shipping_details?: Update.ShippingDetails;
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
namespace Update {
|
|
2255
|
-
type LineItems = 'client_only' | 'server_only';
|
|
2256
|
-
|
|
2257
|
-
type ShippingDetails = 'client_only' | 'server_only';
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
2096
|
interface PhoneNumberCollection {
|
|
2262
2097
|
/**
|
|
2263
2098
|
* Set to `true` to enable phone number collection.
|
|
@@ -2842,7 +2677,7 @@ declare module 'stripe' {
|
|
|
2842
2677
|
type Required = 'if_supported' | 'never';
|
|
2843
2678
|
}
|
|
2844
2679
|
|
|
2845
|
-
type UiMode = '
|
|
2680
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2846
2681
|
}
|
|
2847
2682
|
|
|
2848
2683
|
interface SessionRetrieveParams {
|
|
@@ -2853,290 +2688,15 @@ declare module 'stripe' {
|
|
|
2853
2688
|
}
|
|
2854
2689
|
|
|
2855
2690
|
interface SessionUpdateParams {
|
|
2856
|
-
/**
|
|
2857
|
-
* Information about the customer collected within the Checkout Session.
|
|
2858
|
-
*/
|
|
2859
|
-
collected_information?: SessionUpdateParams.CollectedInformation;
|
|
2860
|
-
|
|
2861
2691
|
/**
|
|
2862
2692
|
* Specifies which fields in the response should be expanded.
|
|
2863
2693
|
*/
|
|
2864
2694
|
expand?: Array<string>;
|
|
2865
2695
|
|
|
2866
|
-
/**
|
|
2867
|
-
* A list of items the customer is purchasing.
|
|
2868
|
-
*
|
|
2869
|
-
* When updating line items, you must retransmit the entire array of line items.
|
|
2870
|
-
*
|
|
2871
|
-
* To retain an existing line item, specify its `id`.
|
|
2872
|
-
*
|
|
2873
|
-
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
2874
|
-
*
|
|
2875
|
-
* To add a new line item, specify a `price` and `quantity`. We don't currently support recurring prices.
|
|
2876
|
-
*
|
|
2877
|
-
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
2878
|
-
*
|
|
2879
|
-
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
2880
|
-
*/
|
|
2881
|
-
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
2882
|
-
|
|
2883
2696
|
/**
|
|
2884
2697
|
* 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`.
|
|
2885
2698
|
*/
|
|
2886
2699
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2887
|
-
|
|
2888
|
-
/**
|
|
2889
|
-
* The shipping rate options to apply to this Session. Up to a maximum of 5.
|
|
2890
|
-
*/
|
|
2891
|
-
shipping_options?: Stripe.Emptyable<
|
|
2892
|
-
Array<SessionUpdateParams.ShippingOption>
|
|
2893
|
-
>;
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
namespace SessionUpdateParams {
|
|
2897
|
-
interface CollectedInformation {
|
|
2898
|
-
/**
|
|
2899
|
-
* The shipping details to apply to this Session.
|
|
2900
|
-
*/
|
|
2901
|
-
shipping_details?: CollectedInformation.ShippingDetails;
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
namespace CollectedInformation {
|
|
2905
|
-
interface ShippingDetails {
|
|
2906
|
-
/**
|
|
2907
|
-
* The address of the customer
|
|
2908
|
-
*/
|
|
2909
|
-
address: ShippingDetails.Address;
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
* The name of customer
|
|
2913
|
-
*/
|
|
2914
|
-
name: string;
|
|
2915
|
-
}
|
|
2916
|
-
|
|
2917
|
-
namespace ShippingDetails {
|
|
2918
|
-
interface Address {
|
|
2919
|
-
/**
|
|
2920
|
-
* City, district, suburb, town, or village.
|
|
2921
|
-
*/
|
|
2922
|
-
city?: string;
|
|
2923
|
-
|
|
2924
|
-
/**
|
|
2925
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2926
|
-
*/
|
|
2927
|
-
country: string;
|
|
2928
|
-
|
|
2929
|
-
/**
|
|
2930
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2931
|
-
*/
|
|
2932
|
-
line1: string;
|
|
2933
|
-
|
|
2934
|
-
/**
|
|
2935
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2936
|
-
*/
|
|
2937
|
-
line2?: string;
|
|
2938
|
-
|
|
2939
|
-
/**
|
|
2940
|
-
* ZIP or postal code.
|
|
2941
|
-
*/
|
|
2942
|
-
postal_code?: string;
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* State, county, province, or region.
|
|
2946
|
-
*/
|
|
2947
|
-
state?: string;
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
|
-
}
|
|
2951
|
-
|
|
2952
|
-
interface LineItem {
|
|
2953
|
-
/**
|
|
2954
|
-
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
2955
|
-
*/
|
|
2956
|
-
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
2957
|
-
|
|
2958
|
-
/**
|
|
2959
|
-
* ID of an existing line item.
|
|
2960
|
-
*/
|
|
2961
|
-
id?: string;
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* 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`.
|
|
2965
|
-
*/
|
|
2966
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2967
|
-
|
|
2968
|
-
/**
|
|
2969
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices).
|
|
2970
|
-
*/
|
|
2971
|
-
price?: string;
|
|
2972
|
-
|
|
2973
|
-
/**
|
|
2974
|
-
* The quantity of the line item being purchased.
|
|
2975
|
-
*/
|
|
2976
|
-
quantity?: number;
|
|
2977
|
-
|
|
2978
|
-
/**
|
|
2979
|
-
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
2980
|
-
*/
|
|
2981
|
-
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
namespace LineItem {
|
|
2985
|
-
interface AdjustableQuantity {
|
|
2986
|
-
/**
|
|
2987
|
-
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
2988
|
-
*/
|
|
2989
|
-
enabled: boolean;
|
|
2990
|
-
|
|
2991
|
-
/**
|
|
2992
|
-
* 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.
|
|
2993
|
-
*/
|
|
2994
|
-
maximum?: number;
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
2998
|
-
*/
|
|
2999
|
-
minimum?: number;
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
|
|
3003
|
-
interface ShippingOption {
|
|
3004
|
-
/**
|
|
3005
|
-
* The ID of the Shipping Rate to use for this shipping option.
|
|
3006
|
-
*/
|
|
3007
|
-
shipping_rate?: string;
|
|
3008
|
-
|
|
3009
|
-
/**
|
|
3010
|
-
* Parameters to be passed to Shipping Rate creation for this shipping option.
|
|
3011
|
-
*/
|
|
3012
|
-
shipping_rate_data?: ShippingOption.ShippingRateData;
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
namespace ShippingOption {
|
|
3016
|
-
interface ShippingRateData {
|
|
3017
|
-
/**
|
|
3018
|
-
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
3019
|
-
*/
|
|
3020
|
-
delivery_estimate?: ShippingRateData.DeliveryEstimate;
|
|
3021
|
-
|
|
3022
|
-
/**
|
|
3023
|
-
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
3024
|
-
*/
|
|
3025
|
-
display_name: string;
|
|
3026
|
-
|
|
3027
|
-
/**
|
|
3028
|
-
* Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
3029
|
-
*/
|
|
3030
|
-
fixed_amount?: ShippingRateData.FixedAmount;
|
|
3031
|
-
|
|
3032
|
-
/**
|
|
3033
|
-
* 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`.
|
|
3034
|
-
*/
|
|
3035
|
-
metadata?: Stripe.MetadataParam;
|
|
3036
|
-
|
|
3037
|
-
/**
|
|
3038
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
3039
|
-
*/
|
|
3040
|
-
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
3041
|
-
|
|
3042
|
-
/**
|
|
3043
|
-
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
3044
|
-
*/
|
|
3045
|
-
tax_code?: string;
|
|
3046
|
-
|
|
3047
|
-
/**
|
|
3048
|
-
* The type of calculation to use on the shipping rate.
|
|
3049
|
-
*/
|
|
3050
|
-
type?: 'fixed_amount';
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
namespace ShippingRateData {
|
|
3054
|
-
interface DeliveryEstimate {
|
|
3055
|
-
/**
|
|
3056
|
-
* The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
|
3057
|
-
*/
|
|
3058
|
-
maximum?: DeliveryEstimate.Maximum;
|
|
3059
|
-
|
|
3060
|
-
/**
|
|
3061
|
-
* The lower bound of the estimated range. If empty, represents no lower bound.
|
|
3062
|
-
*/
|
|
3063
|
-
minimum?: DeliveryEstimate.Minimum;
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
namespace DeliveryEstimate {
|
|
3067
|
-
interface Maximum {
|
|
3068
|
-
/**
|
|
3069
|
-
* A unit of time.
|
|
3070
|
-
*/
|
|
3071
|
-
unit: Maximum.Unit;
|
|
3072
|
-
|
|
3073
|
-
/**
|
|
3074
|
-
* Must be greater than 0.
|
|
3075
|
-
*/
|
|
3076
|
-
value: number;
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
-
namespace Maximum {
|
|
3080
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
3081
|
-
}
|
|
3082
|
-
|
|
3083
|
-
interface Minimum {
|
|
3084
|
-
/**
|
|
3085
|
-
* A unit of time.
|
|
3086
|
-
*/
|
|
3087
|
-
unit: Minimum.Unit;
|
|
3088
|
-
|
|
3089
|
-
/**
|
|
3090
|
-
* Must be greater than 0.
|
|
3091
|
-
*/
|
|
3092
|
-
value: number;
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
|
-
namespace Minimum {
|
|
3096
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
3097
|
-
}
|
|
3098
|
-
}
|
|
3099
|
-
|
|
3100
|
-
interface FixedAmount {
|
|
3101
|
-
/**
|
|
3102
|
-
* A non-negative integer in cents representing how much to charge.
|
|
3103
|
-
*/
|
|
3104
|
-
amount: number;
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* 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).
|
|
3108
|
-
*/
|
|
3109
|
-
currency: string;
|
|
3110
|
-
|
|
3111
|
-
/**
|
|
3112
|
-
* 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).
|
|
3113
|
-
*/
|
|
3114
|
-
currency_options?: {
|
|
3115
|
-
[key: string]: FixedAmount.CurrencyOptions;
|
|
3116
|
-
};
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
namespace FixedAmount {
|
|
3120
|
-
interface CurrencyOptions {
|
|
3121
|
-
/**
|
|
3122
|
-
* A non-negative integer in cents representing how much to charge.
|
|
3123
|
-
*/
|
|
3124
|
-
amount: number;
|
|
3125
|
-
|
|
3126
|
-
/**
|
|
3127
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
3128
|
-
*/
|
|
3129
|
-
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
3130
|
-
}
|
|
3131
|
-
|
|
3132
|
-
namespace CurrencyOptions {
|
|
3133
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
2700
|
}
|
|
3141
2701
|
|
|
3142
2702
|
interface SessionListParams extends PaginationParams {
|