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
6 changes: 4 additions & 2 deletions src/StripeEventNotificationHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const KNOWN_EVENT_TYPES = new Set([
'v2.core.account[configuration.customer].updated',
'v2.core.account[configuration.merchant].capability_status_updated',
'v2.core.account[configuration.merchant].updated',
'v2.core.account[configuration.money_manager].capability_status_updated',
'v2.core.account[configuration.money_manager].updated',
'v2.core.account[configuration.recipient].capability_status_updated',
'v2.core.account[configuration.recipient].updated',
'v2.core.account[configuration.storer].capability_status_updated',
'v2.core.account[configuration.storer].updated',
'v2.core.account[defaults].updated',
'v2.core.account[future_requirements].updated',
'v2.core.account[identity].updated',
Expand Down Expand Up @@ -80,12 +80,14 @@ const KNOWN_EVENT_TYPES = new Set([
'v2.money_management.outbound_payment.failed',
'v2.money_management.outbound_payment.posted',
'v2.money_management.outbound_payment.returned',
'v2.money_management.outbound_payment.under_review',
'v2.money_management.outbound_payment.updated',
'v2.money_management.outbound_transfer.canceled',
'v2.money_management.outbound_transfer.created',
'v2.money_management.outbound_transfer.failed',
'v2.money_management.outbound_transfer.posted',
'v2.money_management.outbound_transfer.returned',
'v2.money_management.outbound_transfer.under_review',
'v2.money_management.outbound_transfer.updated',
'v2.money_management.payout_method.created',
'v2.money_management.payout_method.updated',
Expand Down
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2026-05-27.preview';
export const ApiVersion = '2026-06-24.preview';
4 changes: 2 additions & 2 deletions src/resources/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,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 @@ -5492,7 +5492,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
13 changes: 13 additions & 0 deletions src/resources/Capital/FinancingOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ export interface FinancingOffer {
*/
created: number;

/**
* The type of disclaimer to use for a financing offer in user-facing surfaces. The corresponding disclaimer text to use for each disclaimer_variant value can be found in the [marketing docs](https://docs.stripe.com/capital/marketing).
*/
disclaimer_variant?: FinancingOffer.DisclaimerVariant;

/**
* Time at which the offer expires. Given in seconds since unix epoch.
*/
Expand Down Expand Up @@ -169,6 +174,14 @@ export namespace FinancingOffer {
withhold_rate: number;
}

export type DisclaimerVariant =
| 'celtic_us_loan'
| 'fundbox_au_financing'
| 'youlend_de_financing'
| 'youlend_fr_financing'
| 'youlend_uk_mca'
| 'youlend_us_mca';

export type FinancingType = 'cash_advance' | 'flex_loan';

export interface OfferedTerms {
Expand Down
13 changes: 13 additions & 0 deletions src/resources/Capital/FinancingSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export namespace FinancingSummary {
*/
current_repayment_interval: Details.CurrentRepaymentInterval | null;

/**
* The type of disclaimer to use for a financing offer in user-facing surfaces. The corresponding disclaimer text to use for each disclaimer_variant value can be found in the [regulatory compliance docs](https://docs.stripe.com/capital/regulatory-compliance).
*/
disclaimer_variant?: Details.DisclaimerVariant;

/**
* Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
*/
Expand Down Expand Up @@ -112,6 +117,14 @@ export namespace FinancingSummary {
*/
remaining_amount: number;
}

export type DisclaimerVariant =
| 'celtic_us_loan'
| 'fundbox_au_financing'
| 'youlend_de_financing'
| 'youlend_fr_financing'
| 'youlend_uk_mca'
| 'youlend_us_mca';
}
}
export namespace Capital {
Expand Down
16 changes: 16 additions & 0 deletions src/resources/Cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export interface Card {

networks?: Card.Networks;

/**
* Redaction status of this card. If not null, this card is associated to a redaction job.
*/
redaction?: Card.Redaction | null;

/**
* Status of a card based on the card issuer.
*/
Expand Down Expand Up @@ -214,5 +219,16 @@ export namespace Card {
preferred: string | null;
}

export interface Redaction {
/**
* Indicates whether this object and its related objects have been redacted or not.
*/
status: Redaction.Status;
}

export type RegulatedStatus = 'regulated' | 'unregulated';

export namespace Redaction {
export type Status = 'processing' | 'redacted' | 'validated';
}
}
33 changes: 33 additions & 0 deletions src/resources/Charges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ export interface Charge {
*/
receipt_url: string | null;

/**
* Redaction status of this charge. If not null, this charge is associated to a redaction job.
*/
redaction?: Charge.Redaction | null;

/**
* Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
*/
Expand Down Expand Up @@ -621,6 +626,13 @@ export namespace Charge {
session?: string;
}

export interface Redaction {
/**
* Indicates whether this object and its related objects have been redacted or not.
*/
status: Redaction.Status;
}

export interface Shipping {
address?: Address;

Expand Down Expand Up @@ -961,6 +973,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 @@ -1113,6 +1130,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 @@ -1824,6 +1846,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 @@ -2570,13 +2597,15 @@ export namespace Charge {
| 'ethereum'
| 'polygon'
| 'solana'
| 'sui'
| 'tempo';

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

Expand Down Expand Up @@ -2954,6 +2983,10 @@ export namespace Charge {
export type AccountType = 'checking' | 'savings';
}
}

export namespace Redaction {
export type Status = 'processing' | 'redacted' | 'validated';
}
}
export interface ChargeCreateParams {
/**
Expand Down
Loading
Loading