stripe 18.4.0-beta.1 → 18.4.0-beta.2

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.4.0-beta.2 - 2025-07-09
4
+ * [#2367](https://github.com/stripe/stripe-node/pull/2367) Pull in V2 FinancialAccount changes for June release
5
+ * Add support for `close` and `create` methods on resource `V2.MoneyManagement.FinancialAccount`
6
+ * Add support for new value `storer` on enums `V2.Core.Account.applied_configurations` and `V2.Core.AccountCloseParams.applied_configurations`
7
+ * Add support for `storer` on `V2.Core.Account.configuration`, `V2.Core.AccountCreateParams.configuration`, and `V2.Core.AccountUpdateParams.configuration`
8
+ * Add support for new values `financial_addresses.bank_accounts`, `holds_currencies.gbp`, `inbound_transfers.financial_accounts`, `outbound_payments.bank_accounts`, `outbound_payments.cards`, `outbound_payments.financial_accounts`, `outbound_transfers.bank_accounts`, and `outbound_transfers.financial_accounts` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
9
+ * Add support for new value `storer` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].configuration`
10
+ * Add support for `status_details` on `V2.MoneyManagement.FinancialAccount`
11
+ * Add support for `status` on `V2.MoneyManagement.FinancialAccountListParams`
12
+ * Add support for new value `configuration.storer` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
13
+ * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2.Core.Account`
14
+ * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError`
15
+ * [#2362](https://github.com/stripe/stripe-node/pull/2362) Prathmesh/merge node beta
16
+
3
17
  ## 18.4.0-beta.1 - 2025-07-01
4
18
  * [#2344](https://github.com/stripe/stripe-node/pull/2344) Update generated code for beta
5
19
  * Change type of `Checkout.SessionCreateParams.subscription_data.billing_mode`, `InvoiceCreatePreviewParams.schedule_details.billing_mode`, `InvoiceCreatePreviewParams.subscription_details.billing_mode`, `Quote.subscription_data.billing_mode`, `QuoteCreateParams.subscription_data.billing_mode`, `SubscriptionCreateParams.billing_mode`, and `SubscriptionScheduleCreateParams.billing_mode` from `enum('classic'|'flexible')` to `billing_mode`
@@ -37,6 +51,45 @@
37
51
  * Add support for error code `recipient_email_does_not_exist` on `RecipientNotNotifiableError`
38
52
  * Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`
39
53
 
54
+ ## 18.3.0 - 2025-07-01
55
+ * [#2348](https://github.com/stripe/stripe-node/pull/2348) Update generated code
56
+ * Add support for `migrate` method on resource `Subscription`
57
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
58
+ * Add support for `crypto_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
59
+ * Add support for `proof_of_address` on `AccountCreateParams.documents` and `AccountUpdateParams.documents`
60
+ * Add support for `monthly_payout_days` and `weekly_payout_days` on `Account.settings.payouts.schedule`, `AccountCreateParams.settings.payouts.schedule`, and `AccountUpdateParams.settings.payouts.schedule`
61
+ * Change `Account.settings.invoices.hosted_payment_method_save` to be required
62
+ * Add support for `crypto` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
63
+ * Change type of `Charge.payment_method_details.card.installments.plan.type`, `ConfirmationToken.payment_method_options.card.installments.plan.type`, `ConfirmationTokenCreateParams.testHelpers.payment_method_options.card.installments.plan.type`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.type`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.type`, `PaymentIntent.payment_method_options.card.installments.available_plans[].type`, `PaymentIntent.payment_method_options.card.installments.plan.type`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.type`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.type`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.type` from `literal('fixed_count')` to `enum('bonus'|'fixed_count'|'revolving')`
64
+ * Add support for new value `buut` on enums `Charge.payment_method_details.ideal.bank`, `ConfirmationToken.payment_method_preview.ideal.bank`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.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`
65
+ * Add support for new value `BUUTNL2A` on enums `Charge.payment_method_details.ideal.bic`, `ConfirmationToken.payment_method_preview.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
66
+ * Add support for `subscriptions` on `Checkout.SessionCreateParams.payment_method_options.klarna`, `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, and `PaymentIntentUpdateParams.payment_method_options.klarna`
67
+ * Add support for new value `crypto` on enum `Checkout.SessionCreateParams.payment_method_types`
68
+ * Add support for `billing_mode` on `Checkout.SessionCreateParams.subscription_data`, `InvoiceCreatePreviewParams.schedule_details`, `InvoiceCreatePreviewParams.subscription_details`, `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionScheduleCreateParams`, `SubscriptionSchedule`, and `Subscription`
69
+ * Add support for new value `crypto` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
70
+ * Add support for new value `crypto` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
71
+ * Add support for new value `crypto` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
72
+ * Change type of `Dispute.enhanced_eligibility_types` from `literal('visa_compelling_evidence_3')` to `enum('visa_compelling_evidence_3'|'visa_compliance')`
73
+ * Add support for new value `compliance` on enum `Dispute.payment_method_details.card.case_type`
74
+ * Add support for new value `terminal.reader.action_updated` on enum `Event.type`
75
+ * Add support for `related_person` on `Identity.VerificationSessionCreateParams` and `Identity.VerificationSession`
76
+ * Add support for `matching` on `Identity.VerificationSession.options`
77
+ * Add support for new value `crypto` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
78
+ * Add support for `klarna` on `Mandate.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
79
+ * Add support for `on_demand` on `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, and `PaymentIntentUpdateParams.payment_method_options.klarna`
80
+ * Change type of `PaymentIntent.payment_method_options.klarna.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.klarna.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.klarna.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')`
81
+ * Add support for `ua` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
82
+ * Change type of `Terminal.LocationUpdateParams.display_name` from `string` to `emptyable(string)`
83
+ * Add support for `collect_payment_method` and `confirm_payment_intent` on `Terminal.Reader.action`
84
+ * Add support for new values `collect_payment_method` and `confirm_payment_intent` on enum `Terminal.Reader.action.type`
85
+ * Add support for `status` on `Treasury.FinancialAccountListParams`
86
+ * Add support for new value `terminal.reader.action_updated` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
87
+ * Add support for new value `2025-06-30.basil` on enum `WebhookEndpointCreateParams.api_version`
88
+ * Add support for snapshot event `TerminalReaderActionUpdatedEvent` with resource `Terminal.Reader`
89
+ * [#2356](https://github.com/stripe/stripe-node/pull/2356) add mise config for node version
90
+ * [#2354](https://github.com/stripe/stripe-node/pull/2354) Add stripeContext to RequestOptions interface
91
+ - Add `stripeContext` to the`RequestOptions` and `StripeConfig` interfaces.
92
+
40
93
  ## 18.3.0-beta.2 - 2025-06-26
41
94
  * [#2358](https://github.com/stripe/stripe-node/pull/2358) Pull in OffSessionPayment changes for the May release
42
95
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.4.0-beta.1
1
+ 18.4.0-beta.2
package/cjs/Error.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable camelcase */
3
3
  /* eslint-disable no-warning-comments */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.InvalidPaymentMethodError = exports.ControlledByDashboardError = exports.InvalidPayoutMethodError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.InsufficientFundsError = exports.NotCancelableError = exports.AlreadyCanceledError = exports.BlockedByStripeError = exports.FeatureNotEnabledError = exports.FinancialAccountNotOpenError = exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
5
+ exports.InvalidPaymentMethodError = exports.ControlledByDashboardError = exports.InvalidPayoutMethodError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.InsufficientFundsError = exports.NotCancelableError = exports.AlreadyCanceledError = exports.BlockedByStripeError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.AlreadyExistsError = exports.NonZeroBalanceError = exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
6
6
  const generateV1Error = (rawStripeError) => {
7
7
  switch (rawStripeError.type) {
8
8
  case 'card_error':
@@ -30,10 +30,14 @@ const generateV2Error = (rawStripeError) => {
30
30
  // switchCases: The beginning of the section generated from our OpenAPI spec
31
31
  case 'temporary_session_expired':
32
32
  return new TemporarySessionExpiredError(rawStripeError);
33
- case 'financial_account_not_open':
34
- return new FinancialAccountNotOpenError(rawStripeError);
33
+ case 'non_zero_balance':
34
+ return new NonZeroBalanceError(rawStripeError);
35
+ case 'already_exists':
36
+ return new AlreadyExistsError(rawStripeError);
35
37
  case 'feature_not_enabled':
36
38
  return new FeatureNotEnabledError(rawStripeError);
39
+ case 'financial_account_not_open':
40
+ return new FinancialAccountNotOpenError(rawStripeError);
37
41
  case 'blocked_by_stripe':
38
42
  return new BlockedByStripeError(rawStripeError);
39
43
  case 'already_canceled':
@@ -222,18 +226,30 @@ class TemporarySessionExpiredError extends StripeError {
222
226
  }
223
227
  }
224
228
  exports.TemporarySessionExpiredError = TemporarySessionExpiredError;
225
- class FinancialAccountNotOpenError extends StripeError {
229
+ class NonZeroBalanceError extends StripeError {
226
230
  constructor(rawStripeError = {}) {
227
- super(rawStripeError, 'FinancialAccountNotOpenError');
231
+ super(rawStripeError, 'NonZeroBalanceError');
228
232
  }
229
233
  }
230
- exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
234
+ exports.NonZeroBalanceError = NonZeroBalanceError;
235
+ class AlreadyExistsError extends StripeError {
236
+ constructor(rawStripeError = {}) {
237
+ super(rawStripeError, 'AlreadyExistsError');
238
+ }
239
+ }
240
+ exports.AlreadyExistsError = AlreadyExistsError;
231
241
  class FeatureNotEnabledError extends StripeError {
232
242
  constructor(rawStripeError = {}) {
233
243
  super(rawStripeError, 'FeatureNotEnabledError');
234
244
  }
235
245
  }
236
246
  exports.FeatureNotEnabledError = FeatureNotEnabledError;
247
+ class FinancialAccountNotOpenError extends StripeError {
248
+ constructor(rawStripeError = {}) {
249
+ super(rawStripeError, 'FinancialAccountNotOpenError');
250
+ }
251
+ }
252
+ exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
237
253
  class BlockedByStripeError extends StripeError {
238
254
  constructor(rawStripeError = {}) {
239
255
  super(rawStripeError, 'BlockedByStripeError');
@@ -5,6 +5,10 @@ exports.FinancialAccounts = void 0;
5
5
  const StripeResource_js_1 = require("../../../StripeResource.js");
6
6
  const stripeMethod = StripeResource_js_1.StripeResource.method;
7
7
  exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/financial_accounts',
11
+ }),
8
12
  retrieve: stripeMethod({
9
13
  method: 'GET',
10
14
  fullPath: '/v2/money_management/financial_accounts/{id}',
@@ -14,4 +18,8 @@ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
14
18
  fullPath: '/v2/money_management/financial_accounts',
15
19
  methodType: 'list',
16
20
  }),
21
+ close: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v2/money_management/financial_accounts/{id}/close',
24
+ }),
17
25
  });
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '18.4.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '18.4.0-beta.2';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
package/esm/Error.js CHANGED
@@ -26,10 +26,14 @@ export const generateV2Error = (rawStripeError) => {
26
26
  // switchCases: The beginning of the section generated from our OpenAPI spec
27
27
  case 'temporary_session_expired':
28
28
  return new TemporarySessionExpiredError(rawStripeError);
29
- case 'financial_account_not_open':
30
- return new FinancialAccountNotOpenError(rawStripeError);
29
+ case 'non_zero_balance':
30
+ return new NonZeroBalanceError(rawStripeError);
31
+ case 'already_exists':
32
+ return new AlreadyExistsError(rawStripeError);
31
33
  case 'feature_not_enabled':
32
34
  return new FeatureNotEnabledError(rawStripeError);
35
+ case 'financial_account_not_open':
36
+ return new FinancialAccountNotOpenError(rawStripeError);
33
37
  case 'blocked_by_stripe':
34
38
  return new BlockedByStripeError(rawStripeError);
35
39
  case 'already_canceled':
@@ -204,9 +208,14 @@ export class TemporarySessionExpiredError extends StripeError {
204
208
  super(rawStripeError, 'TemporarySessionExpiredError');
205
209
  }
206
210
  }
207
- export class FinancialAccountNotOpenError extends StripeError {
211
+ export class NonZeroBalanceError extends StripeError {
208
212
  constructor(rawStripeError = {}) {
209
- super(rawStripeError, 'FinancialAccountNotOpenError');
213
+ super(rawStripeError, 'NonZeroBalanceError');
214
+ }
215
+ }
216
+ export class AlreadyExistsError extends StripeError {
217
+ constructor(rawStripeError = {}) {
218
+ super(rawStripeError, 'AlreadyExistsError');
210
219
  }
211
220
  }
212
221
  export class FeatureNotEnabledError extends StripeError {
@@ -214,6 +223,11 @@ export class FeatureNotEnabledError extends StripeError {
214
223
  super(rawStripeError, 'FeatureNotEnabledError');
215
224
  }
216
225
  }
226
+ export class FinancialAccountNotOpenError extends StripeError {
227
+ constructor(rawStripeError = {}) {
228
+ super(rawStripeError, 'FinancialAccountNotOpenError');
229
+ }
230
+ }
217
231
  export class BlockedByStripeError extends StripeError {
218
232
  constructor(rawStripeError = {}) {
219
233
  super(rawStripeError, 'BlockedByStripeError');
@@ -2,6 +2,10 @@
2
2
  import { StripeResource } from '../../../StripeResource.js';
3
3
  const stripeMethod = StripeResource.method;
4
4
  export const FinancialAccounts = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v2/money_management/financial_accounts',
8
+ }),
5
9
  retrieve: stripeMethod({
6
10
  method: 'GET',
7
11
  fullPath: '/v2/money_management/financial_accounts/{id}',
@@ -11,4 +15,8 @@ export const FinancialAccounts = StripeResource.extend({
11
15
  fullPath: '/v2/money_management/financial_accounts',
12
16
  methodType: 'list',
13
17
  }),
18
+ close: stripeMethod({
19
+ method: 'POST',
20
+ fullPath: '/v2/money_management/financial_accounts/{id}/close',
21
+ }),
14
22
  });
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '18.4.0-beta.1';
36
+ Stripe.PACKAGE_VERSION = '18.4.0-beta.2';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "18.4.0-beta.1",
3
+ "version": "18.4.0-beta.2",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
package/types/Errors.d.ts CHANGED
@@ -10,8 +10,10 @@ declare module 'stripe' {
10
10
  | 'authentication_error'
11
11
  | 'invalid_grant'
12
12
  | 'temporary_session_expired'
13
- | 'financial_account_not_open'
13
+ | 'non_zero_balance'
14
+ | 'already_exists'
14
15
  | 'feature_not_enabled'
16
+ | 'financial_account_not_open'
15
17
  | 'blocked_by_stripe'
16
18
  | 'already_canceled'
17
19
  | 'not_cancelable'
@@ -136,8 +138,10 @@ declare module 'stripe' {
136
138
  | 'StripeIdempotencyError'
137
139
  | 'StripeInvalidGrantError'
138
140
  | 'TemporarySessionExpiredError'
139
- | 'FinancialAccountNotOpenError'
141
+ | 'NonZeroBalanceError'
142
+ | 'AlreadyExistsError'
140
143
  | 'FeatureNotEnabledError'
144
+ | 'FinancialAccountNotOpenError'
141
145
  | 'BlockedByStripeError'
142
146
  | 'AlreadyCanceledError'
143
147
  | 'NotCancelableError'
@@ -296,14 +300,22 @@ declare module 'stripe' {
296
300
  readonly type: 'TemporarySessionExpiredError';
297
301
  readonly rawType: 'temporary_session_expired';
298
302
  }
299
- export class FinancialAccountNotOpenError extends StripeError {
300
- readonly type: 'FinancialAccountNotOpenError';
301
- readonly rawType: 'financial_account_not_open';
303
+ export class NonZeroBalanceError extends StripeError {
304
+ readonly type: 'NonZeroBalanceError';
305
+ readonly rawType: 'non_zero_balance';
306
+ }
307
+ export class AlreadyExistsError extends StripeError {
308
+ readonly type: 'AlreadyExistsError';
309
+ readonly rawType: 'already_exists';
302
310
  }
303
311
  export class FeatureNotEnabledError extends StripeError {
304
312
  readonly type: 'FeatureNotEnabledError';
305
313
  readonly rawType: 'feature_not_enabled';
306
314
  }
315
+ export class FinancialAccountNotOpenError extends StripeError {
316
+ readonly type: 'FinancialAccountNotOpenError';
317
+ readonly rawType: 'financial_account_not_open';
318
+ }
307
319
  export class BlockedByStripeError extends StripeError {
308
320
  readonly type: 'BlockedByStripeError';
309
321
  readonly rawType: 'blocked_by_stripe';