Skip to content

Commit

Permalink
Update generated code (#1775)
Browse files Browse the repository at this point in the history
* Update generated code for v692

* Update generated code for v693

* Update generated code for v694

* Update generated code for v695

* Update generated code for v696

* Update generated code for v697

* Update generated code for v701

* Update generated code for v702

* Update generated code for v703

* Update generated code for v704

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Dec 7, 2023
1 parent e04b083 commit 1d55471
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 60 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v691
v704
97 changes: 96 additions & 1 deletion accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,74 @@

package stripe

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

// Configuration for the account onboarding embedded component.
type AccountSessionComponentsAccountOnboardingParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsAccountOnboardingFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsPaymentDetailsFeaturesParams struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
CapturePayments *bool `form:"capture_payments"`
// Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
DisputeManagement *bool `form:"dispute_management"`
// Whether to allow sending refunds. This is `true` by default.
RefundManagement *bool `form:"refund_management"`
}

// Configuration for the payment details embedded component.
type AccountSessionComponentsPaymentDetailsParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsPaymentDetailsFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsPaymentsFeaturesParams struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
CapturePayments *bool `form:"capture_payments"`
// Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
DisputeManagement *bool `form:"dispute_management"`
// Whether to allow sending refunds. This is `true` by default.
RefundManagement *bool `form:"refund_management"`
}

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

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

// Configuration for the payouts embedded component.
type AccountSessionComponentsPayoutsParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsPayoutsFeaturesParams `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 onboarding embedded component.
AccountOnboarding *AccountSessionComponentsAccountOnboardingParams `form:"account_onboarding"`
// Configuration for the payment details embedded component.
PaymentDetails *AccountSessionComponentsPaymentDetailsParams `form:"payment_details"`
// Configuration for the payments embedded component.
Payments *AccountSessionComponentsPaymentsParams `form:"payments"`
// Configuration for the payouts embedded component.
Payouts *AccountSessionComponentsPayoutsParams `form:"payouts"`
}

// 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 All @@ -34,12 +92,49 @@ func (p *AccountSessionParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

type AccountSessionComponentsAccountOnboardingFeatures struct{}
type AccountSessionComponentsAccountOnboarding struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsPaymentDetailsFeatures struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
CapturePayments bool `json:"capture_payments"`
// Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
DisputeManagement bool `json:"dispute_management"`
// Whether to allow sending refunds. This is `true` by default.
RefundManagement bool `json:"refund_management"`
}
type AccountSessionComponentsPaymentDetails struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPaymentDetailsFeatures `json:"features"`
}
type AccountSessionComponentsPaymentsFeatures struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
CapturePayments bool `json:"capture_payments"`
// Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
DisputeManagement bool `json:"dispute_management"`
// Whether to allow sending refunds. This is `true` by default.
RefundManagement bool `json:"refund_management"`
}
type AccountSessionComponentsPayments struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPaymentsFeatures `json:"features"`
}
type AccountSessionComponentsPayoutsFeatures struct{}
type AccountSessionComponentsPayouts struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPayoutsFeatures `json:"features"`
}
type AccountSessionComponents struct {
AccountOnboarding *AccountSessionComponentsAccountOnboarding `json:"account_onboarding"`
PaymentDetails *AccountSessionComponentsPaymentDetails `json:"payment_details"`
Payments *AccountSessionComponentsPayments `json:"payments"`
Payouts *AccountSessionComponentsPayouts `json:"payouts"`
}

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

0 comments on commit 1d55471

Please sign in to comment.