Skip to content

Commit bd959e8

Browse files
Update generated code (#2748)
* Update generated code for v2324 and 2bacf30ea7a096640a42760f6973fee486bcf126 * Update generated code for v2324 and 3b7d6e3c02976c878032d9849a9dd7211d35cb97 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: David Brownman <xavdid@stripe.com>
1 parent 4e6309e commit bd959e8

35 files changed

Lines changed: 812 additions & 115 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d59a1f4bdea3032b8e282d40badc032cb021fc60
1+
3b7d6e3c02976c878032d9849a9dd7211d35cb97

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2277
1+
v2324

src/apiVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2026-05-27.dahlia';
3+
export const ApiVersion = '2026-06-24.dahlia';
44
export const ApiMajorVersion = 'dahlia';

src/resources/Accounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2785,7 +2785,7 @@ export namespace AccountCreateParams {
27852785
company_license?: Documents.CompanyLicense;
27862786

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

@@ -4728,7 +4728,7 @@ export namespace AccountUpdateParams {
47284728
company_license?: Documents.CompanyLicense;
47294729

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

src/resources/BalanceTransactions.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {RequestOptions, ApiListPromise, Response} from '../lib.js';
77

88
export class BalanceTransactionResource extends StripeResource {
99
/**
10-
* 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.
10+
* 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.
1111
*
12-
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
12+
* The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
1313
*/
1414
list(
1515
params?: BalanceTransactionListParams,
@@ -120,7 +120,7 @@ export interface BalanceTransaction {
120120
status: string;
121121

122122
/**
123-
* 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.
123+
* 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.
124124
*/
125125
type: BalanceTransaction.Type;
126126
}
@@ -202,6 +202,7 @@ export namespace BalanceTransaction {
202202
| 'stripe_fee'
203203
| 'stripe_fx_fee'
204204
| 'tax_fee'
205+
| 'tax_fund'
205206
| 'topup'
206207
| 'topup_reversal'
207208
| 'transfer'
@@ -242,7 +243,7 @@ export interface BalanceTransactionListParams extends PaginationParams {
242243
source?: string;
243244

244245
/**
245-
* 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`.
246+
* 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`.
246247
*/
247248
type?: string;
248249
}

src/resources/Billing/CreditBalanceSummary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export namespace Billing {
156156
price_type?: 'metered';
157157

158158
/**
159-
* 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`.
159+
* 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.
160160
*/
161161
prices?: Array<ApplicabilityScope.Price>;
162162
}

src/resources/Billing/CreditGrants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export interface CreditGrant {
167167
/**
168168
* The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
169169
*/
170-
priority?: number | null;
170+
priority: number | null;
171171

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

344344
/**
345-
* 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`.
345+
* 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.
346346
*/
347347
prices?: Array<Scope.Price>;
348348
}

src/resources/Charges.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,11 @@ export namespace Charge {
947947
}
948948

949949
export interface Bizum {
950+
/**
951+
* A unique identifier for the buyer as determined by the local payment processor.
952+
*/
953+
buyer_id: string | null;
954+
950955
/**
951956
* The Bizum transaction ID associated with this payment.
952957
*/
@@ -1090,6 +1095,11 @@ export namespace Charge {
10901095
*/
10911096
three_d_secure: Card.ThreeDSecure | null;
10921097

1098+
/**
1099+
* 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.
1100+
*/
1101+
transaction_link_id: string | null;
1102+
10931103
/**
10941104
* If this Card is part of a card wallet, this contains the details of the card wallet.
10951105
*/
@@ -1744,6 +1754,11 @@ export namespace Charge {
17441754
*/
17451755
bank_transaction_id?: string | null;
17461756

1757+
/**
1758+
* Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
1759+
*/
1760+
fingerprint?: string | null;
1761+
17471762
/**
17481763
* ID of the multi use Mandate generated by the PaymentIntent
17491764
*/
@@ -2441,13 +2456,15 @@ export namespace Charge {
24412456
| 'ethereum'
24422457
| 'polygon'
24432458
| 'solana'
2459+
| 'sui'
24442460
| 'tempo';
24452461

24462462
export type TokenCurrency =
24472463
| 'phantom_cash'
24482464
| 'usdc'
24492465
| 'usdg'
24502466
| 'usdp'
2467+
| 'usdsui'
24512468
| 'usdt';
24522469
}
24532470

src/resources/Checkout/Sessions.ts

Lines changed: 104 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,13 +1401,17 @@ export namespace Session {
14011401

14021402
sofort?: PaymentMethodOptions.Sofort;
14031403

1404+
sunbit?: PaymentMethodOptions.Sunbit;
1405+
14041406
swish?: PaymentMethodOptions.Swish;
14051407

14061408
twint?: PaymentMethodOptions.Twint;
14071409

14081410
upi?: PaymentMethodOptions.Upi;
14091411

14101412
us_bank_account?: PaymentMethodOptions.UsBankAccount;
1413+
1414+
wechat_pay?: PaymentMethodOptions.WechatPay;
14111415
}
14121416

14131417
export type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
@@ -2732,6 +2736,24 @@ export namespace Session {
27322736
setup_future_usage?: 'none';
27332737
}
27342738

2739+
export interface Sunbit {
2740+
/**
2741+
* Controls when the funds will be captured from the customer's account.
2742+
*/
2743+
capture_method?: 'manual';
2744+
2745+
/**
2746+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
2747+
*
2748+
* 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.
2749+
*
2750+
* 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.
2751+
*
2752+
* 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).
2753+
*/
2754+
setup_future_usage?: 'none';
2755+
}
2756+
27352757
export interface Swish {
27362758
/**
27372759
* The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
@@ -2792,6 +2814,29 @@ export namespace Session {
27922814
verification_method?: UsBankAccount.VerificationMethod;
27932815
}
27942816

2817+
export interface WechatPay {
2818+
/**
2819+
* The app ID registered with WeChat Pay. Only required when client is iOS or Android.
2820+
*/
2821+
app_id: string | null;
2822+
2823+
/**
2824+
* The client type that the end customer will pay from
2825+
*/
2826+
client: WechatPay.Client | null;
2827+
2828+
/**
2829+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
2830+
*
2831+
* 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.
2832+
*
2833+
* 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.
2834+
*
2835+
* 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).
2836+
*/
2837+
setup_future_usage?: 'none';
2838+
}
2839+
27952840
export namespace AcssDebit {
27962841
export type Currency = 'cad' | 'usd';
27972842

@@ -3187,6 +3232,10 @@ export namespace Session {
31873232
}
31883233
}
31893234
}
3235+
3236+
export namespace WechatPay {
3237+
export type Client = 'android' | 'ios' | 'web';
3238+
}
31903239
}
31913240

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

@@ -4591,6 +4638,11 @@ export namespace Checkout {
45914638
*/
45924639
sofort?: PaymentMethodOptions.Sofort;
45934640

4641+
/**
4642+
* contains details about the Sunbit payment method options.
4643+
*/
4644+
sunbit?: PaymentMethodOptions.Sunbit;
4645+
45944646
/**
45954647
* contains details about the Swish payment method options.
45964648
*/
@@ -4764,6 +4816,11 @@ export namespace Checkout {
47644816
*/
47654817
billing_cycle_anchor?: number;
47664818

4819+
/**
4820+
* Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month.
4821+
*/
4822+
billing_cycle_anchor_config?: SubscriptionData.BillingCycleAnchorConfig;
4823+
47674824
/**
47684825
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
47694826
*/
@@ -6122,6 +6179,24 @@ export namespace Checkout {
61226179
setup_future_usage?: 'none';
61236180
}
61246181

6182+
export interface Sunbit {
6183+
/**
6184+
* Controls when the funds will be captured from the customer's account.
6185+
*/
6186+
capture_method?: 'manual';
6187+
6188+
/**
6189+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
6190+
*
6191+
* 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.
6192+
*
6193+
* 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.
6194+
*
6195+
* 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).
6196+
*/
6197+
setup_future_usage?: 'none';
6198+
}
6199+
61256200
export interface Swish {
61266201
/**
61276202
* The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
@@ -7050,6 +7125,33 @@ export namespace Checkout {
70507125
}
70517126

70527127
export namespace SubscriptionData {
7128+
export interface BillingCycleAnchorConfig {
7129+
/**
7130+
* The day of the month the anchor should be. Ranges from 1 to 31.
7131+
*/
7132+
day_of_month: number;
7133+
7134+
/**
7135+
* The hour of the day the anchor should be. Ranges from 0 to 23.
7136+
*/
7137+
hour?: number;
7138+
7139+
/**
7140+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
7141+
*/
7142+
minute?: number;
7143+
7144+
/**
7145+
* The month to start full cycle periods. Ranges from 1 to 12.
7146+
*/
7147+
month?: number;
7148+
7149+
/**
7150+
* The second of the minute the anchor should be. Ranges from 0 to 59.
7151+
*/
7152+
second?: number;
7153+
}
7154+
70537155
export interface BillingMode {
70547156
/**
70557157
* Configure behavior for flexible billing mode.

src/resources/ConfirmationTokens.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,19 @@ export namespace ConfirmationToken {
438438
tax_id: string | null;
439439
}
440440

441-
export interface Bizum {}
441+
export interface Bizum {
442+
/**
443+
* A unique identifier for the buyer as determined by the local payment processor.
444+
*/
445+
buyer_id?: string | null;
446+
}
442447

443-
export interface Blik {}
448+
export interface Blik {
449+
/**
450+
* A unique and immutable identifier assigned by BLIK to every buyer.
451+
*/
452+
buyer_id?: string | null;
453+
}
444454

445455
export interface Boleto {
446456
/**
@@ -885,7 +895,12 @@ export namespace ConfirmationToken {
885895
pay_id: string | null;
886896
}
887897

888-
export interface Pix {}
898+
export interface Pix {
899+
/**
900+
* Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
901+
*/
902+
fingerprint?: string | null;
903+
}
889904

890905
export interface Promptpay {}
891906

0 commit comments

Comments
 (0)