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.
- package/CHANGELOG.md +37 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +55 -55
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources.js +24 -24
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +44 -44
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources.js +5 -5
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +76 -13
- package/types/Accounts.d.ts +2 -2
- package/types/Balance.d.ts +2 -7
- package/types/BalanceSettings.d.ts +52 -46
- package/types/BalanceSettingsResource.d.ts +55 -46
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/MeterUsageRows.d.ts +1 -1
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Charges.d.ts +81 -5
- package/types/Checkout/Sessions.d.ts +70 -2
- package/types/Checkout/SessionsResource.d.ts +117 -3
- package/types/CreditNotesResource.d.ts +3 -3
- package/types/Disputes.d.ts +7 -2
- package/types/Errors.d.ts +45 -45
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/InvoicePaymentsResource.d.ts +3 -0
- package/types/Invoices.d.ts +3 -1
- package/types/InvoicesResource.d.ts +59 -0
- package/types/Issuing/CardsResource.d.ts +10 -0
- package/types/Mandates.d.ts +58 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/PaymentAttemptRecords.d.ts +164 -9
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntents.d.ts +136 -2
- package/types/PaymentIntentsResource.d.ts +280 -3
- package/types/PaymentLinksResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentRecords.d.ts +164 -9
- package/types/PaymentRecordsResource.d.ts +24 -3
- package/types/Payouts.d.ts +1 -1
- package/types/PromotionCodes.d.ts +5 -2
- package/types/QuotePreviewInvoices.d.ts +3 -1
- package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
- package/types/SetupAttempts.d.ts +7 -1
- package/types/SetupIntents.d.ts +95 -1
- package/types/SetupIntentsResource.d.ts +207 -0
- package/types/SubscriptionSchedules.d.ts +47 -0
- package/types/SubscriptionSchedulesResource.d.ts +112 -0
- package/types/SubscriptionsResource.d.ts +119 -7
- package/types/Terminal/Configurations.d.ts +28 -0
- package/types/Terminal/ConfigurationsResource.d.ts +72 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
- package/types/V2/Core/Accounts.d.ts +49 -0
- package/types/V2/Core/AccountsResource.d.ts +78 -0
- package/types/V2/Core/Persons.d.ts +16 -0
- package/types/V2/EventTypes.d.ts +377 -377
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +5 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +5 -5
- package/types/lib.d.ts +1 -1
- 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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
962
|
+
* An empty list, because this embedded component has no features.
|
|
900
963
|
*/
|
|
901
964
|
features?: TaxThresholdMonitoring.Features;
|
|
902
965
|
}
|
package/types/Accounts.d.ts
CHANGED
|
@@ -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
|
}
|
package/types/Balance.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
22
|
+
interface Payments {
|
|
33
23
|
/**
|
|
34
|
-
*
|
|
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
|
-
|
|
26
|
+
debit_negative_balances: boolean | null;
|
|
37
27
|
|
|
38
28
|
/**
|
|
39
|
-
*
|
|
29
|
+
* Settings specific to the account's payouts.
|
|
40
30
|
*/
|
|
41
|
-
|
|
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
|
|
50
|
-
interface
|
|
36
|
+
namespace Payments {
|
|
37
|
+
interface Payouts {
|
|
51
38
|
/**
|
|
52
|
-
*
|
|
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
|
-
|
|
41
|
+
schedule: Payouts.Schedule | null;
|
|
55
42
|
|
|
56
43
|
/**
|
|
57
|
-
* The
|
|
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
|
-
|
|
46
|
+
statement_descriptor: string | null;
|
|
60
47
|
|
|
61
48
|
/**
|
|
62
|
-
*
|
|
49
|
+
* Whether the funds in this account can be paid out.
|
|
63
50
|
*/
|
|
64
|
-
|
|
51
|
+
status: Payouts.Status;
|
|
65
52
|
}
|
|
66
53
|
|
|
67
|
-
namespace
|
|
68
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
*
|
|
14
|
+
* Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
|
|
15
15
|
*/
|
|
16
|
-
|
|
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
|
|
25
|
+
interface Payments {
|
|
36
26
|
/**
|
|
37
|
-
*
|
|
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
|
-
|
|
29
|
+
debit_negative_balances?: boolean;
|
|
40
30
|
|
|
41
31
|
/**
|
|
42
|
-
*
|
|
32
|
+
* Settings specific to the account's payouts.
|
|
43
33
|
*/
|
|
44
|
-
|
|
45
|
-
}
|
|
34
|
+
payouts?: Payments.Payouts;
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
47
|
+
schedule?: Payouts.Schedule;
|
|
58
48
|
|
|
59
49
|
/**
|
|
60
|
-
* The
|
|
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
|
-
|
|
52
|
+
statement_descriptor?: string;
|
|
63
53
|
}
|
|
64
54
|
|
|
65
|
-
namespace
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
|
114
|
+
params: BalanceSettingsUpdateParams,
|
|
106
115
|
options?: RequestOptions
|
|
107
116
|
): Promise<Stripe.Response<Stripe.BalanceSettings>>;
|
|
108
117
|
}
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
event_name: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* The time window
|
|
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
|
|
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
|
|