Skip to content

Commit

Permalink
Update generated code for v609
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 19, 2023
1 parent a9187ef commit a51038a
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v608
v609
76 changes: 76 additions & 0 deletions types/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,29 @@ declare module 'stripe' {
* If `true`, tax will be calculated automatically using the customer's location.
*/
enabled: boolean;

/**
* The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
*/
liability?: AutomaticTax.Liability | null;
}

namespace AutomaticTax {
interface Liability {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string | Stripe.Account;

/**
* Type of the account referenced.
*/
type: Liability.Type;
}

namespace Liability {
type Type = 'account' | 'self';
}
}

type BillingAddressCollection = 'auto' | 'required';
Expand Down Expand Up @@ -376,6 +399,11 @@ declare module 'stripe' {
*/
footer: string | null;

/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceData.Issuer | null;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
*/
Expand All @@ -400,6 +428,22 @@ declare module 'stripe' {
value: string;
}

interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string | Stripe.Account;

/**
* Type of the account referenced.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}

interface RenderingOptions {
/**
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
Expand Down Expand Up @@ -749,6 +793,11 @@ declare module 'stripe' {
*/
description: string | null;

/**
* All invoices will be billed using the specified settings.
*/
invoice_settings?: SubscriptionData.InvoiceSettings | null;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link.
*/
Expand All @@ -760,6 +809,33 @@ declare module 'stripe' {
trial_period_days: number | null;
}

namespace SubscriptionData {
interface InvoiceSettings {
/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceSettings.Issuer | null;
}

namespace InvoiceSettings {
interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string | Stripe.Account;

/**
* Type of the account referenced.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}
}
}

interface TaxIdCollection {
/**
* Indicates whether tax ID collection is enabled for the session.
Expand Down
152 changes: 152 additions & 0 deletions types/PaymentLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,29 @@ declare module 'stripe' {
* If `true`, tax will be calculated automatically using the customer's location.
*/
enabled: boolean;

/**
* The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
*/
liability?: AutomaticTax.Liability;
}

namespace AutomaticTax {
interface Liability {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Liability.Type;
}

namespace Liability {
type Type = 'account' | 'self';
}
}

type BillingAddressCollection = 'auto' | 'required';
Expand Down Expand Up @@ -382,6 +405,11 @@ declare module 'stripe' {
*/
footer?: string;

/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceData.Issuer;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
Expand All @@ -406,6 +434,22 @@ declare module 'stripe' {
value: string;
}

interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}

interface RenderingOptions {
/**
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
Expand Down Expand Up @@ -803,6 +847,11 @@ declare module 'stripe' {
*/
description?: string;

/**
* All invoices will be billed using the specified settings.
*/
invoice_settings?: SubscriptionData.InvoiceSettings;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
*/
Expand All @@ -814,6 +863,33 @@ declare module 'stripe' {
trial_period_days?: number;
}

namespace SubscriptionData {
interface InvoiceSettings {
/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceSettings.Issuer;
}

namespace InvoiceSettings {
interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}
}
}

interface TaxIdCollection {
/**
* Set to `true` to enable tax ID collection.
Expand Down Expand Up @@ -982,6 +1058,29 @@ declare module 'stripe' {
* If `true`, tax will be calculated automatically using the customer's location.
*/
enabled: boolean;

/**
* The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
*/
liability?: AutomaticTax.Liability;
}

namespace AutomaticTax {
interface Liability {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Liability.Type;
}

namespace Liability {
type Type = 'account' | 'self';
}
}

type BillingAddressCollection = 'auto' | 'required';
Expand Down Expand Up @@ -1162,6 +1261,11 @@ declare module 'stripe' {
*/
footer?: string;

/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceData.Issuer;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
Expand All @@ -1186,6 +1290,22 @@ declare module 'stripe' {
value: string;
}

interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}

interface RenderingOptions {
/**
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
Expand Down Expand Up @@ -1536,11 +1656,43 @@ declare module 'stripe' {
}

interface SubscriptionData {
/**
* All invoices will be billed using the specified settings.
*/
invoice_settings?: SubscriptionData.InvoiceSettings;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
*/
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
}

namespace SubscriptionData {
interface InvoiceSettings {
/**
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
*/
issuer?: InvoiceSettings.Issuer;
}

namespace InvoiceSettings {
interface Issuer {
/**
* The connected account being referenced when `type` is `account`.
*/
account?: string;

/**
* Type of the account referenced in the request.
*/
type: Issuer.Type;
}

namespace Issuer {
type Type = 'account' | 'self';
}
}
}
}

interface PaymentLinkListParams extends PaginationParams {
Expand Down

0 comments on commit a51038a

Please sign in to comment.