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

Merged
merged 4 commits into from
Jul 6, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v403
v408
2 changes: 1 addition & 1 deletion types/FinancialConnections/AccountOwners.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'stripe' {
namespace Stripe {
namespace FinancialConnections {
/**
* The AccountOwner object.
* Describes an owner of an account.
*/
interface AccountOwner {
/**
Expand Down
34 changes: 34 additions & 0 deletions types/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,21 @@ declare module 'stripe' {

label: CustomField.Label;

/**
* Configuration for `type=numeric` fields.
*/
numeric: CustomField.Numeric | null;

/**
* Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
*/
optional: boolean;

/**
* Configuration for `type=text` fields.
*/
text: CustomField.Text | null;

/**
* The type of the field.
*/
Expand Down Expand Up @@ -263,6 +273,30 @@ declare module 'stripe' {
type: 'custom';
}

interface Numeric {
/**
* The maximum character length constraint for the customer's input.
*/
maximum_length: number | null;

/**
* The minimum character length requirement for the customer's input.
*/
minimum_length: number | null;
}

interface Text {
/**
* The maximum character length constraint for the customer's input.
*/
maximum_length: number | null;

/**
* The minimum character length requirement for the customer's input.
*/
minimum_length: number | null;
}

type Type = 'dropdown' | 'numeric' | 'text';
}

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

interface SubscriptionListParams extends PaginationParams {
/**
* Filter subscriptions by their automatic tax settings.
*/
automatic_tax?: SubscriptionListParams.AutomaticTax;

/**
* The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
*/
Expand Down Expand Up @@ -1415,6 +1420,13 @@ declare module 'stripe' {
}

namespace SubscriptionListParams {
interface AutomaticTax {
/**
* Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
*/
enabled: boolean;
}

type CollectionMethod = 'charge_automatically' | 'send_invoice';

type Status =
Expand Down