Skip to content

Commit

Permalink
Update generated code for v1412
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 14, 2024
1 parent 6e1ce3d commit c1346ec
Show file tree
Hide file tree
Showing 19 changed files with 576 additions and 34 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1409
v1412
4 changes: 2 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ type AccountFutureRequirements struct {
DisabledReason AccountFutureRequirementsDisabledReason `json:"disabled_reason"`
// Fields that are `currently_due` and need to be collected again because validation or verification failed.
Errors []*AccountFutureRequirementsError `json:"errors"`
// Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
// Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
EventuallyDue []string `json:"eventually_due"`
// Fields that weren't collected by `requirements.current_deadline`. These fields need to be collected to enable the capability on the account. New fields will never appear here; `future_requirements.past_due` will always be a subset of `requirements.past_due`.
PastDue []string `json:"past_due"`
Expand Down Expand Up @@ -1517,7 +1517,7 @@ type AccountRequirements struct {
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"`
// Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
// Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
EventuallyDue []string `json:"eventually_due"`
// Fields that weren't collected by `current_deadline`. These fields need to be collected to enable the account.
PastDue []string `json:"past_due"`
Expand Down
20 changes: 10 additions & 10 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountManagementFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand All @@ -24,7 +24,7 @@ type AccountSessionComponentsAccountManagementParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountOnboardingFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand All @@ -40,7 +40,7 @@ type AccountSessionComponentsAccountOnboardingParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsBalancesFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
Expand Down Expand Up @@ -73,7 +73,7 @@ type AccountSessionComponentsDocumentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsNotificationBannerFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand Down Expand Up @@ -129,7 +129,7 @@ type AccountSessionComponentsPaymentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsPayoutsFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
Expand Down Expand Up @@ -225,7 +225,7 @@ func (p *AccountSessionParams) AddExpand(f string) {
}

type AccountSessionComponentsAccountManagementFeatures struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand All @@ -236,7 +236,7 @@ type AccountSessionComponentsAccountManagement struct {
Features *AccountSessionComponentsAccountManagementFeatures `json:"features"`
}
type AccountSessionComponentsAccountOnboardingFeatures struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand All @@ -247,7 +247,7 @@ type AccountSessionComponentsAccountOnboarding struct {
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsBalancesFeatures struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule bool `json:"edit_payout_schedule"`
Expand All @@ -270,7 +270,7 @@ type AccountSessionComponentsDocuments struct {
Features *AccountSessionComponentsDocumentsFeatures `json:"features"`
}
type AccountSessionComponentsNotificationBannerFeatures struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand Down Expand Up @@ -311,7 +311,7 @@ type AccountSessionComponentsPayments struct {
Features *AccountSessionComponentsPaymentsFeatures `json:"features"`
}
type AccountSessionComponentsPayoutsFeatures struct {
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule bool `json:"edit_payout_schedule"`
Expand Down
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
package stripe

const (
apiVersion string = "2024-11-20.acacia"
apiVersion string = "2024-12-18.acacia"
)
4 changes: 2 additions & 2 deletions capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type CapabilityFutureRequirements struct {
DisabledReason CapabilityFutureRequirementsDisabledReason `json:"disabled_reason"`
// Fields that are `currently_due` and need to be collected again because validation or verification failed.
Errors []*CapabilityFutureRequirementsError `json:"errors"`
// Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
// Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
EventuallyDue []string `json:"eventually_due"`
// Fields that weren't collected by `requirements.current_deadline`. These fields need to be collected to enable the capability on the account. New fields will never appear here; `future_requirements.past_due` will always be a subset of `requirements.past_due`.
PastDue []string `json:"past_due"`
Expand All @@ -136,7 +136,7 @@ type CapabilityRequirements struct {
DisabledReason CapabilityDisabledReason `json:"disabled_reason"`
// Fields that are `currently_due` and need to be collected again because validation or verification failed.
Errors []*AccountRequirementsError `json:"errors"`
// Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
// Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
EventuallyDue []string `json:"eventually_due"`
// Fields that weren't collected by `current_deadline`. These fields need to be collected to enable the capability on the account.
PastDue []string `json:"past_due"`
Expand Down
Loading

0 comments on commit c1346ec

Please sign in to comment.