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

Merged
merged 9 commits into from
May 30, 2024
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1047
v1058
4 changes: 2 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ type AccountParams struct {
Metadata map[string]string `form:"metadata"`
// Options for customizing how the account functions within Stripe.
Settings *AccountSettingsParams `form:"settings"`
// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
TOSAcceptance *AccountTOSAcceptanceParams `form:"tos_acceptance"`
// The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
Type *string `form:"type"`
Expand Down Expand Up @@ -962,7 +962,7 @@ type AccountSettingsParams struct {
Treasury *AccountSettingsTreasuryParams `form:"treasury"`
}

// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
// Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
type AccountTOSAcceptanceParams struct {
// The Unix timestamp marking when the account representative accepted their service agreement.
Date *int64 `form:"date"`
Expand Down
2 changes: 2 additions & 0 deletions bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const (
BankAccountFutureRequirementsErrorCodeVerificationMissingExecutives BankAccountFutureRequirementsErrorCode = "verification_missing_executives"
BankAccountFutureRequirementsErrorCodeVerificationMissingOwners BankAccountFutureRequirementsErrorCode = "verification_missing_owners"
BankAccountFutureRequirementsErrorCodeVerificationRequiresAdditionalMemorandumOfAssociations BankAccountFutureRequirementsErrorCode = "verification_requires_additional_memorandum_of_associations"
BankAccountFutureRequirementsErrorCodeVerificationRequiresAdditionalProofOfRegistration BankAccountFutureRequirementsErrorCode = "verification_requires_additional_proof_of_registration"
)

// The code for the type of error.
Expand Down Expand Up @@ -218,6 +219,7 @@ const (
BankAccountRequirementsErrorCodeVerificationMissingExecutives BankAccountRequirementsErrorCode = "verification_missing_executives"
BankAccountRequirementsErrorCodeVerificationMissingOwners BankAccountRequirementsErrorCode = "verification_missing_owners"
BankAccountRequirementsErrorCodeVerificationRequiresAdditionalMemorandumOfAssociations BankAccountRequirementsErrorCode = "verification_requires_additional_memorandum_of_associations"
BankAccountRequirementsErrorCodeVerificationRequiresAdditionalProofOfRegistration BankAccountRequirementsErrorCode = "verification_requires_additional_proof_of_registration"
)

// For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
Expand Down
2 changes: 1 addition & 1 deletion charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ type ChargePaymentMethodDetailsKlarna struct {
// Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
PaymentMethodCategory ChargePaymentMethodDetailsKlarnaPaymentMethodCategory `json:"payment_method_category"`
// Preferred language of the Klarna authorization page that the customer is redirected to.
// Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
// Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
PreferredLocale string `json:"preferred_locale"`
}

Expand Down
16 changes: 14 additions & 2 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,8 @@ type CheckoutSessionCustomFieldDropdownOptionParams struct {

// Configuration for `type=dropdown` fields.
type CheckoutSessionCustomFieldDropdownParams struct {
// The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
DefaultValue *string `form:"default_value"`
// The options available for the customer to select. Up to 200 options allowed.
Options []*CheckoutSessionCustomFieldDropdownOptionParams `form:"options"`
}
Expand All @@ -950,6 +952,8 @@ type CheckoutSessionCustomFieldLabelParams struct {

// Configuration for `type=numeric` fields.
type CheckoutSessionCustomFieldNumericParams struct {
// The value that will pre-fill the field on the payment page.
DefaultValue *string `form:"default_value"`
// The maximum character length constraint for the customer's input.
MaximumLength *int64 `form:"maximum_length"`
// The minimum character length requirement for the customer's input.
Expand All @@ -958,6 +962,8 @@ type CheckoutSessionCustomFieldNumericParams struct {

// Configuration for `type=text` fields.
type CheckoutSessionCustomFieldTextParams struct {
// The value that will pre-fill the field on the payment page.
DefaultValue *string `form:"default_value"`
// The maximum character length constraint for the customer's input.
MaximumLength *int64 `form:"maximum_length"`
// The minimum character length requirement for the customer's input.
Expand Down Expand Up @@ -1812,7 +1818,7 @@ type CheckoutSessionShippingOptionShippingRateDataFixedAmountParams struct {
CurrencyOptions map[string]*CheckoutSessionShippingOptionShippingRateDataFixedAmountCurrencyOptionsParams `form:"currency_options"`
}

// Parameters to be passed to Shipping Rate creation for this shipping option
// Parameters to be passed to Shipping Rate creation for this shipping option.
type CheckoutSessionShippingOptionShippingRateDataParams struct {
// The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
DeliveryEstimate *CheckoutSessionShippingOptionShippingRateDataDeliveryEstimateParams `form:"delivery_estimate"`
Expand Down Expand Up @@ -1843,7 +1849,7 @@ func (p *CheckoutSessionShippingOptionShippingRateDataParams) AddMetadata(key st
type CheckoutSessionShippingOptionParams struct {
// The ID of the Shipping Rate to use for this shipping option.
ShippingRate *string `form:"shipping_rate"`
// Parameters to be passed to Shipping Rate creation for this shipping option
// Parameters to be passed to Shipping Rate creation for this shipping option.
ShippingRateData *CheckoutSessionShippingOptionShippingRateDataParams `form:"shipping_rate_data"`
}

Expand Down Expand Up @@ -2196,6 +2202,8 @@ type CheckoutSessionCustomFieldDropdownOption struct {
Value string `json:"value"`
}
type CheckoutSessionCustomFieldDropdown struct {
// The value that will pre-fill on the payment page.
DefaultValue string `json:"default_value"`
// The options available for the customer to select. Up to 200 options allowed.
Options []*CheckoutSessionCustomFieldDropdownOption `json:"options"`
// The option selected by the customer. This will be the `value` for the option.
Expand All @@ -2208,6 +2216,8 @@ type CheckoutSessionCustomFieldLabel struct {
Type CheckoutSessionCustomFieldLabelType `json:"type"`
}
type CheckoutSessionCustomFieldNumeric struct {
// The value that will pre-fill the field on the payment page.
DefaultValue string `json:"default_value"`
// 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.
Expand All @@ -2216,6 +2226,8 @@ type CheckoutSessionCustomFieldNumeric struct {
Value string `json:"value"`
}
type CheckoutSessionCustomFieldText struct {
// The value that will pre-fill the field on the payment page.
DefaultValue string `json:"default_value"`
// 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.
Expand Down
Loading
Loading