Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #2235

Merged
merged 17 commits into from
Dec 12, 2024
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1384
v1406
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 = '2024-11-20.acacia';
export const ApiVersion = '2024-12-18.acacia';
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ declare module 'stripe' {
namespace AccountManagement {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

Expand All @@ -111,7 +111,7 @@ declare module 'stripe' {
namespace AccountOnboarding {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

Expand All @@ -134,7 +134,7 @@ declare module 'stripe' {
namespace Balances {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

Expand Down Expand Up @@ -224,7 +224,7 @@ declare module 'stripe' {
namespace NotificationBanner {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

Expand Down Expand Up @@ -313,7 +313,7 @@ declare module 'stripe' {
namespace Payouts {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication: boolean;

Expand Down
12 changes: 6 additions & 6 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ declare module 'stripe' {
namespace AccountManagement {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand All @@ -184,7 +184,7 @@ declare module 'stripe' {
namespace AccountOnboarding {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand Down Expand Up @@ -252,7 +252,7 @@ declare module 'stripe' {
namespace Balances {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand Down Expand Up @@ -373,7 +373,7 @@ declare module 'stripe' {
namespace FinancialAccount {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand Down Expand Up @@ -507,7 +507,7 @@ declare module 'stripe' {
namespace NotificationBanner {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand Down Expand Up @@ -621,7 +621,7 @@ declare module 'stripe' {
namespace Payouts {
interface Features {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
*/
disable_stripe_user_authentication?: boolean;

Expand Down
8 changes: 4 additions & 4 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ declare module 'stripe' {
/**
* The applicant's gross annual revenue for its preceding fiscal year.
*/
annual_revenue: BusinessProfile.AnnualRevenue | null;
annual_revenue?: BusinessProfile.AnnualRevenue | null;

/**
* An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
*/
estimated_worker_count: number | null;
estimated_worker_count?: number | null;

/**
* [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
Expand Down Expand Up @@ -1045,7 +1045,7 @@ declare module 'stripe' {
errors: Array<FutureRequirements.Error> | null;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
*/
eventually_due: Array<string> | null;

Expand Down Expand Up @@ -1236,7 +1236,7 @@ declare module 'stripe' {
errors: Array<Requirements.Error> | null;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
*/
eventually_due: Array<string> | null;

Expand Down
21 changes: 20 additions & 1 deletion types/Billing/CreditBalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ declare module 'stripe' {
interface Credit {
amount: Credit.Amount;

/**
* Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
*/
credits_application_invoice_voided?: Credit.CreditsApplicationInvoiceVoided | null;

/**
* The type of credit transaction.
*/
type: 'credits_granted';
type: Credit.Type;
}

namespace Credit {
Expand Down Expand Up @@ -94,6 +99,20 @@ declare module 'stripe' {
value: number;
}
}

interface CreditsApplicationInvoiceVoided {
/**
* The invoice to which the reinstated billing credits were originally applied.
*/
invoice: string | Stripe.Invoice;

/**
* The invoice line item to which the reinstated billing credits were originally applied.
*/
invoice_line_item: string;
}

type Type = 'credits_application_invoice_voided' | 'credits_granted';
}

interface Debit {
Expand Down
4 changes: 2 additions & 2 deletions types/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare module 'stripe' {
errors: Array<FutureRequirements.Error>;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
*/
eventually_due: Array<string>;

Expand Down Expand Up @@ -250,7 +250,7 @@ declare module 'stripe' {
errors: Array<Requirements.Error>;

/**
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
*/
eventually_due: Array<string>;

Expand Down
14 changes: 14 additions & 0 deletions types/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ declare module 'stripe' {
*/
address_zip_check: string | null;

/**
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
*/
allow_redisplay?: Card.AllowRedisplay | null;

/**
* A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
*/
Expand Down Expand Up @@ -164,6 +169,11 @@ declare module 'stripe' {

networks?: Card.Networks;

/**
* Status of a card based on the card issuer.
*/
regulated_status?: Card.RegulatedStatus | null;

/**
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
*/
Expand All @@ -176,6 +186,8 @@ declare module 'stripe' {
}

namespace Card {
type AllowRedisplay = 'always' | 'limited' | 'unspecified';

type AvailablePayoutMethod = 'instant' | 'standard';

interface Networks {
Expand All @@ -184,6 +196,8 @@ declare module 'stripe' {
*/
preferred: string | null;
}

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

/**
Expand Down
12 changes: 12 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,20 @@ declare module 'stripe' {
*/
network_token?: Card.NetworkToken | null;

/**
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
*/
network_transaction_id?: string | null;

overcapture?: Card.Overcapture;

partial_authorization?: Card.PartialAuthorization;

/**
* Status of a card based on the card issuer.
*/
regulated_status?: Card.RegulatedStatus | null;

/**
* Populated if this transaction used 3D Secure authentication.
*/
Expand Down Expand Up @@ -1039,6 +1049,8 @@ declare module 'stripe' {
| 'partially_authorized';
}

type RegulatedStatus = 'regulated' | 'unregulated';

interface ThreeDSecure {
/**
* For authenticated transactions: how the customer was authenticated by
Expand Down
Loading
Loading