stripe 16.8.0-beta.1 → 16.8.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 +118 -798
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/OAuth.js +1 -1
- 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.js +10 -40
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/OAuth.js +2 -2
- 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.js +0 -26
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- 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 -215
- package/types/Accounts.d.ts +1 -106
- package/types/AccountsResource.d.ts +5 -251
- package/types/Charges.d.ts +17 -77
- package/types/ChargesResource.d.ts +2 -1296
- package/types/Checkout/Sessions.d.ts +4 -116
- package/types/Checkout/SessionsResource.d.ts +5 -111
- package/types/ConfirmationTokens.d.ts +31 -66
- 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 -2
- package/types/Disputes.d.ts +0 -158
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -460
- package/types/Events.d.ts +0 -85
- 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 +0 -22
- package/types/Invoices.d.ts +1 -116
- package/types/InvoicesResource.d.ts +1833 -5491
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +3 -489
- package/types/PaymentIntentsResource.d.ts +3456 -6972
- package/types/PaymentLinks.d.ts +0 -1
- package/types/PaymentLinksResource.d.ts +0 -2
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
- package/types/PaymentMethods.d.ts +31 -66
- package/types/PaymentMethodsResource.d.ts +0 -110
- 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 -596
- package/types/QuotesResource.d.ts +267 -3176
- package/types/SetupAttempts.d.ts +0 -9
- package/types/SetupIntents.d.ts +2 -111
- package/types/SetupIntentsResource.d.ts +3 -498
- 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 +2 -347
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- 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 +0 -5
- 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/WebhookEndpointsResource.d.ts +0 -54
- package/types/index.d.ts +0 -67
- package/types/lib.d.ts +0 -12
- 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/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- 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/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- 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 -446
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1083
- package/types/OrdersResource.d.ts +0 -2763
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1530
- 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
|
@@ -70,7 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
client_reference_id: string | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Client secret to be used when initializing Stripe.js embedded checkout.
|
|
74
74
|
*/
|
|
75
75
|
client_secret: string | null;
|
|
76
76
|
|
|
@@ -224,7 +224,7 @@ declare module 'stripe' {
|
|
|
224
224
|
redirect_on_completion?: Session.RedirectOnCompletion;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
|
-
* Applies to Checkout Sessions with `ui_mode: embedded
|
|
227
|
+
* Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
228
228
|
*/
|
|
229
229
|
return_url?: string;
|
|
230
230
|
|
|
@@ -946,8 +946,6 @@ declare module 'stripe' {
|
|
|
946
946
|
|
|
947
947
|
paypal?: PaymentMethodOptions.Paypal;
|
|
948
948
|
|
|
949
|
-
payto?: PaymentMethodOptions.Payto;
|
|
950
|
-
|
|
951
949
|
pix?: PaymentMethodOptions.Pix;
|
|
952
950
|
|
|
953
951
|
revolut_pay?: PaymentMethodOptions.RevolutPay;
|
|
@@ -1489,100 +1487,12 @@ declare module 'stripe' {
|
|
|
1489
1487
|
* 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).
|
|
1490
1488
|
*/
|
|
1491
1489
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* 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.
|
|
1495
|
-
*/
|
|
1496
|
-
subsellers?: Array<string>;
|
|
1497
1490
|
}
|
|
1498
1491
|
|
|
1499
1492
|
namespace Paypal {
|
|
1500
1493
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1501
1494
|
}
|
|
1502
1495
|
|
|
1503
|
-
interface Payto {
|
|
1504
|
-
mandate_options?: Payto.MandateOptions;
|
|
1505
|
-
|
|
1506
|
-
/**
|
|
1507
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1508
|
-
*
|
|
1509
|
-
* 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.
|
|
1510
|
-
*
|
|
1511
|
-
* 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.
|
|
1512
|
-
*
|
|
1513
|
-
* 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).
|
|
1514
|
-
*/
|
|
1515
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
namespace Payto {
|
|
1519
|
-
interface MandateOptions {
|
|
1520
|
-
/**
|
|
1521
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1522
|
-
*/
|
|
1523
|
-
amount: number | null;
|
|
1524
|
-
|
|
1525
|
-
/**
|
|
1526
|
-
* 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.
|
|
1527
|
-
*/
|
|
1528
|
-
amount_type: MandateOptions.AmountType | null;
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1532
|
-
*/
|
|
1533
|
-
end_date: string | null;
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* The periodicity at which payments will be collected.
|
|
1537
|
-
*/
|
|
1538
|
-
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* 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.
|
|
1542
|
-
*/
|
|
1543
|
-
payments_per_period: number | null;
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1547
|
-
*/
|
|
1548
|
-
purpose: MandateOptions.Purpose | null;
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1552
|
-
*/
|
|
1553
|
-
start_date: string | null;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
namespace MandateOptions {
|
|
1557
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1558
|
-
|
|
1559
|
-
type PaymentSchedule =
|
|
1560
|
-
| 'adhoc'
|
|
1561
|
-
| 'annual'
|
|
1562
|
-
| 'daily'
|
|
1563
|
-
| 'fortnightly'
|
|
1564
|
-
| 'monthly'
|
|
1565
|
-
| 'quarterly'
|
|
1566
|
-
| 'semi_annual'
|
|
1567
|
-
| 'weekly';
|
|
1568
|
-
|
|
1569
|
-
type Purpose =
|
|
1570
|
-
| 'dependant_support'
|
|
1571
|
-
| 'government'
|
|
1572
|
-
| 'loan'
|
|
1573
|
-
| 'mortgage'
|
|
1574
|
-
| 'other'
|
|
1575
|
-
| 'pension'
|
|
1576
|
-
| 'personal'
|
|
1577
|
-
| 'retail'
|
|
1578
|
-
| 'salary'
|
|
1579
|
-
| 'tax'
|
|
1580
|
-
| 'utility';
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
1496
|
interface Pix {
|
|
1587
1497
|
/**
|
|
1588
1498
|
* The number of seconds after which Pix payment will expire.
|
|
@@ -1668,8 +1578,6 @@ declare module 'stripe' {
|
|
|
1668
1578
|
interface FinancialConnections {
|
|
1669
1579
|
filters?: FinancialConnections.Filters;
|
|
1670
1580
|
|
|
1671
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
1672
|
-
|
|
1673
1581
|
/**
|
|
1674
1582
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1675
1583
|
*/
|
|
@@ -1692,39 +1600,19 @@ declare module 'stripe' {
|
|
|
1692
1600
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1693
1601
|
*/
|
|
1694
1602
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1695
|
-
|
|
1696
|
-
/**
|
|
1697
|
-
* The institution to use to filter for possible accounts to link.
|
|
1698
|
-
*/
|
|
1699
|
-
institution?: string;
|
|
1700
1603
|
}
|
|
1701
1604
|
|
|
1702
1605
|
namespace Filters {
|
|
1703
1606
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1704
1607
|
}
|
|
1705
1608
|
|
|
1706
|
-
interface ManualEntry {
|
|
1707
|
-
/**
|
|
1708
|
-
* Settings for configuring manual entry of account details.
|
|
1709
|
-
*/
|
|
1710
|
-
mode?: ManualEntry.Mode;
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
namespace ManualEntry {
|
|
1714
|
-
type Mode = 'automatic' | 'custom';
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
1609
|
type Permission =
|
|
1718
1610
|
| 'balances'
|
|
1719
1611
|
| 'ownership'
|
|
1720
1612
|
| 'payment_method'
|
|
1721
1613
|
| 'transactions';
|
|
1722
1614
|
|
|
1723
|
-
type Prefetch =
|
|
1724
|
-
| 'balances'
|
|
1725
|
-
| 'inferred_balances'
|
|
1726
|
-
| 'ownership'
|
|
1727
|
-
| 'transactions';
|
|
1615
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1728
1616
|
}
|
|
1729
1617
|
|
|
1730
1618
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2232,7 +2120,7 @@ declare module 'stripe' {
|
|
|
2232
2120
|
}
|
|
2233
2121
|
}
|
|
2234
2122
|
|
|
2235
|
-
type UiMode = '
|
|
2123
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2236
2124
|
}
|
|
2237
2125
|
}
|
|
2238
2126
|
}
|
|
@@ -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
|
|
|
@@ -202,7 +202,7 @@ declare module 'stripe' {
|
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* The URL to redirect your customer back to after they authenticate or cancel their payment on the
|
|
205
|
-
* 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`
|
|
206
206
|
* and redirect-based payment methods are enabled on the session.
|
|
207
207
|
*/
|
|
208
208
|
return_url?: string;
|
|
@@ -242,7 +242,7 @@ declare module 'stripe' {
|
|
|
242
242
|
/**
|
|
243
243
|
* The URL to which Stripe should send customers when payment or setup
|
|
244
244
|
* is complete.
|
|
245
|
-
* 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
|
|
246
246
|
* information from the successful Checkout Session on your page, read the
|
|
247
247
|
* guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
|
|
248
248
|
*/
|
|
@@ -1111,11 +1111,6 @@ declare module 'stripe' {
|
|
|
1111
1111
|
*/
|
|
1112
1112
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1113
1113
|
|
|
1114
|
-
/**
|
|
1115
|
-
* contains details about the PayTo payment method options.
|
|
1116
|
-
*/
|
|
1117
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1118
|
-
|
|
1119
1114
|
/**
|
|
1120
1115
|
* contains details about the Pix payment method options.
|
|
1121
1116
|
*/
|
|
@@ -1686,11 +1681,6 @@ declare module 'stripe' {
|
|
|
1686
1681
|
*/
|
|
1687
1682
|
reference?: string;
|
|
1688
1683
|
|
|
1689
|
-
/**
|
|
1690
|
-
* 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.
|
|
1691
|
-
*/
|
|
1692
|
-
reference_id?: string;
|
|
1693
|
-
|
|
1694
1684
|
/**
|
|
1695
1685
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1696
1686
|
*/
|
|
@@ -1708,11 +1698,6 @@ declare module 'stripe' {
|
|
|
1708
1698
|
* 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`.
|
|
1709
1699
|
*/
|
|
1710
1700
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1711
|
-
|
|
1712
|
-
/**
|
|
1713
|
-
* 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.
|
|
1714
|
-
*/
|
|
1715
|
-
subsellers?: Array<string>;
|
|
1716
1701
|
}
|
|
1717
1702
|
|
|
1718
1703
|
namespace Paypal {
|
|
@@ -1742,92 +1727,6 @@ declare module 'stripe' {
|
|
|
1742
1727
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1743
1728
|
}
|
|
1744
1729
|
|
|
1745
|
-
interface Payto {
|
|
1746
|
-
/**
|
|
1747
|
-
* Additional fields for Mandate creation
|
|
1748
|
-
*/
|
|
1749
|
-
mandate_options?: Payto.MandateOptions;
|
|
1750
|
-
|
|
1751
|
-
/**
|
|
1752
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1753
|
-
*
|
|
1754
|
-
* 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.
|
|
1755
|
-
*
|
|
1756
|
-
* 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.
|
|
1757
|
-
*
|
|
1758
|
-
* 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).
|
|
1759
|
-
*/
|
|
1760
|
-
setup_future_usage?: Payto.SetupFutureUsage;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
namespace Payto {
|
|
1764
|
-
interface MandateOptions {
|
|
1765
|
-
/**
|
|
1766
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1767
|
-
*/
|
|
1768
|
-
amount?: number;
|
|
1769
|
-
|
|
1770
|
-
/**
|
|
1771
|
-
* 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.
|
|
1772
|
-
*/
|
|
1773
|
-
amount_type?: MandateOptions.AmountType;
|
|
1774
|
-
|
|
1775
|
-
/**
|
|
1776
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1777
|
-
*/
|
|
1778
|
-
end_date?: string;
|
|
1779
|
-
|
|
1780
|
-
/**
|
|
1781
|
-
* The periodicity at which payments will be collected.
|
|
1782
|
-
*/
|
|
1783
|
-
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1784
|
-
|
|
1785
|
-
/**
|
|
1786
|
-
* 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.
|
|
1787
|
-
*/
|
|
1788
|
-
payments_per_period?: number;
|
|
1789
|
-
|
|
1790
|
-
/**
|
|
1791
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
1792
|
-
*/
|
|
1793
|
-
purpose?: MandateOptions.Purpose;
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1797
|
-
*/
|
|
1798
|
-
start_date?: string;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
namespace MandateOptions {
|
|
1802
|
-
type AmountType = 'fixed' | 'maximum';
|
|
1803
|
-
|
|
1804
|
-
type PaymentSchedule =
|
|
1805
|
-
| 'adhoc'
|
|
1806
|
-
| 'annual'
|
|
1807
|
-
| 'daily'
|
|
1808
|
-
| 'fortnightly'
|
|
1809
|
-
| 'monthly'
|
|
1810
|
-
| 'quarterly'
|
|
1811
|
-
| 'semi_annual'
|
|
1812
|
-
| 'weekly';
|
|
1813
|
-
|
|
1814
|
-
type Purpose =
|
|
1815
|
-
| 'dependant_support'
|
|
1816
|
-
| 'government'
|
|
1817
|
-
| 'loan'
|
|
1818
|
-
| 'mortgage'
|
|
1819
|
-
| 'other'
|
|
1820
|
-
| 'pension'
|
|
1821
|
-
| 'personal'
|
|
1822
|
-
| 'retail'
|
|
1823
|
-
| 'salary'
|
|
1824
|
-
| 'tax'
|
|
1825
|
-
| 'utility';
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
type SetupFutureUsage = 'none' | 'off_session';
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
1730
|
interface Pix {
|
|
1832
1731
|
/**
|
|
1833
1732
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -1932,11 +1831,7 @@ declare module 'stripe' {
|
|
|
1932
1831
|
| 'payment_method'
|
|
1933
1832
|
| 'transactions';
|
|
1934
1833
|
|
|
1935
|
-
type Prefetch =
|
|
1936
|
-
| 'balances'
|
|
1937
|
-
| 'inferred_balances'
|
|
1938
|
-
| 'ownership'
|
|
1939
|
-
| 'transactions';
|
|
1834
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1940
1835
|
}
|
|
1941
1836
|
|
|
1942
1837
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2000,7 +1895,6 @@ declare module 'stripe' {
|
|
|
2000
1895
|
| 'p24'
|
|
2001
1896
|
| 'paynow'
|
|
2002
1897
|
| 'paypal'
|
|
2003
|
-
| 'payto'
|
|
2004
1898
|
| 'pix'
|
|
2005
1899
|
| 'promptpay'
|
|
2006
1900
|
| 'revolut_pay'
|
|
@@ -2584,7 +2478,7 @@ declare module 'stripe' {
|
|
|
2584
2478
|
enabled: boolean;
|
|
2585
2479
|
}
|
|
2586
2480
|
|
|
2587
|
-
type UiMode = '
|
|
2481
|
+
type UiMode = 'embedded' | 'hosted';
|
|
2588
2482
|
}
|
|
2589
2483
|
|
|
2590
2484
|
interface SessionRetrieveParams {
|
|
@@ -208,14 +208,10 @@ declare module 'stripe' {
|
|
|
208
208
|
|
|
209
209
|
paypal?: PaymentMethodPreview.Paypal;
|
|
210
210
|
|
|
211
|
-
payto?: PaymentMethodPreview.Payto;
|
|
212
|
-
|
|
213
211
|
pix?: PaymentMethodPreview.Pix;
|
|
214
212
|
|
|
215
213
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
216
214
|
|
|
217
|
-
rechnung?: PaymentMethodPreview.Rechnung;
|
|
218
|
-
|
|
219
215
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
220
216
|
|
|
221
217
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
@@ -567,10 +563,7 @@ declare module 'stripe' {
|
|
|
567
563
|
network: string | null;
|
|
568
564
|
|
|
569
565
|
/**
|
|
570
|
-
* This is used by the financial networks to identify a transaction.
|
|
571
|
-
* Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
|
|
572
|
-
* The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
|
|
573
|
-
* This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
|
|
566
|
+
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
|
|
574
567
|
*/
|
|
575
568
|
network_transaction_id: string | null;
|
|
576
569
|
|
|
@@ -598,6 +591,8 @@ declare module 'stripe' {
|
|
|
598
591
|
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
|
599
592
|
*/
|
|
600
593
|
receipt: CardPresent.Receipt | null;
|
|
594
|
+
|
|
595
|
+
wallet?: CardPresent.Wallet;
|
|
601
596
|
}
|
|
602
597
|
|
|
603
598
|
namespace CardPresent {
|
|
@@ -674,6 +669,21 @@ declare module 'stripe' {
|
|
|
674
669
|
| 'prepaid'
|
|
675
670
|
| 'unknown';
|
|
676
671
|
}
|
|
672
|
+
|
|
673
|
+
interface Wallet {
|
|
674
|
+
/**
|
|
675
|
+
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
|
676
|
+
*/
|
|
677
|
+
type: Wallet.Type;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
namespace Wallet {
|
|
681
|
+
type Type =
|
|
682
|
+
| 'apple_pay'
|
|
683
|
+
| 'google_pay'
|
|
684
|
+
| 'samsung_pay'
|
|
685
|
+
| 'unknown';
|
|
686
|
+
}
|
|
677
687
|
}
|
|
678
688
|
}
|
|
679
689
|
}
|
|
@@ -871,6 +881,8 @@ declare module 'stripe' {
|
|
|
871
881
|
* How card details were read in this transaction.
|
|
872
882
|
*/
|
|
873
883
|
read_method: CardPresent.ReadMethod | null;
|
|
884
|
+
|
|
885
|
+
wallet?: CardPresent.Wallet;
|
|
874
886
|
}
|
|
875
887
|
|
|
876
888
|
namespace CardPresent {
|
|
@@ -904,6 +916,17 @@ declare module 'stripe' {
|
|
|
904
916
|
| 'contactless_magstripe_mode'
|
|
905
917
|
| 'magnetic_stripe_fallback'
|
|
906
918
|
| 'magnetic_stripe_track2';
|
|
919
|
+
|
|
920
|
+
interface Wallet {
|
|
921
|
+
/**
|
|
922
|
+
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
|
923
|
+
*/
|
|
924
|
+
type: Wallet.Type;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
namespace Wallet {
|
|
928
|
+
type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
|
|
929
|
+
}
|
|
907
930
|
}
|
|
908
931
|
|
|
909
932
|
interface Cashapp {
|
|
@@ -1236,11 +1259,6 @@ declare module 'stripe' {
|
|
|
1236
1259
|
interface Paynow {}
|
|
1237
1260
|
|
|
1238
1261
|
interface Paypal {
|
|
1239
|
-
/**
|
|
1240
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1241
|
-
*/
|
|
1242
|
-
fingerprint?: string | null;
|
|
1243
|
-
|
|
1244
1262
|
/**
|
|
1245
1263
|
* Owner's email. Values are provided by PayPal directly
|
|
1246
1264
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1251,58 +1269,12 @@ declare module 'stripe' {
|
|
|
1251
1269
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1252
1270
|
*/
|
|
1253
1271
|
payer_id: string | null;
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1257
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1258
|
-
*/
|
|
1259
|
-
verified_email?: string | null;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
interface Payto {
|
|
1263
|
-
/**
|
|
1264
|
-
* Bank-State-Branch number of the bank account.
|
|
1265
|
-
*/
|
|
1266
|
-
bsb_number: string | null;
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* Last four digits of the bank account number.
|
|
1270
|
-
*/
|
|
1271
|
-
last4: string | null;
|
|
1272
|
-
|
|
1273
|
-
/**
|
|
1274
|
-
* The PayID alias for the bank account.
|
|
1275
|
-
*/
|
|
1276
|
-
pay_id: string | null;
|
|
1277
1272
|
}
|
|
1278
1273
|
|
|
1279
1274
|
interface Pix {}
|
|
1280
1275
|
|
|
1281
1276
|
interface Promptpay {}
|
|
1282
1277
|
|
|
1283
|
-
interface Rechnung {
|
|
1284
|
-
dob?: Rechnung.Dob;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
namespace Rechnung {
|
|
1288
|
-
interface Dob {
|
|
1289
|
-
/**
|
|
1290
|
-
* The day of birth, between 1 and 31.
|
|
1291
|
-
*/
|
|
1292
|
-
day: number;
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
* The month of birth, between 1 and 12.
|
|
1296
|
-
*/
|
|
1297
|
-
month: number;
|
|
1298
|
-
|
|
1299
|
-
/**
|
|
1300
|
-
* The four-digit year of birth.
|
|
1301
|
-
*/
|
|
1302
|
-
year: number;
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
1278
|
interface RevolutPay {}
|
|
1307
1279
|
|
|
1308
1280
|
interface SepaDebit {
|
|
@@ -1392,10 +1364,8 @@ declare module 'stripe' {
|
|
|
1392
1364
|
| 'p24'
|
|
1393
1365
|
| 'paynow'
|
|
1394
1366
|
| 'paypal'
|
|
1395
|
-
| 'payto'
|
|
1396
1367
|
| 'pix'
|
|
1397
1368
|
| 'promptpay'
|
|
1398
|
-
| 'rechnung'
|
|
1399
1369
|
| 'revolut_pay'
|
|
1400
1370
|
| 'sepa_debit'
|
|
1401
1371
|
| 'sofort'
|
|
@@ -1411,11 +1381,6 @@ declare module 'stripe' {
|
|
|
1411
1381
|
*/
|
|
1412
1382
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1413
1383
|
|
|
1414
|
-
/**
|
|
1415
|
-
* Account number of the bank account.
|
|
1416
|
-
*/
|
|
1417
|
-
account_number?: string | null;
|
|
1418
|
-
|
|
1419
1384
|
/**
|
|
1420
1385
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1421
1386
|
*/
|
package/types/Coupons.d.ts
CHANGED
package/types/CreditNotes.d.ts
CHANGED
|
@@ -106,10 +106,6 @@ declare module 'stripe' {
|
|
|
106
106
|
*/
|
|
107
107
|
pdf: string;
|
|
108
108
|
|
|
109
|
-
post_payment_amount?: number;
|
|
110
|
-
|
|
111
|
-
pre_payment_amount?: number;
|
|
112
|
-
|
|
113
109
|
/**
|
|
114
110
|
* Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
|
|
115
111
|
*/
|
|
@@ -120,11 +116,6 @@ declare module 'stripe' {
|
|
|
120
116
|
*/
|
|
121
117
|
refund: string | Stripe.Refund | null;
|
|
122
118
|
|
|
123
|
-
/**
|
|
124
|
-
* Refunds related to this credit note.
|
|
125
|
-
*/
|
|
126
|
-
refunds?: Array<CreditNote.Refund>;
|
|
127
|
-
|
|
128
119
|
/**
|
|
129
120
|
* The details of the cost of shipping, including the ShippingRate applied to the invoice.
|
|
130
121
|
*/
|
|
@@ -190,18 +181,6 @@ declare module 'stripe' {
|
|
|
190
181
|
| 'order_change'
|
|
191
182
|
| 'product_unsatisfactory';
|
|
192
183
|
|
|
193
|
-
interface Refund {
|
|
194
|
-
/**
|
|
195
|
-
* Amount of the refund that applies to this credit note, in cents (or local equivalent).
|
|
196
|
-
*/
|
|
197
|
-
amount_refunded: number;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* ID of the refund.
|
|
201
|
-
*/
|
|
202
|
-
refund: string | Stripe.Refund;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
184
|
interface ShippingCost {
|
|
206
185
|
/**
|
|
207
186
|
* Total shipping cost before any taxes are applied.
|