stripe 9.2.0 → 9.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 +26 -0
- package/VERSION +1 -1
- package/lib/net/HttpClient.js +7 -2
- package/lib/resources/Apps/Secrets.js +31 -0
- package/lib/resources.js +3 -0
- package/package.json +1 -1
- package/types/2020-08-27/Accounts.d.ts +103 -0
- package/types/2020-08-27/Apps/Secrets.d.ts +241 -0
- package/types/2020-08-27/Charges.d.ts +8 -0
- package/types/2020-08-27/Checkout/Sessions.d.ts +1 -0
- package/types/2020-08-27/Customers.d.ts +2 -0
- package/types/2020-08-27/Invoices.d.ts +3 -0
- package/types/2020-08-27/Mandates.d.ts +4 -0
- package/types/2020-08-27/Orders.d.ts +72 -0
- package/types/2020-08-27/PaymentIntents.d.ts +287 -0
- package/types/2020-08-27/PaymentMethods.d.ts +52 -0
- package/types/2020-08-27/Persons.d.ts +15 -0
- package/types/2020-08-27/SetupAttempts.d.ts +4 -0
- package/types/2020-08-27/SetupIntents.d.ts +93 -0
- package/types/2020-08-27/SubscriptionSchedules.d.ts +3 -3
- package/types/2020-08-27/Subscriptions.d.ts +3 -0
- package/types/2020-08-27/Terminal/Configurations.d.ts +5 -1
- package/types/2020-08-27/Tokens.d.ts +10 -0
- package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +36 -0
- package/types/2020-08-27/index.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 9.5.0 - 2022-05-26
|
|
4
|
+
* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates
|
|
5
|
+
* Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
6
|
+
* Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
|
|
7
|
+
* Add support for new value `affirm` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
8
|
+
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions`
|
|
9
|
+
* Add support for `id_number_secondary_provided` on `Person`
|
|
10
|
+
* Add support for `card_issuing` on `TreasuryFinancialAccountCreateParams.features`, `TreasuryFinancialAccountUpdateFeaturesParams`, and `TreasuryFinancialAccountUpdateParams.features`
|
|
11
|
+
|
|
12
|
+
* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status.
|
|
13
|
+
|
|
14
|
+
## 9.4.0 - 2022-05-23
|
|
15
|
+
* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates
|
|
16
|
+
* Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
17
|
+
|
|
18
|
+
## 9.3.0 - 2022-05-23
|
|
19
|
+
* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates
|
|
20
|
+
* Add support for new resource `Apps.Secret`
|
|
21
|
+
* Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
22
|
+
* Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
|
23
|
+
* Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type`
|
|
24
|
+
* Add support for new value `link` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
|
|
25
|
+
* Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
|
|
26
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type`
|
|
27
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethod.type`
|
|
28
|
+
|
|
3
29
|
## 9.2.0 - 2022-05-19
|
|
4
30
|
* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates
|
|
5
31
|
* Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.5.0
|
package/lib/net/HttpClient.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Encapsulates the logic for issuing a request to the Stripe API.
|
|
5
|
-
*
|
|
4
|
+
* Encapsulates the logic for issuing a request to the Stripe API.
|
|
5
|
+
*
|
|
6
|
+
* A custom HTTP client should should implement:
|
|
7
|
+
* 1. A response class which extends HttpClientResponse and wraps around their
|
|
8
|
+
* own internal representation of a response.
|
|
9
|
+
* 2. A client class which extends HttpClient and implements all methods,
|
|
10
|
+
* returning their own response class when making requests.
|
|
6
11
|
*/
|
|
7
12
|
class HttpClient {
|
|
8
13
|
/** The client name used for diagnostics. */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'apps/secrets',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
|
|
22
|
+
deleteWhere: stripeMethod({
|
|
23
|
+
method: 'POST',
|
|
24
|
+
path: '/delete',
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
find: stripeMethod({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
path: '/find',
|
|
30
|
+
}),
|
|
31
|
+
});
|
package/lib/resources.js
CHANGED
|
@@ -55,6 +55,9 @@ module.exports = {
|
|
|
55
55
|
Topups: require('./resources/Topups'),
|
|
56
56
|
Transfers: require('./resources/Transfers'),
|
|
57
57
|
WebhookEndpoints: require('./resources/WebhookEndpoints'),
|
|
58
|
+
Apps: resourceNamespace('apps', {
|
|
59
|
+
Secrets: require('./resources/Apps/Secrets'),
|
|
60
|
+
}),
|
|
58
61
|
BillingPortal: resourceNamespace('billingPortal', {
|
|
59
62
|
Configurations: require('./resources/BillingPortal/Configurations'),
|
|
60
63
|
Sessions: require('./resources/BillingPortal/Sessions'),
|
package/package.json
CHANGED
|
@@ -161,6 +161,11 @@ declare module 'stripe' {
|
|
|
161
161
|
*/
|
|
162
162
|
acss_debit_payments?: Capabilities.AcssDebitPayments;
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
|
|
166
|
+
*/
|
|
167
|
+
affirm_payments?: Capabilities.AffirmPayments;
|
|
168
|
+
|
|
164
169
|
/**
|
|
165
170
|
* The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
|
|
166
171
|
*/
|
|
@@ -251,6 +256,11 @@ declare module 'stripe' {
|
|
|
251
256
|
*/
|
|
252
257
|
legacy_payments?: Capabilities.LegacyPayments;
|
|
253
258
|
|
|
259
|
+
/**
|
|
260
|
+
* The status of the link_payments capability of the account, or whether the account can directly process Link charges.
|
|
261
|
+
*/
|
|
262
|
+
link_payments?: Capabilities.LinkPayments;
|
|
263
|
+
|
|
254
264
|
/**
|
|
255
265
|
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
|
|
256
266
|
*/
|
|
@@ -291,6 +301,11 @@ declare module 'stripe' {
|
|
|
291
301
|
*/
|
|
292
302
|
transfers?: Capabilities.Transfers;
|
|
293
303
|
|
|
304
|
+
/**
|
|
305
|
+
* The status of the banking capability, or whether the account can have bank accounts.
|
|
306
|
+
*/
|
|
307
|
+
treasury?: Capabilities.Treasury;
|
|
308
|
+
|
|
294
309
|
/**
|
|
295
310
|
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
|
296
311
|
*/
|
|
@@ -300,6 +315,8 @@ declare module 'stripe' {
|
|
|
300
315
|
namespace Capabilities {
|
|
301
316
|
type AcssDebitPayments = 'active' | 'inactive' | 'pending';
|
|
302
317
|
|
|
318
|
+
type AffirmPayments = 'active' | 'inactive' | 'pending';
|
|
319
|
+
|
|
303
320
|
type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending';
|
|
304
321
|
|
|
305
322
|
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -336,6 +353,8 @@ declare module 'stripe' {
|
|
|
336
353
|
|
|
337
354
|
type LegacyPayments = 'active' | 'inactive' | 'pending';
|
|
338
355
|
|
|
356
|
+
type LinkPayments = 'active' | 'inactive' | 'pending';
|
|
357
|
+
|
|
339
358
|
type OxxoPayments = 'active' | 'inactive' | 'pending';
|
|
340
359
|
|
|
341
360
|
type P24Payments = 'active' | 'inactive' | 'pending';
|
|
@@ -352,6 +371,8 @@ declare module 'stripe' {
|
|
|
352
371
|
|
|
353
372
|
type Transfers = 'active' | 'inactive' | 'pending';
|
|
354
373
|
|
|
374
|
+
type Treasury = 'active' | 'inactive' | 'pending';
|
|
375
|
+
|
|
355
376
|
type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
|
|
356
377
|
}
|
|
357
378
|
|
|
@@ -1196,6 +1217,11 @@ declare module 'stripe' {
|
|
|
1196
1217
|
*/
|
|
1197
1218
|
acss_debit_payments?: Capabilities.AcssDebitPayments;
|
|
1198
1219
|
|
|
1220
|
+
/**
|
|
1221
|
+
* The affirm_payments capability.
|
|
1222
|
+
*/
|
|
1223
|
+
affirm_payments?: Capabilities.AffirmPayments;
|
|
1224
|
+
|
|
1199
1225
|
/**
|
|
1200
1226
|
* The afterpay_clearpay_payments capability.
|
|
1201
1227
|
*/
|
|
@@ -1286,6 +1312,11 @@ declare module 'stripe' {
|
|
|
1286
1312
|
*/
|
|
1287
1313
|
legacy_payments?: Capabilities.LegacyPayments;
|
|
1288
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* The link_payments capability.
|
|
1317
|
+
*/
|
|
1318
|
+
link_payments?: Capabilities.LinkPayments;
|
|
1319
|
+
|
|
1289
1320
|
/**
|
|
1290
1321
|
* The oxxo_payments capability.
|
|
1291
1322
|
*/
|
|
@@ -1326,6 +1357,11 @@ declare module 'stripe' {
|
|
|
1326
1357
|
*/
|
|
1327
1358
|
transfers?: Capabilities.Transfers;
|
|
1328
1359
|
|
|
1360
|
+
/**
|
|
1361
|
+
* The treasury capability.
|
|
1362
|
+
*/
|
|
1363
|
+
treasury?: Capabilities.Treasury;
|
|
1364
|
+
|
|
1329
1365
|
/**
|
|
1330
1366
|
* The us_bank_account_ach_payments capability.
|
|
1331
1367
|
*/
|
|
@@ -1340,6 +1376,13 @@ declare module 'stripe' {
|
|
|
1340
1376
|
requested?: boolean;
|
|
1341
1377
|
}
|
|
1342
1378
|
|
|
1379
|
+
interface AffirmPayments {
|
|
1380
|
+
/**
|
|
1381
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
1382
|
+
*/
|
|
1383
|
+
requested?: boolean;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1343
1386
|
interface AfterpayClearpayPayments {
|
|
1344
1387
|
/**
|
|
1345
1388
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1466,6 +1509,13 @@ declare module 'stripe' {
|
|
|
1466
1509
|
requested?: boolean;
|
|
1467
1510
|
}
|
|
1468
1511
|
|
|
1512
|
+
interface LinkPayments {
|
|
1513
|
+
/**
|
|
1514
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
1515
|
+
*/
|
|
1516
|
+
requested?: boolean;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1469
1519
|
interface OxxoPayments {
|
|
1470
1520
|
/**
|
|
1471
1521
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1522,6 +1572,13 @@ declare module 'stripe' {
|
|
|
1522
1572
|
requested?: boolean;
|
|
1523
1573
|
}
|
|
1524
1574
|
|
|
1575
|
+
interface Treasury {
|
|
1576
|
+
/**
|
|
1577
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
1578
|
+
*/
|
|
1579
|
+
requested?: boolean;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1525
1582
|
interface UsBankAccountAchPayments {
|
|
1526
1583
|
/**
|
|
1527
1584
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1864,6 +1921,11 @@ declare module 'stripe' {
|
|
|
1864
1921
|
*/
|
|
1865
1922
|
id_number?: string;
|
|
1866
1923
|
|
|
1924
|
+
/**
|
|
1925
|
+
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
|
|
1926
|
+
*/
|
|
1927
|
+
id_number_secondary?: string;
|
|
1928
|
+
|
|
1867
1929
|
/**
|
|
1868
1930
|
* The individual's last name.
|
|
1869
1931
|
*/
|
|
@@ -2323,6 +2385,11 @@ declare module 'stripe' {
|
|
|
2323
2385
|
*/
|
|
2324
2386
|
acss_debit_payments?: Capabilities.AcssDebitPayments;
|
|
2325
2387
|
|
|
2388
|
+
/**
|
|
2389
|
+
* The affirm_payments capability.
|
|
2390
|
+
*/
|
|
2391
|
+
affirm_payments?: Capabilities.AffirmPayments;
|
|
2392
|
+
|
|
2326
2393
|
/**
|
|
2327
2394
|
* The afterpay_clearpay_payments capability.
|
|
2328
2395
|
*/
|
|
@@ -2413,6 +2480,11 @@ declare module 'stripe' {
|
|
|
2413
2480
|
*/
|
|
2414
2481
|
legacy_payments?: Capabilities.LegacyPayments;
|
|
2415
2482
|
|
|
2483
|
+
/**
|
|
2484
|
+
* The link_payments capability.
|
|
2485
|
+
*/
|
|
2486
|
+
link_payments?: Capabilities.LinkPayments;
|
|
2487
|
+
|
|
2416
2488
|
/**
|
|
2417
2489
|
* The oxxo_payments capability.
|
|
2418
2490
|
*/
|
|
@@ -2453,6 +2525,11 @@ declare module 'stripe' {
|
|
|
2453
2525
|
*/
|
|
2454
2526
|
transfers?: Capabilities.Transfers;
|
|
2455
2527
|
|
|
2528
|
+
/**
|
|
2529
|
+
* The treasury capability.
|
|
2530
|
+
*/
|
|
2531
|
+
treasury?: Capabilities.Treasury;
|
|
2532
|
+
|
|
2456
2533
|
/**
|
|
2457
2534
|
* The us_bank_account_ach_payments capability.
|
|
2458
2535
|
*/
|
|
@@ -2467,6 +2544,13 @@ declare module 'stripe' {
|
|
|
2467
2544
|
requested?: boolean;
|
|
2468
2545
|
}
|
|
2469
2546
|
|
|
2547
|
+
interface AffirmPayments {
|
|
2548
|
+
/**
|
|
2549
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2550
|
+
*/
|
|
2551
|
+
requested?: boolean;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2470
2554
|
interface AfterpayClearpayPayments {
|
|
2471
2555
|
/**
|
|
2472
2556
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -2593,6 +2677,13 @@ declare module 'stripe' {
|
|
|
2593
2677
|
requested?: boolean;
|
|
2594
2678
|
}
|
|
2595
2679
|
|
|
2680
|
+
interface LinkPayments {
|
|
2681
|
+
/**
|
|
2682
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2683
|
+
*/
|
|
2684
|
+
requested?: boolean;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2596
2687
|
interface OxxoPayments {
|
|
2597
2688
|
/**
|
|
2598
2689
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -2649,6 +2740,13 @@ declare module 'stripe' {
|
|
|
2649
2740
|
requested?: boolean;
|
|
2650
2741
|
}
|
|
2651
2742
|
|
|
2743
|
+
interface Treasury {
|
|
2744
|
+
/**
|
|
2745
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2746
|
+
*/
|
|
2747
|
+
requested?: boolean;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2652
2750
|
interface UsBankAccountAchPayments {
|
|
2653
2751
|
/**
|
|
2654
2752
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -2954,6 +3052,11 @@ declare module 'stripe' {
|
|
|
2954
3052
|
*/
|
|
2955
3053
|
id_number?: string;
|
|
2956
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
|
|
3057
|
+
*/
|
|
3058
|
+
id_number_secondary?: string;
|
|
3059
|
+
|
|
2957
3060
|
/**
|
|
2958
3061
|
* The individual's last name.
|
|
2959
3062
|
*/
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Apps {
|
|
6
|
+
/**
|
|
7
|
+
* The Secret object.
|
|
8
|
+
*/
|
|
9
|
+
interface Secret {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'apps.secret';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* If true, indicates that this secret has been deleted
|
|
27
|
+
*/
|
|
28
|
+
deleted?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
32
|
+
*/
|
|
33
|
+
livemode: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A name for the secret that's unique within the scope.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The plaintext secret value to be stored.
|
|
42
|
+
*/
|
|
43
|
+
payload: string | null;
|
|
44
|
+
|
|
45
|
+
scope: Secret.Scope;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace Secret {
|
|
49
|
+
interface Scope {
|
|
50
|
+
/**
|
|
51
|
+
* The secret scope type.
|
|
52
|
+
*/
|
|
53
|
+
type: Scope.Type;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The user ID, if type is set to "user"
|
|
57
|
+
*/
|
|
58
|
+
user?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
namespace Scope {
|
|
62
|
+
type Type = 'account' | 'user';
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface SecretCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* A name for the secret that's unique within the scope.
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The plaintext secret value to be stored.
|
|
74
|
+
*/
|
|
75
|
+
payload: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
79
|
+
*/
|
|
80
|
+
scope: SecretCreateParams.Scope;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Specifies which fields in the response should be expanded.
|
|
84
|
+
*/
|
|
85
|
+
expand?: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
namespace SecretCreateParams {
|
|
89
|
+
interface Scope {
|
|
90
|
+
/**
|
|
91
|
+
* The secret scope type.
|
|
92
|
+
*/
|
|
93
|
+
type: Scope.Type;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
97
|
+
*/
|
|
98
|
+
user?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
namespace Scope {
|
|
102
|
+
type Type = 'account' | 'user';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface SecretListParams extends PaginationParams {
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
109
|
+
*/
|
|
110
|
+
scope: SecretListParams.Scope;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Specifies which fields in the response should be expanded.
|
|
114
|
+
*/
|
|
115
|
+
expand?: Array<string>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
namespace SecretListParams {
|
|
119
|
+
interface Scope {
|
|
120
|
+
/**
|
|
121
|
+
* The secret scope type.
|
|
122
|
+
*/
|
|
123
|
+
type: Scope.Type;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
127
|
+
*/
|
|
128
|
+
user?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
namespace Scope {
|
|
132
|
+
type Type = 'account' | 'user';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface SecretDeleteWhereParams {
|
|
137
|
+
/**
|
|
138
|
+
* A name for the secret that's unique within the scope.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
144
|
+
*/
|
|
145
|
+
scope: SecretDeleteWhereParams.Scope;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Specifies which fields in the response should be expanded.
|
|
149
|
+
*/
|
|
150
|
+
expand?: Array<string>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
namespace SecretDeleteWhereParams {
|
|
154
|
+
interface Scope {
|
|
155
|
+
/**
|
|
156
|
+
* The secret scope type.
|
|
157
|
+
*/
|
|
158
|
+
type: Scope.Type;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
162
|
+
*/
|
|
163
|
+
user?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
namespace Scope {
|
|
167
|
+
type Type = 'account' | 'user';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface SecretFindParams {
|
|
172
|
+
/**
|
|
173
|
+
* A name for the secret that's unique within the scope.
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
179
|
+
*/
|
|
180
|
+
scope: SecretFindParams.Scope;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Specifies which fields in the response should be expanded.
|
|
184
|
+
*/
|
|
185
|
+
expand?: Array<string>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
namespace SecretFindParams {
|
|
189
|
+
interface Scope {
|
|
190
|
+
/**
|
|
191
|
+
* The secret scope type.
|
|
192
|
+
*/
|
|
193
|
+
type: Scope.Type;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
197
|
+
*/
|
|
198
|
+
user?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
namespace Scope {
|
|
202
|
+
type Type = 'account' | 'user';
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
class SecretsResource {
|
|
207
|
+
/**
|
|
208
|
+
* Create or replace a secret in the secret store.
|
|
209
|
+
*/
|
|
210
|
+
create(
|
|
211
|
+
params: SecretCreateParams,
|
|
212
|
+
options?: RequestOptions
|
|
213
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* List all secrets stored on the given scope.
|
|
217
|
+
*/
|
|
218
|
+
list(
|
|
219
|
+
params: SecretListParams,
|
|
220
|
+
options?: RequestOptions
|
|
221
|
+
): ApiListPromise<Stripe.Apps.Secret>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Deletes a secret from the secret store by name and scope.
|
|
225
|
+
*/
|
|
226
|
+
deleteWhere(
|
|
227
|
+
params: SecretDeleteWhereParams,
|
|
228
|
+
options?: RequestOptions
|
|
229
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Finds a secret in the secret store by name and scope.
|
|
233
|
+
*/
|
|
234
|
+
find(
|
|
235
|
+
params: SecretFindParams,
|
|
236
|
+
options?: RequestOptions
|
|
237
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -388,6 +388,8 @@ declare module 'stripe' {
|
|
|
388
388
|
|
|
389
389
|
acss_debit?: PaymentMethodDetails.AcssDebit;
|
|
390
390
|
|
|
391
|
+
affirm?: PaymentMethodDetails.Affirm;
|
|
392
|
+
|
|
391
393
|
afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay;
|
|
392
394
|
|
|
393
395
|
alipay?: PaymentMethodDetails.Alipay;
|
|
@@ -422,6 +424,8 @@ declare module 'stripe' {
|
|
|
422
424
|
|
|
423
425
|
konbini?: PaymentMethodDetails.Konbini;
|
|
424
426
|
|
|
427
|
+
link?: PaymentMethodDetails.Link;
|
|
428
|
+
|
|
425
429
|
multibanco?: PaymentMethodDetails.Multibanco;
|
|
426
430
|
|
|
427
431
|
oxxo?: PaymentMethodDetails.Oxxo;
|
|
@@ -543,6 +547,8 @@ declare module 'stripe' {
|
|
|
543
547
|
transit_number: string | null;
|
|
544
548
|
}
|
|
545
549
|
|
|
550
|
+
interface Affirm {}
|
|
551
|
+
|
|
546
552
|
interface AfterpayClearpay {
|
|
547
553
|
/**
|
|
548
554
|
* Order identifier shown to the merchant in Afterpay's online portal.
|
|
@@ -1469,6 +1475,8 @@ declare module 'stripe' {
|
|
|
1469
1475
|
}
|
|
1470
1476
|
}
|
|
1471
1477
|
|
|
1478
|
+
interface Link {}
|
|
1479
|
+
|
|
1472
1480
|
interface Multibanco {
|
|
1473
1481
|
/**
|
|
1474
1482
|
* Entity number associated with this Multibanco payment.
|
|
@@ -810,6 +810,7 @@ declare module 'stripe' {
|
|
|
810
810
|
namespace CustomerListPaymentMethodsParams {
|
|
811
811
|
type Type =
|
|
812
812
|
| 'acss_debit'
|
|
813
|
+
| 'affirm'
|
|
813
814
|
| 'afterpay_clearpay'
|
|
814
815
|
| 'alipay'
|
|
815
816
|
| 'au_becs_debit'
|
|
@@ -826,6 +827,7 @@ declare module 'stripe' {
|
|
|
826
827
|
| 'ideal'
|
|
827
828
|
| 'klarna'
|
|
828
829
|
| 'konbini'
|
|
830
|
+
| 'link'
|
|
829
831
|
| 'oxxo'
|
|
830
832
|
| 'p24'
|
|
831
833
|
| 'paynow'
|
|
@@ -745,6 +745,7 @@ declare module 'stripe' {
|
|
|
745
745
|
| 'grabpay'
|
|
746
746
|
| 'ideal'
|
|
747
747
|
| 'konbini'
|
|
748
|
+
| 'link'
|
|
748
749
|
| 'paynow'
|
|
749
750
|
| 'sepa_credit_transfer'
|
|
750
751
|
| 'sepa_debit'
|
|
@@ -1193,6 +1194,7 @@ declare module 'stripe' {
|
|
|
1193
1194
|
| 'grabpay'
|
|
1194
1195
|
| 'ideal'
|
|
1195
1196
|
| 'konbini'
|
|
1197
|
+
| 'link'
|
|
1196
1198
|
| 'paynow'
|
|
1197
1199
|
| 'sepa_credit_transfer'
|
|
1198
1200
|
| 'sepa_debit'
|
|
@@ -1533,6 +1535,7 @@ declare module 'stripe' {
|
|
|
1533
1535
|
| 'grabpay'
|
|
1534
1536
|
| 'ideal'
|
|
1535
1537
|
| 'konbini'
|
|
1538
|
+
| 'link'
|
|
1536
1539
|
| 'paynow'
|
|
1537
1540
|
| 'sepa_credit_transfer'
|
|
1538
1541
|
| 'sepa_debit'
|
|
@@ -91,6 +91,8 @@ declare module 'stripe' {
|
|
|
91
91
|
|
|
92
92
|
card?: PaymentMethodDetails.Card;
|
|
93
93
|
|
|
94
|
+
link?: PaymentMethodDetails.Link;
|
|
95
|
+
|
|
94
96
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
95
97
|
|
|
96
98
|
/**
|
|
@@ -162,6 +164,8 @@ declare module 'stripe' {
|
|
|
162
164
|
|
|
163
165
|
interface Card {}
|
|
164
166
|
|
|
167
|
+
interface Link {}
|
|
168
|
+
|
|
165
169
|
interface SepaDebit {
|
|
166
170
|
/**
|
|
167
171
|
* The unique reference of the mandate.
|