stripe 17.6.0-beta.3 → 17.6.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 +124 -1040
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -8
- 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 -48
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -8
- 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 -33
- package/esm/stripe.core.js +1 -1
- 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 -222
- package/types/Accounts.d.ts +1 -190
- package/types/AccountsResource.d.ts +0 -520
- package/types/Cards.d.ts +0 -5
- package/types/Charges.d.ts +3 -141
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +4 -340
- package/types/Checkout/SessionsResource.d.ts +5 -445
- package/types/ConfirmationTokens.d.ts +1 -100
- 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 -7
- package/types/EventTypes.d.ts +0 -596
- package/types/Events.d.ts +0 -93
- 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 +1 -28
- package/types/Invoices.d.ts +2 -137
- package/types/InvoicesResource.d.ts +1882 -5567
- package/types/Issuing/Authorizations.d.ts +0 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -32
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -644
- package/types/PaymentIntentsResource.d.ts +3734 -8021
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +1 -100
- package/types/PaymentMethodsResource.d.ts +0 -133
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/Refunds.d.ts +2 -16
- package/types/SetupAttempts.d.ts +0 -38
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -645
- package/types/Sources.d.ts +0 -29
- 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 -91
- package/types/SubscriptionsResource.d.ts +2 -369
- package/types/Terminal/Readers.d.ts +0 -290
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- 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 -70
- package/types/index.d.ts +0 -62
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentAttemptRecords.js +0 -17
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentAttemptRecords.js +0 -14
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -113
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1179
- package/types/OrdersResource.d.ts +0 -2961
- package/types/PaymentAttemptRecords.d.ts +0 -242
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -242
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1658
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
|
@@ -73,12 +73,8 @@ declare module 'stripe' {
|
|
|
73
73
|
|
|
74
74
|
giropay?: PaymentMethod.Giropay;
|
|
75
75
|
|
|
76
|
-
gopay?: PaymentMethod.Gopay;
|
|
77
|
-
|
|
78
76
|
grabpay?: PaymentMethod.Grabpay;
|
|
79
77
|
|
|
80
|
-
id_bank_transfer?: PaymentMethod.IdBankTransfer;
|
|
81
|
-
|
|
82
78
|
ideal?: PaymentMethod.Ideal;
|
|
83
79
|
|
|
84
80
|
interac_present?: PaymentMethod.InteracPresent;
|
|
@@ -98,8 +94,6 @@ declare module 'stripe' {
|
|
|
98
94
|
*/
|
|
99
95
|
livemode: boolean;
|
|
100
96
|
|
|
101
|
-
mb_way?: PaymentMethod.MbWay;
|
|
102
|
-
|
|
103
97
|
/**
|
|
104
98
|
* 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.
|
|
105
99
|
*/
|
|
@@ -123,29 +117,21 @@ declare module 'stripe' {
|
|
|
123
117
|
|
|
124
118
|
paypal?: PaymentMethod.Paypal;
|
|
125
119
|
|
|
126
|
-
payto?: PaymentMethod.Payto;
|
|
127
|
-
|
|
128
120
|
pix?: PaymentMethod.Pix;
|
|
129
121
|
|
|
130
122
|
promptpay?: PaymentMethod.Promptpay;
|
|
131
123
|
|
|
132
|
-
qris?: PaymentMethod.Qris;
|
|
133
|
-
|
|
134
124
|
/**
|
|
135
125
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
136
126
|
*/
|
|
137
127
|
radar_options?: PaymentMethod.RadarOptions;
|
|
138
128
|
|
|
139
|
-
rechnung?: PaymentMethod.Rechnung;
|
|
140
|
-
|
|
141
129
|
revolut_pay?: PaymentMethod.RevolutPay;
|
|
142
130
|
|
|
143
131
|
samsung_pay?: PaymentMethod.SamsungPay;
|
|
144
132
|
|
|
145
133
|
sepa_debit?: PaymentMethod.SepaDebit;
|
|
146
134
|
|
|
147
|
-
shopeepay?: PaymentMethod.Shopeepay;
|
|
148
|
-
|
|
149
135
|
sofort?: PaymentMethod.Sofort;
|
|
150
136
|
|
|
151
137
|
swish?: PaymentMethod.Swish;
|
|
@@ -500,7 +486,7 @@ declare module 'stripe' {
|
|
|
500
486
|
network: string | null;
|
|
501
487
|
|
|
502
488
|
/**
|
|
503
|
-
* 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.
|
|
489
|
+
* 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.
|
|
504
490
|
*/
|
|
505
491
|
network_transaction_id: string | null;
|
|
506
492
|
|
|
@@ -963,24 +949,8 @@ declare module 'stripe' {
|
|
|
963
949
|
|
|
964
950
|
interface Giropay {}
|
|
965
951
|
|
|
966
|
-
interface Gopay {}
|
|
967
|
-
|
|
968
952
|
interface Grabpay {}
|
|
969
953
|
|
|
970
|
-
interface IdBankTransfer {
|
|
971
|
-
bank: IdBankTransfer.Bank | null;
|
|
972
|
-
|
|
973
|
-
bank_code: string | null;
|
|
974
|
-
|
|
975
|
-
bank_name: string | null;
|
|
976
|
-
|
|
977
|
-
display_name: string | null;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
namespace IdBankTransfer {
|
|
981
|
-
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
982
|
-
}
|
|
983
|
-
|
|
984
954
|
interface Ideal {
|
|
985
955
|
/**
|
|
986
956
|
* 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`.
|
|
@@ -1208,8 +1178,6 @@ declare module 'stripe' {
|
|
|
1208
1178
|
persistent_token?: string;
|
|
1209
1179
|
}
|
|
1210
1180
|
|
|
1211
|
-
interface MbWay {}
|
|
1212
|
-
|
|
1213
1181
|
interface Mobilepay {}
|
|
1214
1182
|
|
|
1215
1183
|
interface Multibanco {}
|
|
@@ -1276,11 +1244,6 @@ declare module 'stripe' {
|
|
|
1276
1244
|
*/
|
|
1277
1245
|
country: string | null;
|
|
1278
1246
|
|
|
1279
|
-
/**
|
|
1280
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1281
|
-
*/
|
|
1282
|
-
fingerprint?: string | null;
|
|
1283
|
-
|
|
1284
1247
|
/**
|
|
1285
1248
|
* Owner's email. Values are provided by PayPal directly
|
|
1286
1249
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1291,37 +1254,12 @@ declare module 'stripe' {
|
|
|
1291
1254
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1292
1255
|
*/
|
|
1293
1256
|
payer_id: string | null;
|
|
1294
|
-
|
|
1295
|
-
/**
|
|
1296
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1297
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1298
|
-
*/
|
|
1299
|
-
verified_email?: string | null;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
interface Payto {
|
|
1303
|
-
/**
|
|
1304
|
-
* Bank-State-Branch number of the bank account.
|
|
1305
|
-
*/
|
|
1306
|
-
bsb_number: string | null;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* Last four digits of the bank account number.
|
|
1310
|
-
*/
|
|
1311
|
-
last4: string | null;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* The PayID alias for the bank account.
|
|
1315
|
-
*/
|
|
1316
|
-
pay_id: string | null;
|
|
1317
1257
|
}
|
|
1318
1258
|
|
|
1319
1259
|
interface Pix {}
|
|
1320
1260
|
|
|
1321
1261
|
interface Promptpay {}
|
|
1322
1262
|
|
|
1323
|
-
interface Qris {}
|
|
1324
|
-
|
|
1325
1263
|
interface RadarOptions {
|
|
1326
1264
|
/**
|
|
1327
1265
|
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -1329,29 +1267,6 @@ declare module 'stripe' {
|
|
|
1329
1267
|
session?: string;
|
|
1330
1268
|
}
|
|
1331
1269
|
|
|
1332
|
-
interface Rechnung {
|
|
1333
|
-
dob?: Rechnung.Dob;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
namespace Rechnung {
|
|
1337
|
-
interface Dob {
|
|
1338
|
-
/**
|
|
1339
|
-
* The day of birth, between 1 and 31.
|
|
1340
|
-
*/
|
|
1341
|
-
day: number;
|
|
1342
|
-
|
|
1343
|
-
/**
|
|
1344
|
-
* The month of birth, between 1 and 12.
|
|
1345
|
-
*/
|
|
1346
|
-
month: number;
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* The four-digit year of birth.
|
|
1350
|
-
*/
|
|
1351
|
-
year: number;
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
1270
|
interface RevolutPay {}
|
|
1356
1271
|
|
|
1357
1272
|
interface SamsungPay {}
|
|
@@ -1402,8 +1317,6 @@ declare module 'stripe' {
|
|
|
1402
1317
|
}
|
|
1403
1318
|
}
|
|
1404
1319
|
|
|
1405
|
-
interface Shopeepay {}
|
|
1406
|
-
|
|
1407
1320
|
interface Sofort {
|
|
1408
1321
|
/**
|
|
1409
1322
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1434,9 +1347,7 @@ declare module 'stripe' {
|
|
|
1434
1347
|
| 'eps'
|
|
1435
1348
|
| 'fpx'
|
|
1436
1349
|
| 'giropay'
|
|
1437
|
-
| 'gopay'
|
|
1438
1350
|
| 'grabpay'
|
|
1439
|
-
| 'id_bank_transfer'
|
|
1440
1351
|
| 'ideal'
|
|
1441
1352
|
| 'interac_present'
|
|
1442
1353
|
| 'kakao_pay'
|
|
@@ -1444,7 +1355,6 @@ declare module 'stripe' {
|
|
|
1444
1355
|
| 'konbini'
|
|
1445
1356
|
| 'kr_card'
|
|
1446
1357
|
| 'link'
|
|
1447
|
-
| 'mb_way'
|
|
1448
1358
|
| 'mobilepay'
|
|
1449
1359
|
| 'multibanco'
|
|
1450
1360
|
| 'naver_pay'
|
|
@@ -1454,15 +1364,11 @@ declare module 'stripe' {
|
|
|
1454
1364
|
| 'payco'
|
|
1455
1365
|
| 'paynow'
|
|
1456
1366
|
| 'paypal'
|
|
1457
|
-
| 'payto'
|
|
1458
1367
|
| 'pix'
|
|
1459
1368
|
| 'promptpay'
|
|
1460
|
-
| 'qris'
|
|
1461
|
-
| 'rechnung'
|
|
1462
1369
|
| 'revolut_pay'
|
|
1463
1370
|
| 'samsung_pay'
|
|
1464
1371
|
| 'sepa_debit'
|
|
1465
|
-
| 'shopeepay'
|
|
1466
1372
|
| 'sofort'
|
|
1467
1373
|
| 'swish'
|
|
1468
1374
|
| 'twint'
|
|
@@ -1476,11 +1382,6 @@ declare module 'stripe' {
|
|
|
1476
1382
|
*/
|
|
1477
1383
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1478
1384
|
|
|
1479
|
-
/**
|
|
1480
|
-
* Account number of the bank account.
|
|
1481
|
-
*/
|
|
1482
|
-
account_number?: string | null;
|
|
1483
|
-
|
|
1484
1385
|
/**
|
|
1485
1386
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1486
1387
|
*/
|
|
@@ -108,21 +108,11 @@ declare module 'stripe' {
|
|
|
108
108
|
*/
|
|
109
109
|
giropay?: PaymentMethodCreateParams.Giropay;
|
|
110
110
|
|
|
111
|
-
/**
|
|
112
|
-
* If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
113
|
-
*/
|
|
114
|
-
gopay?: PaymentMethodCreateParams.Gopay;
|
|
115
|
-
|
|
116
111
|
/**
|
|
117
112
|
* If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
118
113
|
*/
|
|
119
114
|
grabpay?: PaymentMethodCreateParams.Grabpay;
|
|
120
115
|
|
|
121
|
-
/**
|
|
122
|
-
* If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
123
|
-
*/
|
|
124
|
-
id_bank_transfer?: PaymentMethodCreateParams.IdBankTransfer;
|
|
125
|
-
|
|
126
116
|
/**
|
|
127
117
|
* If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
128
118
|
*/
|
|
@@ -158,11 +148,6 @@ declare module 'stripe' {
|
|
|
158
148
|
*/
|
|
159
149
|
link?: PaymentMethodCreateParams.Link;
|
|
160
150
|
|
|
161
|
-
/**
|
|
162
|
-
* If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
163
|
-
*/
|
|
164
|
-
mb_way?: PaymentMethodCreateParams.MbWay;
|
|
165
|
-
|
|
166
151
|
/**
|
|
167
152
|
* 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`.
|
|
168
153
|
*/
|
|
@@ -218,11 +203,6 @@ declare module 'stripe' {
|
|
|
218
203
|
*/
|
|
219
204
|
paypal?: PaymentMethodCreateParams.Paypal;
|
|
220
205
|
|
|
221
|
-
/**
|
|
222
|
-
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
223
|
-
*/
|
|
224
|
-
payto?: PaymentMethodCreateParams.Payto;
|
|
225
|
-
|
|
226
206
|
/**
|
|
227
207
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
228
208
|
*/
|
|
@@ -233,21 +213,11 @@ declare module 'stripe' {
|
|
|
233
213
|
*/
|
|
234
214
|
promptpay?: PaymentMethodCreateParams.Promptpay;
|
|
235
215
|
|
|
236
|
-
/**
|
|
237
|
-
* If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
238
|
-
*/
|
|
239
|
-
qris?: PaymentMethodCreateParams.Qris;
|
|
240
|
-
|
|
241
216
|
/**
|
|
242
217
|
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
243
218
|
*/
|
|
244
219
|
radar_options?: PaymentMethodCreateParams.RadarOptions;
|
|
245
220
|
|
|
246
|
-
/**
|
|
247
|
-
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
248
|
-
*/
|
|
249
|
-
rechnung?: PaymentMethodCreateParams.Rechnung;
|
|
250
|
-
|
|
251
221
|
/**
|
|
252
222
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
253
223
|
*/
|
|
@@ -263,11 +233,6 @@ declare module 'stripe' {
|
|
|
263
233
|
*/
|
|
264
234
|
sepa_debit?: PaymentMethodCreateParams.SepaDebit;
|
|
265
235
|
|
|
266
|
-
/**
|
|
267
|
-
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
268
|
-
*/
|
|
269
|
-
shopeepay?: PaymentMethodCreateParams.Shopeepay;
|
|
270
|
-
|
|
271
236
|
/**
|
|
272
237
|
* If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
273
238
|
*/
|
|
@@ -521,21 +486,8 @@ declare module 'stripe' {
|
|
|
521
486
|
|
|
522
487
|
interface Giropay {}
|
|
523
488
|
|
|
524
|
-
interface Gopay {}
|
|
525
|
-
|
|
526
489
|
interface Grabpay {}
|
|
527
490
|
|
|
528
|
-
interface IdBankTransfer {
|
|
529
|
-
/**
|
|
530
|
-
* Bank where the account is held.
|
|
531
|
-
*/
|
|
532
|
-
bank?: IdBankTransfer.Bank;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
namespace IdBankTransfer {
|
|
536
|
-
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
537
|
-
}
|
|
538
|
-
|
|
539
491
|
interface Ideal {
|
|
540
492
|
/**
|
|
541
493
|
* The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
@@ -599,8 +551,6 @@ declare module 'stripe' {
|
|
|
599
551
|
|
|
600
552
|
interface Link {}
|
|
601
553
|
|
|
602
|
-
interface MbWay {}
|
|
603
|
-
|
|
604
554
|
interface Mobilepay {}
|
|
605
555
|
|
|
606
556
|
interface Multibanco {}
|
|
@@ -663,29 +613,10 @@ declare module 'stripe' {
|
|
|
663
613
|
|
|
664
614
|
interface Paypal {}
|
|
665
615
|
|
|
666
|
-
interface Payto {
|
|
667
|
-
/**
|
|
668
|
-
* The account number for the bank account.
|
|
669
|
-
*/
|
|
670
|
-
account_number?: string;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Bank-State-Branch number of the bank account.
|
|
674
|
-
*/
|
|
675
|
-
bsb_number?: string;
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* The PayID alias for the bank account.
|
|
679
|
-
*/
|
|
680
|
-
pay_id?: string;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
616
|
interface Pix {}
|
|
684
617
|
|
|
685
618
|
interface Promptpay {}
|
|
686
619
|
|
|
687
|
-
interface Qris {}
|
|
688
|
-
|
|
689
620
|
interface RadarOptions {
|
|
690
621
|
/**
|
|
691
622
|
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -693,32 +624,6 @@ declare module 'stripe' {
|
|
|
693
624
|
session?: string;
|
|
694
625
|
}
|
|
695
626
|
|
|
696
|
-
interface Rechnung {
|
|
697
|
-
/**
|
|
698
|
-
* Customer's date of birth
|
|
699
|
-
*/
|
|
700
|
-
dob: Rechnung.Dob;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
namespace Rechnung {
|
|
704
|
-
interface Dob {
|
|
705
|
-
/**
|
|
706
|
-
* The day of birth, between 1 and 31.
|
|
707
|
-
*/
|
|
708
|
-
day: number;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* The month of birth, between 1 and 12.
|
|
712
|
-
*/
|
|
713
|
-
month: number;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* The four-digit year of birth.
|
|
717
|
-
*/
|
|
718
|
-
year: number;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
|
|
722
627
|
interface RevolutPay {}
|
|
723
628
|
|
|
724
629
|
interface SamsungPay {}
|
|
@@ -730,8 +635,6 @@ declare module 'stripe' {
|
|
|
730
635
|
iban: string;
|
|
731
636
|
}
|
|
732
637
|
|
|
733
|
-
interface Shopeepay {}
|
|
734
|
-
|
|
735
638
|
interface Sofort {
|
|
736
639
|
/**
|
|
737
640
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -765,16 +668,13 @@ declare module 'stripe' {
|
|
|
765
668
|
| 'eps'
|
|
766
669
|
| 'fpx'
|
|
767
670
|
| 'giropay'
|
|
768
|
-
| 'gopay'
|
|
769
671
|
| 'grabpay'
|
|
770
|
-
| 'id_bank_transfer'
|
|
771
672
|
| 'ideal'
|
|
772
673
|
| 'kakao_pay'
|
|
773
674
|
| 'klarna'
|
|
774
675
|
| 'konbini'
|
|
775
676
|
| 'kr_card'
|
|
776
677
|
| 'link'
|
|
777
|
-
| 'mb_way'
|
|
778
678
|
| 'mobilepay'
|
|
779
679
|
| 'multibanco'
|
|
780
680
|
| 'naver_pay'
|
|
@@ -784,15 +684,11 @@ declare module 'stripe' {
|
|
|
784
684
|
| 'payco'
|
|
785
685
|
| 'paynow'
|
|
786
686
|
| 'paypal'
|
|
787
|
-
| 'payto'
|
|
788
687
|
| 'pix'
|
|
789
688
|
| 'promptpay'
|
|
790
|
-
| 'qris'
|
|
791
|
-
| 'rechnung'
|
|
792
689
|
| 'revolut_pay'
|
|
793
690
|
| 'samsung_pay'
|
|
794
691
|
| 'sepa_debit'
|
|
795
|
-
| 'shopeepay'
|
|
796
692
|
| 'sofort'
|
|
797
693
|
| 'swish'
|
|
798
694
|
| 'twint'
|
|
@@ -886,11 +782,6 @@ declare module 'stripe' {
|
|
|
886
782
|
*/
|
|
887
783
|
pay_by_bank?: PaymentMethodUpdateParams.PayByBank;
|
|
888
784
|
|
|
889
|
-
/**
|
|
890
|
-
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
891
|
-
*/
|
|
892
|
-
payto?: PaymentMethodUpdateParams.Payto;
|
|
893
|
-
|
|
894
785
|
/**
|
|
895
786
|
* If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
896
787
|
*/
|
|
@@ -967,23 +858,6 @@ declare module 'stripe' {
|
|
|
967
858
|
|
|
968
859
|
interface PayByBank {}
|
|
969
860
|
|
|
970
|
-
interface Payto {
|
|
971
|
-
/**
|
|
972
|
-
* The account number for the bank account.
|
|
973
|
-
*/
|
|
974
|
-
account_number?: string;
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Bank-State-Branch number of the bank account.
|
|
978
|
-
*/
|
|
979
|
-
bsb_number?: string;
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* The PayID alias for the bank account.
|
|
983
|
-
*/
|
|
984
|
-
pay_id?: string;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
861
|
interface UsBankAccount {
|
|
988
862
|
/**
|
|
989
863
|
* Bank account holder type.
|
|
@@ -1039,16 +913,13 @@ declare module 'stripe' {
|
|
|
1039
913
|
| 'eps'
|
|
1040
914
|
| 'fpx'
|
|
1041
915
|
| 'giropay'
|
|
1042
|
-
| 'gopay'
|
|
1043
916
|
| 'grabpay'
|
|
1044
|
-
| 'id_bank_transfer'
|
|
1045
917
|
| 'ideal'
|
|
1046
918
|
| 'kakao_pay'
|
|
1047
919
|
| 'klarna'
|
|
1048
920
|
| 'konbini'
|
|
1049
921
|
| 'kr_card'
|
|
1050
922
|
| 'link'
|
|
1051
|
-
| 'mb_way'
|
|
1052
923
|
| 'mobilepay'
|
|
1053
924
|
| 'multibanco'
|
|
1054
925
|
| 'naver_pay'
|
|
@@ -1058,15 +929,11 @@ declare module 'stripe' {
|
|
|
1058
929
|
| 'payco'
|
|
1059
930
|
| 'paynow'
|
|
1060
931
|
| 'paypal'
|
|
1061
|
-
| 'payto'
|
|
1062
932
|
| 'pix'
|
|
1063
933
|
| 'promptpay'
|
|
1064
|
-
| 'qris'
|
|
1065
|
-
| 'rechnung'
|
|
1066
934
|
| 'revolut_pay'
|
|
1067
935
|
| 'samsung_pay'
|
|
1068
936
|
| 'sepa_debit'
|
|
1069
|
-
| 'shopeepay'
|
|
1070
937
|
| 'sofort'
|
|
1071
938
|
| 'swish'
|
|
1072
939
|
| 'twint'
|
package/types/Prices.d.ts
CHANGED
|
@@ -93,11 +93,6 @@ declare module 'stripe' {
|
|
|
93
93
|
*/
|
|
94
94
|
metadata: Stripe.Metadata;
|
|
95
95
|
|
|
96
|
-
/**
|
|
97
|
-
* Subscriptions using this price will be migrated to use the new referenced price.
|
|
98
|
-
*/
|
|
99
|
-
migrate_to?: Price.MigrateTo | null;
|
|
100
|
-
|
|
101
96
|
/**
|
|
102
97
|
* A brief description of the price, hidden from customers.
|
|
103
98
|
*/
|
|
@@ -244,23 +239,6 @@ declare module 'stripe' {
|
|
|
244
239
|
preset: number | null;
|
|
245
240
|
}
|
|
246
241
|
|
|
247
|
-
interface MigrateTo {
|
|
248
|
-
/**
|
|
249
|
-
* The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
250
|
-
*/
|
|
251
|
-
behavior: 'at_cycle_end';
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
255
|
-
*/
|
|
256
|
-
effective_after: number;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* The id of the price being migrated to
|
|
260
|
-
*/
|
|
261
|
-
price: string;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
242
|
interface Recurring {
|
|
265
243
|
/**
|
|
266
244
|
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`.
|
|
@@ -372,11 +372,6 @@ declare module 'stripe' {
|
|
|
372
372
|
*/
|
|
373
373
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
374
374
|
|
|
375
|
-
/**
|
|
376
|
-
* If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
377
|
-
*/
|
|
378
|
-
migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
|
|
379
|
-
|
|
380
375
|
/**
|
|
381
376
|
* A brief description of the price, hidden from customers.
|
|
382
377
|
*/
|
|
@@ -474,23 +469,6 @@ declare module 'stripe' {
|
|
|
474
469
|
}
|
|
475
470
|
}
|
|
476
471
|
|
|
477
|
-
interface MigrateTo {
|
|
478
|
-
/**
|
|
479
|
-
* The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
480
|
-
*/
|
|
481
|
-
behavior: 'at_cycle_end';
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* The time after which subscriptions should start using the new price.
|
|
485
|
-
*/
|
|
486
|
-
effective_after?: number;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* The ID of the price object.
|
|
490
|
-
*/
|
|
491
|
-
price: string;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
472
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
495
473
|
}
|
|
496
474
|
|
package/types/Products.d.ts
CHANGED
|
@@ -98,11 +98,6 @@ declare module 'stripe' {
|
|
|
98
98
|
*/
|
|
99
99
|
package_dimensions: Product.PackageDimensions | null;
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* Provisioning configuration for this product.
|
|
103
|
-
*/
|
|
104
|
-
provisioning?: Product.Provisioning | null;
|
|
105
|
-
|
|
106
101
|
/**
|
|
107
102
|
* Whether this product is shipped (i.e., physical goods).
|
|
108
103
|
*/
|
|
@@ -169,40 +164,6 @@ declare module 'stripe' {
|
|
|
169
164
|
width: number;
|
|
170
165
|
}
|
|
171
166
|
|
|
172
|
-
interface Provisioning {
|
|
173
|
-
gift_card: Provisioning.GiftCard | null;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* The type of provisioning, only `gift_card` currently supported.
|
|
177
|
-
*/
|
|
178
|
-
type: 'gift_card';
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
namespace Provisioning {
|
|
182
|
-
interface GiftCard {
|
|
183
|
-
fixed_amount: GiftCard.FixedAmount | null;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
187
|
-
*/
|
|
188
|
-
type: 'fixed_amount';
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
namespace GiftCard {
|
|
192
|
-
interface FixedAmount {
|
|
193
|
-
/**
|
|
194
|
-
* The initial amount with which the provisioned gift card will be created.
|
|
195
|
-
*/
|
|
196
|
-
amount: number;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
200
|
-
*/
|
|
201
|
-
currency: string;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
167
|
type Type = 'good' | 'service';
|
|
207
168
|
}
|
|
208
169
|
}
|
|
@@ -53,11 +53,6 @@ declare module 'stripe' {
|
|
|
53
53
|
*/
|
|
54
54
|
package_dimensions?: ProductCreateParams.PackageDimensions;
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* Provisioning configuration for this product.
|
|
58
|
-
*/
|
|
59
|
-
provisioning?: ProductCreateParams.Provisioning;
|
|
60
|
-
|
|
61
56
|
/**
|
|
62
57
|
* Whether this product is shipped (i.e., physical goods).
|
|
63
58
|
*/
|
|
@@ -283,37 +278,6 @@ declare module 'stripe' {
|
|
|
283
278
|
width: number;
|
|
284
279
|
}
|
|
285
280
|
|
|
286
|
-
interface Provisioning {
|
|
287
|
-
gift_card?: Provisioning.GiftCard;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* The type of provisioning, only `gift_card` currently supported.
|
|
291
|
-
*/
|
|
292
|
-
type: 'gift_card';
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
namespace Provisioning {
|
|
296
|
-
interface GiftCard {
|
|
297
|
-
fixed_amount?: GiftCard.FixedAmount;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
|
|
301
|
-
*/
|
|
302
|
-
type: 'fixed_amount';
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
namespace GiftCard {
|
|
306
|
-
interface FixedAmount {
|
|
307
|
-
/**
|
|
308
|
-
* The initial amount with which the provisioned gift card will be created.
|
|
309
|
-
*/
|
|
310
|
-
amount: number;
|
|
311
|
-
|
|
312
|
-
currency: string;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
281
|
type Type = 'good' | 'service';
|
|
318
282
|
}
|
|
319
283
|
|