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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d59a1f4bdea3032b8e282d40badc032cb021fc60
3b7d6e3c02976c878032d9849a9dd7211d35cb97
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2324
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-05-27.dahlia';
export const ApiVersion = '2026-06-24.dahlia';
export const ApiMajorVersion = 'dahlia';
4 changes: 2 additions & 2 deletions src/resources/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2785,7 +2785,7 @@ export namespace AccountCreateParams {
company_license?: Documents.CompanyLicense;

/**
* One or more documents showing the company's Memorandum of Association.
* One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
*/
company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation;

Expand Down Expand Up @@ -4728,7 +4728,7 @@ export namespace AccountUpdateParams {
company_license?: Documents.CompanyLicense;

/**
* One or more documents showing the company's Memorandum of Association.
* One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
*/
company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation;

Expand Down
9 changes: 5 additions & 4 deletions src/resources/BalanceTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {RequestOptions, ApiListPromise, Response} from '../lib.js';

export class BalanceTransactionResource extends StripeResource {
/**
* Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
* Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first.
*
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
* The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
*/
list(
params?: BalanceTransactionListParams,
Expand Down Expand Up @@ -120,7 +120,7 @@ export interface BalanceTransaction {
status: string;

/**
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
* Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
*/
type: BalanceTransaction.Type;
}
Expand Down Expand Up @@ -202,6 +202,7 @@ export namespace BalanceTransaction {
| 'stripe_fee'
| 'stripe_fx_fee'
| 'tax_fee'
| 'tax_fund'
| 'topup'
| 'topup_reversal'
| 'transfer'
Expand Down Expand Up @@ -242,7 +243,7 @@ export interface BalanceTransactionListParams extends PaginationParams {
source?: string;

/**
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
* Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
*/
type?: string;
}
2 changes: 1 addition & 1 deletion src/resources/Billing/CreditBalanceSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export namespace Billing {
price_type?: 'metered';

/**
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
*/
prices?: Array<ApplicabilityScope.Price>;
}
Expand Down
4 changes: 2 additions & 2 deletions src/resources/Billing/CreditGrants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export interface CreditGrant {
/**
* The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
*/
priority?: number | null;
priority: number | null;

/**
* ID of the test clock this credit grant belongs to.
Expand Down Expand Up @@ -342,7 +342,7 @@ export namespace Billing {
price_type?: 'metered';

/**
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
*/
prices?: Array<Scope.Price>;
}
Expand Down
17 changes: 17 additions & 0 deletions src/resources/Charges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,11 @@ export namespace Charge {
}

export interface Bizum {
/**
* A unique identifier for the buyer as determined by the local payment processor.
*/
buyer_id: string | null;

/**
* The Bizum transaction ID associated with this payment.
*/
Expand Down Expand Up @@ -1090,6 +1095,11 @@ export namespace Charge {
*/
three_d_secure: Card.ThreeDSecure | null;

/**
* Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
*/
transaction_link_id: string | null;

/**
* If this Card is part of a card wallet, this contains the details of the card wallet.
*/
Expand Down Expand Up @@ -1744,6 +1754,11 @@ export namespace Charge {
*/
bank_transaction_id?: string | null;

/**
* Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
*/
fingerprint?: string | null;

/**
* ID of the multi use Mandate generated by the PaymentIntent
*/
Expand Down Expand Up @@ -2441,13 +2456,15 @@ export namespace Charge {
| 'ethereum'
| 'polygon'
| 'solana'
| 'sui'
| 'tempo';

export type TokenCurrency =
| 'phantom_cash'
| 'usdc'
| 'usdg'
| 'usdp'
| 'usdsui'
| 'usdt';
}

Expand Down
106 changes: 104 additions & 2 deletions src/resources/Checkout/Sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1401,13 +1401,17 @@ export namespace Session {

sofort?: PaymentMethodOptions.Sofort;

sunbit?: PaymentMethodOptions.Sunbit;

swish?: PaymentMethodOptions.Swish;

twint?: PaymentMethodOptions.Twint;

upi?: PaymentMethodOptions.Upi;

us_bank_account?: PaymentMethodOptions.UsBankAccount;

wechat_pay?: PaymentMethodOptions.WechatPay;
}

export type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
Expand Down Expand Up @@ -2732,6 +2736,24 @@ export namespace Session {
setup_future_usage?: 'none';
}

export interface Sunbit {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
*
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
*
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
*/
setup_future_usage?: 'none';
}

export interface Swish {
/**
* The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
Expand Down Expand Up @@ -2792,6 +2814,29 @@ export namespace Session {
verification_method?: UsBankAccount.VerificationMethod;
}

export interface WechatPay {
/**
* The app ID registered with WeChat Pay. Only required when client is iOS or Android.
*/
app_id: string | null;

/**
* The client type that the end customer will pay from
*/
client: WechatPay.Client | null;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
*
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
*
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
*/
setup_future_usage?: 'none';
}

export namespace AcssDebit {
export type Currency = 'cad' | 'usd';

Expand Down Expand Up @@ -3187,6 +3232,10 @@ export namespace Session {
}
}
}

export namespace WechatPay {
export type Client = 'android' | 'ios' | 'web';
}
}

export namespace Permissions {
Expand Down Expand Up @@ -3757,8 +3806,6 @@ export namespace Checkout {
* You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
*
* If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
*
* You can't set this parameter if `ui_mode` is `custom`.
*/
name_collection?: SessionCreateParams.NameCollection;

Expand Down Expand Up @@ -4591,6 +4638,11 @@ export namespace Checkout {
*/
sofort?: PaymentMethodOptions.Sofort;

/**
* contains details about the Sunbit payment method options.
*/
sunbit?: PaymentMethodOptions.Sunbit;

/**
* contains details about the Swish payment method options.
*/
Expand Down Expand Up @@ -4764,6 +4816,11 @@ export namespace Checkout {
*/
billing_cycle_anchor?: number;

/**
* Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month.
*/
billing_cycle_anchor_config?: SubscriptionData.BillingCycleAnchorConfig;

/**
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
*/
Expand Down Expand Up @@ -6122,6 +6179,24 @@ export namespace Checkout {
setup_future_usage?: 'none';
}

export interface Sunbit {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
*
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
*
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
*/
setup_future_usage?: 'none';
}

export interface Swish {
/**
* The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
Expand Down Expand Up @@ -7050,6 +7125,33 @@ export namespace Checkout {
}

export namespace SubscriptionData {
export interface BillingCycleAnchorConfig {
/**
* The day of the month the anchor should be. Ranges from 1 to 31.
*/
day_of_month: number;

/**
* The hour of the day the anchor should be. Ranges from 0 to 23.
*/
hour?: number;

/**
* The minute of the hour the anchor should be. Ranges from 0 to 59.
*/
minute?: number;

/**
* The month to start full cycle periods. Ranges from 1 to 12.
*/
month?: number;

/**
* The second of the minute the anchor should be. Ranges from 0 to 59.
*/
second?: number;
}

export interface BillingMode {
/**
* Configure behavior for flexible billing mode.
Expand Down
21 changes: 18 additions & 3 deletions src/resources/ConfirmationTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,19 @@ export namespace ConfirmationToken {
tax_id: string | null;
}

export interface Bizum {}
export interface Bizum {
/**
* A unique identifier for the buyer as determined by the local payment processor.
*/
buyer_id?: string | null;
}

export interface Blik {}
export interface Blik {
/**
* A unique and immutable identifier assigned by BLIK to every buyer.
*/
buyer_id?: string | null;
}

export interface Boleto {
/**
Expand Down Expand Up @@ -885,7 +895,12 @@ export namespace ConfirmationToken {
pay_id: string | null;
}

export interface Pix {}
export interface Pix {
/**
* Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
*/
fingerprint?: string | null;
}

export interface Promptpay {}

Expand Down
Loading
Loading