Skip to content

Commit

Permalink
Update generated code for v960
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 15, 2024
1 parent 3b37f64 commit 12d5f5f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v959
v960
56 changes: 55 additions & 1 deletion accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ type AccountSessionComponentsAccountOnboardingParams struct {
Features *AccountSessionComponentsAccountOnboardingFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsBalancesFeaturesParams struct {
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts *bool `form:"instant_payouts"`
// Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
StandardPayouts *bool `form:"standard_payouts"`
}

// Configuration for the balances embedded component.
type AccountSessionComponentsBalancesParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsBalancesFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsCapitalFinancingPromotionFeaturesParams struct{}
type AccountSessionComponentsCapitalFinancingPromotionParams struct {
Expand Down Expand Up @@ -177,12 +195,25 @@ type AccountSessionComponentsPayoutsParams struct {
Features *AccountSessionComponentsPayoutsFeaturesParams `form:"features"`
}

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

// Configuration for the payouts list embedded component.
type AccountSessionComponentsPayoutsListParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsPayoutsListFeaturesParams `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.
AccountManagement *AccountSessionComponentsAccountManagementParams `form:"account_management"`
// Configuration for the account onboarding embedded component.
AccountOnboarding *AccountSessionComponentsAccountOnboardingParams `form:"account_onboarding"`
AccountOnboarding *AccountSessionComponentsAccountOnboardingParams `form:"account_onboarding"`
// Configuration for the balances embedded component.
Balances *AccountSessionComponentsBalancesParams `form:"balances"`
CapitalFinancingPromotion *AccountSessionComponentsCapitalFinancingPromotionParams `form:"capital_financing_promotion"`
// Configuration for the documents embedded component.
Documents *AccountSessionComponentsDocumentsParams `form:"documents"`
Expand All @@ -202,6 +233,8 @@ type AccountSessionComponentsParams struct {
Payments *AccountSessionComponentsPaymentsParams `form:"payments"`
// Configuration for the payouts embedded component.
Payouts *AccountSessionComponentsPayoutsParams `form:"payouts"`
// Configuration for the payouts list embedded component.
PayoutsList *AccountSessionComponentsPayoutsListParams `form:"payouts_list"`
}

// 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 @@ -238,6 +271,19 @@ type AccountSessionComponentsAccountOnboarding struct {
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsBalancesFeatures struct {
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule bool `json:"edit_payout_schedule"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts bool `json:"instant_payouts"`
// Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
StandardPayouts bool `json:"standard_payouts"`
}
type AccountSessionComponentsBalances struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsBalancesFeatures `json:"features"`
}
type AccountSessionComponentsCapitalFinancingPromotionFeatures struct{}
type AccountSessionComponentsCapitalFinancingPromotion struct {
// Whether the embedded component is enabled.
Expand Down Expand Up @@ -302,15 +348,23 @@ type AccountSessionComponentsPayouts struct {
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPayoutsFeatures `json:"features"`
}
type AccountSessionComponentsPayoutsListFeatures struct{}
type AccountSessionComponentsPayoutsList struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPayoutsListFeatures `json:"features"`
}
type AccountSessionComponents struct {
AccountManagement *AccountSessionComponentsAccountManagement `json:"account_management"`
AccountOnboarding *AccountSessionComponentsAccountOnboarding `json:"account_onboarding"`
Balances *AccountSessionComponentsBalances `json:"balances"`
CapitalFinancingPromotion *AccountSessionComponentsCapitalFinancingPromotion `json:"capital_financing_promotion"`
Documents *AccountSessionComponentsDocuments `json:"documents"`
NotificationBanner *AccountSessionComponentsNotificationBanner `json:"notification_banner"`
PaymentDetails *AccountSessionComponentsPaymentDetails `json:"payment_details"`
Payments *AccountSessionComponentsPayments `json:"payments"`
Payouts *AccountSessionComponentsPayouts `json:"payouts"`
PayoutsList *AccountSessionComponentsPayoutsList `json:"payouts_list"`
}

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

0 comments on commit 12d5f5f

Please sign in to comment.