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 #2226

Merged
merged 14 commits into from
Nov 14, 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 @@
v1334
v1356
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-10-28.acacia';
export const ApiVersion = '2024-11-20.acacia';
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ declare module 'stripe' {
alternatives: Array<FutureRequirements.Alternative> | null;

/**
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
*/
current_deadline: number | null;

Expand Down
15 changes: 15 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4133,6 +4133,11 @@ declare module 'stripe' {
}

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer?: boolean;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down Expand Up @@ -4249,6 +4254,11 @@ declare module 'stripe' {

namespace AccountListPersonsParams {
interface Relationship {
/**
* A filter on the list of people returned based on whether these people are authorizers of the account's representative.
*/
authorizer?: boolean;

/**
* A filter on the list of people returned based on whether these people are directors of the account's company.
*/
Expand Down Expand Up @@ -4663,6 +4673,11 @@ declare module 'stripe' {
}

interface Relationship {
/**
* Whether the person is the authorizer of the account's representative.
*/
authorizer?: boolean;

/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ declare module 'stripe' {
alternatives: Array<FutureRequirements.Alternative> | null;

/**
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
*/
current_deadline: number | null;

Expand Down
2 changes: 1 addition & 1 deletion types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ declare module 'stripe' {

type Status = 'complete' | 'expired' | 'open';

type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';

interface TaxIdCollection {
/**
Expand Down
2 changes: 1 addition & 1 deletion types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,7 @@ declare module 'stripe' {
}
}

type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';

interface SubscriptionData {
/**
Expand Down
2 changes: 1 addition & 1 deletion types/FileLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'stripe' {
namespace Stripe {
interface FileLinkCreateParams {
/**
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
*/
file: string;

Expand Down
1 change: 1 addition & 0 deletions types/Files.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ declare module 'stripe' {
| 'dispute_evidence'
| 'document_provider_identity_document'
| 'finance_report_run'
| 'financial_account_statement'
| 'identity_document'
| 'identity_document_downloadable'
| 'issuing_regulatory_reporting'
Expand Down
1 change: 1 addition & 0 deletions types/FilesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ declare module 'stripe' {
| 'dispute_evidence'
| 'document_provider_identity_document'
| 'finance_report_run'
| 'financial_account_statement'
| 'identity_document'
| 'identity_document_downloadable'
| 'issuing_regulatory_reporting'
Expand Down
21 changes: 21 additions & 0 deletions types/FundingInstructions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,15 @@ declare module 'stripe' {
}

interface Iban {
account_holder_address: Stripe.Address;

/**
* The name of the person or business that owns the bank account
*/
account_holder_name: string;

bank_address: Stripe.Address;

/**
* The BIC/SWIFT code of the account.
*/
Expand All @@ -149,6 +153,8 @@ declare module 'stripe' {
}

interface SortCode {
account_holder_address: Stripe.Address;

/**
* The name of the person or business that owns the bank account
*/
Expand All @@ -159,13 +165,24 @@ declare module 'stripe' {
*/
account_number: string;

bank_address: Stripe.Address;

/**
* The six-digit sort code
*/
sort_code: string;
}

interface Spei {
account_holder_address: Stripe.Address;

/**
* The account holder name
*/
account_holder_name: string;

bank_address: Stripe.Address;

/**
* The three-digit bank code
*/
Expand Down Expand Up @@ -232,6 +249,8 @@ declare module 'stripe' {
| 'zengin';

interface Zengin {
account_holder_address: Stripe.Address;

/**
* The account holder name
*/
Expand All @@ -247,6 +266,8 @@ declare module 'stripe' {
*/
account_type: string | null;

bank_address: Stripe.Address;

/**
* The bank code of the account
*/
Expand Down
2 changes: 1 addition & 1 deletion types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ declare module 'stripe' {
metadata: Stripe.Metadata | null;

/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
*/
pause_collection?: SubscriptionDetails.PauseCollection | null;
}
Expand Down
6 changes: 3 additions & 3 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3330,7 +3330,7 @@ declare module 'stripe' {
on_behalf_of?: string;

/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
*/
pause_collection?: Phase.PauseCollection;

Expand Down Expand Up @@ -5551,7 +5551,7 @@ declare module 'stripe' {
on_behalf_of?: string;

/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
*/
pause_collection?: Phase.PauseCollection;

Expand Down Expand Up @@ -8031,7 +8031,7 @@ declare module 'stripe' {
on_behalf_of?: string;

/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
*/
pause_collection?: Phase.PauseCollection;

Expand Down
2 changes: 1 addition & 1 deletion types/Issuing/Cardholders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module 'stripe' {
/**
* An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
*
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
*/
interface Cardholder {
/**
Expand Down
2 changes: 1 addition & 1 deletion types/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare module 'stripe' {
/**
* An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
*
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
*/
cardholder: Stripe.Issuing.Cardholder;

Expand Down
23 changes: 22 additions & 1 deletion types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,15 @@ declare module 'stripe' {
}

interface Iban {
account_holder_address: Stripe.Address;

/**
* The name of the person or business that owns the bank account
*/
account_holder_name: string;

bank_address: Stripe.Address;

/**
* The BIC/SWIFT code of the account.
*/
Expand All @@ -861,6 +865,8 @@ declare module 'stripe' {
}

interface SortCode {
account_holder_address: Stripe.Address;

/**
* The name of the person or business that owns the bank account
*/
Expand All @@ -871,13 +877,24 @@ declare module 'stripe' {
*/
account_number: string;

bank_address: Stripe.Address;

/**
* The six-digit sort code
*/
sort_code: string;
}

interface Spei {
account_holder_address: Stripe.Address;

/**
* The account holder name
*/
account_holder_name: string;

bank_address: Stripe.Address;

/**
* The three-digit bank code
*/
Expand Down Expand Up @@ -944,6 +961,8 @@ declare module 'stripe' {
| 'zengin';

interface Zengin {
account_holder_address: Stripe.Address;

/**
* The account holder name
*/
Expand All @@ -959,6 +978,8 @@ declare module 'stripe' {
*/
account_type: string | null;

bank_address: Stripe.Address;

/**
* The bank code of the account
*/
Expand Down Expand Up @@ -3021,7 +3042,7 @@ declare module 'stripe' {

interface Swish {
/**
* The order ID displayed in the Swish app after the payment is authorized.
* A reference for this payment to be displayed in the Swish app.
*/
reference: string | null;

Expand Down
6 changes: 3 additions & 3 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3570,7 +3570,7 @@ declare module 'stripe' {

interface Swish {
/**
* The order ID displayed in the Swish app after the payment is authorized.
* A reference for this payment to be displayed in the Swish app.
*/
reference?: Stripe.Emptyable<string>;

Expand Down Expand Up @@ -7326,7 +7326,7 @@ declare module 'stripe' {

interface Swish {
/**
* The order ID displayed in the Swish app after the payment is authorized.
* A reference for this payment to be displayed in the Swish app.
*/
reference?: Stripe.Emptyable<string>;

Expand Down Expand Up @@ -11837,7 +11837,7 @@ declare module 'stripe' {

interface Swish {
/**
* The order ID displayed in the Swish app after the payment is authorized.
* A reference for this payment to be displayed in the Swish app.
*/
reference?: Stripe.Emptyable<string>;

Expand Down
2 changes: 1 addition & 1 deletion types/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ declare module 'stripe' {
shipping_rate: string | Stripe.ShippingRate;
}

type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';

interface SubscriptionData {
/**
Expand Down
4 changes: 2 additions & 2 deletions types/PaymentLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ declare module 'stripe' {
shipping_rate?: string;
}

type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';

interface SubscriptionData {
/**
Expand Down Expand Up @@ -1840,7 +1840,7 @@ declare module 'stripe' {
| 'ZZ';
}

type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';

interface SubscriptionData {
/**
Expand Down
17 changes: 17 additions & 0 deletions types/Payouts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ declare module 'stripe' {
*/
status: string;

/**
* A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar.
*/
trace_id?: Payout.TraceId | null;

/**
* Can be `bank_account` or `card`.
*/
Expand All @@ -149,6 +154,18 @@ declare module 'stripe' {
| 'in_progress'
| 'not_applicable';

interface TraceId {
/**
* Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`.
*/
status: string;

/**
* The trace ID value if `trace_id.status` is `supported`, otherwise `nil`.
*/
value: string | null;
}

type Type = 'bank_account' | 'card';
}
}
Expand Down
Loading
Loading