stripe 17.2.0-beta.2 → 17.2.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 +112 -900
- package/README.md +4 -4
- 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 -4
- 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/TestHelpers/Issuing/Cards.js +0 -4
- package/cjs/resources/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- 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 -4
- 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/TestHelpers/Issuing/Cards.js +0 -4
- package/esm/resources/V2/Core/Events.js +50 -7
- package/esm/resources.js +0 -29
- 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 -75
- package/types/AccountSessionsResource.d.ts +5 -354
- package/types/Accounts.d.ts +3 -127
- package/types/AccountsResource.d.ts +2 -296
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +0 -2
- package/types/Charges.d.ts +0 -152
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +5 -309
- package/types/Checkout/SessionsResource.d.ts +5 -356
- package/types/ConfirmationTokens.d.ts +0 -137
- 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 +2 -22
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +2 -564
- package/types/Events.d.ts +0 -91
- 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 +0 -5
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -31
- package/types/Invoices.d.ts +3 -134
- package/types/InvoicesResource.d.ts +1836 -5515
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -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 -7
- package/types/Mandates.d.ts +0 -85
- package/types/PaymentIntents.d.ts +1 -643
- package/types/PaymentIntentsResource.d.ts +3463 -7739
- package/types/PaymentLinks.d.ts +0 -3
- package/types/PaymentLinksResource.d.ts +0 -6
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
- package/types/PaymentMethods.d.ts +0 -137
- package/types/PaymentMethodsResource.d.ts +0 -158
- package/types/Persons.d.ts +1 -1
- 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/SetupAttempts.d.ts +0 -19
- package/types/SetupIntents.d.ts +1 -112
- package/types/SetupIntentsResource.d.ts +3 -669
- package/types/Sources.d.ts +0 -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 -82
- package/types/SubscriptionsResource.d.ts +3 -348
- package/types/Tax/CalculationLineItems.d.ts +0 -1
- package/types/Tax/Calculations.d.ts +1 -33
- package/types/Tax/CalculationsResource.d.ts +1 -7
- package/types/Tax/Registrations.d.ts +0 -82
- package/types/Tax/RegistrationsResource.d.ts +0 -109
- package/types/Tax/Transactions.d.ts +1 -8
- package/types/TaxIds.d.ts +1 -7
- package/types/TaxIdsResource.d.ts +1 -7
- package/types/TaxRates.d.ts +0 -25
- package/types/TaxRatesResource.d.ts +0 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
- package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- 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/UsageRecordSummaries.d.ts +1 -1
- package/types/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -66
- package/types/index.d.ts +0 -53
- 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/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- 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/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- 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 -138
- 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/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 -1154
- package/types/OrdersResource.d.ts +0 -2911
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1596
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -25,7 +25,7 @@ declare module 'stripe' {
|
|
|
25
25
|
billing_address_collection?: SessionCreateParams.BillingAddressCollection;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* 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
|
|
28
|
+
* 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`.
|
|
29
29
|
*/
|
|
30
30
|
cancel_url?: string;
|
|
31
31
|
|
|
@@ -187,13 +187,6 @@ declare module 'stripe' {
|
|
|
187
187
|
*/
|
|
188
188
|
payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
|
|
189
189
|
|
|
190
|
-
/**
|
|
191
|
-
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
192
|
-
*
|
|
193
|
-
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
|
|
194
|
-
*/
|
|
195
|
-
permissions?: SessionCreateParams.Permissions;
|
|
196
|
-
|
|
197
190
|
/**
|
|
198
191
|
* Controls phone number collection settings for the session.
|
|
199
192
|
*
|
|
@@ -209,7 +202,7 @@ declare module 'stripe' {
|
|
|
209
202
|
|
|
210
203
|
/**
|
|
211
204
|
* The URL to redirect your customer back to after they authenticate or cancel their payment on the
|
|
212
|
-
* payment method's app or site. This parameter is required if
|
|
205
|
+
* payment method's app or site. This parameter is required if ui_mode is `embedded`
|
|
213
206
|
* and redirect-based payment methods are enabled on the session.
|
|
214
207
|
*/
|
|
215
208
|
return_url?: string;
|
|
@@ -249,7 +242,7 @@ declare module 'stripe' {
|
|
|
249
242
|
/**
|
|
250
243
|
* The URL to which Stripe should send customers when payment or setup
|
|
251
244
|
* is complete.
|
|
252
|
-
* This parameter is not allowed if ui_mode is `embedded
|
|
245
|
+
* This parameter is not allowed if ui_mode is `embedded`. If you'd like to use
|
|
253
246
|
* information from the successful Checkout Session on your page, read the
|
|
254
247
|
* guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
|
|
255
248
|
*/
|
|
@@ -1120,11 +1113,6 @@ declare module 'stripe' {
|
|
|
1120
1113
|
*/
|
|
1121
1114
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1122
1115
|
|
|
1123
|
-
/**
|
|
1124
|
-
* contains details about the PayTo payment method options.
|
|
1125
|
-
*/
|
|
1126
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1127
|
-
|
|
1128
1116
|
/**
|
|
1129
1117
|
* contains details about the Pix payment method options.
|
|
1130
1118
|
*/
|
|
@@ -1695,11 +1683,6 @@ declare module 'stripe' {
|
|
|
1695
1683
|
*/
|
|
1696
1684
|
reference?: string;
|
|
1697
1685
|
|
|
1698
|
-
/**
|
|
1699
|
-
* 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.
|
|
1700
|
-
*/
|
|
1701
|
-
reference_id?: string;
|
|
1702
|
-
|
|
1703
1686
|
/**
|
|
1704
1687
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1705
1688
|
*/
|
|
@@ -1717,11 +1700,6 @@ declare module 'stripe' {
|
|
|
1717
1700
|
* 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`.
|
|
1718
1701
|
*/
|
|
1719
1702
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1720
|
-
|
|
1721
|
-
/**
|
|
1722
|
-
* 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.
|
|
1723
|
-
*/
|
|
1724
|
-
subsellers?: Array<string>;
|
|
1725
1703
|
}
|
|
1726
1704
|
|
|
1727
1705
|
namespace Paypal {
|
|
@@ -1751,92 +1729,6 @@ declare module 'stripe' {
|
|
|
1751
1729
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1752
1730
|
}
|
|
1753
1731
|
|
|
1754
|
-
interface Payto {
|
|
1755
|
-
/**
|
|
1756
|
-
* Additional fields for Mandate creation
|
|
1757
|
-
*/
|
|
1758
|
-
mandate_options?: Payto.MandateOptions;
|
|
1759
|
-
|
|
1760
|
-
/**
|
|
1761
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1762
|
-
*
|
|
1763
|
-
* 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.
|
|
1764
|
-
*
|
|
1765
|
-
* 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.
|
|
1766
|
-
*
|
|
1767
|
-
* 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).
|
|
1768
|
-
*/
|
|
1769
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
namespace Payto {
|
|
1773
|
-
interface MandateOptions {
|
|
1774
|
-
/**
|
|
1775
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1776
|
-
*/
|
|
1777
|
-
amount?: number;
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* 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.
|
|
1781
|
-
*/
|
|
1782
|
-
amount_type?: MandateOptions.AmountType;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1786
|
-
*/
|
|
1787
|
-
end_date?: string;
|
|
1788
|
-
|
|
1789
|
-
/**
|
|
1790
|
-
* The periodicity at which payments will be collected.
|
|
1791
|
-
*/
|
|
1792
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1793
|
-
|
|
1794
|
-
/**
|
|
1795
|
-
* 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.
|
|
1796
|
-
*/
|
|
1797
|
-
payments_per_period?: number;
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1801
|
-
*/
|
|
1802
|
-
purpose?: MandateOptions.Purpose;
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1806
|
-
*/
|
|
1807
|
-
start_date?: string;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
namespace MandateOptions {
|
|
1811
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1812
|
-
|
|
1813
|
-
type PaymentSchedule =
|
|
1814
|
-
| 'adhoc'
|
|
1815
|
-
| 'annual'
|
|
1816
|
-
| 'daily'
|
|
1817
|
-
| 'fortnightly'
|
|
1818
|
-
| 'monthly'
|
|
1819
|
-
| 'quarterly'
|
|
1820
|
-
| 'semi_annual'
|
|
1821
|
-
| 'weekly';
|
|
1822
|
-
|
|
1823
|
-
type Purpose =
|
|
1824
|
-
| 'dependant_support'
|
|
1825
|
-
| 'government'
|
|
1826
|
-
| 'loan'
|
|
1827
|
-
| 'mortgage'
|
|
1828
|
-
| 'other'
|
|
1829
|
-
| 'pension'
|
|
1830
|
-
| 'personal'
|
|
1831
|
-
| 'retail'
|
|
1832
|
-
| 'salary'
|
|
1833
|
-
| 'tax'
|
|
1834
|
-
| 'utility';
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
1732
|
interface Pix {
|
|
1841
1733
|
/**
|
|
1842
1734
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -1941,11 +1833,7 @@ declare module 'stripe' {
|
|
|
1941
1833
|
| 'payment_method'
|
|
1942
1834
|
| 'transactions';
|
|
1943
1835
|
|
|
1944
|
-
type Prefetch =
|
|
1945
|
-
| 'balances'
|
|
1946
|
-
| 'inferred_balances'
|
|
1947
|
-
| 'ownership'
|
|
1948
|
-
| 'transactions';
|
|
1836
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1949
1837
|
}
|
|
1950
1838
|
|
|
1951
1839
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2000,26 +1888,18 @@ declare module 'stripe' {
|
|
|
2000
1888
|
| 'giropay'
|
|
2001
1889
|
| 'grabpay'
|
|
2002
1890
|
| 'ideal'
|
|
2003
|
-
| 'kakao_pay'
|
|
2004
1891
|
| 'klarna'
|
|
2005
1892
|
| 'konbini'
|
|
2006
|
-
| 'kr_card'
|
|
2007
1893
|
| 'link'
|
|
2008
|
-
| 'mb_way'
|
|
2009
1894
|
| 'mobilepay'
|
|
2010
1895
|
| 'multibanco'
|
|
2011
|
-
| 'naver_pay'
|
|
2012
1896
|
| 'oxxo'
|
|
2013
1897
|
| 'p24'
|
|
2014
|
-
| 'payco'
|
|
2015
1898
|
| 'paynow'
|
|
2016
1899
|
| 'paypal'
|
|
2017
|
-
| 'payto'
|
|
2018
1900
|
| 'pix'
|
|
2019
1901
|
| 'promptpay'
|
|
2020
|
-
| 'rechnung'
|
|
2021
1902
|
| 'revolut_pay'
|
|
2022
|
-
| 'samsung_pay'
|
|
2023
1903
|
| 'sepa_debit'
|
|
2024
1904
|
| 'sofort'
|
|
2025
1905
|
| 'swish'
|
|
@@ -2028,30 +1908,6 @@ declare module 'stripe' {
|
|
|
2028
1908
|
| 'wechat_pay'
|
|
2029
1909
|
| 'zip';
|
|
2030
1910
|
|
|
2031
|
-
interface Permissions {
|
|
2032
|
-
/**
|
|
2033
|
-
* Permissions for updating the Checkout Session.
|
|
2034
|
-
*/
|
|
2035
|
-
update?: Permissions.Update;
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
namespace Permissions {
|
|
2039
|
-
interface Update {
|
|
2040
|
-
/**
|
|
2041
|
-
* Determines which entity is allowed to update the shipping details.
|
|
2042
|
-
*
|
|
2043
|
-
* 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.
|
|
2044
|
-
*
|
|
2045
|
-
* 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.
|
|
2046
|
-
*/
|
|
2047
|
-
shipping_details?: Update.ShippingDetails;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
namespace Update {
|
|
2051
|
-
type ShippingDetails = 'client_only' | 'server_only';
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
1911
|
interface PhoneNumberCollection {
|
|
2056
1912
|
/**
|
|
2057
1913
|
* Set to `true` to enable phone number collection.
|
|
@@ -2633,7 +2489,7 @@ declare module 'stripe' {
|
|
|
2633
2489
|
type Required = 'if_supported' | 'never';
|
|
2634
2490
|
}
|
|
2635
2491
|
|
|
2636
|
-
type UiMode = '
|
|
2492
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2637
2493
|
}
|
|
2638
2494
|
|
|
2639
2495
|
interface SessionRetrieveParams {
|
|
@@ -2644,11 +2500,6 @@ declare module 'stripe' {
|
|
|
2644
2500
|
}
|
|
2645
2501
|
|
|
2646
2502
|
interface SessionUpdateParams {
|
|
2647
|
-
/**
|
|
2648
|
-
* Information about the customer collected within the Checkout Session.
|
|
2649
|
-
*/
|
|
2650
|
-
collected_information?: SessionUpdateParams.CollectedInformation;
|
|
2651
|
-
|
|
2652
2503
|
/**
|
|
2653
2504
|
* Specifies which fields in the response should be expanded.
|
|
2654
2505
|
*/
|
|
@@ -2658,208 +2509,6 @@ declare module 'stripe' {
|
|
|
2658
2509
|
* 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`.
|
|
2659
2510
|
*/
|
|
2660
2511
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2661
|
-
|
|
2662
|
-
/**
|
|
2663
|
-
* The shipping rate options to apply to this Session. Up to a maximum of 5.
|
|
2664
|
-
*/
|
|
2665
|
-
shipping_options?: Stripe.Emptyable<
|
|
2666
|
-
Array<SessionUpdateParams.ShippingOption>
|
|
2667
|
-
>;
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
namespace SessionUpdateParams {
|
|
2671
|
-
interface CollectedInformation {
|
|
2672
|
-
/**
|
|
2673
|
-
* The shipping details to apply to this Session.
|
|
2674
|
-
*/
|
|
2675
|
-
shipping_details?: CollectedInformation.ShippingDetails;
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
namespace CollectedInformation {
|
|
2679
|
-
interface ShippingDetails {
|
|
2680
|
-
/**
|
|
2681
|
-
* The address of the customer
|
|
2682
|
-
*/
|
|
2683
|
-
address: ShippingDetails.Address;
|
|
2684
|
-
|
|
2685
|
-
/**
|
|
2686
|
-
* The name of customer
|
|
2687
|
-
*/
|
|
2688
|
-
name: string;
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
namespace ShippingDetails {
|
|
2692
|
-
interface Address {
|
|
2693
|
-
/**
|
|
2694
|
-
* City, district, suburb, town, or village.
|
|
2695
|
-
*/
|
|
2696
|
-
city?: string;
|
|
2697
|
-
|
|
2698
|
-
/**
|
|
2699
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2700
|
-
*/
|
|
2701
|
-
country: string;
|
|
2702
|
-
|
|
2703
|
-
/**
|
|
2704
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
2705
|
-
*/
|
|
2706
|
-
line1: string;
|
|
2707
|
-
|
|
2708
|
-
/**
|
|
2709
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
2710
|
-
*/
|
|
2711
|
-
line2?: string;
|
|
2712
|
-
|
|
2713
|
-
/**
|
|
2714
|
-
* ZIP or postal code.
|
|
2715
|
-
*/
|
|
2716
|
-
postal_code?: string;
|
|
2717
|
-
|
|
2718
|
-
/**
|
|
2719
|
-
* State, county, province, or region.
|
|
2720
|
-
*/
|
|
2721
|
-
state?: string;
|
|
2722
|
-
}
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
interface ShippingOption {
|
|
2727
|
-
/**
|
|
2728
|
-
* The ID of the Shipping Rate to use for this shipping option.
|
|
2729
|
-
*/
|
|
2730
|
-
shipping_rate?: string;
|
|
2731
|
-
|
|
2732
|
-
/**
|
|
2733
|
-
* Parameters to be passed to Shipping Rate creation for this shipping option.
|
|
2734
|
-
*/
|
|
2735
|
-
shipping_rate_data?: ShippingOption.ShippingRateData;
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
namespace ShippingOption {
|
|
2739
|
-
interface ShippingRateData {
|
|
2740
|
-
/**
|
|
2741
|
-
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
2742
|
-
*/
|
|
2743
|
-
delivery_estimate?: ShippingRateData.DeliveryEstimate;
|
|
2744
|
-
|
|
2745
|
-
/**
|
|
2746
|
-
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
2747
|
-
*/
|
|
2748
|
-
display_name: string;
|
|
2749
|
-
|
|
2750
|
-
/**
|
|
2751
|
-
* Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
2752
|
-
*/
|
|
2753
|
-
fixed_amount?: ShippingRateData.FixedAmount;
|
|
2754
|
-
|
|
2755
|
-
/**
|
|
2756
|
-
* 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`.
|
|
2757
|
-
*/
|
|
2758
|
-
metadata?: Stripe.MetadataParam;
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
2762
|
-
*/
|
|
2763
|
-
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
2764
|
-
|
|
2765
|
-
/**
|
|
2766
|
-
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
|
2767
|
-
*/
|
|
2768
|
-
tax_code?: string;
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* The type of calculation to use on the shipping rate.
|
|
2772
|
-
*/
|
|
2773
|
-
type?: 'fixed_amount';
|
|
2774
|
-
}
|
|
2775
|
-
|
|
2776
|
-
namespace ShippingRateData {
|
|
2777
|
-
interface DeliveryEstimate {
|
|
2778
|
-
/**
|
|
2779
|
-
* The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
|
2780
|
-
*/
|
|
2781
|
-
maximum?: DeliveryEstimate.Maximum;
|
|
2782
|
-
|
|
2783
|
-
/**
|
|
2784
|
-
* The lower bound of the estimated range. If empty, represents no lower bound.
|
|
2785
|
-
*/
|
|
2786
|
-
minimum?: DeliveryEstimate.Minimum;
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
|
-
namespace DeliveryEstimate {
|
|
2790
|
-
interface Maximum {
|
|
2791
|
-
/**
|
|
2792
|
-
* A unit of time.
|
|
2793
|
-
*/
|
|
2794
|
-
unit: Maximum.Unit;
|
|
2795
|
-
|
|
2796
|
-
/**
|
|
2797
|
-
* Must be greater than 0.
|
|
2798
|
-
*/
|
|
2799
|
-
value: number;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
namespace Maximum {
|
|
2803
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
interface Minimum {
|
|
2807
|
-
/**
|
|
2808
|
-
* A unit of time.
|
|
2809
|
-
*/
|
|
2810
|
-
unit: Minimum.Unit;
|
|
2811
|
-
|
|
2812
|
-
/**
|
|
2813
|
-
* Must be greater than 0.
|
|
2814
|
-
*/
|
|
2815
|
-
value: number;
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
|
-
namespace Minimum {
|
|
2819
|
-
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
interface FixedAmount {
|
|
2824
|
-
/**
|
|
2825
|
-
* A non-negative integer in cents representing how much to charge.
|
|
2826
|
-
*/
|
|
2827
|
-
amount: number;
|
|
2828
|
-
|
|
2829
|
-
/**
|
|
2830
|
-
* 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).
|
|
2831
|
-
*/
|
|
2832
|
-
currency: string;
|
|
2833
|
-
|
|
2834
|
-
/**
|
|
2835
|
-
* 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).
|
|
2836
|
-
*/
|
|
2837
|
-
currency_options?: {
|
|
2838
|
-
[key: string]: FixedAmount.CurrencyOptions;
|
|
2839
|
-
};
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
namespace FixedAmount {
|
|
2843
|
-
interface CurrencyOptions {
|
|
2844
|
-
/**
|
|
2845
|
-
* A non-negative integer in cents representing how much to charge.
|
|
2846
|
-
*/
|
|
2847
|
-
amount: number;
|
|
2848
|
-
|
|
2849
|
-
/**
|
|
2850
|
-
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
2851
|
-
*/
|
|
2852
|
-
tax_behavior?: CurrencyOptions.TaxBehavior;
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
|
-
namespace CurrencyOptions {
|
|
2856
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
2512
|
}
|
|
2864
2513
|
|
|
2865
2514
|
interface SessionListParams extends PaginationParams {
|
|
@@ -190,46 +190,30 @@ declare module 'stripe' {
|
|
|
190
190
|
|
|
191
191
|
interac_present?: PaymentMethodPreview.InteracPresent;
|
|
192
192
|
|
|
193
|
-
kakao_pay?: PaymentMethodPreview.KakaoPay;
|
|
194
|
-
|
|
195
193
|
klarna?: PaymentMethodPreview.Klarna;
|
|
196
194
|
|
|
197
195
|
konbini?: PaymentMethodPreview.Konbini;
|
|
198
196
|
|
|
199
|
-
kr_card?: PaymentMethodPreview.KrCard;
|
|
200
|
-
|
|
201
197
|
link?: PaymentMethodPreview.Link;
|
|
202
198
|
|
|
203
|
-
mb_way?: PaymentMethodPreview.MbWay;
|
|
204
|
-
|
|
205
199
|
mobilepay?: PaymentMethodPreview.Mobilepay;
|
|
206
200
|
|
|
207
201
|
multibanco?: PaymentMethodPreview.Multibanco;
|
|
208
202
|
|
|
209
|
-
naver_pay?: PaymentMethodPreview.NaverPay;
|
|
210
|
-
|
|
211
203
|
oxxo?: PaymentMethodPreview.Oxxo;
|
|
212
204
|
|
|
213
205
|
p24?: PaymentMethodPreview.P24;
|
|
214
206
|
|
|
215
|
-
payco?: PaymentMethodPreview.Payco;
|
|
216
|
-
|
|
217
207
|
paynow?: PaymentMethodPreview.Paynow;
|
|
218
208
|
|
|
219
209
|
paypal?: PaymentMethodPreview.Paypal;
|
|
220
210
|
|
|
221
|
-
payto?: PaymentMethodPreview.Payto;
|
|
222
|
-
|
|
223
211
|
pix?: PaymentMethodPreview.Pix;
|
|
224
212
|
|
|
225
213
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
226
214
|
|
|
227
|
-
rechnung?: PaymentMethodPreview.Rechnung;
|
|
228
|
-
|
|
229
215
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
230
216
|
|
|
231
|
-
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
|
232
|
-
|
|
233
217
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
234
218
|
|
|
235
219
|
sofort?: PaymentMethodPreview.Sofort;
|
|
@@ -1188,8 +1172,6 @@ declare module 'stripe' {
|
|
|
1188
1172
|
| 'magnetic_stripe_track2';
|
|
1189
1173
|
}
|
|
1190
1174
|
|
|
1191
|
-
interface KakaoPay {}
|
|
1192
|
-
|
|
1193
1175
|
interface Klarna {
|
|
1194
1176
|
/**
|
|
1195
1177
|
* The customer's date of birth, if provided.
|
|
@@ -1218,44 +1200,6 @@ declare module 'stripe' {
|
|
|
1218
1200
|
|
|
1219
1201
|
interface Konbini {}
|
|
1220
1202
|
|
|
1221
|
-
interface KrCard {
|
|
1222
|
-
/**
|
|
1223
|
-
* The local credit or debit card brand.
|
|
1224
|
-
*/
|
|
1225
|
-
brand: KrCard.Brand | null;
|
|
1226
|
-
|
|
1227
|
-
/**
|
|
1228
|
-
* The last four digits of the card. This may not be present for American Express cards.
|
|
1229
|
-
*/
|
|
1230
|
-
last4: string | null;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
namespace KrCard {
|
|
1234
|
-
type Brand =
|
|
1235
|
-
| 'bc'
|
|
1236
|
-
| 'citi'
|
|
1237
|
-
| 'hana'
|
|
1238
|
-
| 'hyundai'
|
|
1239
|
-
| 'jeju'
|
|
1240
|
-
| 'jeonbuk'
|
|
1241
|
-
| 'kakaobank'
|
|
1242
|
-
| 'kbank'
|
|
1243
|
-
| 'kdbbank'
|
|
1244
|
-
| 'kookmin'
|
|
1245
|
-
| 'kwangju'
|
|
1246
|
-
| 'lotte'
|
|
1247
|
-
| 'mg'
|
|
1248
|
-
| 'nh'
|
|
1249
|
-
| 'post'
|
|
1250
|
-
| 'samsung'
|
|
1251
|
-
| 'savingsbank'
|
|
1252
|
-
| 'shinhan'
|
|
1253
|
-
| 'shinhyup'
|
|
1254
|
-
| 'suhyup'
|
|
1255
|
-
| 'tossbank'
|
|
1256
|
-
| 'woori';
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
1203
|
interface Link {
|
|
1260
1204
|
/**
|
|
1261
1205
|
* Account owner's email address.
|
|
@@ -1269,23 +1213,10 @@ declare module 'stripe' {
|
|
|
1269
1213
|
persistent_token?: string;
|
|
1270
1214
|
}
|
|
1271
1215
|
|
|
1272
|
-
interface MbWay {}
|
|
1273
|
-
|
|
1274
1216
|
interface Mobilepay {}
|
|
1275
1217
|
|
|
1276
1218
|
interface Multibanco {}
|
|
1277
1219
|
|
|
1278
|
-
interface NaverPay {
|
|
1279
|
-
/**
|
|
1280
|
-
* Whether to fund this transaction with Naver Pay points or a card.
|
|
1281
|
-
*/
|
|
1282
|
-
funding: NaverPay.Funding;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
namespace NaverPay {
|
|
1286
|
-
type Funding = 'card' | 'points';
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
1220
|
interface Oxxo {}
|
|
1290
1221
|
|
|
1291
1222
|
interface P24 {
|
|
@@ -1325,16 +1256,9 @@ declare module 'stripe' {
|
|
|
1325
1256
|
| 'volkswagen_bank';
|
|
1326
1257
|
}
|
|
1327
1258
|
|
|
1328
|
-
interface Payco {}
|
|
1329
|
-
|
|
1330
1259
|
interface Paynow {}
|
|
1331
1260
|
|
|
1332
1261
|
interface Paypal {
|
|
1333
|
-
/**
|
|
1334
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1335
|
-
*/
|
|
1336
|
-
fingerprint?: string | null;
|
|
1337
|
-
|
|
1338
1262
|
/**
|
|
1339
1263
|
* Owner's email. Values are provided by PayPal directly
|
|
1340
1264
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1345,62 +1269,14 @@ declare module 'stripe' {
|
|
|
1345
1269
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1346
1270
|
*/
|
|
1347
1271
|
payer_id: string | null;
|
|
1348
|
-
|
|
1349
|
-
/**
|
|
1350
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1351
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1352
|
-
*/
|
|
1353
|
-
verified_email?: string | null;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
interface Payto {
|
|
1357
|
-
/**
|
|
1358
|
-
* Bank-State-Branch number of the bank account.
|
|
1359
|
-
*/
|
|
1360
|
-
bsb_number: string | null;
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Last four digits of the bank account number.
|
|
1364
|
-
*/
|
|
1365
|
-
last4: string | null;
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* The PayID alias for the bank account.
|
|
1369
|
-
*/
|
|
1370
|
-
pay_id: string | null;
|
|
1371
1272
|
}
|
|
1372
1273
|
|
|
1373
1274
|
interface Pix {}
|
|
1374
1275
|
|
|
1375
1276
|
interface Promptpay {}
|
|
1376
1277
|
|
|
1377
|
-
interface Rechnung {
|
|
1378
|
-
dob?: Rechnung.Dob;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
namespace Rechnung {
|
|
1382
|
-
interface Dob {
|
|
1383
|
-
/**
|
|
1384
|
-
* The day of birth, between 1 and 31.
|
|
1385
|
-
*/
|
|
1386
|
-
day: number;
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* The month of birth, between 1 and 12.
|
|
1390
|
-
*/
|
|
1391
|
-
month: number;
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* The four-digit year of birth.
|
|
1395
|
-
*/
|
|
1396
|
-
year: number;
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
1278
|
interface RevolutPay {}
|
|
1401
1279
|
|
|
1402
|
-
interface SamsungPay {}
|
|
1403
|
-
|
|
1404
1280
|
interface SepaDebit {
|
|
1405
1281
|
/**
|
|
1406
1282
|
* Bank code of bank associated with the bank account.
|
|
@@ -1479,26 +1355,18 @@ declare module 'stripe' {
|
|
|
1479
1355
|
| 'grabpay'
|
|
1480
1356
|
| 'ideal'
|
|
1481
1357
|
| 'interac_present'
|
|
1482
|
-
| 'kakao_pay'
|
|
1483
1358
|
| 'klarna'
|
|
1484
1359
|
| 'konbini'
|
|
1485
|
-
| 'kr_card'
|
|
1486
1360
|
| 'link'
|
|
1487
|
-
| 'mb_way'
|
|
1488
1361
|
| 'mobilepay'
|
|
1489
1362
|
| 'multibanco'
|
|
1490
|
-
| 'naver_pay'
|
|
1491
1363
|
| 'oxxo'
|
|
1492
1364
|
| 'p24'
|
|
1493
|
-
| 'payco'
|
|
1494
1365
|
| 'paynow'
|
|
1495
1366
|
| 'paypal'
|
|
1496
|
-
| 'payto'
|
|
1497
1367
|
| 'pix'
|
|
1498
1368
|
| 'promptpay'
|
|
1499
|
-
| 'rechnung'
|
|
1500
1369
|
| 'revolut_pay'
|
|
1501
|
-
| 'samsung_pay'
|
|
1502
1370
|
| 'sepa_debit'
|
|
1503
1371
|
| 'sofort'
|
|
1504
1372
|
| 'swish'
|
|
@@ -1513,11 +1381,6 @@ declare module 'stripe' {
|
|
|
1513
1381
|
*/
|
|
1514
1382
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1515
1383
|
|
|
1516
|
-
/**
|
|
1517
|
-
* Account number of the bank account.
|
|
1518
|
-
*/
|
|
1519
|
-
account_number?: string | null;
|
|
1520
|
-
|
|
1521
1384
|
/**
|
|
1522
1385
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1523
1386
|
*/
|