stripe 18.5.0-beta.2 → 18.6.0-beta.1

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +55 -55
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/Mandates.js +5 -0
  7. package/cjs/resources.js +24 -24
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/Error.js +44 -44
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/Mandates.js +5 -0
  12. package/esm/resources.js +5 -5
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/AccountSessions.d.ts +45 -0
  16. package/types/AccountSessionsResource.d.ts +76 -13
  17. package/types/Accounts.d.ts +2 -2
  18. package/types/Balance.d.ts +2 -7
  19. package/types/BalanceSettings.d.ts +52 -46
  20. package/types/BalanceSettingsResource.d.ts +55 -46
  21. package/types/Billing/AlertTriggereds.d.ts +1 -1
  22. package/types/Billing/MeterUsageRows.d.ts +1 -1
  23. package/types/Billing/Meters.d.ts +1 -1
  24. package/types/Billing/MetersResource.d.ts +1 -1
  25. package/types/BillingPortal/Configurations.d.ts +5 -0
  26. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  27. package/types/Charges.d.ts +81 -5
  28. package/types/Checkout/Sessions.d.ts +70 -2
  29. package/types/Checkout/SessionsResource.d.ts +117 -3
  30. package/types/CreditNotesResource.d.ts +3 -3
  31. package/types/Disputes.d.ts +7 -2
  32. package/types/Errors.d.ts +45 -45
  33. package/types/FileLinksResource.d.ts +1 -1
  34. package/types/Files.d.ts +1 -0
  35. package/types/FilesResource.d.ts +3 -1
  36. package/types/InvoicePaymentsResource.d.ts +3 -0
  37. package/types/Invoices.d.ts +3 -1
  38. package/types/InvoicesResource.d.ts +59 -0
  39. package/types/Issuing/CardsResource.d.ts +10 -0
  40. package/types/Mandates.d.ts +58 -1
  41. package/types/MandatesResource.d.ts +31 -0
  42. package/types/PaymentAttemptRecords.d.ts +164 -9
  43. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  44. package/types/PaymentIntents.d.ts +136 -2
  45. package/types/PaymentIntentsResource.d.ts +280 -3
  46. package/types/PaymentLinksResource.d.ts +1 -1
  47. package/types/PaymentMethods.d.ts +5 -0
  48. package/types/PaymentRecords.d.ts +164 -9
  49. package/types/PaymentRecordsResource.d.ts +24 -3
  50. package/types/Payouts.d.ts +1 -1
  51. package/types/PromotionCodes.d.ts +5 -2
  52. package/types/QuotePreviewInvoices.d.ts +3 -1
  53. package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
  54. package/types/SetupAttempts.d.ts +7 -1
  55. package/types/SetupIntents.d.ts +95 -1
  56. package/types/SetupIntentsResource.d.ts +207 -0
  57. package/types/SubscriptionSchedules.d.ts +47 -0
  58. package/types/SubscriptionSchedulesResource.d.ts +112 -0
  59. package/types/SubscriptionsResource.d.ts +119 -7
  60. package/types/Terminal/Configurations.d.ts +28 -0
  61. package/types/Terminal/ConfigurationsResource.d.ts +72 -0
  62. package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
  63. package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
  64. package/types/V2/Core/Accounts.d.ts +49 -0
  65. package/types/V2/Core/AccountsResource.d.ts +78 -0
  66. package/types/V2/Core/Persons.d.ts +16 -0
  67. package/types/V2/EventTypes.d.ts +377 -377
  68. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +5 -0
  69. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
  70. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
  71. package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
  72. package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
  73. package/types/WebhookEndpointsResource.d.ts +2 -1
  74. package/types/index.d.ts +5 -5
  75. package/types/lib.d.ts +1 -1
  76. package/types/test/typescriptTest.ts +3 -3
@@ -50,6 +50,8 @@ declare module 'stripe' {
50
50
 
51
51
  account_onboarding: Components.AccountOnboarding;
52
52
 
53
+ balance_report: Components.BalanceReport;
54
+
53
55
  balances: Components.Balances;
54
56
 
55
57
  capital_financing?: Components.CapitalFinancing | null;
@@ -80,6 +82,10 @@ declare module 'stripe' {
80
82
 
81
83
  payments: Components.Payments;
82
84
 
85
+ payout_details: Components.PayoutDetails;
86
+
87
+ payout_reconciliation_report: Components.PayoutReconciliationReport;
88
+
83
89
  payouts: Components.Payouts;
84
90
 
85
91
  payouts_list: Components.PayoutsList;
@@ -136,6 +142,19 @@ declare module 'stripe' {
136
142
  }
137
143
  }
138
144
 
145
+ interface BalanceReport {
146
+ /**
147
+ * Whether the embedded component is enabled.
148
+ */
149
+ enabled: boolean;
150
+
151
+ features: BalanceReport.Features;
152
+ }
153
+
154
+ namespace BalanceReport {
155
+ interface Features {}
156
+ }
157
+
139
158
  interface Balances {
140
159
  /**
141
160
  * Whether the embedded component is enabled.
@@ -526,6 +545,32 @@ declare module 'stripe' {
526
545
  }
527
546
  }
528
547
 
548
+ interface PayoutDetails {
549
+ /**
550
+ * Whether the embedded component is enabled.
551
+ */
552
+ enabled: boolean;
553
+
554
+ features: PayoutDetails.Features;
555
+ }
556
+
557
+ namespace PayoutDetails {
558
+ interface Features {}
559
+ }
560
+
561
+ interface PayoutReconciliationReport {
562
+ /**
563
+ * Whether the embedded component is enabled.
564
+ */
565
+ enabled: boolean;
566
+
567
+ features: PayoutReconciliationReport.Features;
568
+ }
569
+
570
+ namespace PayoutReconciliationReport {
571
+ interface Features {}
572
+ }
573
+
529
574
  interface Payouts {
530
575
  /**
531
576
  * Whether the embedded component is enabled.
@@ -41,6 +41,11 @@ declare module 'stripe' {
41
41
  */
42
42
  app_viewport?: Components.AppViewport;
43
43
 
44
+ /**
45
+ * Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
46
+ */
47
+ balance_report?: Components.BalanceReport;
48
+
44
49
  /**
45
50
  * Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component.
46
51
  */
@@ -131,6 +136,16 @@ declare module 'stripe' {
131
136
  */
132
137
  payments?: Components.Payments;
133
138
 
139
+ /**
140
+ * Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component.
141
+ */
142
+ payout_details?: Components.PayoutDetails;
143
+
144
+ /**
145
+ * Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
146
+ */
147
+ payout_reconciliation_report?: Components.PayoutReconciliationReport;
148
+
134
149
  /**
135
150
  * Configuration for the [payouts](https://docs.stripe.com/connect/supported-embedded-components/payouts/) embedded component.
136
151
  */
@@ -267,6 +282,22 @@ declare module 'stripe' {
267
282
  }
268
283
  }
269
284
 
285
+ interface BalanceReport {
286
+ /**
287
+ * Whether the embedded component is enabled.
288
+ */
289
+ enabled: boolean;
290
+
291
+ /**
292
+ * An empty list, because this embedded component has no features.
293
+ */
294
+ features?: BalanceReport.Features;
295
+ }
296
+
297
+ namespace BalanceReport {
298
+ interface Features {}
299
+ }
300
+
270
301
  interface Balances {
271
302
  /**
272
303
  * Whether the embedded component is enabled.
@@ -315,7 +346,7 @@ declare module 'stripe' {
315
346
  enabled: boolean;
316
347
 
317
348
  /**
318
- * The list of features enabled in the embedded component.
349
+ * An empty list, because this embedded component has no features.
319
350
  */
320
351
  features?: CapitalFinancing.Features;
321
352
  }
@@ -331,7 +362,7 @@ declare module 'stripe' {
331
362
  enabled: boolean;
332
363
 
333
364
  /**
334
- * The list of features enabled in the embedded component.
365
+ * An empty list, because this embedded component has no features.
335
366
  */
336
367
  features?: CapitalFinancingApplication.Features;
337
368
  }
@@ -347,7 +378,7 @@ declare module 'stripe' {
347
378
  enabled: boolean;
348
379
 
349
380
  /**
350
- * The list of features enabled in the embedded component.
381
+ * An empty list, because this embedded component has no features.
351
382
  */
352
383
  features?: CapitalFinancingPromotion.Features;
353
384
  }
@@ -363,7 +394,7 @@ declare module 'stripe' {
363
394
  enabled: boolean;
364
395
 
365
396
  /**
366
- * The list of features enabled in the embedded component.
397
+ * An empty list, because this embedded component has no features.
367
398
  */
368
399
  features?: CapitalOverview.Features;
369
400
  }
@@ -415,7 +446,7 @@ declare module 'stripe' {
415
446
  enabled: boolean;
416
447
 
417
448
  /**
418
- * The list of features enabled in the embedded component.
449
+ * An empty list, because this embedded component has no features.
419
450
  */
420
451
  features?: Documents.Features;
421
452
  }
@@ -431,7 +462,7 @@ declare module 'stripe' {
431
462
  enabled: boolean;
432
463
 
433
464
  /**
434
- * The list of features enabled in the embedded component.
465
+ * An empty list, because this embedded component has no features.
435
466
  */
436
467
  features?: ExportTaxTransactions.Features;
437
468
  }
@@ -705,7 +736,7 @@ declare module 'stripe' {
705
736
  enabled: boolean;
706
737
 
707
738
  /**
708
- * The list of features enabled in the embedded component.
739
+ * An empty list, because this embedded component has no features.
709
740
  */
710
741
  features?: PaymentMethodSettings.Features;
711
742
  }
@@ -750,6 +781,38 @@ declare module 'stripe' {
750
781
  }
751
782
  }
752
783
 
784
+ interface PayoutDetails {
785
+ /**
786
+ * Whether the embedded component is enabled.
787
+ */
788
+ enabled: boolean;
789
+
790
+ /**
791
+ * An empty list, because this embedded component has no features.
792
+ */
793
+ features?: PayoutDetails.Features;
794
+ }
795
+
796
+ namespace PayoutDetails {
797
+ interface Features {}
798
+ }
799
+
800
+ interface PayoutReconciliationReport {
801
+ /**
802
+ * Whether the embedded component is enabled.
803
+ */
804
+ enabled: boolean;
805
+
806
+ /**
807
+ * An empty list, because this embedded component has no features.
808
+ */
809
+ features?: PayoutReconciliationReport.Features;
810
+ }
811
+
812
+ namespace PayoutReconciliationReport {
813
+ interface Features {}
814
+ }
815
+
753
816
  interface Payouts {
754
817
  /**
755
818
  * Whether the embedded component is enabled.
@@ -798,7 +861,7 @@ declare module 'stripe' {
798
861
  enabled: boolean;
799
862
 
800
863
  /**
801
- * The list of features enabled in the embedded component.
864
+ * An empty list, because this embedded component has no features.
802
865
  */
803
866
  features?: PayoutsList.Features;
804
867
  }
@@ -814,7 +877,7 @@ declare module 'stripe' {
814
877
  enabled: boolean;
815
878
 
816
879
  /**
817
- * The list of features enabled in the embedded component.
880
+ * An empty list, because this embedded component has no features.
818
881
  */
819
882
  features?: ProductTaxCodeSelector.Features;
820
883
  }
@@ -848,7 +911,7 @@ declare module 'stripe' {
848
911
  enabled: boolean;
849
912
 
850
913
  /**
851
- * The list of features enabled in the embedded component.
914
+ * An empty list, because this embedded component has no features.
852
915
  */
853
916
  features?: ReportingChart.Features;
854
917
  }
@@ -864,7 +927,7 @@ declare module 'stripe' {
864
927
  enabled: boolean;
865
928
 
866
929
  /**
867
- * The list of features enabled in the embedded component.
930
+ * An empty list, because this embedded component has no features.
868
931
  */
869
932
  features?: TaxRegistrations.Features;
870
933
  }
@@ -880,7 +943,7 @@ declare module 'stripe' {
880
943
  enabled: boolean;
881
944
 
882
945
  /**
883
- * The list of features enabled in the embedded component.
946
+ * An empty list, because this embedded component has no features.
884
947
  */
885
948
  features?: TaxSettings.Features;
886
949
  }
@@ -896,7 +959,7 @@ declare module 'stripe' {
896
959
  enabled: boolean;
897
960
 
898
961
  /**
899
- * The list of features enabled in the embedded component.
962
+ * An empty list, because this embedded component has no features.
900
963
  */
901
964
  features?: TaxThresholdMonitoring.Features;
902
965
  }
@@ -1010,7 +1010,7 @@ declare module 'stripe' {
1010
1010
  namespace Verification {
1011
1011
  interface Document {
1012
1012
  /**
1013
- * The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
1013
+ * The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
1014
1014
  */
1015
1015
  back: string | Stripe.File | null;
1016
1016
 
@@ -1025,7 +1025,7 @@ declare module 'stripe' {
1025
1025
  details_code: string | null;
1026
1026
 
1027
1027
  /**
1028
- * The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
1028
+ * The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
1029
1029
  */
1030
1030
  front: string | Stripe.File | null;
1031
1031
  }
@@ -6,14 +6,9 @@ declare module 'stripe' {
6
6
  * This is an object representing your Stripe balance. You can retrieve it to see
7
7
  * the balance currently on your Stripe account.
8
8
  *
9
- * You can also retrieve the balance history, which contains a list of
10
- * [transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
11
- * (charges, payouts, and so forth).
9
+ * The top-level `available` and `pending` comprise your "payments balance."
12
10
  *
13
- * The available and pending amounts for each currency are broken down further by
14
- * payment source types.
15
- *
16
- * Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
11
+ * Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
17
12
  */
18
13
  interface Balance {
19
14
  /**
@@ -15,76 +15,82 @@ declare module 'stripe' {
15
15
  */
16
16
  object: 'balance_settings';
17
17
 
18
- /**
19
- * A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
20
- */
21
- debit_negative_balances: boolean | null;
22
-
23
- /**
24
- * Settings specific to the account's payouts.
25
- */
26
- payouts: BalanceSettings.Payouts | null;
27
-
28
- settlement_timing: BalanceSettings.SettlementTiming;
18
+ payments: BalanceSettings.Payments;
29
19
  }
30
20
 
31
21
  namespace BalanceSettings {
32
- interface Payouts {
22
+ interface Payments {
33
23
  /**
34
- * Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
24
+ * A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
35
25
  */
36
- schedule: Payouts.Schedule | null;
26
+ debit_negative_balances: boolean | null;
37
27
 
38
28
  /**
39
- * The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
29
+ * Settings specific to the account's payouts.
40
30
  */
41
- statement_descriptor: string | null;
31
+ payouts: Payments.Payouts | null;
42
32
 
43
- /**
44
- * Whether the funds in this account can be paid out.
45
- */
46
- status: Payouts.Status;
33
+ settlement_timing: Payments.SettlementTiming;
47
34
  }
48
35
 
49
- namespace Payouts {
50
- interface Schedule {
36
+ namespace Payments {
37
+ interface Payouts {
51
38
  /**
52
- * How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
39
+ * Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
53
40
  */
54
- interval: Schedule.Interval | null;
41
+ schedule: Payouts.Schedule | null;
55
42
 
56
43
  /**
57
- * The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
44
+ * The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
58
45
  */
59
- monthly_payout_days?: Array<number>;
46
+ statement_descriptor: string | null;
60
47
 
61
48
  /**
62
- * The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
49
+ * Whether the funds in this account can be paid out.
63
50
  */
64
- weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
51
+ status: Payouts.Status;
65
52
  }
66
53
 
67
- namespace Schedule {
68
- type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
54
+ namespace Payouts {
55
+ interface Schedule {
56
+ /**
57
+ * How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
58
+ */
59
+ interval: Schedule.Interval | null;
69
60
 
70
- type WeeklyPayoutDay =
71
- | 'friday'
72
- | 'monday'
73
- | 'saturday'
74
- | 'sunday'
75
- | 'thursday'
76
- | 'tuesday'
77
- | 'wednesday';
78
- }
61
+ /**
62
+ * The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
63
+ */
64
+ monthly_payout_days?: Array<number>;
79
65
 
80
- type Status = 'disabled' | 'enabled';
81
- }
66
+ /**
67
+ * The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
68
+ */
69
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
70
+ }
82
71
 
83
- interface SettlementTiming {
84
- /**
85
- * The number of days charge funds are held before becoming available.
86
- */
87
- delay_days: number;
72
+ namespace Schedule {
73
+ type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
74
+
75
+ type WeeklyPayoutDay =
76
+ | 'friday'
77
+ | 'monday'
78
+ | 'saturday'
79
+ | 'sunday'
80
+ | 'thursday'
81
+ | 'tuesday'
82
+ | 'wednesday';
83
+ }
84
+
85
+ type Status = 'disabled' | 'enabled';
86
+ }
87
+
88
+ interface SettlementTiming {
89
+ /**
90
+ * The number of days charge funds are held before becoming available.
91
+ */
92
+ delay_days: number;
93
+ }
88
94
  }
89
95
  }
90
96
  }
@@ -11,76 +11,85 @@ declare module 'stripe' {
11
11
 
12
12
  interface BalanceSettingsUpdateParams {
13
13
  /**
14
- * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
14
+ * Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
15
15
  */
16
- debit_negative_balances?: boolean;
16
+ payments: BalanceSettingsUpdateParams.Payments;
17
17
 
18
18
  /**
19
19
  * Specifies which fields in the response should be expanded.
20
20
  */
21
21
  expand?: Array<string>;
22
-
23
- /**
24
- * Settings specific to the account's payouts.
25
- */
26
- payouts?: BalanceSettingsUpdateParams.Payouts;
27
-
28
- /**
29
- * Settings related to the account's balance settlement timing.
30
- */
31
- settlement_timing?: BalanceSettingsUpdateParams.SettlementTiming;
32
22
  }
33
23
 
34
24
  namespace BalanceSettingsUpdateParams {
35
- interface Payouts {
25
+ interface Payments {
36
26
  /**
37
- * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
27
+ * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
38
28
  */
39
- schedule?: Payouts.Schedule;
29
+ debit_negative_balances?: boolean;
40
30
 
41
31
  /**
42
- * The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
32
+ * Settings specific to the account's payouts.
43
33
  */
44
- statement_descriptor?: string;
45
- }
34
+ payouts?: Payments.Payouts;
46
35
 
47
- namespace Payouts {
48
- interface Schedule {
49
- /**
50
- * How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
51
- */
52
- interval?: Schedule.Interval;
36
+ /**
37
+ * Settings related to the account's balance settlement timing.
38
+ */
39
+ settlement_timing?: Payments.SettlementTiming;
40
+ }
53
41
 
42
+ namespace Payments {
43
+ interface Payouts {
54
44
  /**
55
- * The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
45
+ * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
56
46
  */
57
- monthly_payout_days?: Array<number>;
47
+ schedule?: Payouts.Schedule;
58
48
 
59
49
  /**
60
- * The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
50
+ * The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
61
51
  */
62
- weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
52
+ statement_descriptor?: string;
63
53
  }
64
54
 
65
- namespace Schedule {
66
- type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
67
-
68
- type WeeklyPayoutDay =
69
- | 'friday'
70
- | 'monday'
71
- | 'saturday'
72
- | 'sunday'
73
- | 'thursday'
74
- | 'tuesday'
75
- | 'wednesday';
55
+ namespace Payouts {
56
+ interface Schedule {
57
+ /**
58
+ * How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
59
+ */
60
+ interval?: Schedule.Interval;
61
+
62
+ /**
63
+ * The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
64
+ */
65
+ monthly_payout_days?: Array<number>;
66
+
67
+ /**
68
+ * The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
69
+ */
70
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
71
+ }
72
+
73
+ namespace Schedule {
74
+ type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
75
+
76
+ type WeeklyPayoutDay =
77
+ | 'friday'
78
+ | 'monday'
79
+ | 'saturday'
80
+ | 'sunday'
81
+ | 'thursday'
82
+ | 'tuesday'
83
+ | 'wednesday';
84
+ }
76
85
  }
77
- }
78
86
 
79
- interface SettlementTiming {
80
- /**
81
- * The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
82
- */
83
- delay_days_override?: number;
87
+ interface SettlementTiming {
88
+ /**
89
+ * The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
90
+ */
91
+ delay_days_override?: number;
92
+ }
84
93
  }
85
94
  }
86
95
 
@@ -102,7 +111,7 @@ declare module 'stripe' {
102
111
  * Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
103
112
  */
104
113
  update(
105
- params?: BalanceSettingsUpdateParams,
114
+ params: BalanceSettingsUpdateParams,
106
115
  options?: RequestOptions
107
116
  ): Promise<Stripe.Response<Stripe.BalanceSettings>>;
108
117
  }
@@ -35,7 +35,7 @@ declare module 'stripe' {
35
35
  /**
36
36
  * The value triggering the alert
37
37
  */
38
- value: number;
38
+ value: string;
39
39
  }
40
40
  }
41
41
  }
@@ -40,7 +40,7 @@ declare module 'stripe' {
40
40
  } | null;
41
41
 
42
42
  /**
43
- * The unique identifier for the meter.
43
+ * The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
44
44
  */
45
45
  meter_id: string | null;
46
46
  }
@@ -39,7 +39,7 @@ declare module 'stripe' {
39
39
  event_name: string;
40
40
 
41
41
  /**
42
- * The time window to pre-aggregate meter events for, if any.
42
+ * The time window which meter events have been pre-aggregated for, if any.
43
43
  */
44
44
  event_time_window: Meter.EventTimeWindow | null;
45
45
 
@@ -25,7 +25,7 @@ declare module 'stripe' {
25
25
  customer_mapping?: MeterCreateParams.CustomerMapping;
26
26
 
27
27
  /**
28
- * The time window to pre-aggregate meter events for, if any.
28
+ * The time window which meter events have been pre-aggregated for, if any.
29
29
  */
30
30
  event_time_window?: MeterCreateParams.EventTimeWindow;
31
31
 
@@ -62,6 +62,11 @@ declare module 'stripe' {
62
62
  */
63
63
  metadata: Stripe.Metadata | null;
64
64
 
65
+ /**
66
+ * The name of the configuration.
67
+ */
68
+ name: string | null;
69
+
65
70
  /**
66
71
  * Time at which the object was last updated. Measured in seconds since the Unix epoch.
67
72
  */