Skip to content

Commit

Permalink
Update generated code (#1896)
Browse files Browse the repository at this point in the history
Update generated code for v1155

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 25, 2024
1 parent aab7ae6 commit 0833557
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1154
v1155
40 changes: 40 additions & 0 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,28 @@ type AccountSessionComponentsPayoutsListParams struct {
Features *AccountSessionComponentsPayoutsListFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsTaxRegistrationsFeaturesParams struct{}

// Configuration for the tax registrations embedded component.
type AccountSessionComponentsTaxRegistrationsParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsTaxRegistrationsFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsTaxSettingsFeaturesParams struct{}

// Configuration for the tax settings embedded component.
type AccountSessionComponentsTaxSettingsParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsTaxSettingsFeaturesParams `form:"features"`
}

// Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not).
type AccountSessionComponentsParams struct {
// Configuration for the account management embedded component.
Expand All @@ -170,6 +192,10 @@ type AccountSessionComponentsParams struct {
Payouts *AccountSessionComponentsPayoutsParams `form:"payouts"`
// Configuration for the payouts list embedded component.
PayoutsList *AccountSessionComponentsPayoutsListParams `form:"payouts_list"`
// Configuration for the tax registrations embedded component.
TaxRegistrations *AccountSessionComponentsTaxRegistrationsParams `form:"tax_registrations"`
// Configuration for the tax settings embedded component.
TaxSettings *AccountSessionComponentsTaxSettingsParams `form:"tax_settings"`
}

// Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
Expand Down Expand Up @@ -287,6 +313,18 @@ type AccountSessionComponentsPayoutsList struct {
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPayoutsListFeatures `json:"features"`
}
type AccountSessionComponentsTaxRegistrationsFeatures struct{}
type AccountSessionComponentsTaxRegistrations struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsTaxRegistrationsFeatures `json:"features"`
}
type AccountSessionComponentsTaxSettingsFeatures struct{}
type AccountSessionComponentsTaxSettings struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsTaxSettingsFeatures `json:"features"`
}
type AccountSessionComponents struct {
AccountManagement *AccountSessionComponentsAccountManagement `json:"account_management"`
AccountOnboarding *AccountSessionComponentsAccountOnboarding `json:"account_onboarding"`
Expand All @@ -297,6 +335,8 @@ type AccountSessionComponents struct {
Payments *AccountSessionComponentsPayments `json:"payments"`
Payouts *AccountSessionComponentsPayouts `json:"payouts"`
PayoutsList *AccountSessionComponentsPayoutsList `json:"payouts_list"`
TaxRegistrations *AccountSessionComponentsTaxRegistrations `json:"tax_registrations"`
TaxSettings *AccountSessionComponentsTaxSettings `json:"tax_settings"`
}

// An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
Expand Down

0 comments on commit 0833557

Please sign in to comment.