stripe 17.4.0 → 17.5.0-beta.2
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 +1000 -109
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +48 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +33 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +50 -5
- package/types/AccountSessionsResource.d.ts +360 -5
- package/types/Accounts.d.ts +191 -2
- package/types/AccountsResource.d.ts +522 -2
- package/types/BalanceTransactions.d.ts +3 -1
- package/types/BalanceTransactionsResource.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +8 -8
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +1 -1
- package/types/Billing/MeterEvents.d.ts +1 -2
- package/types/Billing/MeterEventsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +8 -8
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/Capabilities.d.ts +1 -1
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +244 -2
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +333 -6
- package/types/Checkout/SessionsResource.d.ts +460 -8
- package/types/ConfirmationTokens.d.ts +99 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +8 -1
- package/types/EventTypes.d.ts +598 -2
- package/types/Events.d.ts +93 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/FundingInstructions.d.ts +21 -0
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +28 -1
- package/types/InvoicePayments.d.ts +113 -0
- package/types/Invoices.d.ts +156 -2
- package/types/InvoicesResource.d.ts +5537 -1852
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +33 -1
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1160 -0
- package/types/OrdersResource.d.ts +2923 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +688 -4
- package/types/PaymentIntentsResource.d.ts +7994 -3677
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +23 -2
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +259 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1634 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +48 -0
- package/types/SetupIntents.d.ts +133 -3
- package/types/SetupIntentsResource.d.ts +681 -9
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +210 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +96 -1
- package/types/SubscriptionsResource.d.ts +372 -5
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +10 -3
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +70 -0
- package/types/index.d.ts +62 -0
|
@@ -186,8 +186,12 @@ declare module 'stripe' {
|
|
|
186
186
|
|
|
187
187
|
giropay?: PaymentMethodPreview.Giropay;
|
|
188
188
|
|
|
189
|
+
gopay?: PaymentMethodPreview.Gopay;
|
|
190
|
+
|
|
189
191
|
grabpay?: PaymentMethodPreview.Grabpay;
|
|
190
192
|
|
|
193
|
+
id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
|
|
194
|
+
|
|
191
195
|
ideal?: PaymentMethodPreview.Ideal;
|
|
192
196
|
|
|
193
197
|
interac_present?: PaymentMethodPreview.InteracPresent;
|
|
@@ -202,6 +206,8 @@ declare module 'stripe' {
|
|
|
202
206
|
|
|
203
207
|
link?: PaymentMethodPreview.Link;
|
|
204
208
|
|
|
209
|
+
mb_way?: PaymentMethodPreview.MbWay;
|
|
210
|
+
|
|
205
211
|
mobilepay?: PaymentMethodPreview.Mobilepay;
|
|
206
212
|
|
|
207
213
|
multibanco?: PaymentMethodPreview.Multibanco;
|
|
@@ -218,16 +224,24 @@ declare module 'stripe' {
|
|
|
218
224
|
|
|
219
225
|
paypal?: PaymentMethodPreview.Paypal;
|
|
220
226
|
|
|
227
|
+
payto?: PaymentMethodPreview.Payto;
|
|
228
|
+
|
|
221
229
|
pix?: PaymentMethodPreview.Pix;
|
|
222
230
|
|
|
223
231
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
224
232
|
|
|
233
|
+
qris?: PaymentMethodPreview.Qris;
|
|
234
|
+
|
|
235
|
+
rechnung?: PaymentMethodPreview.Rechnung;
|
|
236
|
+
|
|
225
237
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
226
238
|
|
|
227
239
|
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
|
228
240
|
|
|
229
241
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
230
242
|
|
|
243
|
+
shopeepay?: PaymentMethodPreview.Shopeepay;
|
|
244
|
+
|
|
231
245
|
sofort?: PaymentMethodPreview.Sofort;
|
|
232
246
|
|
|
233
247
|
swish?: PaymentMethodPreview.Swish;
|
|
@@ -1038,8 +1052,24 @@ declare module 'stripe' {
|
|
|
1038
1052
|
|
|
1039
1053
|
interface Giropay {}
|
|
1040
1054
|
|
|
1055
|
+
interface Gopay {}
|
|
1056
|
+
|
|
1041
1057
|
interface Grabpay {}
|
|
1042
1058
|
|
|
1059
|
+
interface IdBankTransfer {
|
|
1060
|
+
bank: IdBankTransfer.Bank | null;
|
|
1061
|
+
|
|
1062
|
+
bank_code: string | null;
|
|
1063
|
+
|
|
1064
|
+
bank_name: string | null;
|
|
1065
|
+
|
|
1066
|
+
display_name: string | null;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
namespace IdBankTransfer {
|
|
1070
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1043
1073
|
interface Ideal {
|
|
1044
1074
|
/**
|
|
1045
1075
|
* The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
@@ -1267,6 +1297,8 @@ declare module 'stripe' {
|
|
|
1267
1297
|
persistent_token?: string;
|
|
1268
1298
|
}
|
|
1269
1299
|
|
|
1300
|
+
interface MbWay {}
|
|
1301
|
+
|
|
1270
1302
|
interface Mobilepay {}
|
|
1271
1303
|
|
|
1272
1304
|
interface Multibanco {}
|
|
@@ -1326,6 +1358,11 @@ declare module 'stripe' {
|
|
|
1326
1358
|
interface Paynow {}
|
|
1327
1359
|
|
|
1328
1360
|
interface Paypal {
|
|
1361
|
+
/**
|
|
1362
|
+
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1363
|
+
*/
|
|
1364
|
+
fingerprint?: string | null;
|
|
1365
|
+
|
|
1329
1366
|
/**
|
|
1330
1367
|
* Owner's email. Values are provided by PayPal directly
|
|
1331
1368
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1336,12 +1373,60 @@ declare module 'stripe' {
|
|
|
1336
1373
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1337
1374
|
*/
|
|
1338
1375
|
payer_id: string | null;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1379
|
+
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1380
|
+
*/
|
|
1381
|
+
verified_email?: string | null;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
interface Payto {
|
|
1385
|
+
/**
|
|
1386
|
+
* Bank-State-Branch number of the bank account.
|
|
1387
|
+
*/
|
|
1388
|
+
bsb_number: string | null;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Last four digits of the bank account number.
|
|
1392
|
+
*/
|
|
1393
|
+
last4: string | null;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* The PayID alias for the bank account.
|
|
1397
|
+
*/
|
|
1398
|
+
pay_id: string | null;
|
|
1339
1399
|
}
|
|
1340
1400
|
|
|
1341
1401
|
interface Pix {}
|
|
1342
1402
|
|
|
1343
1403
|
interface Promptpay {}
|
|
1344
1404
|
|
|
1405
|
+
interface Qris {}
|
|
1406
|
+
|
|
1407
|
+
interface Rechnung {
|
|
1408
|
+
dob?: Rechnung.Dob;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
namespace Rechnung {
|
|
1412
|
+
interface Dob {
|
|
1413
|
+
/**
|
|
1414
|
+
* The day of birth, between 1 and 31.
|
|
1415
|
+
*/
|
|
1416
|
+
day: number;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* The month of birth, between 1 and 12.
|
|
1420
|
+
*/
|
|
1421
|
+
month: number;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* The four-digit year of birth.
|
|
1425
|
+
*/
|
|
1426
|
+
year: number;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1345
1430
|
interface RevolutPay {}
|
|
1346
1431
|
|
|
1347
1432
|
interface SamsungPay {}
|
|
@@ -1392,6 +1477,8 @@ declare module 'stripe' {
|
|
|
1392
1477
|
}
|
|
1393
1478
|
}
|
|
1394
1479
|
|
|
1480
|
+
interface Shopeepay {}
|
|
1481
|
+
|
|
1395
1482
|
interface Sofort {
|
|
1396
1483
|
/**
|
|
1397
1484
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1422,7 +1509,9 @@ declare module 'stripe' {
|
|
|
1422
1509
|
| 'eps'
|
|
1423
1510
|
| 'fpx'
|
|
1424
1511
|
| 'giropay'
|
|
1512
|
+
| 'gopay'
|
|
1425
1513
|
| 'grabpay'
|
|
1514
|
+
| 'id_bank_transfer'
|
|
1426
1515
|
| 'ideal'
|
|
1427
1516
|
| 'interac_present'
|
|
1428
1517
|
| 'kakao_pay'
|
|
@@ -1430,6 +1519,7 @@ declare module 'stripe' {
|
|
|
1430
1519
|
| 'konbini'
|
|
1431
1520
|
| 'kr_card'
|
|
1432
1521
|
| 'link'
|
|
1522
|
+
| 'mb_way'
|
|
1433
1523
|
| 'mobilepay'
|
|
1434
1524
|
| 'multibanco'
|
|
1435
1525
|
| 'naver_pay'
|
|
@@ -1438,11 +1528,15 @@ declare module 'stripe' {
|
|
|
1438
1528
|
| 'payco'
|
|
1439
1529
|
| 'paynow'
|
|
1440
1530
|
| 'paypal'
|
|
1531
|
+
| 'payto'
|
|
1441
1532
|
| 'pix'
|
|
1442
1533
|
| 'promptpay'
|
|
1534
|
+
| 'qris'
|
|
1535
|
+
| 'rechnung'
|
|
1443
1536
|
| 'revolut_pay'
|
|
1444
1537
|
| 'samsung_pay'
|
|
1445
1538
|
| 'sepa_debit'
|
|
1539
|
+
| 'shopeepay'
|
|
1446
1540
|
| 'sofort'
|
|
1447
1541
|
| 'swish'
|
|
1448
1542
|
| 'twint'
|
|
@@ -1456,6 +1550,11 @@ declare module 'stripe' {
|
|
|
1456
1550
|
*/
|
|
1457
1551
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1458
1552
|
|
|
1553
|
+
/**
|
|
1554
|
+
* Account number of the bank account.
|
|
1555
|
+
*/
|
|
1556
|
+
account_number?: string | null;
|
|
1557
|
+
|
|
1459
1558
|
/**
|
|
1460
1559
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1461
1560
|
*/
|
package/types/Coupons.d.ts
CHANGED
package/types/CreditNotes.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ declare module 'stripe' {
|
|
|
106
106
|
*/
|
|
107
107
|
pdf: string;
|
|
108
108
|
|
|
109
|
+
post_payment_amount?: number;
|
|
110
|
+
|
|
111
|
+
pre_payment_amount?: number;
|
|
112
|
+
|
|
109
113
|
/**
|
|
110
114
|
* The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
|
111
115
|
*/
|
|
@@ -121,6 +125,11 @@ declare module 'stripe' {
|
|
|
121
125
|
*/
|
|
122
126
|
refund: string | Stripe.Refund | null;
|
|
123
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Refunds related to this credit note.
|
|
130
|
+
*/
|
|
131
|
+
refunds?: Array<CreditNote.Refund>;
|
|
132
|
+
|
|
124
133
|
/**
|
|
125
134
|
* The details of the cost of shipping, including the ShippingRate applied to the invoice.
|
|
126
135
|
*/
|
|
@@ -214,6 +223,18 @@ declare module 'stripe' {
|
|
|
214
223
|
| 'order_change'
|
|
215
224
|
| 'product_unsatisfactory';
|
|
216
225
|
|
|
226
|
+
interface Refund {
|
|
227
|
+
/**
|
|
228
|
+
* Amount of the refund that applies to this credit note, in cents (or local equivalent).
|
|
229
|
+
*/
|
|
230
|
+
amount_refunded: number;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* ID of the refund.
|
|
234
|
+
*/
|
|
235
|
+
refund: string | Stripe.Refund;
|
|
236
|
+
}
|
|
237
|
+
|
|
217
238
|
interface ShippingCost {
|
|
218
239
|
/**
|
|
219
240
|
* Total shipping cost before any taxes are applied.
|
|
@@ -68,6 +68,11 @@ 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
|
+
|
|
71
76
|
/**
|
|
72
77
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
73
78
|
*/
|
|
@@ -151,6 +156,18 @@ declare module 'stripe' {
|
|
|
151
156
|
| 'order_change'
|
|
152
157
|
| 'product_unsatisfactory';
|
|
153
158
|
|
|
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
|
+
|
|
154
171
|
interface ShippingCost {
|
|
155
172
|
/**
|
|
156
173
|
* The ID of the shipping rate to use for this order.
|
|
@@ -278,6 +295,11 @@ declare module 'stripe' {
|
|
|
278
295
|
*/
|
|
279
296
|
refund_amount?: number;
|
|
280
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Refunds to link to this credit note.
|
|
300
|
+
*/
|
|
301
|
+
refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
|
|
302
|
+
|
|
281
303
|
/**
|
|
282
304
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
283
305
|
*/
|
|
@@ -361,6 +383,18 @@ declare module 'stripe' {
|
|
|
361
383
|
| 'order_change'
|
|
362
384
|
| 'product_unsatisfactory';
|
|
363
385
|
|
|
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
|
+
|
|
364
398
|
interface ShippingCost {
|
|
365
399
|
/**
|
|
366
400
|
* The ID of the shipping rate to use for this order.
|
|
@@ -435,6 +469,11 @@ declare module 'stripe' {
|
|
|
435
469
|
*/
|
|
436
470
|
refund_amount?: number;
|
|
437
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Refunds to link to this credit note.
|
|
474
|
+
*/
|
|
475
|
+
refunds?: Array<CreditNotePreviewParams.Refund>;
|
|
476
|
+
|
|
438
477
|
/**
|
|
439
478
|
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
|
|
440
479
|
*/
|
|
@@ -518,6 +557,18 @@ declare module 'stripe' {
|
|
|
518
557
|
| 'order_change'
|
|
519
558
|
| 'product_unsatisfactory';
|
|
520
559
|
|
|
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
|
+
|
|
521
572
|
interface ShippingCost {
|
|
522
573
|
/**
|
|
523
574
|
* The ID of the shipping rate to use for this order.
|
|
@@ -525,7 +525,7 @@ declare module 'stripe' {
|
|
|
525
525
|
ip_address?: Stripe.Emptyable<string>;
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
|
-
* A flag that indicates when Stripe should validate the customer tax location. Defaults to `
|
|
528
|
+
* A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
|
|
529
529
|
*/
|
|
530
530
|
validate_location?: Tax.ValidateLocation;
|
|
531
531
|
}
|
|
@@ -834,13 +834,16 @@ declare module 'stripe' {
|
|
|
834
834
|
| 'eps'
|
|
835
835
|
| 'fpx'
|
|
836
836
|
| 'giropay'
|
|
837
|
+
| 'gopay'
|
|
837
838
|
| 'grabpay'
|
|
839
|
+
| 'id_bank_transfer'
|
|
838
840
|
| 'ideal'
|
|
839
841
|
| 'kakao_pay'
|
|
840
842
|
| 'klarna'
|
|
841
843
|
| 'konbini'
|
|
842
844
|
| 'kr_card'
|
|
843
845
|
| 'link'
|
|
846
|
+
| 'mb_way'
|
|
844
847
|
| 'mobilepay'
|
|
845
848
|
| 'multibanco'
|
|
846
849
|
| 'naver_pay'
|
|
@@ -849,11 +852,15 @@ declare module 'stripe' {
|
|
|
849
852
|
| 'payco'
|
|
850
853
|
| 'paynow'
|
|
851
854
|
| 'paypal'
|
|
855
|
+
| 'payto'
|
|
852
856
|
| 'pix'
|
|
853
857
|
| 'promptpay'
|
|
858
|
+
| 'qris'
|
|
859
|
+
| 'rechnung'
|
|
854
860
|
| 'revolut_pay'
|
|
855
861
|
| 'samsung_pay'
|
|
856
862
|
| 'sepa_debit'
|
|
863
|
+
| 'shopeepay'
|
|
857
864
|
| 'sofort'
|
|
858
865
|
| 'swish'
|
|
859
866
|
| 'twint'
|