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

Merged
merged 7 commits into from
Oct 26, 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 @@
v605
v623
6 changes: 3 additions & 3 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const (
AccountExternalAccountTypeCard AccountExternalAccountType = "card"
)

// If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
// If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`.
type AccountRequirementsDisabledReason string

// List of values that AccountRequirementsDisabledReason can take
Expand Down Expand Up @@ -1104,7 +1104,7 @@ type AccountFutureRequirements struct {
CurrentDeadline int64 `json:"current_deadline"`
// Fields that need to be collected to keep the account enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
CurrentlyDue []string `json:"currently_due"`
// This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
// This is typed as a string for consistency with `requirements.disabled_reason`.
DisabledReason string `json:"disabled_reason"`
// Fields that are `currently_due` and need to be collected again because validation or verification failed.
Errors []*AccountFutureRequirementsError `json:"errors"`
Expand Down Expand Up @@ -1140,7 +1140,7 @@ type AccountRequirements struct {
CurrentDeadline int64 `json:"current_deadline"`
// Fields that need to be collected to keep the account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
CurrentlyDue []string `json:"currently_due"`
// If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
// If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`.
DisabledReason AccountRequirementsDisabledReason `json:"disabled_reason"`
// Fields that are `currently_due` and need to be collected again because validation or verification failed.
Errors []*AccountRequirementsError `json:"errors"`
Expand Down
1 change: 1 addition & 0 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
ErrorCodeApplicationFeesNotAllowed ErrorCode = "application_fees_not_allowed"
ErrorCodeAuthenticationRequired ErrorCode = "authentication_required"
ErrorCodeBalanceInsufficient ErrorCode = "balance_insufficient"
ErrorCodeBalanceInvalidParameter ErrorCode = "balance_invalid_parameter"
ErrorCodeBankAccountBadRoutingNumbers ErrorCode = "bank_account_bad_routing_numbers"
ErrorCodeBankAccountDeclined ErrorCode = "bank_account_declined"
ErrorCodeBankAccountExists ErrorCode = "bank_account_exists"
Expand Down
7 changes: 3 additions & 4 deletions paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ type PaymentIntentPaymentMethodOptionsCardParams struct {
type PaymentIntentPaymentMethodOptionsCardPresentParams struct {
// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
RequestExtendedAuthorization *bool `form:"request_extended_authorization"`
// Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
// This field was released by mistake and will be removed in the next major version
RequestIncrementalAuthorization *string `form:"request_incremental_authorization"`
// Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
RequestIncrementalAuthorizationSupport *bool `form:"request_incremental_authorization_support"`
Expand Down Expand Up @@ -1687,7 +1687,7 @@ type PaymentIntentRadarOptionsParams struct {
Session *string `form:"session"`
}

// The parameters that you can use to automatically create a Transfer after the payment succeeds.
// The parameters that you can use to automatically create a Transfer.
// Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
type PaymentIntentTransferDataParams struct {
// The amount that will be transferred automatically when a charge succeeds.
Expand Down Expand Up @@ -1784,8 +1784,7 @@ type PaymentIntentParams struct {
StatementDescriptor *string `form:"statement_descriptor"`
// Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. The concatenated descriptor must contain 1-22 characters.
StatementDescriptorSuffix *string `form:"statement_descriptor_suffix"`
// The parameters that you can use to automatically create a Transfer after the payment succeeds.
// Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
// Use this parameter to automatically create a Transfer when the payment succeeds. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
TransferData *PaymentIntentTransferDataParams `form:"transfer_data"`
// A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
TransferGroup *string `form:"transfer_group"`
Expand Down
4 changes: 2 additions & 2 deletions paymentlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ type PaymentLinkShippingOptionParams struct {

// When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
type PaymentLinkSubscriptionDataParams struct {
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description *string `form:"description"`
// 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 map[string]string `form:"metadata"`
Expand Down Expand Up @@ -702,7 +702,7 @@ type PaymentLinkShippingOption struct {

// When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
type PaymentLinkSubscriptionData struct {
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// 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.
Metadata map[string]string `json:"metadata"`
Expand Down
4 changes: 2 additions & 2 deletions quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ type QuoteLineItemParams struct {

// When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
type QuoteSubscriptionDataParams struct {
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description *string `form:"description"`
// When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
EffectiveDate *int64 `form:"effective_date"`
Expand Down Expand Up @@ -501,7 +501,7 @@ type QuoteStatusTransitions struct {
FinalizedAt int64 `json:"finalized_at"`
}
type QuoteSubscriptionData struct {
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
EffectiveDate int64 `json:"effective_date"`
Expand Down
4 changes: 2 additions & 2 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ type SubscriptionParams struct {
DefaultSource *string `form:"default_source"`
// The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. Pass an empty string to remove previously-defined tax rates.
DefaultTaxRates []*string `form:"default_tax_rates"`
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description *string `form:"description"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
Expand Down Expand Up @@ -876,7 +876,7 @@ type Subscription struct {
DefaultSource *PaymentSource `json:"default_source"`
// The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription.
DefaultTaxRates []*TaxRate `json:"default_tax_rates"`
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
// The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.
Discount *Discount `json:"discount"`
Expand Down
8 changes: 4 additions & 4 deletions subscriptionschedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type SubscriptionScheduleDefaultSettingsParams struct {
CollectionMethod *string `form:"collection_method"`
// ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
DefaultPaymentMethod *string `form:"default_payment_method"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description *string `form:"description"`
// All invoices will be billed using the specified settings.
InvoiceSettings *SubscriptionScheduleDefaultSettingsInvoiceSettingsParams `form:"invoice_settings"`
Expand Down Expand Up @@ -198,7 +198,7 @@ type SubscriptionSchedulePhaseParams struct {
DefaultPaymentMethod *string `form:"default_payment_method"`
// A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
DefaultTaxRates []*string `form:"default_tax_rates"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description *string `form:"description"`
// The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
EndDate *int64 `form:"end_date"`
Expand Down Expand Up @@ -349,7 +349,7 @@ type SubscriptionScheduleDefaultSettings struct {
CollectionMethod *SubscriptionCollectionMethod `json:"collection_method"`
// ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
DefaultPaymentMethod *PaymentMethod `json:"default_payment_method"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// The subscription schedule's default invoice settings.
InvoiceSettings *SubscriptionScheduleDefaultSettingsInvoiceSettings `json:"invoice_settings"`
Expand Down Expand Up @@ -412,7 +412,7 @@ type SubscriptionSchedulePhase struct {
DefaultPaymentMethod *PaymentMethod `json:"default_payment_method"`
// The default tax rates to apply to the subscription during this phase of the subscription schedule.
DefaultTaxRates []*TaxRate `json:"default_tax_rates"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// The end of this phase of the subscription schedule.
EndDate int64 `json:"end_date"`
Expand Down
Loading