Documentation
¶
Overview ¶
Package graphql provides a genqlient client for Stripe's GraphQL gateway (graphql.stripe.com) that authenticates with the CLI's credentials.
The query functions in generated.go are produced from operations.graphql and schema.graphql; run `go generate ./pkg/graphql` after changing either.
Index ¶
- Constants
- func HostForAccessBaseURL(accessBaseURL string) string
- func NewClient(ctx context.Context, opts Options) (genqlient.Client, error)
- type ListIntegHlthAlertsResponse
- type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse
- type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCompartment_id() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCreated_at() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetDoctor_topic() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight() ...
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight_id() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetLast_updated() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetPredicate_name() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetRecent_integration_data() []string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetStatus() string
- type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetRecommended_action() ...
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSeverity() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSummary() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetWhy_is_it_important() string
- type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetDescription() string
- func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetTitle() string
- type Options
Constants ¶
const ( // DefaultHost is the production GraphQL gateway host. DefaultHost = "graphql.stripe.com" // QAHost is the QA GraphQL gateway host. QAHost = "qa-graphql.stripe.com" )
const ListIntegHlthAlerts_Operation = `` /* 627-byte string literal not displayed */
The query executed by ListIntegHlthAlerts.
Variables ¶
This section is empty.
Functions ¶
func HostForAccessBaseURL ¶
HostForAccessBaseURL returns the gateway host that matches the OAuth access base URL the CLI logged in with, so QA credentials use the QA gateway.
Types ¶
type ListIntegHlthAlertsResponse ¶
type ListIntegHlthAlertsResponse struct {
V2ListIntegHlthAlerts ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse `json:"v2ListIntegHlthAlerts"`
}
ListIntegHlthAlertsResponse is returned by ListIntegHlthAlerts on success.
func ListIntegHlthAlerts ¶
func (*ListIntegHlthAlertsResponse) GetV2ListIntegHlthAlerts ¶
func (v *ListIntegHlthAlertsResponse) GetV2ListIntegHlthAlerts() ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse
GetV2ListIntegHlthAlerts returns ListIntegHlthAlertsResponse.V2ListIntegHlthAlerts, and is useful for accessing the field via an interface.
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse ¶
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse struct {
Alerts []ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail `json:"alerts"`
Next_page string `json:"next_page"`
}
ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse includes the requested fields of the GraphQL type V2IntegrationHealthListIntegHlthAlertsResponse.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse) GetAlerts ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse) GetAlerts() []ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail
GetAlerts returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse.Alerts, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse) GetNext_page ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse) GetNext_page() string
GetNext_page returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse.Next_page, and is useful for accessing the field via an interface.
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail ¶
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail struct {
Compartment_id string `json:"compartment_id"`
Created_at string `json:"created_at"`
Doctor_topic string `json:"doctor_topic"`
Health_insight ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight `json:"health_insight"`
Health_insight_id string `json:"health_insight_id"`
Last_updated string `json:"last_updated"`
Predicate_name string `json:"predicate_name"`
Recent_integration_data []string `json:"recent_integration_data"`
Status string `json:"status"`
}
ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail includes the requested fields of the GraphQL type V2IntegrationHealthAlertDetail.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCompartment_id ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCompartment_id() string
GetCompartment_id returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Compartment_id, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCreated_at ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCreated_at() string
GetCreated_at returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Created_at, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetDoctor_topic ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetDoctor_topic() string
GetDoctor_topic returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Doctor_topic, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight() ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight
GetHealth_insight returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Health_insight, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight_id ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight_id() string
GetHealth_insight_id returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Health_insight_id, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetLast_updated ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetLast_updated() string
GetLast_updated returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Last_updated, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetPredicate_name ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetPredicate_name() string
GetPredicate_name returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Predicate_name, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetRecent_integration_data ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetRecent_integration_data() []string
GetRecent_integration_data returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Recent_integration_data, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetStatus ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetStatus() string
GetStatus returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Status, and is useful for accessing the field via an interface.
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight ¶
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight struct {
Recommended_action ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction `json:"recommended_action"`
Severity string `json:"severity"`
Summary string `json:"summary"`
Why_is_it_important string `json:"why_is_it_important"`
}
ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight includes the requested fields of the GraphQL type V2IntegrationHealthAlertHealthInsight.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetRecommended_action ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetRecommended_action() ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction
GetRecommended_action returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Recommended_action, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSeverity ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSeverity() string
GetSeverity returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Severity, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSummary ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSummary() string
GetSummary returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Summary, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetWhy_is_it_important ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetWhy_is_it_important() string
GetWhy_is_it_important returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Why_is_it_important, and is useful for accessing the field via an interface.
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction ¶
type ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction struct {
Description string `json:"description"`
Title string `json:"title"`
}
ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction includes the requested fields of the GraphQL type V2IntegrationHealthRecommendedAction.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetDescription ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetDescription() string
GetDescription returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction.Description, and is useful for accessing the field via an interface.
func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetTitle ¶
func (v *ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetTitle() string
GetTitle returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction.Title, and is useful for accessing the field via an interface.
type Options ¶
type Options struct {
// Profile supplies the CLI credentials. Required.
Profile *config.Profile
// Livemode selects live or test mode credentials.
Livemode bool
// APIBaseURL is the Stripe API base URL used to look up the workspace for
// OAuth credentials. Defaults to stripe.DefaultAPIBaseURL.
APIBaseURL string
// Host is the GraphQL gateway host. Defaults to DefaultHost.
Host string
// StripeVersion is sent as the Stripe-Version header. Defaults to the
// CLI's preview API version.
StripeVersion string
// Transport is the underlying RoundTripper. Defaults to http.DefaultTransport.
Transport http.RoundTripper
}
Options configures NewClient.