stripe 16.3.0-beta.1 → 16.4.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 +136 -761
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/ResourceNamespace.js +3 -0
- package/cjs/StripeResource.js +1 -1
- package/cjs/Webhooks.js +29 -17
- package/cjs/apiVersion.js +1 -2
- package/cjs/multipart.js +4 -1
- 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 +13 -10
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/ResourceNamespace.js +3 -0
- package/esm/StripeResource.js +2 -2
- package/esm/Webhooks.js +29 -17
- package/esm/apiVersion.js +0 -1
- package/esm/multipart.js +5 -2
- 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 +13 -10
- package/esm/utils.js +1 -27
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -15
- package/types/AccountSessionsResource.d.ts +0 -205
- package/types/Accounts.d.ts +1 -88
- package/types/AccountsResource.d.ts +0 -204
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/Charges.d.ts +0 -67
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +1 -28
- package/types/Checkout/SessionsResource.d.ts +1 -15
- package/types/ConfirmationTokens.d.ts +6 -63
- 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/CustomerSessions.d.ts +1 -1
- package/types/CustomersResource.d.ts +0 -2
- package/types/Disputes.d.ts +0 -167
- package/types/DisputesResource.d.ts +3 -120
- package/types/EventTypes.d.ts +17 -426
- package/types/Events.d.ts +1 -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 -121
- 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 +1 -474
- package/types/PaymentIntentsResource.d.ts +3377 -6725
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +0 -62
- package/types/PaymentMethodsResource.d.ts +0 -110
- package/types/Plans.d.ts +1 -1
- package/types/Prices.d.ts +1 -23
- 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/SetupAttempts.d.ts +0 -14
- package/types/SetupIntents.d.ts +1 -115
- 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 +9 -352
- 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/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +2 -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 -1535
- 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';
|
|
@@ -50,7 +50,7 @@ declare module 'stripe' {
|
|
|
50
50
|
/**
|
|
51
51
|
* Payment-method-specific configuration for this ConfirmationToken.
|
|
52
52
|
*/
|
|
53
|
-
payment_method_options
|
|
53
|
+
payment_method_options: ConfirmationToken.PaymentMethodOptions | null;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
|
|
@@ -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;
|
|
@@ -1191,11 +1192,6 @@ declare module 'stripe' {
|
|
|
1191
1192
|
interface Paynow {}
|
|
1192
1193
|
|
|
1193
1194
|
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
1195
|
/**
|
|
1200
1196
|
* Owner's email. Values are provided by PayPal directly
|
|
1201
1197
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1206,58 +1202,12 @@ declare module 'stripe' {
|
|
|
1206
1202
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1207
1203
|
*/
|
|
1208
1204
|
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
1205
|
}
|
|
1233
1206
|
|
|
1234
1207
|
interface Pix {}
|
|
1235
1208
|
|
|
1236
1209
|
interface Promptpay {}
|
|
1237
1210
|
|
|
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
1211
|
interface RevolutPay {}
|
|
1262
1212
|
|
|
1263
1213
|
interface SepaDebit {
|
|
@@ -1347,10 +1297,8 @@ declare module 'stripe' {
|
|
|
1347
1297
|
| 'p24'
|
|
1348
1298
|
| 'paynow'
|
|
1349
1299
|
| 'paypal'
|
|
1350
|
-
| 'payto'
|
|
1351
1300
|
| 'pix'
|
|
1352
1301
|
| 'promptpay'
|
|
1353
|
-
| 'rechnung'
|
|
1354
1302
|
| 'revolut_pay'
|
|
1355
1303
|
| 'sepa_debit'
|
|
1356
1304
|
| 'sofort'
|
|
@@ -1366,11 +1314,6 @@ declare module 'stripe' {
|
|
|
1366
1314
|
*/
|
|
1367
1315
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1368
1316
|
|
|
1369
|
-
/**
|
|
1370
|
-
* Account number of the bank account.
|
|
1371
|
-
*/
|
|
1372
|
-
account_number?: string | null;
|
|
1373
|
-
|
|
1374
1317
|
/**
|
|
1375
1318
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1376
1319
|
*/
|
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.
|
|
@@ -55,7 +55,7 @@ declare module 'stripe' {
|
|
|
55
55
|
/**
|
|
56
56
|
* This hash contains whether the Payment Element is enabled and the features it supports.
|
|
57
57
|
*/
|
|
58
|
-
payment_element
|
|
58
|
+
payment_element: Components.PaymentElement;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* This hash contains whether the pricing table is enabled.
|
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,52 +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
|
-
| 'partner_rejected'
|
|
410
|
-
| 'qualified'
|
|
411
|
-
| 'requires_action'
|
|
412
|
-
| 'submitted';
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
250
|
interface PaymentMethodDetails {
|
|
418
251
|
card?: PaymentMethodDetails.Card;
|
|
419
252
|
|