stripe 16.4.0-beta.1 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +145 -767
- 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/Checkout/Sessions.js +4 -0
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -13
- 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 -38
- 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/Checkout/Sessions.js +4 -0
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -13
- 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 -24
- 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 +30 -15
- package/types/AccountSessionsResource.d.ts +0 -163
- package/types/Accounts.d.ts +4 -91
- package/types/AccountsResource.d.ts +26 -230
- package/types/Charges.d.ts +38 -69
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +1 -28
- package/types/Checkout/SessionsResource.d.ts +22 -15
- package/types/ConfirmationTokens.d.ts +23 -62
- 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 +9 -168
- package/types/DisputesResource.d.ts +3 -120
- package/types/EventTypes.d.ts +47 -422
- package/types/Events.d.ts +3 -83
- package/types/EventsResource.d.ts +1 -1
- 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/Identity/VerificationReports.d.ts +1 -1
- 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 +2 -116
- package/types/InvoicesResource.d.ts +1784 -5359
- 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 +2 -470
- package/types/PaymentIntentsResource.d.ts +3377 -6725
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +18 -62
- 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 -578
- package/types/QuotesResource.d.ts +266 -3175
- package/types/RefundsResource.d.ts +1 -1
- package/types/SetupAttempts.d.ts +0 -9
- package/types/SetupIntents.d.ts +1 -110
- 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 -164
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +3 -47
- package/types/SubscriptionsResource.d.ts +6 -349
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/CalculationsResource.d.ts +1 -3
- package/types/Terminal/Readers.d.ts +2 -279
- package/types/Terminal/ReadersResource.d.ts +1 -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 +7 -7
- 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 +6 -50
- package/types/index.d.ts +0 -64
- 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/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/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -110
- 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 -91
- 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 -1057
- package/types/OrdersResource.d.ts +0 -2711
- 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 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
|
@@ -1435,11 +1435,6 @@ declare module 'stripe' {
|
|
|
1435
1435
|
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1436
1436
|
*/
|
|
1437
1437
|
setup_future_usage?: Paypal.SetupFutureUsage;
|
|
1438
|
-
|
|
1439
|
-
/**
|
|
1440
|
-
* 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.
|
|
1441
|
-
*/
|
|
1442
|
-
subsellers?: Array<string>;
|
|
1443
1438
|
}
|
|
1444
1439
|
|
|
1445
1440
|
namespace Paypal {
|
|
@@ -1523,8 +1518,6 @@ declare module 'stripe' {
|
|
|
1523
1518
|
interface FinancialConnections {
|
|
1524
1519
|
filters?: FinancialConnections.Filters;
|
|
1525
1520
|
|
|
1526
|
-
manual_entry?: FinancialConnections.ManualEntry;
|
|
1527
|
-
|
|
1528
1521
|
/**
|
|
1529
1522
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
1530
1523
|
*/
|
|
@@ -1547,39 +1540,19 @@ declare module 'stripe' {
|
|
|
1547
1540
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1548
1541
|
*/
|
|
1549
1542
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1550
|
-
|
|
1551
|
-
/**
|
|
1552
|
-
* The institution to use to filter for possible accounts to link.
|
|
1553
|
-
*/
|
|
1554
|
-
institution?: string;
|
|
1555
1543
|
}
|
|
1556
1544
|
|
|
1557
1545
|
namespace Filters {
|
|
1558
1546
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1559
1547
|
}
|
|
1560
1548
|
|
|
1561
|
-
interface ManualEntry {
|
|
1562
|
-
/**
|
|
1563
|
-
* Settings for configuring manual entry of account details.
|
|
1564
|
-
*/
|
|
1565
|
-
mode?: ManualEntry.Mode;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
namespace ManualEntry {
|
|
1569
|
-
type Mode = 'automatic' | 'custom';
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
1549
|
type Permission =
|
|
1573
1550
|
| 'balances'
|
|
1574
1551
|
| 'ownership'
|
|
1575
1552
|
| 'payment_method'
|
|
1576
1553
|
| 'transactions';
|
|
1577
1554
|
|
|
1578
|
-
type Prefetch =
|
|
1579
|
-
| 'balances'
|
|
1580
|
-
| 'inferred_balances'
|
|
1581
|
-
| 'ownership'
|
|
1582
|
-
| 'transactions';
|
|
1555
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1583
1556
|
}
|
|
1584
1557
|
|
|
1585
1558
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1634,11 +1634,6 @@ declare module 'stripe' {
|
|
|
1634
1634
|
*/
|
|
1635
1635
|
reference?: string;
|
|
1636
1636
|
|
|
1637
|
-
/**
|
|
1638
|
-
* 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.
|
|
1639
|
-
*/
|
|
1640
|
-
reference_id?: string;
|
|
1641
|
-
|
|
1642
1637
|
/**
|
|
1643
1638
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1644
1639
|
*/
|
|
@@ -1654,11 +1649,6 @@ declare module 'stripe' {
|
|
|
1654
1649
|
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
1655
1650
|
*/
|
|
1656
1651
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1657
|
-
|
|
1658
|
-
/**
|
|
1659
|
-
* 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.
|
|
1660
|
-
*/
|
|
1661
|
-
subsellers?: Array<string>;
|
|
1662
1652
|
}
|
|
1663
1653
|
|
|
1664
1654
|
namespace Paypal {
|
|
@@ -1784,11 +1774,7 @@ declare module 'stripe' {
|
|
|
1784
1774
|
| 'payment_method'
|
|
1785
1775
|
| 'transactions';
|
|
1786
1776
|
|
|
1787
|
-
type Prefetch =
|
|
1788
|
-
| 'balances'
|
|
1789
|
-
| 'inferred_balances'
|
|
1790
|
-
| 'ownership'
|
|
1791
|
-
| 'transactions';
|
|
1777
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1792
1778
|
}
|
|
1793
1779
|
|
|
1794
1780
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2443,6 +2429,18 @@ declare module 'stripe' {
|
|
|
2443
2429
|
expand?: Array<string>;
|
|
2444
2430
|
}
|
|
2445
2431
|
|
|
2432
|
+
interface SessionUpdateParams {
|
|
2433
|
+
/**
|
|
2434
|
+
* Specifies which fields in the response should be expanded.
|
|
2435
|
+
*/
|
|
2436
|
+
expand?: Array<string>;
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* 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`.
|
|
2440
|
+
*/
|
|
2441
|
+
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2446
2444
|
interface SessionListParams extends PaginationParams {
|
|
2447
2445
|
/**
|
|
2448
2446
|
* Only return Checkout Sessions that were created during the given date interval.
|
|
@@ -2535,6 +2533,15 @@ declare module 'stripe' {
|
|
|
2535
2533
|
options?: RequestOptions
|
|
2536
2534
|
): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
2537
2535
|
|
|
2536
|
+
/**
|
|
2537
|
+
* Updates a Session object.
|
|
2538
|
+
*/
|
|
2539
|
+
update(
|
|
2540
|
+
id: string,
|
|
2541
|
+
params?: SessionUpdateParams,
|
|
2542
|
+
options?: RequestOptions
|
|
2543
|
+
): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
2544
|
+
|
|
2538
2545
|
/**
|
|
2539
2546
|
* Returns a list of Checkout Sessions.
|
|
2540
2547
|
*/
|
|
@@ -171,6 +171,11 @@ declare module 'stripe' {
|
|
|
171
171
|
|
|
172
172
|
cashapp?: PaymentMethodPreview.Cashapp;
|
|
173
173
|
|
|
174
|
+
/**
|
|
175
|
+
* The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
|
176
|
+
*/
|
|
177
|
+
customer: string | Stripe.Customer | null;
|
|
178
|
+
|
|
174
179
|
customer_balance?: PaymentMethodPreview.CustomerBalance;
|
|
175
180
|
|
|
176
181
|
eps?: PaymentMethodPreview.Eps;
|
|
@@ -203,14 +208,10 @@ declare module 'stripe' {
|
|
|
203
208
|
|
|
204
209
|
paypal?: PaymentMethodPreview.Paypal;
|
|
205
210
|
|
|
206
|
-
payto?: PaymentMethodPreview.Payto;
|
|
207
|
-
|
|
208
211
|
pix?: PaymentMethodPreview.Pix;
|
|
209
212
|
|
|
210
213
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
211
214
|
|
|
212
|
-
rechnung?: PaymentMethodPreview.Rechnung;
|
|
213
|
-
|
|
214
215
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
215
216
|
|
|
216
217
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
@@ -479,6 +480,11 @@ declare module 'stripe' {
|
|
|
479
480
|
*/
|
|
480
481
|
brand: string | null;
|
|
481
482
|
|
|
483
|
+
/**
|
|
484
|
+
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
485
|
+
*/
|
|
486
|
+
brand_product: string | null;
|
|
487
|
+
|
|
482
488
|
/**
|
|
483
489
|
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
|
|
484
490
|
*/
|
|
@@ -556,6 +562,14 @@ declare module 'stripe' {
|
|
|
556
562
|
*/
|
|
557
563
|
network: string | null;
|
|
558
564
|
|
|
565
|
+
/**
|
|
566
|
+
* This is used by the financial networks to identify a transaction.
|
|
567
|
+
* Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
|
|
568
|
+
* 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).
|
|
569
|
+
* This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
|
|
570
|
+
*/
|
|
571
|
+
network_transaction_id: string | null;
|
|
572
|
+
|
|
559
573
|
/**
|
|
560
574
|
* Details about payments collected offline.
|
|
561
575
|
*/
|
|
@@ -772,6 +786,11 @@ declare module 'stripe' {
|
|
|
772
786
|
*/
|
|
773
787
|
brand: string | null;
|
|
774
788
|
|
|
789
|
+
/**
|
|
790
|
+
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
791
|
+
*/
|
|
792
|
+
brand_product: string | null;
|
|
793
|
+
|
|
775
794
|
/**
|
|
776
795
|
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
|
777
796
|
*/
|
|
@@ -1191,11 +1210,6 @@ declare module 'stripe' {
|
|
|
1191
1210
|
interface Paynow {}
|
|
1192
1211
|
|
|
1193
1212
|
interface Paypal {
|
|
1194
|
-
/**
|
|
1195
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1196
|
-
*/
|
|
1197
|
-
fingerprint?: string | null;
|
|
1198
|
-
|
|
1199
1213
|
/**
|
|
1200
1214
|
* Owner's email. Values are provided by PayPal directly
|
|
1201
1215
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1206,58 +1220,12 @@ declare module 'stripe' {
|
|
|
1206
1220
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1207
1221
|
*/
|
|
1208
1222
|
payer_id: string | null;
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1212
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1213
|
-
*/
|
|
1214
|
-
verified_email?: string | null;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
interface Payto {
|
|
1218
|
-
/**
|
|
1219
|
-
* Bank-State-Branch number of the bank account.
|
|
1220
|
-
*/
|
|
1221
|
-
bsb_number: string | null;
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* Last four digits of the bank account number.
|
|
1225
|
-
*/
|
|
1226
|
-
last4: string | null;
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* The PayID alias for the bank account.
|
|
1230
|
-
*/
|
|
1231
|
-
pay_id: string | null;
|
|
1232
1223
|
}
|
|
1233
1224
|
|
|
1234
1225
|
interface Pix {}
|
|
1235
1226
|
|
|
1236
1227
|
interface Promptpay {}
|
|
1237
1228
|
|
|
1238
|
-
interface Rechnung {
|
|
1239
|
-
dob?: Rechnung.Dob;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
namespace Rechnung {
|
|
1243
|
-
interface Dob {
|
|
1244
|
-
/**
|
|
1245
|
-
* The day of birth, between 1 and 31.
|
|
1246
|
-
*/
|
|
1247
|
-
day: number;
|
|
1248
|
-
|
|
1249
|
-
/**
|
|
1250
|
-
* The month of birth, between 1 and 12.
|
|
1251
|
-
*/
|
|
1252
|
-
month: number;
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* The four-digit year of birth.
|
|
1256
|
-
*/
|
|
1257
|
-
year: number;
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
1229
|
interface RevolutPay {}
|
|
1262
1230
|
|
|
1263
1231
|
interface SepaDebit {
|
|
@@ -1347,10 +1315,8 @@ declare module 'stripe' {
|
|
|
1347
1315
|
| 'p24'
|
|
1348
1316
|
| 'paynow'
|
|
1349
1317
|
| 'paypal'
|
|
1350
|
-
| 'payto'
|
|
1351
1318
|
| 'pix'
|
|
1352
1319
|
| 'promptpay'
|
|
1353
|
-
| 'rechnung'
|
|
1354
1320
|
| 'revolut_pay'
|
|
1355
1321
|
| 'sepa_debit'
|
|
1356
1322
|
| 'sofort'
|
|
@@ -1366,11 +1332,6 @@ declare module 'stripe' {
|
|
|
1366
1332
|
*/
|
|
1367
1333
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1368
1334
|
|
|
1369
|
-
/**
|
|
1370
|
-
* Account number of the bank account.
|
|
1371
|
-
*/
|
|
1372
|
-
account_number?: string | null;
|
|
1373
|
-
|
|
1374
1335
|
/**
|
|
1375
1336
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1376
1337
|
*/
|
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.
|
|
@@ -68,11 +68,6 @@ declare module 'stripe' {
|
|
|
68
68
|
*/
|
|
69
69
|
refund_amount?: number;
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* Refunds to link to this credit note.
|
|
73
|
-
*/
|
|
74
|
-
refunds?: Array<CreditNoteCreateParams.Refund>;
|
|
75
|
-
|
|
76
71
|
/**
|
|
77
72
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
78
73
|
*/
|
|
@@ -156,18 +151,6 @@ declare module 'stripe' {
|
|
|
156
151
|
| 'order_change'
|
|
157
152
|
| 'product_unsatisfactory';
|
|
158
153
|
|
|
159
|
-
interface Refund {
|
|
160
|
-
/**
|
|
161
|
-
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
|
|
162
|
-
*/
|
|
163
|
-
amount_refunded?: number;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* ID of an existing refund to link this credit note to.
|
|
167
|
-
*/
|
|
168
|
-
refund?: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
154
|
interface ShippingCost {
|
|
172
155
|
/**
|
|
173
156
|
* The ID of the shipping rate to use for this order.
|
|
@@ -295,11 +278,6 @@ declare module 'stripe' {
|
|
|
295
278
|
*/
|
|
296
279
|
refund_amount?: number;
|
|
297
280
|
|
|
298
|
-
/**
|
|
299
|
-
* Refunds to link to this credit note.
|
|
300
|
-
*/
|
|
301
|
-
refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
|
|
302
|
-
|
|
303
281
|
/**
|
|
304
282
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
305
283
|
*/
|
|
@@ -383,18 +361,6 @@ declare module 'stripe' {
|
|
|
383
361
|
| 'order_change'
|
|
384
362
|
| 'product_unsatisfactory';
|
|
385
363
|
|
|
386
|
-
interface Refund {
|
|
387
|
-
/**
|
|
388
|
-
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
|
|
389
|
-
*/
|
|
390
|
-
amount_refunded?: number;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* ID of an existing refund to link this credit note to.
|
|
394
|
-
*/
|
|
395
|
-
refund?: string;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
364
|
interface ShippingCost {
|
|
399
365
|
/**
|
|
400
366
|
* The ID of the shipping rate to use for this order.
|
|
@@ -469,11 +435,6 @@ declare module 'stripe' {
|
|
|
469
435
|
*/
|
|
470
436
|
refund_amount?: number;
|
|
471
437
|
|
|
472
|
-
/**
|
|
473
|
-
* Refunds to link to this credit note.
|
|
474
|
-
*/
|
|
475
|
-
refunds?: Array<CreditNotePreviewParams.Refund>;
|
|
476
|
-
|
|
477
438
|
/**
|
|
478
439
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
479
440
|
*/
|
|
@@ -557,18 +518,6 @@ declare module 'stripe' {
|
|
|
557
518
|
| 'order_change'
|
|
558
519
|
| 'product_unsatisfactory';
|
|
559
520
|
|
|
560
|
-
interface Refund {
|
|
561
|
-
/**
|
|
562
|
-
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
|
|
563
|
-
*/
|
|
564
|
-
amount_refunded?: number;
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* ID of an existing refund to link this credit note to.
|
|
568
|
-
*/
|
|
569
|
-
refund?: string;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
521
|
interface ShippingCost {
|
|
573
522
|
/**
|
|
574
523
|
* The ID of the shipping rate to use for this order.
|
package/types/Disputes.d.ts
CHANGED
|
@@ -45,11 +45,6 @@ declare module 'stripe' {
|
|
|
45
45
|
*/
|
|
46
46
|
currency: string;
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* List of eligibility types that are included in `enhanced_evidence`.
|
|
50
|
-
*/
|
|
51
|
-
enhanced_eligibility_types?: Array<'visa_compelling_evidence_3'>;
|
|
52
|
-
|
|
53
48
|
evidence: Dispute.Evidence;
|
|
54
49
|
|
|
55
50
|
evidence_details: Dispute.EvidenceDetails;
|
|
@@ -159,8 +154,6 @@ declare module 'stripe' {
|
|
|
159
154
|
*/
|
|
160
155
|
duplicate_charge_id: string | null;
|
|
161
156
|
|
|
162
|
-
enhanced_evidence?: Evidence.EnhancedEvidence;
|
|
163
|
-
|
|
164
157
|
/**
|
|
165
158
|
* A description of the product or service that was sold.
|
|
166
159
|
*/
|
|
@@ -232,126 +225,12 @@ declare module 'stripe' {
|
|
|
232
225
|
uncategorized_text: string | null;
|
|
233
226
|
}
|
|
234
227
|
|
|
235
|
-
namespace Evidence {
|
|
236
|
-
interface EnhancedEvidence {
|
|
237
|
-
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
namespace EnhancedEvidence {
|
|
241
|
-
interface VisaCompellingEvidence3 {
|
|
242
|
-
/**
|
|
243
|
-
* Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
|
244
|
-
*/
|
|
245
|
-
disputed_transaction: VisaCompellingEvidence3.DisputedTransaction | null;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
|
249
|
-
*/
|
|
250
|
-
prior_undisputed_transactions: Array<
|
|
251
|
-
VisaCompellingEvidence3.PriorUndisputedTransaction
|
|
252
|
-
>;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
namespace VisaCompellingEvidence3 {
|
|
256
|
-
interface DisputedTransaction {
|
|
257
|
-
/**
|
|
258
|
-
* User Account ID used to log into business platform. Must be recognizable by the user.
|
|
259
|
-
*/
|
|
260
|
-
customer_account_id: string | null;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
|
264
|
-
*/
|
|
265
|
-
customer_device_fingerprint: string | null;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
|
269
|
-
*/
|
|
270
|
-
customer_device_id: string | null;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The email address of the customer.
|
|
274
|
-
*/
|
|
275
|
-
customer_email_address: string | null;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* The IP address that the customer used when making the purchase.
|
|
279
|
-
*/
|
|
280
|
-
customer_purchase_ip: string | null;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Categorization of disputed payment.
|
|
284
|
-
*/
|
|
285
|
-
merchandise_or_services: DisputedTransaction.MerchandiseOrServices | null;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* A description of the product or service that was sold.
|
|
289
|
-
*/
|
|
290
|
-
product_description: string | null;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
|
294
|
-
*/
|
|
295
|
-
shipping_address: Stripe.Address | null;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
namespace DisputedTransaction {
|
|
299
|
-
type MerchandiseOrServices = 'merchandise' | 'services';
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
interface PriorUndisputedTransaction {
|
|
303
|
-
/**
|
|
304
|
-
* Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
|
305
|
-
*/
|
|
306
|
-
charge: string;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* User Account ID used to log into business platform. Must be recognizable by the user.
|
|
310
|
-
*/
|
|
311
|
-
customer_account_id: string | null;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
|
315
|
-
*/
|
|
316
|
-
customer_device_fingerprint: string | null;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
|
320
|
-
*/
|
|
321
|
-
customer_device_id: string | null;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* The email address of the customer.
|
|
325
|
-
*/
|
|
326
|
-
customer_email_address: string | null;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* The IP address that the customer used when making the purchase.
|
|
330
|
-
*/
|
|
331
|
-
customer_purchase_ip: string | null;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* A description of the product or service that was sold.
|
|
335
|
-
*/
|
|
336
|
-
product_description: string | null;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
|
340
|
-
*/
|
|
341
|
-
shipping_address: Stripe.Address | null;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
228
|
interface EvidenceDetails {
|
|
348
229
|
/**
|
|
349
230
|
* Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
|
|
350
231
|
*/
|
|
351
232
|
due_by: number | null;
|
|
352
233
|
|
|
353
|
-
enhanced_eligibility?: EvidenceDetails.EnhancedEligibility;
|
|
354
|
-
|
|
355
234
|
/**
|
|
356
235
|
* Whether evidence has been staged for this dispute.
|
|
357
236
|
*/
|
|
@@ -368,53 +247,6 @@ declare module 'stripe' {
|
|
|
368
247
|
submission_count: number;
|
|
369
248
|
}
|
|
370
249
|
|
|
371
|
-
namespace EvidenceDetails {
|
|
372
|
-
interface EnhancedEligibility {
|
|
373
|
-
visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
namespace EnhancedEligibility {
|
|
377
|
-
interface VisaCompellingEvidence3 {
|
|
378
|
-
/**
|
|
379
|
-
* Rejection reason for evidence submitted as Visa Compelling Evidence 3.0 to Visa and rejected by Visa.
|
|
380
|
-
*/
|
|
381
|
-
partner_rejected_details: VisaCompellingEvidence3.PartnerRejectedDetails | null;
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.
|
|
385
|
-
*/
|
|
386
|
-
required_actions: Array<VisaCompellingEvidence3.RequiredAction>;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Visa Compelling Evidence 3.0 eligibility status.
|
|
390
|
-
*/
|
|
391
|
-
status: VisaCompellingEvidence3.Status;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
namespace VisaCompellingEvidence3 {
|
|
395
|
-
type PartnerRejectedDetails =
|
|
396
|
-
| 'fraudulent_prior_transaction'
|
|
397
|
-
| 'other'
|
|
398
|
-
| 'visa_internal_error';
|
|
399
|
-
|
|
400
|
-
type RequiredAction =
|
|
401
|
-
| 'missing_customer_identifiers'
|
|
402
|
-
| 'missing_disputed_transaction_description'
|
|
403
|
-
| 'missing_merchandise_or_services'
|
|
404
|
-
| 'missing_prior_undisputed_transaction_description'
|
|
405
|
-
| 'missing_prior_undisputed_transactions';
|
|
406
|
-
|
|
407
|
-
type Status =
|
|
408
|
-
| 'accepted'
|
|
409
|
-
| 'not_qualified'
|
|
410
|
-
| 'partner_rejected'
|
|
411
|
-
| 'qualified'
|
|
412
|
-
| 'requires_action'
|
|
413
|
-
| 'submitted';
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
250
|
interface PaymentMethodDetails {
|
|
419
251
|
card?: PaymentMethodDetails.Card;
|
|
420
252
|
|
|
@@ -435,12 +267,21 @@ declare module 'stripe' {
|
|
|
435
267
|
*/
|
|
436
268
|
brand: string;
|
|
437
269
|
|
|
270
|
+
/**
|
|
271
|
+
* The type of dispute opened. Different case types may have varying fees and financial impact.
|
|
272
|
+
*/
|
|
273
|
+
case_type: Card.CaseType;
|
|
274
|
+
|
|
438
275
|
/**
|
|
439
276
|
* The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
|
|
440
277
|
*/
|
|
441
278
|
network_reason_code: string | null;
|
|
442
279
|
}
|
|
443
280
|
|
|
281
|
+
namespace Card {
|
|
282
|
+
type CaseType = 'chargeback' | 'inquiry';
|
|
283
|
+
}
|
|
284
|
+
|
|
444
285
|
interface Klarna {
|
|
445
286
|
/**
|
|
446
287
|
* The reason for the dispute as defined by Klarna
|