Documentation
¶
Index ¶
- func BuildCreateCheckoutPayload(usageCreateCheckoutSessionToken string, ...) (*usage.CreateCheckoutPayload, error)
- func BuildCreateCustomerSessionPayload(usageCreateCustomerSessionSessionToken string, ...) (*usage.CreateCustomerSessionPayload, error)
- func BuildGetPeriodUsagePayload(usageGetPeriodUsageSessionToken string, ...) (*usage.GetPeriodUsagePayload, error)
- func CreateCheckoutUsagePath() string
- func CreateCustomerSessionUsagePath() string
- func DecodeCreateCheckoutResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeCreateCustomerSessionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeGetPeriodUsageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeGetUsageTiersResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func EncodeCreateCheckoutRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeCreateCustomerSessionRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeGetPeriodUsageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func GetPeriodUsageUsagePath() string
- func GetUsageTiersUsagePath() string
- func NewCreateCheckoutBadRequest(body *CreateCheckoutBadRequestResponseBody) *goa.ServiceError
- func NewCreateCheckoutConflict(body *CreateCheckoutConflictResponseBody) *goa.ServiceError
- func NewCreateCheckoutForbidden(body *CreateCheckoutForbiddenResponseBody) *goa.ServiceError
- func NewCreateCheckoutGatewayError(body *CreateCheckoutGatewayErrorResponseBody) *goa.ServiceError
- func NewCreateCheckoutInvalid(body *CreateCheckoutInvalidResponseBody) *goa.ServiceError
- func NewCreateCheckoutInvariantViolation(body *CreateCheckoutInvariantViolationResponseBody) *goa.ServiceError
- func NewCreateCheckoutNotFound(body *CreateCheckoutNotFoundResponseBody) *goa.ServiceError
- func NewCreateCheckoutUnauthorized(body *CreateCheckoutUnauthorizedResponseBody) *goa.ServiceError
- func NewCreateCheckoutUnexpected(body *CreateCheckoutUnexpectedResponseBody) *goa.ServiceError
- func NewCreateCheckoutUnsupportedMedia(body *CreateCheckoutUnsupportedMediaResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionBadRequest(body *CreateCustomerSessionBadRequestResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionConflict(body *CreateCustomerSessionConflictResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionForbidden(body *CreateCustomerSessionForbiddenResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionGatewayError(body *CreateCustomerSessionGatewayErrorResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionInvalid(body *CreateCustomerSessionInvalidResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionInvariantViolation(body *CreateCustomerSessionInvariantViolationResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionNotFound(body *CreateCustomerSessionNotFoundResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionUnauthorized(body *CreateCustomerSessionUnauthorizedResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionUnexpected(body *CreateCustomerSessionUnexpectedResponseBody) *goa.ServiceError
- func NewCreateCustomerSessionUnsupportedMedia(body *CreateCustomerSessionUnsupportedMediaResponseBody) *goa.ServiceError
- func NewGetPeriodUsageBadRequest(body *GetPeriodUsageBadRequestResponseBody) *goa.ServiceError
- func NewGetPeriodUsageConflict(body *GetPeriodUsageConflictResponseBody) *goa.ServiceError
- func NewGetPeriodUsageForbidden(body *GetPeriodUsageForbiddenResponseBody) *goa.ServiceError
- func NewGetPeriodUsageGatewayError(body *GetPeriodUsageGatewayErrorResponseBody) *goa.ServiceError
- func NewGetPeriodUsageInvalid(body *GetPeriodUsageInvalidResponseBody) *goa.ServiceError
- func NewGetPeriodUsageInvariantViolation(body *GetPeriodUsageInvariantViolationResponseBody) *goa.ServiceError
- func NewGetPeriodUsageNotFound(body *GetPeriodUsageNotFoundResponseBody) *goa.ServiceError
- func NewGetPeriodUsagePeriodUsageOK(body *GetPeriodUsageResponseBody) *usage.PeriodUsage
- func NewGetPeriodUsageUnauthorized(body *GetPeriodUsageUnauthorizedResponseBody) *goa.ServiceError
- func NewGetPeriodUsageUnexpected(body *GetPeriodUsageUnexpectedResponseBody) *goa.ServiceError
- func NewGetPeriodUsageUnsupportedMedia(body *GetPeriodUsageUnsupportedMediaResponseBody) *goa.ServiceError
- func NewGetUsageTiersBadRequest(body *GetUsageTiersBadRequestResponseBody) *goa.ServiceError
- func NewGetUsageTiersConflict(body *GetUsageTiersConflictResponseBody) *goa.ServiceError
- func NewGetUsageTiersForbidden(body *GetUsageTiersForbiddenResponseBody) *goa.ServiceError
- func NewGetUsageTiersGatewayError(body *GetUsageTiersGatewayErrorResponseBody) *goa.ServiceError
- func NewGetUsageTiersInvalid(body *GetUsageTiersInvalidResponseBody) *goa.ServiceError
- func NewGetUsageTiersInvariantViolation(body *GetUsageTiersInvariantViolationResponseBody) *goa.ServiceError
- func NewGetUsageTiersNotFound(body *GetUsageTiersNotFoundResponseBody) *goa.ServiceError
- func NewGetUsageTiersUnauthorized(body *GetUsageTiersUnauthorizedResponseBody) *goa.ServiceError
- func NewGetUsageTiersUnexpected(body *GetUsageTiersUnexpectedResponseBody) *goa.ServiceError
- func NewGetUsageTiersUnsupportedMedia(body *GetUsageTiersUnsupportedMediaResponseBody) *goa.ServiceError
- func NewGetUsageTiersUsageTiersOK(body *GetUsageTiersResponseBody) *usage.UsageTiers
- func ValidateCreateCheckoutBadRequestResponseBody(body *CreateCheckoutBadRequestResponseBody) (err error)
- func ValidateCreateCheckoutConflictResponseBody(body *CreateCheckoutConflictResponseBody) (err error)
- func ValidateCreateCheckoutForbiddenResponseBody(body *CreateCheckoutForbiddenResponseBody) (err error)
- func ValidateCreateCheckoutGatewayErrorResponseBody(body *CreateCheckoutGatewayErrorResponseBody) (err error)
- func ValidateCreateCheckoutInvalidResponseBody(body *CreateCheckoutInvalidResponseBody) (err error)
- func ValidateCreateCheckoutInvariantViolationResponseBody(body *CreateCheckoutInvariantViolationResponseBody) (err error)
- func ValidateCreateCheckoutNotFoundResponseBody(body *CreateCheckoutNotFoundResponseBody) (err error)
- func ValidateCreateCheckoutUnauthorizedResponseBody(body *CreateCheckoutUnauthorizedResponseBody) (err error)
- func ValidateCreateCheckoutUnexpectedResponseBody(body *CreateCheckoutUnexpectedResponseBody) (err error)
- func ValidateCreateCheckoutUnsupportedMediaResponseBody(body *CreateCheckoutUnsupportedMediaResponseBody) (err error)
- func ValidateCreateCustomerSessionBadRequestResponseBody(body *CreateCustomerSessionBadRequestResponseBody) (err error)
- func ValidateCreateCustomerSessionConflictResponseBody(body *CreateCustomerSessionConflictResponseBody) (err error)
- func ValidateCreateCustomerSessionForbiddenResponseBody(body *CreateCustomerSessionForbiddenResponseBody) (err error)
- func ValidateCreateCustomerSessionGatewayErrorResponseBody(body *CreateCustomerSessionGatewayErrorResponseBody) (err error)
- func ValidateCreateCustomerSessionInvalidResponseBody(body *CreateCustomerSessionInvalidResponseBody) (err error)
- func ValidateCreateCustomerSessionInvariantViolationResponseBody(body *CreateCustomerSessionInvariantViolationResponseBody) (err error)
- func ValidateCreateCustomerSessionNotFoundResponseBody(body *CreateCustomerSessionNotFoundResponseBody) (err error)
- func ValidateCreateCustomerSessionUnauthorizedResponseBody(body *CreateCustomerSessionUnauthorizedResponseBody) (err error)
- func ValidateCreateCustomerSessionUnexpectedResponseBody(body *CreateCustomerSessionUnexpectedResponseBody) (err error)
- func ValidateCreateCustomerSessionUnsupportedMediaResponseBody(body *CreateCustomerSessionUnsupportedMediaResponseBody) (err error)
- func ValidateGetPeriodUsageBadRequestResponseBody(body *GetPeriodUsageBadRequestResponseBody) (err error)
- func ValidateGetPeriodUsageConflictResponseBody(body *GetPeriodUsageConflictResponseBody) (err error)
- func ValidateGetPeriodUsageForbiddenResponseBody(body *GetPeriodUsageForbiddenResponseBody) (err error)
- func ValidateGetPeriodUsageGatewayErrorResponseBody(body *GetPeriodUsageGatewayErrorResponseBody) (err error)
- func ValidateGetPeriodUsageInvalidResponseBody(body *GetPeriodUsageInvalidResponseBody) (err error)
- func ValidateGetPeriodUsageInvariantViolationResponseBody(body *GetPeriodUsageInvariantViolationResponseBody) (err error)
- func ValidateGetPeriodUsageNotFoundResponseBody(body *GetPeriodUsageNotFoundResponseBody) (err error)
- func ValidateGetPeriodUsageResponseBody(body *GetPeriodUsageResponseBody) (err error)
- func ValidateGetPeriodUsageUnauthorizedResponseBody(body *GetPeriodUsageUnauthorizedResponseBody) (err error)
- func ValidateGetPeriodUsageUnexpectedResponseBody(body *GetPeriodUsageUnexpectedResponseBody) (err error)
- func ValidateGetPeriodUsageUnsupportedMediaResponseBody(body *GetPeriodUsageUnsupportedMediaResponseBody) (err error)
- func ValidateGetUsageTiersBadRequestResponseBody(body *GetUsageTiersBadRequestResponseBody) (err error)
- func ValidateGetUsageTiersConflictResponseBody(body *GetUsageTiersConflictResponseBody) (err error)
- func ValidateGetUsageTiersForbiddenResponseBody(body *GetUsageTiersForbiddenResponseBody) (err error)
- func ValidateGetUsageTiersGatewayErrorResponseBody(body *GetUsageTiersGatewayErrorResponseBody) (err error)
- func ValidateGetUsageTiersInvalidResponseBody(body *GetUsageTiersInvalidResponseBody) (err error)
- func ValidateGetUsageTiersInvariantViolationResponseBody(body *GetUsageTiersInvariantViolationResponseBody) (err error)
- func ValidateGetUsageTiersNotFoundResponseBody(body *GetUsageTiersNotFoundResponseBody) (err error)
- func ValidateGetUsageTiersResponseBody(body *GetUsageTiersResponseBody) (err error)
- func ValidateGetUsageTiersUnauthorizedResponseBody(body *GetUsageTiersUnauthorizedResponseBody) (err error)
- func ValidateGetUsageTiersUnexpectedResponseBody(body *GetUsageTiersUnexpectedResponseBody) (err error)
- func ValidateGetUsageTiersUnsupportedMediaResponseBody(body *GetUsageTiersUnsupportedMediaResponseBody) (err error)
- func ValidateTierLimitsResponseBody(body *TierLimitsResponseBody) (err error)
- type Client
- func (c *Client) BuildCreateCheckoutRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildCreateCustomerSessionRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildGetPeriodUsageRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildGetUsageTiersRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) CreateCheckout() goa.Endpoint
- func (c *Client) CreateCustomerSession() goa.Endpoint
- func (c *Client) GetPeriodUsage() goa.Endpoint
- func (c *Client) GetUsageTiers() goa.Endpoint
- type CreateCheckoutBadRequestResponseBody
- type CreateCheckoutConflictResponseBody
- type CreateCheckoutForbiddenResponseBody
- type CreateCheckoutGatewayErrorResponseBody
- type CreateCheckoutInvalidResponseBody
- type CreateCheckoutInvariantViolationResponseBody
- type CreateCheckoutNotFoundResponseBody
- type CreateCheckoutUnauthorizedResponseBody
- type CreateCheckoutUnexpectedResponseBody
- type CreateCheckoutUnsupportedMediaResponseBody
- type CreateCustomerSessionBadRequestResponseBody
- type CreateCustomerSessionConflictResponseBody
- type CreateCustomerSessionForbiddenResponseBody
- type CreateCustomerSessionGatewayErrorResponseBody
- type CreateCustomerSessionInvalidResponseBody
- type CreateCustomerSessionInvariantViolationResponseBody
- type CreateCustomerSessionNotFoundResponseBody
- type CreateCustomerSessionUnauthorizedResponseBody
- type CreateCustomerSessionUnexpectedResponseBody
- type CreateCustomerSessionUnsupportedMediaResponseBody
- type GetPeriodUsageBadRequestResponseBody
- type GetPeriodUsageConflictResponseBody
- type GetPeriodUsageForbiddenResponseBody
- type GetPeriodUsageGatewayErrorResponseBody
- type GetPeriodUsageInvalidResponseBody
- type GetPeriodUsageInvariantViolationResponseBody
- type GetPeriodUsageNotFoundResponseBody
- type GetPeriodUsageResponseBody
- type GetPeriodUsageUnauthorizedResponseBody
- type GetPeriodUsageUnexpectedResponseBody
- type GetPeriodUsageUnsupportedMediaResponseBody
- type GetUsageTiersBadRequestResponseBody
- type GetUsageTiersConflictResponseBody
- type GetUsageTiersForbiddenResponseBody
- type GetUsageTiersGatewayErrorResponseBody
- type GetUsageTiersInvalidResponseBody
- type GetUsageTiersInvariantViolationResponseBody
- type GetUsageTiersNotFoundResponseBody
- type GetUsageTiersResponseBody
- type GetUsageTiersUnauthorizedResponseBody
- type GetUsageTiersUnexpectedResponseBody
- type GetUsageTiersUnsupportedMediaResponseBody
- type TierLimitsResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCreateCheckoutPayload ¶
func BuildCreateCheckoutPayload(usageCreateCheckoutSessionToken string, usageCreateCheckoutProjectSlugInput string) (*usage.CreateCheckoutPayload, error)
BuildCreateCheckoutPayload builds the payload for the usage createCheckout endpoint from CLI flags.
func BuildCreateCustomerSessionPayload ¶
func BuildCreateCustomerSessionPayload(usageCreateCustomerSessionSessionToken string, usageCreateCustomerSessionProjectSlugInput string) (*usage.CreateCustomerSessionPayload, error)
BuildCreateCustomerSessionPayload builds the payload for the usage createCustomerSession endpoint from CLI flags.
func BuildGetPeriodUsagePayload ¶
func BuildGetPeriodUsagePayload(usageGetPeriodUsageSessionToken string, usageGetPeriodUsageProjectSlugInput string) (*usage.GetPeriodUsagePayload, error)
BuildGetPeriodUsagePayload builds the payload for the usage getPeriodUsage endpoint from CLI flags.
func CreateCheckoutUsagePath ¶
func CreateCheckoutUsagePath() string
CreateCheckoutUsagePath returns the URL path to the usage service createCheckout HTTP endpoint.
func CreateCustomerSessionUsagePath ¶
func CreateCustomerSessionUsagePath() string
CreateCustomerSessionUsagePath returns the URL path to the usage service createCustomerSession HTTP endpoint.
func DecodeCreateCheckoutResponse ¶
func DecodeCreateCheckoutResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeCreateCheckoutResponse returns a decoder for responses returned by the usage createCheckout endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateCheckoutResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "conflict" (type *goa.ServiceError): http.StatusConflict
- "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
- "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
- "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
- "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
- "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
- error: internal error
func DecodeCreateCustomerSessionResponse ¶
func DecodeCreateCustomerSessionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeCreateCustomerSessionResponse returns a decoder for responses returned by the usage createCustomerSession endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateCustomerSessionResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "conflict" (type *goa.ServiceError): http.StatusConflict
- "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
- "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
- "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
- "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
- "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
- error: internal error
func DecodeGetPeriodUsageResponse ¶
func DecodeGetPeriodUsageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeGetPeriodUsageResponse returns a decoder for responses returned by the usage getPeriodUsage endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetPeriodUsageResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "conflict" (type *goa.ServiceError): http.StatusConflict
- "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
- "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
- "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
- "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
- "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
- error: internal error
func DecodeGetUsageTiersResponse ¶
func DecodeGetUsageTiersResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeGetUsageTiersResponse returns a decoder for responses returned by the usage getUsageTiers endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetUsageTiersResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "conflict" (type *goa.ServiceError): http.StatusConflict
- "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
- "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
- "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
- "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
- "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
- error: internal error
func EncodeCreateCheckoutRequest ¶
func EncodeCreateCheckoutRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeCreateCheckoutRequest returns an encoder for requests sent to the usage createCheckout server.
func EncodeCreateCustomerSessionRequest ¶
func EncodeCreateCustomerSessionRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeCreateCustomerSessionRequest returns an encoder for requests sent to the usage createCustomerSession server.
func EncodeGetPeriodUsageRequest ¶
func EncodeGetPeriodUsageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeGetPeriodUsageRequest returns an encoder for requests sent to the usage getPeriodUsage server.
func GetPeriodUsageUsagePath ¶
func GetPeriodUsageUsagePath() string
GetPeriodUsageUsagePath returns the URL path to the usage service getPeriodUsage HTTP endpoint.
func GetUsageTiersUsagePath ¶
func GetUsageTiersUsagePath() string
GetUsageTiersUsagePath returns the URL path to the usage service getUsageTiers HTTP endpoint.
func NewCreateCheckoutBadRequest ¶
func NewCreateCheckoutBadRequest(body *CreateCheckoutBadRequestResponseBody) *goa.ServiceError
NewCreateCheckoutBadRequest builds a usage service createCheckout endpoint bad_request error.
func NewCreateCheckoutConflict ¶
func NewCreateCheckoutConflict(body *CreateCheckoutConflictResponseBody) *goa.ServiceError
NewCreateCheckoutConflict builds a usage service createCheckout endpoint conflict error.
func NewCreateCheckoutForbidden ¶
func NewCreateCheckoutForbidden(body *CreateCheckoutForbiddenResponseBody) *goa.ServiceError
NewCreateCheckoutForbidden builds a usage service createCheckout endpoint forbidden error.
func NewCreateCheckoutGatewayError ¶
func NewCreateCheckoutGatewayError(body *CreateCheckoutGatewayErrorResponseBody) *goa.ServiceError
NewCreateCheckoutGatewayError builds a usage service createCheckout endpoint gateway_error error.
func NewCreateCheckoutInvalid ¶
func NewCreateCheckoutInvalid(body *CreateCheckoutInvalidResponseBody) *goa.ServiceError
NewCreateCheckoutInvalid builds a usage service createCheckout endpoint invalid error.
func NewCreateCheckoutInvariantViolation ¶
func NewCreateCheckoutInvariantViolation(body *CreateCheckoutInvariantViolationResponseBody) *goa.ServiceError
NewCreateCheckoutInvariantViolation builds a usage service createCheckout endpoint invariant_violation error.
func NewCreateCheckoutNotFound ¶
func NewCreateCheckoutNotFound(body *CreateCheckoutNotFoundResponseBody) *goa.ServiceError
NewCreateCheckoutNotFound builds a usage service createCheckout endpoint not_found error.
func NewCreateCheckoutUnauthorized ¶
func NewCreateCheckoutUnauthorized(body *CreateCheckoutUnauthorizedResponseBody) *goa.ServiceError
NewCreateCheckoutUnauthorized builds a usage service createCheckout endpoint unauthorized error.
func NewCreateCheckoutUnexpected ¶
func NewCreateCheckoutUnexpected(body *CreateCheckoutUnexpectedResponseBody) *goa.ServiceError
NewCreateCheckoutUnexpected builds a usage service createCheckout endpoint unexpected error.
func NewCreateCheckoutUnsupportedMedia ¶
func NewCreateCheckoutUnsupportedMedia(body *CreateCheckoutUnsupportedMediaResponseBody) *goa.ServiceError
NewCreateCheckoutUnsupportedMedia builds a usage service createCheckout endpoint unsupported_media error.
func NewCreateCustomerSessionBadRequest ¶
func NewCreateCustomerSessionBadRequest(body *CreateCustomerSessionBadRequestResponseBody) *goa.ServiceError
NewCreateCustomerSessionBadRequest builds a usage service createCustomerSession endpoint bad_request error.
func NewCreateCustomerSessionConflict ¶
func NewCreateCustomerSessionConflict(body *CreateCustomerSessionConflictResponseBody) *goa.ServiceError
NewCreateCustomerSessionConflict builds a usage service createCustomerSession endpoint conflict error.
func NewCreateCustomerSessionForbidden ¶
func NewCreateCustomerSessionForbidden(body *CreateCustomerSessionForbiddenResponseBody) *goa.ServiceError
NewCreateCustomerSessionForbidden builds a usage service createCustomerSession endpoint forbidden error.
func NewCreateCustomerSessionGatewayError ¶
func NewCreateCustomerSessionGatewayError(body *CreateCustomerSessionGatewayErrorResponseBody) *goa.ServiceError
NewCreateCustomerSessionGatewayError builds a usage service createCustomerSession endpoint gateway_error error.
func NewCreateCustomerSessionInvalid ¶
func NewCreateCustomerSessionInvalid(body *CreateCustomerSessionInvalidResponseBody) *goa.ServiceError
NewCreateCustomerSessionInvalid builds a usage service createCustomerSession endpoint invalid error.
func NewCreateCustomerSessionInvariantViolation ¶
func NewCreateCustomerSessionInvariantViolation(body *CreateCustomerSessionInvariantViolationResponseBody) *goa.ServiceError
NewCreateCustomerSessionInvariantViolation builds a usage service createCustomerSession endpoint invariant_violation error.
func NewCreateCustomerSessionNotFound ¶
func NewCreateCustomerSessionNotFound(body *CreateCustomerSessionNotFoundResponseBody) *goa.ServiceError
NewCreateCustomerSessionNotFound builds a usage service createCustomerSession endpoint not_found error.
func NewCreateCustomerSessionUnauthorized ¶
func NewCreateCustomerSessionUnauthorized(body *CreateCustomerSessionUnauthorizedResponseBody) *goa.ServiceError
NewCreateCustomerSessionUnauthorized builds a usage service createCustomerSession endpoint unauthorized error.
func NewCreateCustomerSessionUnexpected ¶
func NewCreateCustomerSessionUnexpected(body *CreateCustomerSessionUnexpectedResponseBody) *goa.ServiceError
NewCreateCustomerSessionUnexpected builds a usage service createCustomerSession endpoint unexpected error.
func NewCreateCustomerSessionUnsupportedMedia ¶
func NewCreateCustomerSessionUnsupportedMedia(body *CreateCustomerSessionUnsupportedMediaResponseBody) *goa.ServiceError
NewCreateCustomerSessionUnsupportedMedia builds a usage service createCustomerSession endpoint unsupported_media error.
func NewGetPeriodUsageBadRequest ¶
func NewGetPeriodUsageBadRequest(body *GetPeriodUsageBadRequestResponseBody) *goa.ServiceError
NewGetPeriodUsageBadRequest builds a usage service getPeriodUsage endpoint bad_request error.
func NewGetPeriodUsageConflict ¶
func NewGetPeriodUsageConflict(body *GetPeriodUsageConflictResponseBody) *goa.ServiceError
NewGetPeriodUsageConflict builds a usage service getPeriodUsage endpoint conflict error.
func NewGetPeriodUsageForbidden ¶
func NewGetPeriodUsageForbidden(body *GetPeriodUsageForbiddenResponseBody) *goa.ServiceError
NewGetPeriodUsageForbidden builds a usage service getPeriodUsage endpoint forbidden error.
func NewGetPeriodUsageGatewayError ¶
func NewGetPeriodUsageGatewayError(body *GetPeriodUsageGatewayErrorResponseBody) *goa.ServiceError
NewGetPeriodUsageGatewayError builds a usage service getPeriodUsage endpoint gateway_error error.
func NewGetPeriodUsageInvalid ¶
func NewGetPeriodUsageInvalid(body *GetPeriodUsageInvalidResponseBody) *goa.ServiceError
NewGetPeriodUsageInvalid builds a usage service getPeriodUsage endpoint invalid error.
func NewGetPeriodUsageInvariantViolation ¶
func NewGetPeriodUsageInvariantViolation(body *GetPeriodUsageInvariantViolationResponseBody) *goa.ServiceError
NewGetPeriodUsageInvariantViolation builds a usage service getPeriodUsage endpoint invariant_violation error.
func NewGetPeriodUsageNotFound ¶
func NewGetPeriodUsageNotFound(body *GetPeriodUsageNotFoundResponseBody) *goa.ServiceError
NewGetPeriodUsageNotFound builds a usage service getPeriodUsage endpoint not_found error.
func NewGetPeriodUsagePeriodUsageOK ¶
func NewGetPeriodUsagePeriodUsageOK(body *GetPeriodUsageResponseBody) *usage.PeriodUsage
NewGetPeriodUsagePeriodUsageOK builds a "usage" service "getPeriodUsage" endpoint result from a HTTP "OK" response.
func NewGetPeriodUsageUnauthorized ¶
func NewGetPeriodUsageUnauthorized(body *GetPeriodUsageUnauthorizedResponseBody) *goa.ServiceError
NewGetPeriodUsageUnauthorized builds a usage service getPeriodUsage endpoint unauthorized error.
func NewGetPeriodUsageUnexpected ¶
func NewGetPeriodUsageUnexpected(body *GetPeriodUsageUnexpectedResponseBody) *goa.ServiceError
NewGetPeriodUsageUnexpected builds a usage service getPeriodUsage endpoint unexpected error.
func NewGetPeriodUsageUnsupportedMedia ¶
func NewGetPeriodUsageUnsupportedMedia(body *GetPeriodUsageUnsupportedMediaResponseBody) *goa.ServiceError
NewGetPeriodUsageUnsupportedMedia builds a usage service getPeriodUsage endpoint unsupported_media error.
func NewGetUsageTiersBadRequest ¶
func NewGetUsageTiersBadRequest(body *GetUsageTiersBadRequestResponseBody) *goa.ServiceError
NewGetUsageTiersBadRequest builds a usage service getUsageTiers endpoint bad_request error.
func NewGetUsageTiersConflict ¶
func NewGetUsageTiersConflict(body *GetUsageTiersConflictResponseBody) *goa.ServiceError
NewGetUsageTiersConflict builds a usage service getUsageTiers endpoint conflict error.
func NewGetUsageTiersForbidden ¶
func NewGetUsageTiersForbidden(body *GetUsageTiersForbiddenResponseBody) *goa.ServiceError
NewGetUsageTiersForbidden builds a usage service getUsageTiers endpoint forbidden error.
func NewGetUsageTiersGatewayError ¶
func NewGetUsageTiersGatewayError(body *GetUsageTiersGatewayErrorResponseBody) *goa.ServiceError
NewGetUsageTiersGatewayError builds a usage service getUsageTiers endpoint gateway_error error.
func NewGetUsageTiersInvalid ¶
func NewGetUsageTiersInvalid(body *GetUsageTiersInvalidResponseBody) *goa.ServiceError
NewGetUsageTiersInvalid builds a usage service getUsageTiers endpoint invalid error.
func NewGetUsageTiersInvariantViolation ¶
func NewGetUsageTiersInvariantViolation(body *GetUsageTiersInvariantViolationResponseBody) *goa.ServiceError
NewGetUsageTiersInvariantViolation builds a usage service getUsageTiers endpoint invariant_violation error.
func NewGetUsageTiersNotFound ¶
func NewGetUsageTiersNotFound(body *GetUsageTiersNotFoundResponseBody) *goa.ServiceError
NewGetUsageTiersNotFound builds a usage service getUsageTiers endpoint not_found error.
func NewGetUsageTiersUnauthorized ¶
func NewGetUsageTiersUnauthorized(body *GetUsageTiersUnauthorizedResponseBody) *goa.ServiceError
NewGetUsageTiersUnauthorized builds a usage service getUsageTiers endpoint unauthorized error.
func NewGetUsageTiersUnexpected ¶
func NewGetUsageTiersUnexpected(body *GetUsageTiersUnexpectedResponseBody) *goa.ServiceError
NewGetUsageTiersUnexpected builds a usage service getUsageTiers endpoint unexpected error.
func NewGetUsageTiersUnsupportedMedia ¶
func NewGetUsageTiersUnsupportedMedia(body *GetUsageTiersUnsupportedMediaResponseBody) *goa.ServiceError
NewGetUsageTiersUnsupportedMedia builds a usage service getUsageTiers endpoint unsupported_media error.
func NewGetUsageTiersUsageTiersOK ¶
func NewGetUsageTiersUsageTiersOK(body *GetUsageTiersResponseBody) *usage.UsageTiers
NewGetUsageTiersUsageTiersOK builds a "usage" service "getUsageTiers" endpoint result from a HTTP "OK" response.
func ValidateCreateCheckoutBadRequestResponseBody ¶
func ValidateCreateCheckoutBadRequestResponseBody(body *CreateCheckoutBadRequestResponseBody) (err error)
ValidateCreateCheckoutBadRequestResponseBody runs the validations defined on createCheckout_bad_request_response_body
func ValidateCreateCheckoutConflictResponseBody ¶
func ValidateCreateCheckoutConflictResponseBody(body *CreateCheckoutConflictResponseBody) (err error)
ValidateCreateCheckoutConflictResponseBody runs the validations defined on createCheckout_conflict_response_body
func ValidateCreateCheckoutForbiddenResponseBody ¶
func ValidateCreateCheckoutForbiddenResponseBody(body *CreateCheckoutForbiddenResponseBody) (err error)
ValidateCreateCheckoutForbiddenResponseBody runs the validations defined on createCheckout_forbidden_response_body
func ValidateCreateCheckoutGatewayErrorResponseBody ¶
func ValidateCreateCheckoutGatewayErrorResponseBody(body *CreateCheckoutGatewayErrorResponseBody) (err error)
ValidateCreateCheckoutGatewayErrorResponseBody runs the validations defined on createCheckout_gateway_error_response_body
func ValidateCreateCheckoutInvalidResponseBody ¶
func ValidateCreateCheckoutInvalidResponseBody(body *CreateCheckoutInvalidResponseBody) (err error)
ValidateCreateCheckoutInvalidResponseBody runs the validations defined on createCheckout_invalid_response_body
func ValidateCreateCheckoutInvariantViolationResponseBody ¶
func ValidateCreateCheckoutInvariantViolationResponseBody(body *CreateCheckoutInvariantViolationResponseBody) (err error)
ValidateCreateCheckoutInvariantViolationResponseBody runs the validations defined on createCheckout_invariant_violation_response_body
func ValidateCreateCheckoutNotFoundResponseBody ¶
func ValidateCreateCheckoutNotFoundResponseBody(body *CreateCheckoutNotFoundResponseBody) (err error)
ValidateCreateCheckoutNotFoundResponseBody runs the validations defined on createCheckout_not_found_response_body
func ValidateCreateCheckoutUnauthorizedResponseBody ¶
func ValidateCreateCheckoutUnauthorizedResponseBody(body *CreateCheckoutUnauthorizedResponseBody) (err error)
ValidateCreateCheckoutUnauthorizedResponseBody runs the validations defined on createCheckout_unauthorized_response_body
func ValidateCreateCheckoutUnexpectedResponseBody ¶
func ValidateCreateCheckoutUnexpectedResponseBody(body *CreateCheckoutUnexpectedResponseBody) (err error)
ValidateCreateCheckoutUnexpectedResponseBody runs the validations defined on createCheckout_unexpected_response_body
func ValidateCreateCheckoutUnsupportedMediaResponseBody ¶
func ValidateCreateCheckoutUnsupportedMediaResponseBody(body *CreateCheckoutUnsupportedMediaResponseBody) (err error)
ValidateCreateCheckoutUnsupportedMediaResponseBody runs the validations defined on createCheckout_unsupported_media_response_body
func ValidateCreateCustomerSessionBadRequestResponseBody ¶
func ValidateCreateCustomerSessionBadRequestResponseBody(body *CreateCustomerSessionBadRequestResponseBody) (err error)
ValidateCreateCustomerSessionBadRequestResponseBody runs the validations defined on createCustomerSession_bad_request_response_body
func ValidateCreateCustomerSessionConflictResponseBody ¶
func ValidateCreateCustomerSessionConflictResponseBody(body *CreateCustomerSessionConflictResponseBody) (err error)
ValidateCreateCustomerSessionConflictResponseBody runs the validations defined on createCustomerSession_conflict_response_body
func ValidateCreateCustomerSessionForbiddenResponseBody ¶
func ValidateCreateCustomerSessionForbiddenResponseBody(body *CreateCustomerSessionForbiddenResponseBody) (err error)
ValidateCreateCustomerSessionForbiddenResponseBody runs the validations defined on createCustomerSession_forbidden_response_body
func ValidateCreateCustomerSessionGatewayErrorResponseBody ¶
func ValidateCreateCustomerSessionGatewayErrorResponseBody(body *CreateCustomerSessionGatewayErrorResponseBody) (err error)
ValidateCreateCustomerSessionGatewayErrorResponseBody runs the validations defined on createCustomerSession_gateway_error_response_body
func ValidateCreateCustomerSessionInvalidResponseBody ¶
func ValidateCreateCustomerSessionInvalidResponseBody(body *CreateCustomerSessionInvalidResponseBody) (err error)
ValidateCreateCustomerSessionInvalidResponseBody runs the validations defined on createCustomerSession_invalid_response_body
func ValidateCreateCustomerSessionInvariantViolationResponseBody ¶
func ValidateCreateCustomerSessionInvariantViolationResponseBody(body *CreateCustomerSessionInvariantViolationResponseBody) (err error)
ValidateCreateCustomerSessionInvariantViolationResponseBody runs the validations defined on createCustomerSession_invariant_violation_response_body
func ValidateCreateCustomerSessionNotFoundResponseBody ¶
func ValidateCreateCustomerSessionNotFoundResponseBody(body *CreateCustomerSessionNotFoundResponseBody) (err error)
ValidateCreateCustomerSessionNotFoundResponseBody runs the validations defined on createCustomerSession_not_found_response_body
func ValidateCreateCustomerSessionUnauthorizedResponseBody ¶
func ValidateCreateCustomerSessionUnauthorizedResponseBody(body *CreateCustomerSessionUnauthorizedResponseBody) (err error)
ValidateCreateCustomerSessionUnauthorizedResponseBody runs the validations defined on createCustomerSession_unauthorized_response_body
func ValidateCreateCustomerSessionUnexpectedResponseBody ¶
func ValidateCreateCustomerSessionUnexpectedResponseBody(body *CreateCustomerSessionUnexpectedResponseBody) (err error)
ValidateCreateCustomerSessionUnexpectedResponseBody runs the validations defined on createCustomerSession_unexpected_response_body
func ValidateCreateCustomerSessionUnsupportedMediaResponseBody ¶
func ValidateCreateCustomerSessionUnsupportedMediaResponseBody(body *CreateCustomerSessionUnsupportedMediaResponseBody) (err error)
ValidateCreateCustomerSessionUnsupportedMediaResponseBody runs the validations defined on createCustomerSession_unsupported_media_response_body
func ValidateGetPeriodUsageBadRequestResponseBody ¶
func ValidateGetPeriodUsageBadRequestResponseBody(body *GetPeriodUsageBadRequestResponseBody) (err error)
ValidateGetPeriodUsageBadRequestResponseBody runs the validations defined on getPeriodUsage_bad_request_response_body
func ValidateGetPeriodUsageConflictResponseBody ¶
func ValidateGetPeriodUsageConflictResponseBody(body *GetPeriodUsageConflictResponseBody) (err error)
ValidateGetPeriodUsageConflictResponseBody runs the validations defined on getPeriodUsage_conflict_response_body
func ValidateGetPeriodUsageForbiddenResponseBody ¶
func ValidateGetPeriodUsageForbiddenResponseBody(body *GetPeriodUsageForbiddenResponseBody) (err error)
ValidateGetPeriodUsageForbiddenResponseBody runs the validations defined on getPeriodUsage_forbidden_response_body
func ValidateGetPeriodUsageGatewayErrorResponseBody ¶
func ValidateGetPeriodUsageGatewayErrorResponseBody(body *GetPeriodUsageGatewayErrorResponseBody) (err error)
ValidateGetPeriodUsageGatewayErrorResponseBody runs the validations defined on getPeriodUsage_gateway_error_response_body
func ValidateGetPeriodUsageInvalidResponseBody ¶
func ValidateGetPeriodUsageInvalidResponseBody(body *GetPeriodUsageInvalidResponseBody) (err error)
ValidateGetPeriodUsageInvalidResponseBody runs the validations defined on getPeriodUsage_invalid_response_body
func ValidateGetPeriodUsageInvariantViolationResponseBody ¶
func ValidateGetPeriodUsageInvariantViolationResponseBody(body *GetPeriodUsageInvariantViolationResponseBody) (err error)
ValidateGetPeriodUsageInvariantViolationResponseBody runs the validations defined on getPeriodUsage_invariant_violation_response_body
func ValidateGetPeriodUsageNotFoundResponseBody ¶
func ValidateGetPeriodUsageNotFoundResponseBody(body *GetPeriodUsageNotFoundResponseBody) (err error)
ValidateGetPeriodUsageNotFoundResponseBody runs the validations defined on getPeriodUsage_not_found_response_body
func ValidateGetPeriodUsageResponseBody ¶
func ValidateGetPeriodUsageResponseBody(body *GetPeriodUsageResponseBody) (err error)
ValidateGetPeriodUsageResponseBody runs the validations defined on GetPeriodUsageResponseBody
func ValidateGetPeriodUsageUnauthorizedResponseBody ¶
func ValidateGetPeriodUsageUnauthorizedResponseBody(body *GetPeriodUsageUnauthorizedResponseBody) (err error)
ValidateGetPeriodUsageUnauthorizedResponseBody runs the validations defined on getPeriodUsage_unauthorized_response_body
func ValidateGetPeriodUsageUnexpectedResponseBody ¶
func ValidateGetPeriodUsageUnexpectedResponseBody(body *GetPeriodUsageUnexpectedResponseBody) (err error)
ValidateGetPeriodUsageUnexpectedResponseBody runs the validations defined on getPeriodUsage_unexpected_response_body
func ValidateGetPeriodUsageUnsupportedMediaResponseBody ¶
func ValidateGetPeriodUsageUnsupportedMediaResponseBody(body *GetPeriodUsageUnsupportedMediaResponseBody) (err error)
ValidateGetPeriodUsageUnsupportedMediaResponseBody runs the validations defined on getPeriodUsage_unsupported_media_response_body
func ValidateGetUsageTiersBadRequestResponseBody ¶
func ValidateGetUsageTiersBadRequestResponseBody(body *GetUsageTiersBadRequestResponseBody) (err error)
ValidateGetUsageTiersBadRequestResponseBody runs the validations defined on getUsageTiers_bad_request_response_body
func ValidateGetUsageTiersConflictResponseBody ¶
func ValidateGetUsageTiersConflictResponseBody(body *GetUsageTiersConflictResponseBody) (err error)
ValidateGetUsageTiersConflictResponseBody runs the validations defined on getUsageTiers_conflict_response_body
func ValidateGetUsageTiersForbiddenResponseBody ¶
func ValidateGetUsageTiersForbiddenResponseBody(body *GetUsageTiersForbiddenResponseBody) (err error)
ValidateGetUsageTiersForbiddenResponseBody runs the validations defined on getUsageTiers_forbidden_response_body
func ValidateGetUsageTiersGatewayErrorResponseBody ¶
func ValidateGetUsageTiersGatewayErrorResponseBody(body *GetUsageTiersGatewayErrorResponseBody) (err error)
ValidateGetUsageTiersGatewayErrorResponseBody runs the validations defined on getUsageTiers_gateway_error_response_body
func ValidateGetUsageTiersInvalidResponseBody ¶
func ValidateGetUsageTiersInvalidResponseBody(body *GetUsageTiersInvalidResponseBody) (err error)
ValidateGetUsageTiersInvalidResponseBody runs the validations defined on getUsageTiers_invalid_response_body
func ValidateGetUsageTiersInvariantViolationResponseBody ¶
func ValidateGetUsageTiersInvariantViolationResponseBody(body *GetUsageTiersInvariantViolationResponseBody) (err error)
ValidateGetUsageTiersInvariantViolationResponseBody runs the validations defined on getUsageTiers_invariant_violation_response_body
func ValidateGetUsageTiersNotFoundResponseBody ¶
func ValidateGetUsageTiersNotFoundResponseBody(body *GetUsageTiersNotFoundResponseBody) (err error)
ValidateGetUsageTiersNotFoundResponseBody runs the validations defined on getUsageTiers_not_found_response_body
func ValidateGetUsageTiersResponseBody ¶
func ValidateGetUsageTiersResponseBody(body *GetUsageTiersResponseBody) (err error)
ValidateGetUsageTiersResponseBody runs the validations defined on GetUsageTiersResponseBody
func ValidateGetUsageTiersUnauthorizedResponseBody ¶
func ValidateGetUsageTiersUnauthorizedResponseBody(body *GetUsageTiersUnauthorizedResponseBody) (err error)
ValidateGetUsageTiersUnauthorizedResponseBody runs the validations defined on getUsageTiers_unauthorized_response_body
func ValidateGetUsageTiersUnexpectedResponseBody ¶
func ValidateGetUsageTiersUnexpectedResponseBody(body *GetUsageTiersUnexpectedResponseBody) (err error)
ValidateGetUsageTiersUnexpectedResponseBody runs the validations defined on getUsageTiers_unexpected_response_body
func ValidateGetUsageTiersUnsupportedMediaResponseBody ¶
func ValidateGetUsageTiersUnsupportedMediaResponseBody(body *GetUsageTiersUnsupportedMediaResponseBody) (err error)
ValidateGetUsageTiersUnsupportedMediaResponseBody runs the validations defined on getUsageTiers_unsupported_media_response_body
func ValidateTierLimitsResponseBody ¶
func ValidateTierLimitsResponseBody(body *TierLimitsResponseBody) (err error)
ValidateTierLimitsResponseBody runs the validations defined on TierLimitsResponseBody
Types ¶
type Client ¶
type Client struct {
// GetPeriodUsage Doer is the HTTP client used to make requests to the
// getPeriodUsage endpoint.
GetPeriodUsageDoer goahttp.Doer
// GetUsageTiers Doer is the HTTP client used to make requests to the
// getUsageTiers endpoint.
GetUsageTiersDoer goahttp.Doer
// CreateCustomerSession Doer is the HTTP client used to make requests to the
// createCustomerSession endpoint.
CreateCustomerSessionDoer goahttp.Doer
// CreateCheckout Doer is the HTTP client used to make requests to the
// createCheckout endpoint.
CreateCheckoutDoer goahttp.Doer
// RestoreResponseBody controls whether the response bodies are reset after
// decoding so they can be read again.
RestoreResponseBody bool
// contains filtered or unexported fields
}
Client lists the usage service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the usage service servers.
func (*Client) BuildCreateCheckoutRequest ¶
BuildCreateCheckoutRequest instantiates a HTTP request object with method and path set to call the "usage" service "createCheckout" endpoint
func (*Client) BuildCreateCustomerSessionRequest ¶
func (c *Client) BuildCreateCustomerSessionRequest(ctx context.Context, v any) (*http.Request, error)
BuildCreateCustomerSessionRequest instantiates a HTTP request object with method and path set to call the "usage" service "createCustomerSession" endpoint
func (*Client) BuildGetPeriodUsageRequest ¶
BuildGetPeriodUsageRequest instantiates a HTTP request object with method and path set to call the "usage" service "getPeriodUsage" endpoint
func (*Client) BuildGetUsageTiersRequest ¶
BuildGetUsageTiersRequest instantiates a HTTP request object with method and path set to call the "usage" service "getUsageTiers" endpoint
func (*Client) CreateCheckout ¶
CreateCheckout returns an endpoint that makes HTTP requests to the usage service createCheckout server.
func (*Client) CreateCustomerSession ¶
CreateCustomerSession returns an endpoint that makes HTTP requests to the usage service createCustomerSession server.
func (*Client) GetPeriodUsage ¶
GetPeriodUsage returns an endpoint that makes HTTP requests to the usage service getPeriodUsage server.
func (*Client) GetUsageTiers ¶
GetUsageTiers returns an endpoint that makes HTTP requests to the usage service getUsageTiers server.
type CreateCheckoutBadRequestResponseBody ¶
type CreateCheckoutBadRequestResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutBadRequestResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "bad_request" error.
type CreateCheckoutConflictResponseBody ¶
type CreateCheckoutConflictResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutConflictResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "conflict" error.
type CreateCheckoutForbiddenResponseBody ¶
type CreateCheckoutForbiddenResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutForbiddenResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "forbidden" error.
type CreateCheckoutGatewayErrorResponseBody ¶
type CreateCheckoutGatewayErrorResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutGatewayErrorResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "gateway_error" error.
type CreateCheckoutInvalidResponseBody ¶
type CreateCheckoutInvalidResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutInvalidResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "invalid" error.
type CreateCheckoutInvariantViolationResponseBody ¶
type CreateCheckoutInvariantViolationResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutInvariantViolationResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "invariant_violation" error.
type CreateCheckoutNotFoundResponseBody ¶
type CreateCheckoutNotFoundResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutNotFoundResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "not_found" error.
type CreateCheckoutUnauthorizedResponseBody ¶
type CreateCheckoutUnauthorizedResponseBody struct {
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutUnauthorizedResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "unauthorized" error.
type CreateCheckoutUnexpectedResponseBody ¶
type CreateCheckoutUnexpectedResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutUnexpectedResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "unexpected" error.
type CreateCheckoutUnsupportedMediaResponseBody ¶
type CreateCheckoutUnsupportedMediaResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCheckoutUnsupportedMediaResponseBody is the type of the "usage" service "createCheckout" endpoint HTTP response body for the "unsupported_media" error.
type CreateCustomerSessionBadRequestResponseBody ¶
type CreateCustomerSessionBadRequestResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionBadRequestResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "bad_request" error.
type CreateCustomerSessionConflictResponseBody ¶
type CreateCustomerSessionConflictResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionConflictResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "conflict" error.
type CreateCustomerSessionForbiddenResponseBody ¶
type CreateCustomerSessionForbiddenResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionForbiddenResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "forbidden" error.
type CreateCustomerSessionGatewayErrorResponseBody ¶
type CreateCustomerSessionGatewayErrorResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionGatewayErrorResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "gateway_error" error.
type CreateCustomerSessionInvalidResponseBody ¶
type CreateCustomerSessionInvalidResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionInvalidResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "invalid" error.
type CreateCustomerSessionInvariantViolationResponseBody ¶
type CreateCustomerSessionInvariantViolationResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionInvariantViolationResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "invariant_violation" error.
type CreateCustomerSessionNotFoundResponseBody ¶
type CreateCustomerSessionNotFoundResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionNotFoundResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "not_found" error.
type CreateCustomerSessionUnauthorizedResponseBody ¶
type CreateCustomerSessionUnauthorizedResponseBody struct {
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionUnauthorizedResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "unauthorized" error.
type CreateCustomerSessionUnexpectedResponseBody ¶
type CreateCustomerSessionUnexpectedResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionUnexpectedResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "unexpected" error.
type CreateCustomerSessionUnsupportedMediaResponseBody ¶
type CreateCustomerSessionUnsupportedMediaResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
CreateCustomerSessionUnsupportedMediaResponseBody is the type of the "usage" service "createCustomerSession" endpoint HTTP response body for the "unsupported_media" error.
type GetPeriodUsageBadRequestResponseBody ¶
type GetPeriodUsageBadRequestResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageBadRequestResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "bad_request" error.
type GetPeriodUsageConflictResponseBody ¶
type GetPeriodUsageConflictResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageConflictResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "conflict" error.
type GetPeriodUsageForbiddenResponseBody ¶
type GetPeriodUsageForbiddenResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageForbiddenResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "forbidden" error.
type GetPeriodUsageGatewayErrorResponseBody ¶
type GetPeriodUsageGatewayErrorResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageGatewayErrorResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "gateway_error" error.
type GetPeriodUsageInvalidResponseBody ¶
type GetPeriodUsageInvalidResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageInvalidResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "invalid" error.
type GetPeriodUsageInvariantViolationResponseBody ¶
type GetPeriodUsageInvariantViolationResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageInvariantViolationResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "invariant_violation" error.
type GetPeriodUsageNotFoundResponseBody ¶
type GetPeriodUsageNotFoundResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageNotFoundResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "not_found" error.
type GetPeriodUsageResponseBody ¶
type GetPeriodUsageResponseBody struct {
// The number of tool calls used
ToolCalls *int `form:"tool_calls,omitempty" json:"tool_calls,omitempty" xml:"tool_calls,omitempty"`
// The maximum number of tool calls allowed
MaxToolCalls *int `form:"max_tool_calls,omitempty" json:"max_tool_calls,omitempty" xml:"max_tool_calls,omitempty"`
// The number of servers used, according to the Polar meter
Servers *int `form:"servers,omitempty" json:"servers,omitempty" xml:"servers,omitempty"`
// The maximum number of servers allowed
MaxServers *int `form:"max_servers,omitempty" json:"max_servers,omitempty" xml:"max_servers,omitempty"`
// The number of servers enabled at the time of the request
ActualEnabledServerCount *int `` /* 133-byte string literal not displayed */
}
GetPeriodUsageResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body.
type GetPeriodUsageUnauthorizedResponseBody ¶
type GetPeriodUsageUnauthorizedResponseBody struct {
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageUnauthorizedResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "unauthorized" error.
type GetPeriodUsageUnexpectedResponseBody ¶
type GetPeriodUsageUnexpectedResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageUnexpectedResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "unexpected" error.
type GetPeriodUsageUnsupportedMediaResponseBody ¶
type GetPeriodUsageUnsupportedMediaResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetPeriodUsageUnsupportedMediaResponseBody is the type of the "usage" service "getPeriodUsage" endpoint HTTP response body for the "unsupported_media" error.
type GetUsageTiersBadRequestResponseBody ¶
type GetUsageTiersBadRequestResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersBadRequestResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "bad_request" error.
type GetUsageTiersConflictResponseBody ¶
type GetUsageTiersConflictResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersConflictResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "conflict" error.
type GetUsageTiersForbiddenResponseBody ¶
type GetUsageTiersForbiddenResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersForbiddenResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "forbidden" error.
type GetUsageTiersGatewayErrorResponseBody ¶
type GetUsageTiersGatewayErrorResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersGatewayErrorResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "gateway_error" error.
type GetUsageTiersInvalidResponseBody ¶
type GetUsageTiersInvalidResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersInvalidResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "invalid" error.
type GetUsageTiersInvariantViolationResponseBody ¶
type GetUsageTiersInvariantViolationResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersInvariantViolationResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "invariant_violation" error.
type GetUsageTiersNotFoundResponseBody ¶
type GetUsageTiersNotFoundResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersNotFoundResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "not_found" error.
type GetUsageTiersResponseBody ¶
type GetUsageTiersResponseBody struct {
// The limits for the free tier
Free *TierLimitsResponseBody `form:"free,omitempty" json:"free,omitempty" xml:"free,omitempty"`
// The limits for the pro tier
Pro *TierLimitsResponseBody `form:"pro,omitempty" json:"pro,omitempty" xml:"pro,omitempty"`
// The limits for the enterprise tier
Enterprise *TierLimitsResponseBody `form:"enterprise,omitempty" json:"enterprise,omitempty" xml:"enterprise,omitempty"`
}
GetUsageTiersResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body.
type GetUsageTiersUnauthorizedResponseBody ¶
type GetUsageTiersUnauthorizedResponseBody struct {
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersUnauthorizedResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "unauthorized" error.
type GetUsageTiersUnexpectedResponseBody ¶
type GetUsageTiersUnexpectedResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersUnexpectedResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "unexpected" error.
type GetUsageTiersUnsupportedMediaResponseBody ¶
type GetUsageTiersUnsupportedMediaResponseBody struct {
// Name is the name of this class of errors.
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
// ID is a unique identifier for this particular occurrence of the problem.
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Message is a human-readable explanation specific to this occurrence of the
// problem.
Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
// Is the error temporary?
Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
// Is the error a timeout?
Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
// Is the error a server-side fault?
Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}
GetUsageTiersUnsupportedMediaResponseBody is the type of the "usage" service "getUsageTiers" endpoint HTTP response body for the "unsupported_media" error.
type TierLimitsResponseBody ¶
type TierLimitsResponseBody struct {
// The base price for the tier
BasePrice *float64 `form:"base_price,omitempty" json:"base_price,omitempty" xml:"base_price,omitempty"`
// The number of tool calls included in the tier
IncludedToolCalls *int `form:"included_tool_calls,omitempty" json:"included_tool_calls,omitempty" xml:"included_tool_calls,omitempty"`
// The number of servers included in the tier
IncludedServers *int `form:"included_servers,omitempty" json:"included_servers,omitempty" xml:"included_servers,omitempty"`
// The number of credits included in the tier for playground and other
// dashboard activities
IncludedCredits *int `form:"included_credits,omitempty" json:"included_credits,omitempty" xml:"included_credits,omitempty"`
// The price per additional tool call
PricePerAdditionalToolCall *float64 `` /* 142-byte string literal not displayed */
// The price per additional server
PricePerAdditionalServer *float64 `` /* 133-byte string literal not displayed */
// The price per additional credit
PricePerAdditionalCredit *float64 `` /* 133-byte string literal not displayed */
// Key feature bullets of the tier
FeatureBullets []string `form:"feature_bullets,omitempty" json:"feature_bullets,omitempty" xml:"feature_bullets,omitempty"`
// Included items bullets of the tier
IncludedBullets []string `form:"included_bullets,omitempty" json:"included_bullets,omitempty" xml:"included_bullets,omitempty"`
// Add-on items bullets of the tier (optional)
AddOnBullets []string `form:"add_on_bullets,omitempty" json:"add_on_bullets,omitempty" xml:"add_on_bullets,omitempty"`
}
TierLimitsResponseBody is used to define fields on response body types.