Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .hark/changes/2026-10-14_stripe-openapi_9fea6e78.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: Update generated code
pr_url: https://github.com/stripe/stripe-node/pull/2889
semver_level: major
is_stripe_api_change: true
---

* ⚠️ Remove support for `capture` method on resource `V2.Payments.OffSessionPayment`
* ⚠️ Remove support for `acknowledge_confirmation_of_payee` and `initiate_confirmation_of_payee` methods on resource `V2.Core.Vault.GbBankAccount`
* Add support for `wechat_pay_mobile_web_payments` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
* ⚠️ Remove support for `wechat_pay_payments` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
* Add support for `settlement_reserved` on `Balance`
* Change type of `BalanceSettings.payments.default_settlement_currency` from `string | null` to `string`
* Add support for new value `settlement_reserved` on enum `BalanceTransaction.balance_type`
* Add support for `carecredit`, `getflex`, and `sezzle` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `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`, `PaymentRecord.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for `rakuten_pay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for new value `auto` on enums `Checkout.Session.payment_method_collection` and `Checkout.SessionCreateParams.payment_method_collection`
* Add support for `mandate_options` on `Checkout.SessionCreateParams.payment_method_options.card`
* Change `Checkout.Session.items[].subscription.backdate_start_date` to be required
* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` 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`
* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
* Add support for new values `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` on enum `Event.type`
* Add support for `fraudulent_document` on `Identity.VerificationReport.signals`
* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentUpdateParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentUpdateParams.allowed_payment_method_types`
* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentUpdateParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentUpdateParams.excluded_payment_method_types`
* Add support for new values `simulated_stripe_t600` and `stripe_t600` on enum `Terminal.ReaderListParams.device_type`
* Add support for new values `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
* Add support for `contact_email` on `V2.Core.AccountEvaluation.account_data`, `V2.Core.AccountEvaluationCreateParams.account_data`, `V2.Signals.AccountActivity.account_details.data`, `V2.Signals.AccountActivityCreateParams.account_details.data`, `V2.Signals.AccountEvaluation.account_details.data`, and `V2.Signals.AccountEvaluationCreateParams.account_details.data`
* Add support for new value `user_merchant_fit` on enum `V2.Core.AccountEvaluation.evaluations_triggered`
* ⚠️ Change type of `V2.Core.Account.identity.individual.additional_addresses[].purpose` and `V2.Core.AccountPerson.additional_addresses[].purpose` from `literal('registered')` to `enum('birthplace'|'registered')`
* Add support for `bre_b`, `nip`, and `pix` on `V2.MoneyManagement.FinancialAddress.bank_account` and `V2.MoneyManagement.ReceivedCredit.bank_transfer.originating_bank_account`
* Add support for new value `ousd` on enum `V2.MoneyManagement.FinancialAddress.crypto_wallet.supported_network_details.value.supported_token_currencies`
* Add support for new values `bre_b`, `nip`, and `pix` on enum `V2.MoneyManagement.ReceivedCredit.bank_transfer.originating_bank_account.type`
* ⚠️ Remove support for `amount_capturable` on `V2.Payments.OffSessionPayment`
* ⚠️ Remove support for `capture` on `V2.Payments.OffSessionPaymentCreateParams` and `V2.Payments.OffSessionPayment`
* Add support for `user_merchant_fit` on `V2.Signals.AccountEvaluation.evaluated_signals` and `V2.Signals.AccountSignal`
* Add support for new value `user_merchant_fit` on enum `V2.Signals.AccountEvaluation.pending_signals`
* Add support for new value `user_merchant_fit` on enums `V2.Signals.AccountEvaluation.requested_signals` and `V2.Signals.AccountEvaluationCreateParams.requested_signals`
* Add support for new value `user_merchant_fit` on enums `V2.Signals.AccountSignal.type` and `V2.Signals.AccountSignalListParams.type`
* Add support for new values `bre_b` and `pix` on enum `V2.MoneyManagement.FinancialAddressCreditSimulationCreditParams.network`
* Change type of `V2.Core.AccountCreateParams.identity.individual.additional_addresses[].purpose`, `V2.Core.AccountPersonCreateParams.additional_addresses[].purpose`, `V2.Core.AccountPersonTokenCreateParams.additional_addresses[].purpose`, `V2.Core.AccountPersonUpdateParams.additional_addresses[].purpose`, `V2.Core.AccountTokenCreateParams.identity.individual.additional_addresses[].purpose`, and `V2.Core.AccountUpdateParams.identity.individual.additional_addresses[].purpose` from `literal('registered')` to `enum('birthplace'|'registered')`
* Add support for new value `user_merchant_fit` on enum `V2.Core.AccountEvaluationCreateParams.signals`
* Add support for snapshot events `ThreeDSecureAuthenticationCanceledEvent`, `ThreeDSecureAuthenticationChallengeStartedEvent`, `ThreeDSecureAuthenticationErroredEvent`, `ThreeDSecureAuthenticationFailedEvent`, `ThreeDSecureAuthenticationRequiresChallengeEvent`, `ThreeDSecureAuthenticationRequiresSubmissionEvent`, and `ThreeDSecureAuthenticationSucceededEvent` with resource `ThreeDSecure.Authentication`
* ⚠️ Remove support for event notification `V2PaymentsOffSessionPaymentRequiresCaptureEvent` with related object `V2.Payments.OffSessionPayment`
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43649cb7390f9257ffa04232dc7ed9ea8359c77f
ee856c792d5b7bc7c9a55588bd92531c2774e744
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2544
v2562
1 change: 0 additions & 1 deletion src/StripeEventNotificationHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ const KNOWN_EVENT_TYPES = new Set([
'v2.payments.off_session_payment.created',
'v2.payments.off_session_payment.failed',
'v2.payments.off_session_payment.paused',
'v2.payments.off_session_payment.requires_capture',
'v2.payments.off_session_payment.resumed',
'v2.payments.off_session_payment.succeeded',
'v2.payments.settlement_allocation_intent.canceled',
Expand Down
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2026-10-07.preview';
export const ApiVersion = '2026-10-14.preview';
export const ApiMajorVersion = '';
28 changes: 14 additions & 14 deletions src/resources/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ export namespace Account {

treasury?: Settings.Treasury;

wechat_pay_payments?: Settings.WechatPayPayments;
wechat_pay_mobile_web_payments?: Settings.WechatPayMobileWebPayments;
}

export interface TosAcceptance {
Expand Down Expand Up @@ -2647,11 +2647,11 @@ export namespace Account {
tos_acceptance?: Treasury.TosAcceptance;
}

export interface WechatPayPayments {
export interface WechatPayMobileWebPayments {
/**
* The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed.
* The domains of the user's mobile web checkout pages for WeChat Pay payments.
*/
mobile_web_domains?: Array<string>;
domains?: Array<string>;
}

export namespace CardIssuing {
Expand Down Expand Up @@ -3870,9 +3870,9 @@ export namespace AccountCreateParams {
treasury?: Settings.Treasury;

/**
* Settings specific to the WeChat Pay payments method.
* Settings specific to WeChat Pay payments made through a mobile web browser.
*/
wechat_pay_payments?: Settings.WechatPayPayments;
wechat_pay_mobile_web_payments?: Settings.WechatPayMobileWebPayments;
}

export interface TosAcceptance {
Expand Down Expand Up @@ -5095,11 +5095,11 @@ export namespace AccountCreateParams {
tos_acceptance?: Treasury.TosAcceptance;
}

export interface WechatPayPayments {
export interface WechatPayMobileWebPayments {
/**
* The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed.
* The domains of the user's mobile web checkout pages for WeChat Pay payments.
*/
mobile_web_domains?: Emptyable<Array<string>>;
domains?: Emptyable<Array<string>>;
}

export namespace CardIssuing {
Expand Down Expand Up @@ -6343,9 +6343,9 @@ export namespace AccountUpdateParams {
treasury?: Settings.Treasury;

/**
* Settings specific to the WeChat Pay payments method.
* Settings specific to WeChat Pay payments made through a mobile web browser.
*/
wechat_pay_payments?: Settings.WechatPayPayments;
wechat_pay_mobile_web_payments?: Settings.WechatPayMobileWebPayments;
}

export interface TosAcceptance {
Expand Down Expand Up @@ -7536,11 +7536,11 @@ export namespace AccountUpdateParams {
tos_acceptance?: Treasury.TosAcceptance;
}

export interface WechatPayPayments {
export interface WechatPayMobileWebPayments {
/**
* The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed.
* The domains of the user's mobile web checkout pages for WeChat Pay payments.
*/
mobile_web_domains?: Emptyable<Array<string>>;
domains?: Emptyable<Array<string>>;
}

export namespace CardIssuing {
Expand Down
82 changes: 82 additions & 0 deletions src/resources/Balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export interface Balance {

risk_reserved?: Balance.RiskReserved;

settlement_reserved?: Balance.SettlementReserved;

transit_balances_total?: Balance.TransitBalancesTotal;
}
export namespace Balance {
Expand Down Expand Up @@ -147,6 +149,18 @@ export namespace Balance {
pending: Array<RiskReserved.Pending>;
}

export interface SettlementReserved {
/**
* Funds that are available for use.
*/
available: Array<SettlementReserved.Available>;

/**
* Funds that are pending
*/
pending: Array<SettlementReserved.Pending>;
}

export interface TransitBalancesTotal {
/**
* Funds that are available for use.
Expand Down Expand Up @@ -444,6 +458,74 @@ export namespace Balance {
}
}

export namespace SettlementReserved {
export interface Available {
/**
* Balance amount.
*/
amount: number;

/**
* 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).
*/
currency: string;

source_types?: Available.SourceTypes;
}

export interface Pending {
/**
* Balance amount.
*/
amount: number;

/**
* 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).
*/
currency: string;

source_types?: Pending.SourceTypes;
}

export namespace Available {
export interface SourceTypes {
/**
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
}

export namespace Pending {
export interface SourceTypes {
/**
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
}
}

export namespace TransitBalancesTotal {
export interface Available {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/BalanceSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export namespace BalanceSettings {
/**
* The default settlement currency for the account.
*/
default_settlement_currency?: string | null;
default_settlement_currency?: string;

/**
* Settings specific to the account's payouts.
Expand Down
1 change: 1 addition & 0 deletions src/resources/BalanceTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export namespace BalanceTransaction {
| 'payments'
| 'refund_and_dispute_prefunding'
| 'risk_reserved'
| 'settlement_reserved'
| 'transit'
| OtherString;

Expand Down
3 changes: 3 additions & 0 deletions src/resources/Cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export interface Card {
*/
object: 'card';

/**
* The account this card belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](https://docs.stripe.com/api/external_account_cards/object) where [controller.is_controller](https://docs.stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
*/
account?: string | Account | null;

/**
Expand Down
16 changes: 16 additions & 0 deletions src/resources/Charges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ export namespace Charge {

card_present?: PaymentMethodDetails.CardPresent;

carecredit?: PaymentMethodDetails.Carecredit;

cashapp?: PaymentMethodDetails.Cashapp;

crypto?: PaymentMethodDetails.Crypto;
Expand All @@ -510,6 +512,8 @@ export namespace Charge {

fpx?: PaymentMethodDetails.Fpx;

getflex?: PaymentMethodDetails.Getflex;

gift_card?: PaymentMethodDetails.GiftCard;

giropay?: PaymentMethodDetails.Giropay;
Expand Down Expand Up @@ -566,6 +570,8 @@ export namespace Charge {

qris?: PaymentMethodDetails.Qris;

rakuten_pay?: PaymentMethodDetails.RakutenPay;

rechnung?: PaymentMethodDetails.Rechnung;

revolut_pay?: PaymentMethodDetails.RevolutPay;
Expand All @@ -582,6 +588,8 @@ export namespace Charge {

sequra?: PaymentMethodDetails.Sequra;

sezzle?: PaymentMethodDetails.Sezzle;

/**
* ID of the shared payment granted token used to make this payment.
*/
Expand Down Expand Up @@ -1326,6 +1334,8 @@ export namespace Charge {
wallet?: CardPresent.Wallet;
}

export interface Carecredit {}

export interface Cashapp {
/**
* A unique and immutable identifier assigned by Cash App to every buyer.
Expand Down Expand Up @@ -1408,6 +1418,8 @@ export namespace Charge {
transaction_id: string | null;
}

export interface Getflex {}

export interface GiftCard {
balance: GiftCard.Balance;

Expand Down Expand Up @@ -1979,6 +1991,8 @@ export namespace Charge {

export interface Qris {}

export interface RakutenPay {}

export interface Rechnung {
/**
* Payment portal URL.
Expand Down Expand Up @@ -2082,6 +2096,8 @@ export namespace Charge {
transaction_id: string | null;
}

export interface Sezzle {}

export interface Shopeepay {}

export interface Sofort {
Expand Down
Loading
Loading