graphql

package
v1.55.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	// DefaultHost is the production GraphQL gateway host.
	DefaultHost = "graphql.stripe.com"
	// QAHost is the QA GraphQL gateway host.
	QAHost = "qa-graphql.stripe.com"
)
View Source
const ListIntegHlthAlerts_Operation = `` /* 627-byte string literal not displayed */

The query executed by ListIntegHlthAlerts.

Variables

This section is empty.

Functions

func HostForAccessBaseURL

func HostForAccessBaseURL(accessBaseURL string) string

HostForAccessBaseURL returns the gateway host that matches the OAuth access base URL the CLI logged in with, so QA credentials use the QA gateway.

func NewClient

func NewClient(ctx context.Context, opts Options) (genqlient.Client, error)

NewClient returns a genqlient client for the GraphQL gateway that sends the profile's credentials with every request.

Types

type ListIntegHlthAlertsResponse

type ListIntegHlthAlertsResponse struct {
	V2ListIntegHlthAlerts ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse `json:"v2ListIntegHlthAlerts"`
}

ListIntegHlthAlertsResponse is returned by ListIntegHlthAlerts on success.

func ListIntegHlthAlerts

func ListIntegHlthAlerts(
	ctx_ context.Context,
	client_ graphql.Client,
	statuses []string,
	limit int,
	page string,
	lastUpdatedAfter string,
	lastUpdatedBefore string,
) (data_ *ListIntegHlthAlertsResponse, err_ error)

func (*ListIntegHlthAlertsResponse) GetV2ListIntegHlthAlerts

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

GetAlerts returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse.Alerts, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponse) GetNext_page

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

GetCompartment_id returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Compartment_id, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetCreated_at

GetCreated_at returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Created_at, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetDoctor_topic

GetDoctor_topic returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Doctor_topic, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight

GetHealth_insight returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Health_insight, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetHealth_insight_id

GetHealth_insight_id returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Health_insight_id, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetLast_updated

GetLast_updated returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Last_updated, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetPredicate_name

GetPredicate_name returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Predicate_name, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetRecent_integration_data

GetRecent_integration_data returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail.Recent_integration_data, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetail) GetStatus

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

GetRecommended_action returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Recommended_action, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSeverity

GetSeverity returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Severity, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetSummary

GetSummary returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight.Summary, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsight) GetWhy_is_it_important

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

GetDescription returns ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction.Description, and is useful for accessing the field via an interface.

func (*ListIntegHlthAlertsV2ListIntegHlthAlertsV2IntegrationHealthListIntegHlthAlertsResponseAlertsV2IntegrationHealthAlertDetailHealth_insightV2IntegrationHealthAlertHealthInsightRecommended_actionV2IntegrationHealthRecommendedAction) GetTitle

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL