stripe 9.3.0 → 9.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 9.4.0 - 2022-05-23
4
+ * [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates
5
+ * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
6
+
3
7
  ## 9.3.0 - 2022-05-23
4
8
  * [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates
5
9
  * Add support for new resource `Apps.Secret`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 9.3.0
1
+ 9.4.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -291,6 +291,11 @@ declare module 'stripe' {
291
291
  */
292
292
  transfers?: Capabilities.Transfers;
293
293
 
294
+ /**
295
+ * The status of the banking capability, or whether the account can have bank accounts.
296
+ */
297
+ treasury?: Capabilities.Treasury;
298
+
294
299
  /**
295
300
  * 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
301
  */
@@ -352,6 +357,8 @@ declare module 'stripe' {
352
357
 
353
358
  type Transfers = 'active' | 'inactive' | 'pending';
354
359
 
360
+ type Treasury = 'active' | 'inactive' | 'pending';
361
+
355
362
  type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
356
363
  }
357
364
 
@@ -1326,6 +1333,11 @@ declare module 'stripe' {
1326
1333
  */
1327
1334
  transfers?: Capabilities.Transfers;
1328
1335
 
1336
+ /**
1337
+ * The treasury capability.
1338
+ */
1339
+ treasury?: Capabilities.Treasury;
1340
+
1329
1341
  /**
1330
1342
  * The us_bank_account_ach_payments capability.
1331
1343
  */
@@ -1522,6 +1534,13 @@ declare module 'stripe' {
1522
1534
  requested?: boolean;
1523
1535
  }
1524
1536
 
1537
+ interface Treasury {
1538
+ /**
1539
+ * 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.
1540
+ */
1541
+ requested?: boolean;
1542
+ }
1543
+
1525
1544
  interface UsBankAccountAchPayments {
1526
1545
  /**
1527
1546
  * 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.
@@ -2453,6 +2472,11 @@ declare module 'stripe' {
2453
2472
  */
2454
2473
  transfers?: Capabilities.Transfers;
2455
2474
 
2475
+ /**
2476
+ * The treasury capability.
2477
+ */
2478
+ treasury?: Capabilities.Treasury;
2479
+
2456
2480
  /**
2457
2481
  * The us_bank_account_ach_payments capability.
2458
2482
  */
@@ -2649,6 +2673,13 @@ declare module 'stripe' {
2649
2673
  requested?: boolean;
2650
2674
  }
2651
2675
 
2676
+ interface Treasury {
2677
+ /**
2678
+ * 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.
2679
+ */
2680
+ requested?: boolean;
2681
+ }
2682
+
2652
2683
  interface UsBankAccountAchPayments {
2653
2684
  /**
2654
2685
  * 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.