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

Merged
merged 5 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.
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 @@
v403
v408
1 change: 1 addition & 0 deletions financialconnections_accountowner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

package stripe

// Describes an owner of an account.
type FinancialConnectionsAccountOwner struct {
// The email address of the owner.
Email string `json:"email"`
Expand Down
20 changes: 20 additions & 0 deletions paymentlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,35 @@ type PaymentLinkCustomFieldLabel struct {
Type PaymentLinkCustomFieldLabelType `json:"type"`
}

// Configuration for `type=numeric` fields.
type PaymentLinkCustomFieldNumeric struct {
// The maximum character length constraint for the customer's input.
MaximumLength int64 `json:"maximum_length"`
// The minimum character length requirement for the customer's input.
MinimumLength int64 `json:"minimum_length"`
}

// Configuration for `type=text` fields.
type PaymentLinkCustomFieldText struct {
// The maximum character length constraint for the customer's input.
MaximumLength int64 `json:"maximum_length"`
// The minimum character length requirement for the customer's input.
MinimumLength int64 `json:"minimum_length"`
}

// Collect additional information from your customer using custom fields. Up to 2 fields are supported.
type PaymentLinkCustomField struct {
// Configuration for `type=dropdown` fields.
Dropdown *PaymentLinkCustomFieldDropdown `json:"dropdown"`
// String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
Key string `json:"key"`
Label *PaymentLinkCustomFieldLabel `json:"label"`
// Configuration for `type=numeric` fields.
Numeric *PaymentLinkCustomFieldNumeric `json:"numeric"`
// Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
Optional bool `json:"optional"`
// Configuration for `type=text` fields.
Text *PaymentLinkCustomFieldText `json:"text"`
// The type of the field.
Type PaymentLinkCustomFieldType `json:"type"`
}
Expand Down
8 changes: 8 additions & 0 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,17 @@ type SubscriptionSearchParams struct {
Page *string `form:"page"`
}

// Filter subscriptions by their automatic tax settings.
type SubscriptionListAutomaticTaxParams struct {
// Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
Enabled *bool `form:"enabled"`
}

// By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.
type SubscriptionListParams struct {
ListParams `form:"*"`
// Filter subscriptions by their automatic tax settings.
AutomaticTax *SubscriptionListAutomaticTaxParams `form:"automatic_tax"`
// The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
CollectionMethod *string `form:"collection_method"`
Created *int64 `form:"created"`
Expand Down