stripe 14.13.0 → 14.14.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,18 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 14.14.0 - 2024-01-25
4
+ * [#1998](https://github.com/stripe/stripe-node/pull/1998) Update generated code
5
+ * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
6
+ * Add support for new value `registered_charity` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure`
7
+ * Add support for `collection_options` on `AccountLinkCreateParams`
8
+ * Add support for `liability` on `Checkout.Session.automatic_tax`, `Checkout.SessionCreateParams.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, `PaymentLinkUpdateParams.automatic_tax`, `Quote.automatic_tax`, `QuoteCreateParams.automatic_tax`, `QuoteUpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionScheduleCreateParams.default_settings.automatic_tax`, `SubscriptionScheduleCreateParams.phases[].automatic_tax`, `SubscriptionScheduleUpdateParams.default_settings.automatic_tax`, and `SubscriptionScheduleUpdateParams.phases[].automatic_tax`
9
+ * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `Checkout.SessionCreateParams.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, `PaymentLinkUpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings`
10
+ * Add support for `invoice_settings` on `Checkout.SessionCreateParams.subscription_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data`
11
+ * Add support for new value `challenge` on enums `Invoice.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.payment_settings.payment_method_options.card.request_three_d_secure`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`
12
+ * Add support for `promotion_code` on `InvoiceUpcomingLinesParams.discounts[]`, `InvoiceUpcomingLinesParams.invoice_items[].discounts[]`, `InvoiceUpcomingParams.discounts[]`, and `InvoiceUpcomingParams.invoice_items[].discounts[]`
13
+ * Add support for `account_type` on `PaymentMethodUpdateParams.us_bank_account`
14
+ * [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code
15
+ * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams`
16
+ * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
17
+ * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
18
+ * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required
19
+ * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice`
20
+ * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax`
21
+ * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`
22
+ * Add support for `pin` on `Issuing.CardCreateParams`
23
+ * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit`
24
+ * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
25
+ * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams`
26
+ * [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding
27
+
3
28
  ## 14.13.0 - 2024-01-18
4
29
  * [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code
5
- * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams`
6
- * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
7
- * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
8
- * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required
9
- * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice`
10
- * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax`
11
- * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`
12
- * Add support for `pin` on `Issuing.CardCreateParams`
13
- * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit`
14
- * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
15
- * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams`
30
+ * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams`
31
+ * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
32
+ * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
33
+ * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required
34
+ * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice`
35
+ * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax`
36
+ * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`
37
+ * Add support for `pin` on `Issuing.CardCreateParams`
38
+ * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit`
39
+ * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
40
+ * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams`
16
41
  * [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding
17
42
 
18
43
  ## 14.12.0 - 2024-01-12
package/VERSION CHANGED
@@ -1 +1 @@
1
- 14.13.0
1
+ 14.14.0
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '14.13.0';
37
+ Stripe.PACKAGE_VERSION = '14.14.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '14.13.0';
34
+ Stripe.PACKAGE_VERSION = '14.14.0';
35
35
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
36
36
  Stripe.StripeResource = StripeResource;
37
37
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "14.13.0",
3
+ "version": "14.14.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -14,10 +14,15 @@ declare module 'stripe' {
14
14
  type: AccountLinkCreateParams.Type;
15
15
 
16
16
  /**
17
- * Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.
17
+ * The collect parameter is deprecated. Use `collection_options` instead.
18
18
  */
19
19
  collect?: AccountLinkCreateParams.Collect;
20
20
 
21
+ /**
22
+ * Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
23
+ */
24
+ collection_options?: AccountLinkCreateParams.CollectionOptions;
25
+
21
26
  /**
22
27
  * Specifies which fields in the response should be expanded.
23
28
  */
@@ -37,6 +42,24 @@ declare module 'stripe' {
37
42
  namespace AccountLinkCreateParams {
38
43
  type Collect = 'currently_due' | 'eventually_due';
39
44
 
45
+ interface CollectionOptions {
46
+ /**
47
+ * Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
48
+ */
49
+ fields: CollectionOptions.Fields;
50
+
51
+ /**
52
+ * Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
53
+ */
54
+ future_requirements?: CollectionOptions.FutureRequirements;
55
+ }
56
+
57
+ namespace CollectionOptions {
58
+ type Fields = 'currently_due' | 'eventually_due';
59
+
60
+ type FutureRequirements = 'include' | 'omit';
61
+ }
62
+
40
63
  type Type = 'account_onboarding' | 'account_update';
41
64
  }
42
65
 
@@ -8,9 +8,8 @@ declare module 'stripe' {
8
8
  * enabled to make live charges or receive payouts.
9
9
  *
10
10
  * For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that
11
- * account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links)
12
- * for a Standard or Express account, some parameters are no longer returned. These are marked as **Custom Only** or **Custom and Express**
13
- * below. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
11
+ * account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),
12
+ * some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
14
13
  */
15
14
  interface Account {
16
15
  /**
@@ -29,7 +28,7 @@ declare module 'stripe' {
29
28
  business_profile?: Account.BusinessProfile | null;
30
29
 
31
30
  /**
32
- * The business type.
31
+ * The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property is only returned for Custom accounts.
33
32
  */
34
33
  business_type?: Account.BusinessType | null;
35
34
 
@@ -75,7 +74,7 @@ declare module 'stripe' {
75
74
  email: string | null;
76
75
 
77
76
  /**
78
- * External accounts (bank accounts and debit cards) currently attached to this account
77
+ * External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.
79
78
  */
80
79
  external_accounts?: ApiList<Stripe.ExternalAccount>;
81
80
 
@@ -118,6 +117,16 @@ declare module 'stripe' {
118
117
 
119
118
  namespace Account {
120
119
  interface BusinessProfile {
120
+ /**
121
+ * The applicant's gross annual revenue for its preceding fiscal year.
122
+ */
123
+ annual_revenue: BusinessProfile.AnnualRevenue | null;
124
+
125
+ /**
126
+ * An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
127
+ */
128
+ estimated_worker_count: number | null;
129
+
121
130
  /**
122
131
  * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
123
132
  */
@@ -162,6 +171,23 @@ declare module 'stripe' {
162
171
  }
163
172
 
164
173
  namespace BusinessProfile {
174
+ interface AnnualRevenue {
175
+ /**
176
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
177
+ */
178
+ amount: number | null;
179
+
180
+ /**
181
+ * 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).
182
+ */
183
+ currency: string | null;
184
+
185
+ /**
186
+ * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
187
+ */
188
+ fiscal_year_end: string | null;
189
+ }
190
+
165
191
  interface MonthlyEstimatedRevenue {
166
192
  /**
167
193
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
@@ -641,6 +667,7 @@ declare module 'stripe' {
641
667
  | 'public_company'
642
668
  | 'public_corporation'
643
669
  | 'public_partnership'
670
+ | 'registered_charity'
644
671
  | 'single_member_llc'
645
672
  | 'sole_establishment'
646
673
  | 'sole_proprietorship'
@@ -14,7 +14,7 @@ declare module 'stripe' {
14
14
  business_profile?: AccountCreateParams.BusinessProfile;
15
15
 
16
16
  /**
17
- * The business type.
17
+ * The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
18
18
  */
19
19
  business_type?: AccountCreateParams.BusinessType;
20
20
 
@@ -24,7 +24,7 @@ declare module 'stripe' {
24
24
  capabilities?: AccountCreateParams.Capabilities;
25
25
 
26
26
  /**
27
- * Information about the company or business. This field is available for any `business_type`.
27
+ * Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
28
28
  */
29
29
  company?: AccountCreateParams.Company;
30
30
 
@@ -57,11 +57,13 @@ declare module 'stripe' {
57
57
  * A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
58
58
  *
59
59
  * By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.
60
+ *
61
+ * Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
60
62
  */
61
63
  external_account?: string | AccountCreateParams.ExternalAccount;
62
64
 
63
65
  /**
64
- * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.
66
+ * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
65
67
  */
66
68
  individual?: AccountCreateParams.Individual;
67
69
 
@@ -76,7 +78,7 @@ declare module 'stripe' {
76
78
  settings?: AccountCreateParams.Settings;
77
79
 
78
80
  /**
79
- * Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
81
+ * Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance) This property can only be updated for Custom accounts.
80
82
  */
81
83
  tos_acceptance?: AccountCreateParams.TosAcceptance;
82
84
 
@@ -88,6 +90,16 @@ declare module 'stripe' {
88
90
 
89
91
  namespace AccountCreateParams {
90
92
  interface BusinessProfile {
93
+ /**
94
+ * The applicant's gross annual revenue for its preceding fiscal year.
95
+ */
96
+ annual_revenue?: BusinessProfile.AnnualRevenue;
97
+
98
+ /**
99
+ * An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
100
+ */
101
+ estimated_worker_count?: number;
102
+
91
103
  /**
92
104
  * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
93
105
  */
@@ -135,6 +147,23 @@ declare module 'stripe' {
135
147
  }
136
148
 
137
149
  namespace BusinessProfile {
150
+ interface AnnualRevenue {
151
+ /**
152
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
153
+ */
154
+ amount: number;
155
+
156
+ /**
157
+ * 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).
158
+ */
159
+ currency: string;
160
+
161
+ /**
162
+ * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
163
+ */
164
+ fiscal_year_end: string;
165
+ }
166
+
138
167
  interface MonthlyEstimatedRevenue {
139
168
  /**
140
169
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
@@ -733,6 +762,7 @@ declare module 'stripe' {
733
762
  | 'public_company'
734
763
  | 'public_corporation'
735
764
  | 'public_partnership'
765
+ | 'registered_charity'
736
766
  | 'single_member_llc'
737
767
  | 'sole_establishment'
738
768
  | 'sole_proprietorship'
@@ -1330,7 +1360,7 @@ declare module 'stripe' {
1330
1360
  business_profile?: AccountUpdateParams.BusinessProfile;
1331
1361
 
1332
1362
  /**
1333
- * The business type.
1363
+ * The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
1334
1364
  */
1335
1365
  business_type?: AccountUpdateParams.BusinessType;
1336
1366
 
@@ -1340,7 +1370,7 @@ declare module 'stripe' {
1340
1370
  capabilities?: AccountUpdateParams.Capabilities;
1341
1371
 
1342
1372
  /**
1343
- * Information about the company or business. This field is available for any `business_type`.
1373
+ * Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
1344
1374
  */
1345
1375
  company?: AccountUpdateParams.Company;
1346
1376
 
@@ -1368,6 +1398,8 @@ declare module 'stripe' {
1368
1398
  * A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
1369
1399
  *
1370
1400
  * By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.
1401
+ *
1402
+ * Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
1371
1403
  */
1372
1404
  external_account?: Stripe.Emptyable<
1373
1405
  | string
@@ -1377,7 +1409,7 @@ declare module 'stripe' {
1377
1409
  >;
1378
1410
 
1379
1411
  /**
1380
- * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.
1412
+ * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
1381
1413
  */
1382
1414
  individual?: AccountUpdateParams.Individual;
1383
1415
 
@@ -1392,7 +1424,7 @@ declare module 'stripe' {
1392
1424
  settings?: AccountUpdateParams.Settings;
1393
1425
 
1394
1426
  /**
1395
- * Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).
1427
+ * Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance) This property can only be updated for Custom accounts.
1396
1428
  */
1397
1429
  tos_acceptance?: AccountUpdateParams.TosAcceptance;
1398
1430
  }
@@ -1437,6 +1469,16 @@ declare module 'stripe' {
1437
1469
  }
1438
1470
 
1439
1471
  interface BusinessProfile {
1472
+ /**
1473
+ * The applicant's gross annual revenue for its preceding fiscal year.
1474
+ */
1475
+ annual_revenue?: BusinessProfile.AnnualRevenue;
1476
+
1477
+ /**
1478
+ * An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1479
+ */
1480
+ estimated_worker_count?: number;
1481
+
1440
1482
  /**
1441
1483
  * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
1442
1484
  */
@@ -1484,6 +1526,23 @@ declare module 'stripe' {
1484
1526
  }
1485
1527
 
1486
1528
  namespace BusinessProfile {
1529
+ interface AnnualRevenue {
1530
+ /**
1531
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
1532
+ */
1533
+ amount: number;
1534
+
1535
+ /**
1536
+ * 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).
1537
+ */
1538
+ currency: string;
1539
+
1540
+ /**
1541
+ * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1542
+ */
1543
+ fiscal_year_end: string;
1544
+ }
1545
+
1487
1546
  interface MonthlyEstimatedRevenue {
1488
1547
  /**
1489
1548
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
@@ -2125,6 +2184,7 @@ declare module 'stripe' {
2125
2184
  | 'public_company'
2126
2185
  | 'public_corporation'
2127
2186
  | 'public_partnership'
2187
+ | 'registered_charity'
2128
2188
  | 'single_member_llc'
2129
2189
  | 'sole_establishment'
2130
2190
  | 'sole_proprietorship'
@@ -3660,9 +3720,8 @@ declare module 'stripe' {
3660
3720
  * left unchanged.
3661
3721
  *
3662
3722
  * For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that
3663
- * account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links)
3664
- * for a Standard or Express account, some parameters can no longer be changed. These are marked as Custom Only or Custom and Express
3665
- * below.
3723
+ * account has started to go through Connect Onboarding. Once you create an [Account Link or <a href="/docs/api/account_sessions">Account Session](https://stripe.com/docs/api/account_links),
3724
+ * some properties can only be changed or updated for Custom accounts.
3666
3725
  *
3667
3726
  * To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
3668
3727
  * [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
@@ -346,9 +346,9 @@ declare module 'stripe' {
346
346
 
347
347
  class ChargesResource {
348
348
  /**
349
- * Use the [Payment Intents API](https://stripe.com/docs/api/payment_intents) to initiate a new payment instead
350
- * of using this method. Confirmation of the PaymentIntent creates the Charge
351
- * object used to request payment, so this method is limited to legacy integrations.
349
+ * This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
350
+ * to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
351
+ * object used to request payment.
352
352
  */
353
353
  create(
354
354
  params?: ChargeCreateParams,
@@ -100,7 +100,7 @@ declare module 'stripe' {
100
100
  currency_conversion: Session.CurrencyConversion | null;
101
101
 
102
102
  /**
103
- * Collect additional information from your customer using custom fields. Up to 2 fields are supported.
103
+ * Collect additional information from your customer using custom fields. Up to 3 fields are supported.
104
104
  */
105
105
  custom_fields: Array<Session.CustomField>;
106
106
 
@@ -336,6 +336,11 @@ declare module 'stripe' {
336
336
  */
337
337
  enabled: boolean;
338
338
 
339
+ /**
340
+ * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
341
+ */
342
+ liability: AutomaticTax.Liability | null;
343
+
339
344
  /**
340
345
  * The status of the most recent automated tax calculation for this session.
341
346
  */
@@ -343,6 +348,22 @@ declare module 'stripe' {
343
348
  }
344
349
 
345
350
  namespace AutomaticTax {
351
+ interface Liability {
352
+ /**
353
+ * The connected account being referenced when `type` is `account`.
354
+ */
355
+ account?: string | Stripe.Account;
356
+
357
+ /**
358
+ * Type of the account referenced.
359
+ */
360
+ type: Liability.Type;
361
+ }
362
+
363
+ namespace Liability {
364
+ type Type = 'account' | 'self';
365
+ }
366
+
346
367
  type Status = 'complete' | 'failed' | 'requires_location_inputs';
347
368
  }
348
369
 
@@ -733,6 +754,11 @@ declare module 'stripe' {
733
754
  */
734
755
  footer: string | null;
735
756
 
757
+ /**
758
+ * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
759
+ */
760
+ issuer: InvoiceData.Issuer | null;
761
+
736
762
  /**
737
763
  * 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.
738
764
  */
@@ -757,6 +783,22 @@ declare module 'stripe' {
757
783
  value: string;
758
784
  }
759
785
 
786
+ interface Issuer {
787
+ /**
788
+ * The connected account being referenced when `type` is `account`.
789
+ */
790
+ account?: string | Stripe.Account;
791
+
792
+ /**
793
+ * Type of the account referenced.
794
+ */
795
+ type: Issuer.Type;
796
+ }
797
+
798
+ namespace Issuer {
799
+ type Type = 'account' | 'self';
800
+ }
801
+
760
802
  interface RenderingOptions {
761
803
  /**
762
804
  * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
@@ -47,7 +47,7 @@ declare module 'stripe' {
47
47
  currency?: string;
48
48
 
49
49
  /**
50
- * Collect additional information from your customer using custom fields. Up to 2 fields are supported.
50
+ * Collect additional information from your customer using custom fields. Up to 3 fields are supported.
51
51
  */
52
52
  custom_fields?: Array<SessionCreateParams.CustomField>;
53
53
 
@@ -279,6 +279,29 @@ declare module 'stripe' {
279
279
  * Set to true to enable automatic taxes.
280
280
  */
281
281
  enabled: boolean;
282
+
283
+ /**
284
+ * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
285
+ */
286
+ liability?: AutomaticTax.Liability;
287
+ }
288
+
289
+ namespace AutomaticTax {
290
+ interface Liability {
291
+ /**
292
+ * The connected account being referenced when `type` is `account`.
293
+ */
294
+ account?: string;
295
+
296
+ /**
297
+ * Type of the account referenced in the request.
298
+ */
299
+ type: Liability.Type;
300
+ }
301
+
302
+ namespace Liability {
303
+ type Type = 'account' | 'self';
304
+ }
282
305
  }
283
306
 
284
307
  type BillingAddressCollection = 'auto' | 'required';
@@ -548,6 +571,11 @@ declare module 'stripe' {
548
571
  */
549
572
  footer?: string;
550
573
 
574
+ /**
575
+ * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
576
+ */
577
+ issuer?: InvoiceData.Issuer;
578
+
551
579
  /**
552
580
  * 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`.
553
581
  */
@@ -572,6 +600,22 @@ declare module 'stripe' {
572
600
  value: string;
573
601
  }
574
602
 
603
+ interface Issuer {
604
+ /**
605
+ * The connected account being referenced when `type` is `account`.
606
+ */
607
+ account?: string;
608
+
609
+ /**
610
+ * Type of the account referenced in the request.
611
+ */
612
+ type: Issuer.Type;
613
+ }
614
+
615
+ namespace Issuer {
616
+ type Type = 'account' | 'self';
617
+ }
618
+
575
619
  interface RenderingOptions {
576
620
  /**
577
621
  * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -709,7 +753,7 @@ declare module 'stripe' {
709
753
  interval: Recurring.Interval;
710
754
 
711
755
  /**
712
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
756
+ * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
713
757
  */
714
758
  interval_count?: number;
715
759
  }
@@ -2132,6 +2176,11 @@ declare module 'stripe' {
2132
2176
  */
2133
2177
  description?: string;
2134
2178
 
2179
+ /**
2180
+ * All invoices will be billed using the specified settings.
2181
+ */
2182
+ invoice_settings?: SubscriptionData.InvoiceSettings;
2183
+
2135
2184
  /**
2136
2185
  * 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`.
2137
2186
  */
@@ -2172,6 +2221,31 @@ declare module 'stripe' {
2172
2221
  }
2173
2222
 
2174
2223
  namespace SubscriptionData {
2224
+ interface InvoiceSettings {
2225
+ /**
2226
+ * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
2227
+ */
2228
+ issuer?: InvoiceSettings.Issuer;
2229
+ }
2230
+
2231
+ namespace InvoiceSettings {
2232
+ interface Issuer {
2233
+ /**
2234
+ * The connected account being referenced when `type` is `account`.
2235
+ */
2236
+ account?: string;
2237
+
2238
+ /**
2239
+ * Type of the account referenced in the request.
2240
+ */
2241
+ type: Issuer.Type;
2242
+ }
2243
+
2244
+ namespace Issuer {
2245
+ type Type = 'account' | 'self';
2246
+ }
2247
+ }
2248
+
2175
2249
  type ProrationBehavior = 'create_prorations' | 'none';
2176
2250
 
2177
2251
  interface TransferData {
@@ -4,7 +4,7 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  interface CustomerSessionCreateParams {
6
6
  /**
7
- * Configuration for each component. 1 component must be enabled.
7
+ * Configuration for each component. Exactly 1 component must be enabled.
8
8
  */
9
9
  components: CustomerSessionCreateParams.Components;
10
10
 
@@ -78,7 +78,7 @@ declare module 'stripe' {
78
78
 
79
79
  interface AccountSubscribeParams {
80
80
  /**
81
- * The list of account features to which you would like to subscribe.`.
81
+ * The list of account features to which you would like to subscribe.
82
82
  */
83
83
  features: Array<'transactions'>;
84
84