Documentation
¶
Overview ¶
Package billing provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.
Index ¶
- func NewCancelSubscriptionRequest(server string, params *CancelSubscriptionParams) (*http.Request, error)
- func NewCreateSCAReauthPaymentIntentRequest(server string, invoiceId int) (*http.Request, error)
- func NewCreateSetupIntentRequest(server string) (*http.Request, error)
- func NewGetBillingAccountStatusRequest(server string) (*http.Request, error)
- func NewGetBillingEstimateRequest(server string) (*http.Request, error)
- func NewGetBillingPreferencesRequest(server string) (*http.Request, error)
- func NewGetBillingServicesRequest(server string) (*http.Request, error)
- func NewGetFreeTierStatusRequest(server string) (*http.Request, error)
- func NewGetInvoicePDFRequest(server string, invoiceId int) (*http.Request, error)
- func NewGetProformaPDFRequest(server string, proformaId int) (*http.Request, error)
- func NewGetSpendingCapRequest(server string) (*http.Request, error)
- func NewGetSubscriptionRequest(server string, params *GetSubscriptionParams) (*http.Request, error)
- func NewListInvoicesRequest(server string) (*http.Request, error)
- func NewListOrgCreditsRequest(server string) (*http.Request, error)
- func NewListPaymentMethodsRequest(server string) (*http.Request, error)
- func NewRemovePaymentMethodRequest(server string, id string) (*http.Request, error)
- func NewSetDefaultPaymentMethodRequest(server string, id string) (*http.Request, error)
- func NewUpdateBillingPreferencesRequest(server string, body UpdateBillingPreferencesJSONRequestBody) (*http.Request, error)
- func NewUpdateBillingPreferencesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSpendingCapRequest(server string, body UpdateSpendingCapJSONRequestBody) (*http.Request, error)
- func NewUpdateSpendingCapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSubscriptionRequest(server string, body UpdateSubscriptionJSONRequestBody) (*http.Request, error)
- func NewUpdateSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type CancelSubscriptionParams
- type CancelSubscriptionResponse
- type Client
- func (c *Client) CancelSubscription(ctx context.Context, params *CancelSubscriptionParams, ...) (*http.Response, error)
- func (c *Client) CreateSCAReauthPaymentIntent(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateSetupIntent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBillingAccountStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBillingEstimate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBillingPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBillingServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFreeTierStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInvoicePDF(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProformaPDF(ctx context.Context, proformaId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSpendingCap(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSubscription(ctx context.Context, params *GetSubscriptionParams, ...) (*http.Response, error)
- func (c *Client) ListInvoices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListOrgCredits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPaymentMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RemovePaymentMethod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetDefaultPaymentMethod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateBillingPreferences(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateBillingPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSpendingCap(ctx context.Context, body UpdateSpendingCapJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSpendingCapWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSubscription(ctx context.Context, body UpdateSubscriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, params *CancelSubscriptionParams, ...) (*CancelSubscriptionResponse, error)
- func (c *ClientWithResponses) CreateSCAReauthPaymentIntentWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*CreateSCAReauthPaymentIntentResponse, error)
- func (c *ClientWithResponses) CreateSetupIntentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateSetupIntentResponse, error)
- func (c *ClientWithResponses) GetBillingAccountStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingAccountStatusResponse, error)
- func (c *ClientWithResponses) GetBillingEstimateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingEstimateResponse, error)
- func (c *ClientWithResponses) GetBillingPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingPreferencesResponse, error)
- func (c *ClientWithResponses) GetBillingServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingServicesResponse, error)
- func (c *ClientWithResponses) GetFreeTierStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFreeTierStatusResponse, error)
- func (c *ClientWithResponses) GetInvoicePDFWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*GetInvoicePDFResponse, error)
- func (c *ClientWithResponses) GetProformaPDFWithResponse(ctx context.Context, proformaId int, reqEditors ...RequestEditorFn) (*GetProformaPDFResponse, error)
- func (c *ClientWithResponses) GetSpendingCapWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSpendingCapResponse, error)
- func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, params *GetSubscriptionParams, ...) (*GetSubscriptionResponse, error)
- func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
- func (c *ClientWithResponses) ListOrgCreditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrgCreditsResponse, error)
- func (c *ClientWithResponses) ListPaymentMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPaymentMethodsResponse, error)
- func (c *ClientWithResponses) RemovePaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RemovePaymentMethodResponse, error)
- func (c *ClientWithResponses) SetDefaultPaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SetDefaultPaymentMethodResponse, error)
- func (c *ClientWithResponses) UpdateBillingPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateBillingPreferencesResponse, error)
- func (c *ClientWithResponses) UpdateBillingPreferencesWithResponse(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, ...) (*UpdateBillingPreferencesResponse, error)
- func (c *ClientWithResponses) UpdateSpendingCapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateSpendingCapResponse, error)
- func (c *ClientWithResponses) UpdateSpendingCapWithResponse(ctx context.Context, body UpdateSpendingCapJSONRequestBody, ...) (*UpdateSpendingCapResponse, error)
- func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateSubscriptionResponse, error)
- func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, body UpdateSubscriptionJSONRequestBody, ...) (*UpdateSubscriptionResponse, error)
- type ClientWithResponsesInterface
- type ConstantsBillingType
- type ConstantsInvoiceStatus
- type CreateSCAReauthPaymentIntentResponse
- type CreateSetupIntentResponse
- type DtoBillingPlan
- type DtoBillingPlanQuota
- type DtoBillingPreferences
- type DtoBillingService
- type DtoBillingServiceBillingMode
- type DtoBillingServiceSubscription
- type DtoBillingServiceSubscriptionStatus
- type DtoCreditGrant
- type DtoCreditGrantSource
- type DtoCreditGrantStatus
- type DtoFreeTierMetric
- type DtoFreeTierMetricMetricType
- type DtoInvoice
- type DtoListCreditGrants
- type DtoListFreeTierMetrics
- type DtoPaymentMethod
- type DtoSpendingCap
- type DtoSubscription
- type DtoSubscriptionStatus
- type DtoUpdateSubscriptionRequest
- type GetBillingAccountStatusResponse
- type GetBillingEstimateResponse
- type GetBillingPreferencesResponse
- type GetBillingServicesResponse
- type GetFreeTierStatusResponse
- type GetInvoicePDFResponse
- type GetProformaPDFResponse
- type GetSpendingCapResponse
- type GetSubscriptionParams
- type GetSubscriptionResponse
- type HandlerCreateSCAReauthPaymentIntentResponse
- type HandlerCreateSetupIntentResponse
- type HandlerGetBillingEstimateResponse
- type HandlerPayloadBillingPreferencesUpdate
- type HandlerSetDefaultPaymentMethodResponse
- type HandlerUpdateSpendingCapRequest
- type HttpRequestDoer
- type ListInvoicesResponse
- type ListOrgCreditsResponse
- type ListPaymentMethodsResponse
- type RemovePaymentMethodResponse
- type RequestEditorFn
- type ResponseAPIError
- type ResponseAPIResponseEmpty
- type ResponseAPIResponsePaginationCursors
- type ResponseAPIResponsePaginationMeta
- type ResponseAPIResponseWithPagination
- type ResponseType
- type ServiceAccountStatusOutput
- type SetDefaultPaymentMethodResponse
- type TypesOrgBillingStatus
- type UpdateBillingPreferencesJSONRequestBody
- type UpdateBillingPreferencesResponse
- type UpdateSpendingCapJSONRequestBody
- type UpdateSpendingCapResponse
- type UpdateSubscriptionJSONRequestBody
- type UpdateSubscriptionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelSubscriptionRequest ¶
func NewCancelSubscriptionRequest(server string, params *CancelSubscriptionParams) (*http.Request, error)
NewCancelSubscriptionRequest generates requests for CancelSubscription
func NewCreateSCAReauthPaymentIntentRequest ¶
NewCreateSCAReauthPaymentIntentRequest generates requests for CreateSCAReauthPaymentIntent
func NewCreateSetupIntentRequest ¶
NewCreateSetupIntentRequest generates requests for CreateSetupIntent
func NewGetBillingAccountStatusRequest ¶
NewGetBillingAccountStatusRequest generates requests for GetBillingAccountStatus
func NewGetBillingEstimateRequest ¶
NewGetBillingEstimateRequest generates requests for GetBillingEstimate
func NewGetBillingPreferencesRequest ¶
NewGetBillingPreferencesRequest generates requests for GetBillingPreferences
func NewGetBillingServicesRequest ¶
NewGetBillingServicesRequest generates requests for GetBillingServices
func NewGetFreeTierStatusRequest ¶
NewGetFreeTierStatusRequest generates requests for GetFreeTierStatus
func NewGetInvoicePDFRequest ¶
NewGetInvoicePDFRequest generates requests for GetInvoicePDF
func NewGetProformaPDFRequest ¶
NewGetProformaPDFRequest generates requests for GetProformaPDF
func NewGetSpendingCapRequest ¶
NewGetSpendingCapRequest generates requests for GetSpendingCap
func NewGetSubscriptionRequest ¶
func NewGetSubscriptionRequest(server string, params *GetSubscriptionParams) (*http.Request, error)
NewGetSubscriptionRequest generates requests for GetSubscription
func NewListInvoicesRequest ¶
NewListInvoicesRequest generates requests for ListInvoices
func NewListOrgCreditsRequest ¶
NewListOrgCreditsRequest generates requests for ListOrgCredits
func NewListPaymentMethodsRequest ¶
NewListPaymentMethodsRequest generates requests for ListPaymentMethods
func NewRemovePaymentMethodRequest ¶
NewRemovePaymentMethodRequest generates requests for RemovePaymentMethod
func NewSetDefaultPaymentMethodRequest ¶
NewSetDefaultPaymentMethodRequest generates requests for SetDefaultPaymentMethod
func NewUpdateBillingPreferencesRequest ¶
func NewUpdateBillingPreferencesRequest(server string, body UpdateBillingPreferencesJSONRequestBody) (*http.Request, error)
NewUpdateBillingPreferencesRequest calls the generic UpdateBillingPreferences builder with application/json body
func NewUpdateBillingPreferencesRequestWithBody ¶
func NewUpdateBillingPreferencesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateBillingPreferencesRequestWithBody generates requests for UpdateBillingPreferences with any type of body
func NewUpdateSpendingCapRequest ¶
func NewUpdateSpendingCapRequest(server string, body UpdateSpendingCapJSONRequestBody) (*http.Request, error)
NewUpdateSpendingCapRequest calls the generic UpdateSpendingCap builder with application/json body
func NewUpdateSpendingCapRequestWithBody ¶
func NewUpdateSpendingCapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSpendingCapRequestWithBody generates requests for UpdateSpendingCap with any type of body
func NewUpdateSubscriptionRequest ¶
func NewUpdateSubscriptionRequest(server string, body UpdateSubscriptionJSONRequestBody) (*http.Request, error)
NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body
Types ¶
type CancelSubscriptionParams ¶
type CancelSubscriptionParams struct {
// Service Service code (default snapdb)
Service *string `form:"service,omitempty" json:"service,omitempty"`
}
CancelSubscriptionParams defines parameters for CancelSubscription.
type CancelSubscriptionResponse ¶
type CancelSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON404 *ResponseAPIError
JSON409 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCancelSubscriptionResponse ¶
func ParseCancelSubscriptionResponse(rsp *http.Response) (*CancelSubscriptionResponse, error)
ParseCancelSubscriptionResponse parses an HTTP response from a CancelSubscriptionWithResponse call
func (CancelSubscriptionResponse) ContentType ¶
func (r CancelSubscriptionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelSubscriptionResponse) Status ¶
func (r CancelSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (CancelSubscriptionResponse) StatusCode ¶
func (r CancelSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CancelSubscription ¶
func (c *Client) CancelSubscription(ctx context.Context, params *CancelSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSCAReauthPaymentIntent ¶
func (*Client) CreateSetupIntent ¶
func (*Client) GetBillingAccountStatus ¶
func (*Client) GetBillingEstimate ¶
func (*Client) GetBillingPreferences ¶
func (*Client) GetBillingServices ¶
func (*Client) GetFreeTierStatus ¶
func (*Client) GetInvoicePDF ¶
func (*Client) GetProformaPDF ¶
func (*Client) GetSpendingCap ¶
func (*Client) GetSubscription ¶
func (c *Client) GetSubscription(ctx context.Context, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInvoices ¶
func (*Client) ListOrgCredits ¶
func (*Client) ListPaymentMethods ¶
func (*Client) RemovePaymentMethod ¶
func (*Client) SetDefaultPaymentMethod ¶
func (*Client) UpdateBillingPreferences ¶
func (c *Client) UpdateBillingPreferences(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateBillingPreferencesWithBody ¶
func (*Client) UpdateSpendingCap ¶
func (c *Client) UpdateSpendingCap(ctx context.Context, body UpdateSpendingCapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSpendingCapWithBody ¶
func (*Client) UpdateSubscription ¶
func (c *Client) UpdateSubscription(ctx context.Context, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetSpendingCap request
GetSpendingCap(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSpendingCapWithBody request with any body
UpdateSpendingCapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSpendingCap(ctx context.Context, body UpdateSpendingCapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgCredits request
ListOrgCredits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingEstimate request
GetBillingEstimate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFreeTierStatus request
GetFreeTierStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInvoices request
ListInvoices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoicePDF request
GetInvoicePDF(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPaymentMethods request
ListPaymentMethods(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSetupIntent request
CreateSetupIntent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemovePaymentMethod request
RemovePaymentMethod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetDefaultPaymentMethod request
SetDefaultPaymentMethod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingPreferences request
GetBillingPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateBillingPreferencesWithBody request with any body
UpdateBillingPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateBillingPreferences(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProformaPDF request
GetProformaPDF(ctx context.Context, proformaId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSCAReauthPaymentIntent request
CreateSCAReauthPaymentIntent(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingServices request
GetBillingServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBillingAccountStatus request
GetBillingAccountStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelSubscription request
CancelSubscription(ctx context.Context, params *CancelSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSubscription request
GetSubscription(ctx context.Context, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSubscriptionWithBody request with any body
UpdateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSubscription(ctx context.Context, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CancelSubscriptionWithResponse ¶
func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, params *CancelSubscriptionParams, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
CancelSubscriptionWithResponse request returning *CancelSubscriptionResponse
func (*ClientWithResponses) CreateSCAReauthPaymentIntentWithResponse ¶
func (c *ClientWithResponses) CreateSCAReauthPaymentIntentWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*CreateSCAReauthPaymentIntentResponse, error)
CreateSCAReauthPaymentIntentWithResponse request returning *CreateSCAReauthPaymentIntentResponse
func (*ClientWithResponses) CreateSetupIntentWithResponse ¶
func (c *ClientWithResponses) CreateSetupIntentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateSetupIntentResponse, error)
CreateSetupIntentWithResponse request returning *CreateSetupIntentResponse
func (*ClientWithResponses) GetBillingAccountStatusWithResponse ¶
func (c *ClientWithResponses) GetBillingAccountStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingAccountStatusResponse, error)
GetBillingAccountStatusWithResponse request returning *GetBillingAccountStatusResponse
func (*ClientWithResponses) GetBillingEstimateWithResponse ¶
func (c *ClientWithResponses) GetBillingEstimateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingEstimateResponse, error)
GetBillingEstimateWithResponse request returning *GetBillingEstimateResponse
func (*ClientWithResponses) GetBillingPreferencesWithResponse ¶
func (c *ClientWithResponses) GetBillingPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingPreferencesResponse, error)
GetBillingPreferencesWithResponse request returning *GetBillingPreferencesResponse
func (*ClientWithResponses) GetBillingServicesWithResponse ¶
func (c *ClientWithResponses) GetBillingServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingServicesResponse, error)
GetBillingServicesWithResponse request returning *GetBillingServicesResponse
func (*ClientWithResponses) GetFreeTierStatusWithResponse ¶
func (c *ClientWithResponses) GetFreeTierStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFreeTierStatusResponse, error)
GetFreeTierStatusWithResponse request returning *GetFreeTierStatusResponse
func (*ClientWithResponses) GetInvoicePDFWithResponse ¶
func (c *ClientWithResponses) GetInvoicePDFWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*GetInvoicePDFResponse, error)
GetInvoicePDFWithResponse request returning *GetInvoicePDFResponse
func (*ClientWithResponses) GetProformaPDFWithResponse ¶
func (c *ClientWithResponses) GetProformaPDFWithResponse(ctx context.Context, proformaId int, reqEditors ...RequestEditorFn) (*GetProformaPDFResponse, error)
GetProformaPDFWithResponse request returning *GetProformaPDFResponse
func (*ClientWithResponses) GetSpendingCapWithResponse ¶
func (c *ClientWithResponses) GetSpendingCapWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSpendingCapResponse, error)
GetSpendingCapWithResponse request returning *GetSpendingCapResponse
func (*ClientWithResponses) GetSubscriptionWithResponse ¶
func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error)
GetSubscriptionWithResponse request returning *GetSubscriptionResponse
func (*ClientWithResponses) ListInvoicesWithResponse ¶
func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
ListInvoicesWithResponse request returning *ListInvoicesResponse
func (*ClientWithResponses) ListOrgCreditsWithResponse ¶
func (c *ClientWithResponses) ListOrgCreditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrgCreditsResponse, error)
ListOrgCreditsWithResponse request returning *ListOrgCreditsResponse
func (*ClientWithResponses) ListPaymentMethodsWithResponse ¶
func (c *ClientWithResponses) ListPaymentMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPaymentMethodsResponse, error)
ListPaymentMethodsWithResponse request returning *ListPaymentMethodsResponse
func (*ClientWithResponses) RemovePaymentMethodWithResponse ¶
func (c *ClientWithResponses) RemovePaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RemovePaymentMethodResponse, error)
RemovePaymentMethodWithResponse request returning *RemovePaymentMethodResponse
func (*ClientWithResponses) SetDefaultPaymentMethodWithResponse ¶
func (c *ClientWithResponses) SetDefaultPaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SetDefaultPaymentMethodResponse, error)
SetDefaultPaymentMethodWithResponse request returning *SetDefaultPaymentMethodResponse
func (*ClientWithResponses) UpdateBillingPreferencesWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateBillingPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingPreferencesResponse, error)
UpdateBillingPreferencesWithBodyWithResponse request with arbitrary body returning *UpdateBillingPreferencesResponse
func (*ClientWithResponses) UpdateBillingPreferencesWithResponse ¶
func (c *ClientWithResponses) UpdateBillingPreferencesWithResponse(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingPreferencesResponse, error)
func (*ClientWithResponses) UpdateSpendingCapWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSpendingCapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingCapResponse, error)
UpdateSpendingCapWithBodyWithResponse request with arbitrary body returning *UpdateSpendingCapResponse
func (*ClientWithResponses) UpdateSpendingCapWithResponse ¶
func (c *ClientWithResponses) UpdateSpendingCapWithResponse(ctx context.Context, body UpdateSpendingCapJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingCapResponse, error)
func (*ClientWithResponses) UpdateSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse
func (*ClientWithResponses) UpdateSubscriptionWithResponse ¶
func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetSpendingCapWithResponse request
GetSpendingCapWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSpendingCapResponse, error)
// UpdateSpendingCapWithBodyWithResponse request with any body
UpdateSpendingCapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingCapResponse, error)
UpdateSpendingCapWithResponse(ctx context.Context, body UpdateSpendingCapJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingCapResponse, error)
// ListOrgCreditsWithResponse request
ListOrgCreditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrgCreditsResponse, error)
// GetBillingEstimateWithResponse request
GetBillingEstimateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingEstimateResponse, error)
// GetFreeTierStatusWithResponse request
GetFreeTierStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFreeTierStatusResponse, error)
// ListInvoicesWithResponse request
ListInvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
// GetInvoicePDFWithResponse request
GetInvoicePDFWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*GetInvoicePDFResponse, error)
// ListPaymentMethodsWithResponse request
ListPaymentMethodsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPaymentMethodsResponse, error)
// CreateSetupIntentWithResponse request
CreateSetupIntentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateSetupIntentResponse, error)
// RemovePaymentMethodWithResponse request
RemovePaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RemovePaymentMethodResponse, error)
// SetDefaultPaymentMethodWithResponse request
SetDefaultPaymentMethodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SetDefaultPaymentMethodResponse, error)
// GetBillingPreferencesWithResponse request
GetBillingPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingPreferencesResponse, error)
// UpdateBillingPreferencesWithBodyWithResponse request with any body
UpdateBillingPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillingPreferencesResponse, error)
UpdateBillingPreferencesWithResponse(ctx context.Context, body UpdateBillingPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillingPreferencesResponse, error)
// GetProformaPDFWithResponse request
GetProformaPDFWithResponse(ctx context.Context, proformaId int, reqEditors ...RequestEditorFn) (*GetProformaPDFResponse, error)
// CreateSCAReauthPaymentIntentWithResponse request
CreateSCAReauthPaymentIntentWithResponse(ctx context.Context, invoiceId int, reqEditors ...RequestEditorFn) (*CreateSCAReauthPaymentIntentResponse, error)
// GetBillingServicesWithResponse request
GetBillingServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingServicesResponse, error)
// GetBillingAccountStatusWithResponse request
GetBillingAccountStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBillingAccountStatusResponse, error)
// CancelSubscriptionWithResponse request
CancelSubscriptionWithResponse(ctx context.Context, params *CancelSubscriptionParams, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
// GetSubscriptionWithResponse request
GetSubscriptionWithResponse(ctx context.Context, params *GetSubscriptionParams, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error)
// UpdateSubscriptionWithBodyWithResponse request with any body
UpdateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
UpdateSubscriptionWithResponse(ctx context.Context, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConstantsBillingType ¶
type ConstantsBillingType string
ConstantsBillingType defines model for constants.BillingType.
const ( BillingTypeCompany ConstantsBillingType = "company" BillingTypeIndividual ConstantsBillingType = "individual" BillingTypeUnknown ConstantsBillingType = "" )
Defines values for ConstantsBillingType.
func (ConstantsBillingType) Valid ¶
func (e ConstantsBillingType) Valid() bool
Valid indicates whether the value is a known member of the ConstantsBillingType enum.
type ConstantsInvoiceStatus ¶
type ConstantsInvoiceStatus string
ConstantsInvoiceStatus defines model for constants.InvoiceStatus.
const (
InvoiceStatusDraft ConstantsInvoiceStatus = "draft"
)
Defines values for ConstantsInvoiceStatus.
func (ConstantsInvoiceStatus) Valid ¶
func (e ConstantsInvoiceStatus) Valid() bool
Valid indicates whether the value is a known member of the ConstantsInvoiceStatus enum.
type CreateSCAReauthPaymentIntentResponse ¶
type CreateSCAReauthPaymentIntentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HandlerCreateSCAReauthPaymentIntentResponse
JSON400 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateSCAReauthPaymentIntentResponse ¶
func ParseCreateSCAReauthPaymentIntentResponse(rsp *http.Response) (*CreateSCAReauthPaymentIntentResponse, error)
ParseCreateSCAReauthPaymentIntentResponse parses an HTTP response from a CreateSCAReauthPaymentIntentWithResponse call
func (CreateSCAReauthPaymentIntentResponse) ContentType ¶
func (r CreateSCAReauthPaymentIntentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSCAReauthPaymentIntentResponse) Status ¶
func (r CreateSCAReauthPaymentIntentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSCAReauthPaymentIntentResponse) StatusCode ¶
func (r CreateSCAReauthPaymentIntentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSetupIntentResponse ¶
type CreateSetupIntentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HandlerCreateSetupIntentResponse
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateSetupIntentResponse ¶
func ParseCreateSetupIntentResponse(rsp *http.Response) (*CreateSetupIntentResponse, error)
ParseCreateSetupIntentResponse parses an HTTP response from a CreateSetupIntentWithResponse call
func (CreateSetupIntentResponse) ContentType ¶
func (r CreateSetupIntentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSetupIntentResponse) Status ¶
func (r CreateSetupIntentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSetupIntentResponse) StatusCode ¶
func (r CreateSetupIntentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DtoBillingPlan ¶
type DtoBillingPlan struct {
Code *string `json:"code,omitempty"`
Currency *string `json:"currency,omitempty"`
Description *string `json:"description,omitempty"`
DisplayOrder *int `json:"displayOrder,omitempty"`
// Entitlements Entitlements maps entitlement keys to values ("Up to N datasources").
Entitlements *map[string]int `json:"entitlements,omitempty"`
// Highlighted Highlighted renders the "Most popular" treatment.
Highlighted *bool `json:"highlighted,omitempty"`
MonthlyPriceCents *int `json:"monthlyPriceCents,omitempty"`
Name *string `json:"name,omitempty"`
// Quotas Quotas are the included allowances ("100 GB included, then $X/GB").
Quotas *[]DtoBillingPlanQuota `json:"quotas,omitempty"`
}
DtoBillingPlan defines model for dto.BillingPlan.
type DtoBillingPlanQuota ¶
type DtoBillingPlanQuota struct {
IncludedQuantity *float32 `json:"includedQuantity,omitempty"`
MetricCode *string `json:"metricCode,omitempty"`
MetricName *string `json:"metricName,omitempty"`
MetricUnit *string `json:"metricUnit,omitempty"`
// OverageUnitPrice OverageUnitPrice is the lowest non-zero currently-valid pricing-tier
// unit price — the "then $X per GB beyond included" figure. Null when the
// metric has no overage pricing (UI renders generic copy).
OverageUnitPrice *float32 `json:"overageUnitPrice,omitempty"`
}
DtoBillingPlanQuota defines model for dto.BillingPlanQuota.
type DtoBillingPreferences ¶
type DtoBillingPreferences struct {
City string `json:"city"`
CountryCode string `json:"countryCode"`
InvoicingEmail *string `json:"invoicingEmail,omitempty"`
Name string `json:"name"`
PostalCode string `json:"postalCode"`
State string `json:"state"`
Street string `json:"street"`
TaxId *string `json:"taxId,omitempty"`
Type ConstantsBillingType `json:"type"`
VatId *string `json:"vatId,omitempty"`
}
DtoBillingPreferences defines model for dto.BillingPreferences.
type DtoBillingService ¶
type DtoBillingService struct {
// BillingMode BillingMode drives the section layout: metered → PAYG card, plans → tier
// grid, choice → PAYG card + optional tier grid.
BillingMode *DtoBillingServiceBillingMode `json:"billingMode,omitempty"`
Code *string `json:"code,omitempty"`
Name *string `json:"name,omitempty"`
// Plans Plans is the public plan selector, sorted by displayOrder then price.
// Empty for metered services.
Plans *[]DtoBillingPlan `json:"plans,omitempty"`
// Subscription Subscription is the org's current subscription on this service, nil when
// none (metered services, or choice services on pure PAYG).
Subscription *DtoBillingServiceSubscription `json:"subscription,omitempty"`
}
DtoBillingService defines model for dto.BillingService.
type DtoBillingServiceBillingMode ¶
type DtoBillingServiceBillingMode string
DtoBillingServiceBillingMode BillingMode drives the section layout: metered → PAYG card, plans → tier grid, choice → PAYG card + optional tier grid.
const ( Choice DtoBillingServiceBillingMode = "choice" Metered DtoBillingServiceBillingMode = "metered" Plans DtoBillingServiceBillingMode = "plans" )
Defines values for DtoBillingServiceBillingMode.
func (DtoBillingServiceBillingMode) Valid ¶
func (e DtoBillingServiceBillingMode) Valid() bool
Valid indicates whether the value is a known member of the DtoBillingServiceBillingMode enum.
type DtoBillingServiceSubscription ¶
type DtoBillingServiceSubscription struct {
CancelAt *string `json:"cancelAt,omitempty"`
CancelledAt *string `json:"cancelledAt,omitempty"`
CurrentPeriodEnd *string `json:"currentPeriodEnd,omitempty"`
CurrentPeriodStart *string `json:"currentPeriodStart,omitempty"`
Id *string `json:"id,omitempty"`
PlanCode *string `json:"planCode,omitempty"`
PlanName *string `json:"planName,omitempty"`
StartedAt *string `json:"startedAt,omitempty"`
Status *DtoBillingServiceSubscriptionStatus `json:"status,omitempty"`
}
DtoBillingServiceSubscription defines model for dto.BillingServiceSubscription.
type DtoBillingServiceSubscriptionStatus ¶
type DtoBillingServiceSubscriptionStatus string
DtoBillingServiceSubscriptionStatus defines model for DtoBillingServiceSubscription.Status.
const ( DtoBillingServiceSubscriptionStatusActive DtoBillingServiceSubscriptionStatus = "active" DtoBillingServiceSubscriptionStatusCancelled DtoBillingServiceSubscriptionStatus = "cancelled" DtoBillingServiceSubscriptionStatusPaused DtoBillingServiceSubscriptionStatus = "paused" )
Defines values for DtoBillingServiceSubscriptionStatus.
func (DtoBillingServiceSubscriptionStatus) Valid ¶
func (e DtoBillingServiceSubscriptionStatus) Valid() bool
Valid indicates whether the value is a known member of the DtoBillingServiceSubscriptionStatus enum.
type DtoCreditGrant ¶
type DtoCreditGrant struct {
AmountUsdCents *int `json:"amountUsdCents,omitempty"`
ConsumedUsdCents *int `json:"consumedUsdCents,omitempty"`
// ExpiresAt ExpiresAt is null for grants that never expire.
ExpiresAt *string `json:"expiresAt,omitempty"`
GrantedAt *string `json:"grantedAt,omitempty"`
Id *string `json:"id,omitempty"`
Reason *string `json:"reason,omitempty"`
RemainingUsdCents *int `json:"remainingUsdCents,omitempty"`
Source *DtoCreditGrantSource `json:"source,omitempty"`
// Status Status is one of active / exhausted / expired / voided — derived
// by the backend from amount + consumed + expires_at + voided_at
// against wall clock at query time. Voided beats everything; an
// exhausted grant overrides expired (the credit was used, not
// lost).
Status *DtoCreditGrantStatus `json:"status,omitempty"`
// VoidedAt VoidedAt is set when the grant was explicitly retired (e.g. the
// Phase 5 cascade voids leftover credit when an org is closed).
// Null on never-voided grants.
VoidedAt *string `json:"voidedAt,omitempty"`
// VoidedReason VoidedReason carries the why for voided grants — today always
// "org_closed" from the cascade hook, but future use cases (admin
// revoke, fraud, etc.) get their own strings.
VoidedReason *string `json:"voidedReason,omitempty"`
}
DtoCreditGrant defines model for dto.CreditGrant.
type DtoCreditGrantSource ¶
type DtoCreditGrantSource string
DtoCreditGrantSource defines model for DtoCreditGrant.Source.
const ( Admin DtoCreditGrantSource = "admin" Manual DtoCreditGrantSource = "manual" Promo DtoCreditGrantSource = "promo" RefundSettlement DtoCreditGrantSource = "refund_settlement" )
Defines values for DtoCreditGrantSource.
func (DtoCreditGrantSource) Valid ¶
func (e DtoCreditGrantSource) Valid() bool
Valid indicates whether the value is a known member of the DtoCreditGrantSource enum.
type DtoCreditGrantStatus ¶
type DtoCreditGrantStatus string
DtoCreditGrantStatus Status is one of active / exhausted / expired / voided — derived by the backend from amount + consumed + expires_at + voided_at against wall clock at query time. Voided beats everything; an exhausted grant overrides expired (the credit was used, not lost).
const ( DtoCreditGrantStatusActive DtoCreditGrantStatus = "active" DtoCreditGrantStatusExhausted DtoCreditGrantStatus = "exhausted" DtoCreditGrantStatusExpired DtoCreditGrantStatus = "expired" DtoCreditGrantStatusVoided DtoCreditGrantStatus = "voided" )
Defines values for DtoCreditGrantStatus.
func (DtoCreditGrantStatus) Valid ¶
func (e DtoCreditGrantStatus) Valid() bool
Valid indicates whether the value is a known member of the DtoCreditGrantStatus enum.
type DtoFreeTierMetric ¶
type DtoFreeTierMetric struct {
CurrentUnits *float32 `json:"currentUnits,omitempty"`
// FreeTierUnits FreeTierUnits is the ceiling derived from $0 pricing tiers; 0
// means the metric is billed from unit 1 (no free tier).
FreeTierUnits *int `json:"freeTierUnits,omitempty"`
// FreeTierUnlimited FreeTierUnlimited handles the edge case where a $0 tier has no
// upper bound — the metric is always free, no progress bar needed.
FreeTierUnlimited *bool `json:"freeTierUnlimited,omitempty"`
MetricCode *string `json:"metricCode,omitempty"`
MetricName *string `json:"metricName,omitempty"`
// MetricType MetricType is "storage" or "usage". Storage metrics don't
// extrapolate end-of-month (the MTD average is already a rate);
// usage metrics extrapolate linearly. Frontend uses this to label
// the projection ("end-of-month forecast" vs "current average").
MetricType *DtoFreeTierMetricMetricType `json:"metricType,omitempty"`
// OverflowProjected OverflowProjected is true when projectedEndOfMonthUnits exceeds
// freeTierUnits — the user is on track to incur charges this month.
OverflowProjected *bool `json:"overflowProjected,omitempty"`
// PreviousMonthUnits PreviousMonthUnits is the previous calendar month's final figure
// — average for storage, sum for usage. Used for the "Last month"
// column so customers can spot trending consumption.
PreviousMonthUnits *float32 `json:"previousMonthUnits,omitempty"`
ProjectedEndOfMonthUnits *float32 `json:"projectedEndOfMonthUnits,omitempty"`
ServiceCode *string `json:"serviceCode,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
Unit *string `json:"unit,omitempty"`
}
DtoFreeTierMetric defines model for dto.FreeTierMetric.
type DtoFreeTierMetricMetricType ¶
type DtoFreeTierMetricMetricType string
DtoFreeTierMetricMetricType MetricType is "storage" or "usage". Storage metrics don't extrapolate end-of-month (the MTD average is already a rate); usage metrics extrapolate linearly. Frontend uses this to label the projection ("end-of-month forecast" vs "current average").
const ( Storage DtoFreeTierMetricMetricType = "storage" Usage DtoFreeTierMetricMetricType = "usage" )
Defines values for DtoFreeTierMetricMetricType.
func (DtoFreeTierMetricMetricType) Valid ¶
func (e DtoFreeTierMetricMetricType) Valid() bool
Valid indicates whether the value is a known member of the DtoFreeTierMetricMetricType enum.
type DtoInvoice ¶
type DtoInvoice struct {
BillingCity string `json:"billingCity"`
BillingCountryCode string `json:"billingCountryCode"`
BillingName string `json:"billingName"`
BillingPostalCode string `json:"billingPostalCode"`
BillingState string `json:"billingState"`
BillingStreet string `json:"billingStreet"`
BillingTaxId *string `json:"billingTaxId,omitempty"`
BillingType ConstantsBillingType `json:"billingType"`
BillingVatId *string `json:"billingVatId,omitempty"`
Currency string `json:"currency"`
Id string `json:"id"`
OrganizationId string `json:"organizationId"`
PeriodEnd string `json:"periodEnd"`
PeriodStart string `json:"periodStart"`
Status ConstantsInvoiceStatus `json:"status"`
Subtotal float32 `json:"subtotal"`
Tax float32 `json:"tax"`
Total float32 `json:"total"`
}
DtoInvoice defines model for dto.Invoice.
type DtoListCreditGrants ¶
type DtoListCreditGrants struct {
Grants *[]DtoCreditGrant `json:"grants,omitempty"`
// TotalActiveRemainingUsdCents TotalActiveRemainingUSDCents is the sum of remaining USD cents on
// every grant that is currently "active" — useful for a headline
// "you have $X in credit available" widget on the page header.
TotalActiveRemainingUsdCents *int `json:"totalActiveRemainingUsdCents,omitempty"`
}
DtoListCreditGrants defines model for dto.ListCreditGrants.
type DtoListFreeTierMetrics ¶
type DtoListFreeTierMetrics struct {
Metrics *[]DtoFreeTierMetric `json:"metrics,omitempty"`
}
DtoListFreeTierMetrics defines model for dto.ListFreeTierMetrics.
type DtoPaymentMethod ¶
type DtoPaymentMethod struct {
Brand *string `json:"brand,omitempty"`
Country *string `json:"country,omitempty"`
CreatedAt *string `json:"createdAt,omitempty"`
ExpMonth *int `json:"expMonth,omitempty"`
ExpYear *int `json:"expYear,omitempty"`
Funding *string `json:"funding,omitempty"`
Id *string `json:"id,omitempty"`
IsDefault *bool `json:"isDefault,omitempty"`
Last4 *string `json:"last4,omitempty"`
Type *string `json:"type,omitempty"`
Wallet *string `json:"wallet,omitempty"`
}
DtoPaymentMethod defines model for dto.PaymentMethod.
type DtoSpendingCap ¶
type DtoSpendingCap struct {
AlertThresholds *[]int `json:"alertThresholds,omitempty"`
HardCapCents *int `json:"hardCapCents,omitempty"`
SoftCapCents *int `json:"softCapCents,omitempty"`
}
DtoSpendingCap defines model for dto.SpendingCap.
type DtoSubscription ¶
type DtoSubscription struct {
CancelAt *string `json:"cancelAt,omitempty"`
CancelledAt *string `json:"cancelledAt,omitempty"`
CurrentPeriodEnd *string `json:"currentPeriodEnd,omitempty"`
CurrentPeriodStart *string `json:"currentPeriodStart,omitempty"`
Id *string `json:"id,omitempty"`
PlanCode *string `json:"planCode,omitempty"`
StartedAt *string `json:"startedAt,omitempty"`
Status *DtoSubscriptionStatus `json:"status,omitempty"`
}
DtoSubscription defines model for dto.Subscription.
type DtoSubscriptionStatus ¶
type DtoSubscriptionStatus string
DtoSubscriptionStatus defines model for DtoSubscription.Status.
const ( Active DtoSubscriptionStatus = "active" Cancelled DtoSubscriptionStatus = "cancelled" Paused DtoSubscriptionStatus = "paused" )
Defines values for DtoSubscriptionStatus.
func (DtoSubscriptionStatus) Valid ¶
func (e DtoSubscriptionStatus) Valid() bool
Valid indicates whether the value is a known member of the DtoSubscriptionStatus enum.
type DtoUpdateSubscriptionRequest ¶
type DtoUpdateSubscriptionRequest struct {
PlanCode string `json:"planCode"`
}
DtoUpdateSubscriptionRequest defines model for dto.UpdateSubscriptionRequest.
type GetBillingAccountStatusResponse ¶
type GetBillingAccountStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServiceAccountStatusOutput
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetBillingAccountStatusResponse ¶
func ParseGetBillingAccountStatusResponse(rsp *http.Response) (*GetBillingAccountStatusResponse, error)
ParseGetBillingAccountStatusResponse parses an HTTP response from a GetBillingAccountStatusWithResponse call
func (GetBillingAccountStatusResponse) ContentType ¶
func (r GetBillingAccountStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBillingAccountStatusResponse) Status ¶
func (r GetBillingAccountStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingAccountStatusResponse) StatusCode ¶
func (r GetBillingAccountStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBillingEstimateResponse ¶
type GetBillingEstimateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HandlerGetBillingEstimateResponse
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetBillingEstimateResponse ¶
func ParseGetBillingEstimateResponse(rsp *http.Response) (*GetBillingEstimateResponse, error)
ParseGetBillingEstimateResponse parses an HTTP response from a GetBillingEstimateWithResponse call
func (GetBillingEstimateResponse) ContentType ¶
func (r GetBillingEstimateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBillingEstimateResponse) Status ¶
func (r GetBillingEstimateResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingEstimateResponse) StatusCode ¶
func (r GetBillingEstimateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBillingPreferencesResponse ¶
type GetBillingPreferencesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoBillingPreferences
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetBillingPreferencesResponse ¶
func ParseGetBillingPreferencesResponse(rsp *http.Response) (*GetBillingPreferencesResponse, error)
ParseGetBillingPreferencesResponse parses an HTTP response from a GetBillingPreferencesWithResponse call
func (GetBillingPreferencesResponse) ContentType ¶
func (r GetBillingPreferencesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBillingPreferencesResponse) Status ¶
func (r GetBillingPreferencesResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingPreferencesResponse) StatusCode ¶
func (r GetBillingPreferencesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBillingServicesResponse ¶
type GetBillingServicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoBillingService
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetBillingServicesResponse ¶
func ParseGetBillingServicesResponse(rsp *http.Response) (*GetBillingServicesResponse, error)
ParseGetBillingServicesResponse parses an HTTP response from a GetBillingServicesWithResponse call
func (GetBillingServicesResponse) ContentType ¶
func (r GetBillingServicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetBillingServicesResponse) Status ¶
func (r GetBillingServicesResponse) Status() string
Status returns HTTPResponse.Status
func (GetBillingServicesResponse) StatusCode ¶
func (r GetBillingServicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFreeTierStatusResponse ¶
type GetFreeTierStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoListFreeTierMetrics
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetFreeTierStatusResponse ¶
func ParseGetFreeTierStatusResponse(rsp *http.Response) (*GetFreeTierStatusResponse, error)
ParseGetFreeTierStatusResponse parses an HTTP response from a GetFreeTierStatusWithResponse call
func (GetFreeTierStatusResponse) ContentType ¶
func (r GetFreeTierStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFreeTierStatusResponse) Status ¶
func (r GetFreeTierStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetFreeTierStatusResponse) StatusCode ¶
func (r GetFreeTierStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoicePDFResponse ¶
func ParseGetInvoicePDFResponse ¶
func ParseGetInvoicePDFResponse(rsp *http.Response) (*GetInvoicePDFResponse, error)
ParseGetInvoicePDFResponse parses an HTTP response from a GetInvoicePDFWithResponse call
func (GetInvoicePDFResponse) ContentType ¶
func (r GetInvoicePDFResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetInvoicePDFResponse) Status ¶
func (r GetInvoicePDFResponse) Status() string
Status returns HTTPResponse.Status
func (GetInvoicePDFResponse) StatusCode ¶
func (r GetInvoicePDFResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProformaPDFResponse ¶
func ParseGetProformaPDFResponse ¶
func ParseGetProformaPDFResponse(rsp *http.Response) (*GetProformaPDFResponse, error)
ParseGetProformaPDFResponse parses an HTTP response from a GetProformaPDFWithResponse call
func (GetProformaPDFResponse) ContentType ¶
func (r GetProformaPDFResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProformaPDFResponse) Status ¶
func (r GetProformaPDFResponse) Status() string
Status returns HTTPResponse.Status
func (GetProformaPDFResponse) StatusCode ¶
func (r GetProformaPDFResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSpendingCapResponse ¶
type GetSpendingCapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoSpendingCap
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetSpendingCapResponse ¶
func ParseGetSpendingCapResponse(rsp *http.Response) (*GetSpendingCapResponse, error)
ParseGetSpendingCapResponse parses an HTTP response from a GetSpendingCapWithResponse call
func (GetSpendingCapResponse) ContentType ¶
func (r GetSpendingCapResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSpendingCapResponse) Status ¶
func (r GetSpendingCapResponse) Status() string
Status returns HTTPResponse.Status
func (GetSpendingCapResponse) StatusCode ¶
func (r GetSpendingCapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSubscriptionParams ¶
type GetSubscriptionParams struct {
// Service Service code (default snapdb)
Service *string `form:"service,omitempty" json:"service,omitempty"`
}
GetSubscriptionParams defines parameters for GetSubscription.
type GetSubscriptionResponse ¶
type GetSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoSubscription
JSON400 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetSubscriptionResponse ¶
func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error)
ParseGetSubscriptionResponse parses an HTTP response from a GetSubscriptionWithResponse call
func (GetSubscriptionResponse) ContentType ¶
func (r GetSubscriptionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSubscriptionResponse) Status ¶
func (r GetSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubscriptionResponse) StatusCode ¶
func (r GetSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HandlerCreateSCAReauthPaymentIntentResponse ¶
type HandlerCreateSCAReauthPaymentIntentResponse struct {
ClientSecret string `json:"clientSecret"`
PaymentIntentId string `json:"paymentIntentId"`
PublishableKey string `json:"publishableKey"`
}
HandlerCreateSCAReauthPaymentIntentResponse defines model for handler.CreateSCAReauthPaymentIntentResponse.
type HandlerCreateSetupIntentResponse ¶
type HandlerCreateSetupIntentResponse struct {
ClientSecret string `json:"clientSecret"`
PublishableKey string `json:"publishableKey"`
StripeCustomerId string `json:"stripeCustomerId"`
}
HandlerCreateSetupIntentResponse defines model for handler.CreateSetupIntentResponse.
type HandlerGetBillingEstimateResponse ¶
type HandlerGetBillingEstimateResponse struct {
CurrentUsage float32 `json:"currentUsage"`
DaysElapsed int `json:"daysElapsed"`
DaysInMonth int `json:"daysInMonth"`
EstimatedTotal float32 `json:"estimatedTotal"`
HistoricalAverage float32 `json:"historicalAverage"`
LinearEstimate float32 `json:"linearEstimate"`
PeriodEnd string `json:"periodEnd"`
PeriodStart string `json:"periodStart"`
}
HandlerGetBillingEstimateResponse defines model for handler.GetBillingEstimateResponse.
type HandlerPayloadBillingPreferencesUpdate ¶
type HandlerPayloadBillingPreferencesUpdate struct {
City string `json:"city"`
CountryCode string `json:"countryCode"`
InvoicingEmail string `json:"invoicingEmail"`
Name string `json:"name"`
PostalCode string `json:"postalCode"`
State string `json:"state"`
Street string `json:"street"`
TaxId string `json:"taxId"`
Type ConstantsBillingType `json:"type"`
VatId string `json:"vatId"`
}
HandlerPayloadBillingPreferencesUpdate defines model for handler.payloadBillingPreferencesUpdate.
type HandlerSetDefaultPaymentMethodResponse ¶
type HandlerSetDefaultPaymentMethodResponse struct {
Id string `json:"id"`
IsDefault bool `json:"isDefault"`
}
HandlerSetDefaultPaymentMethodResponse defines model for handler.SetDefaultPaymentMethodResponse.
type HandlerUpdateSpendingCapRequest ¶
type HandlerUpdateSpendingCapRequest struct {
AlertThresholds *[]int `json:"alertThresholds,omitempty"`
HardCapCents *int `json:"hardCapCents,omitempty"`
SoftCapCents *int `json:"softCapCents,omitempty"`
}
HandlerUpdateSpendingCapRequest defines model for handler.updateSpendingCapRequest.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListInvoicesResponse ¶
type ListInvoicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List []DtoInvoice `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListInvoicesResponse ¶
func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error)
ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call
func (ListInvoicesResponse) ContentType ¶
func (r ListInvoicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListInvoicesResponse) Status ¶
func (r ListInvoicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInvoicesResponse) StatusCode ¶
func (r ListInvoicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgCreditsResponse ¶
type ListOrgCreditsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoListCreditGrants
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListOrgCreditsResponse ¶
func ParseListOrgCreditsResponse(rsp *http.Response) (*ListOrgCreditsResponse, error)
ParseListOrgCreditsResponse parses an HTTP response from a ListOrgCreditsWithResponse call
func (ListOrgCreditsResponse) ContentType ¶
func (r ListOrgCreditsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOrgCreditsResponse) Status ¶
func (r ListOrgCreditsResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgCreditsResponse) StatusCode ¶
func (r ListOrgCreditsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPaymentMethodsResponse ¶
type ListPaymentMethodsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoPaymentMethod
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListPaymentMethodsResponse ¶
func ParseListPaymentMethodsResponse(rsp *http.Response) (*ListPaymentMethodsResponse, error)
ParseListPaymentMethodsResponse parses an HTTP response from a ListPaymentMethodsWithResponse call
func (ListPaymentMethodsResponse) ContentType ¶
func (r ListPaymentMethodsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPaymentMethodsResponse) Status ¶
func (r ListPaymentMethodsResponse) Status() string
Status returns HTTPResponse.Status
func (ListPaymentMethodsResponse) StatusCode ¶
func (r ListPaymentMethodsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemovePaymentMethodResponse ¶
type RemovePaymentMethodResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseRemovePaymentMethodResponse ¶
func ParseRemovePaymentMethodResponse(rsp *http.Response) (*RemovePaymentMethodResponse, error)
ParseRemovePaymentMethodResponse parses an HTTP response from a RemovePaymentMethodWithResponse call
func (RemovePaymentMethodResponse) ContentType ¶
func (r RemovePaymentMethodResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RemovePaymentMethodResponse) Status ¶
func (r RemovePaymentMethodResponse) Status() string
Status returns HTTPResponse.Status
func (RemovePaymentMethodResponse) StatusCode ¶
func (r RemovePaymentMethodResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseAPIError ¶
type ResponseAPIError struct {
Data interface{} `json:"data,omitempty"`
Msg string `json:"msg"`
Type ResponseType `json:"type"`
}
ResponseAPIError defines model for response.APIError.
type ResponseAPIResponseEmpty ¶
type ResponseAPIResponseEmpty = map[string]interface{}
ResponseAPIResponseEmpty defines model for response.APIResponseEmpty.
type ResponseAPIResponsePaginationCursors ¶
type ResponseAPIResponsePaginationCursors struct {
Next *string `json:"next,omitempty"`
}
ResponseAPIResponsePaginationCursors defines model for response.APIResponsePaginationCursors.
type ResponseAPIResponsePaginationMeta ¶
type ResponseAPIResponsePaginationMeta struct {
Timestamp string `json:"timestamp"`
}
ResponseAPIResponsePaginationMeta defines model for response.APIResponsePaginationMeta.
type ResponseAPIResponseWithPagination ¶
type ResponseAPIResponseWithPagination struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List interface{} `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
ResponseAPIResponseWithPagination defines model for response.APIResponseWithPagination.
type ResponseType ¶
type ResponseType string
ResponseType defines model for response.Type.
const ( ErrBackupCodeInvalid ResponseType = "BACKUP_CODE_INVALID" ErrCancelNotAllowed ResponseType = "SUBSCRIPTION_CANCEL_NOT_ALLOWED" ErrEmailRequired ResponseType = "EMAIL_REQUIRED" ErrInnovationAgencyIDRequired ResponseType = "INNOVATION_AGENCY_ID_REQUIRED" ErrInsufficientPermissions ResponseType = "INSUFFICIENT_PERMISSIONS" ErrInternalServer ResponseType = "INTERNAL_SERVER_ERROR" ErrInvalidCredentials ResponseType = "INVALID_CREDENTIALS" ErrInvalidOldPassword ResponseType = "INVALID_OLD_PASSWORD" ErrInvalidRequest ResponseType = "INVALID_REQUEST" ErrInvalidRole ResponseType = "INVALID_ROLE" ErrInvalidToken ResponseType = "INVALID_TOKEN" ErrLoginIntentToken ResponseType = "LOGIN_INTENT_TOKEN" ErrMissingBackupCode ResponseType = "MISSING_BACKUP_CODE" ErrMissingNewPassword ResponseType = "MISSING_NEW_PASSWORD" ErrMissingOrganization ResponseType = "MISSING_ORGANIZATION" ErrMissingPermissions ResponseType = "MISSING_PERMISSIONS" ErrMissingResetPasswordSecret ResponseType = "MISSING_RESET_PASSWORD_SECRET" ErrNameRequired ResponseType = "NAME_REQUIRED" ErrNameTooLong ResponseType = "NAME_TOO_LONG" ErrNameTooShort ResponseType = "NAME_TOO_SHORT" ErrNewPasswordRequired ResponseType = "NEW_PASSWORD_REQUIRED" ErrNotFound ResponseType = "NOT_FOUND" ErrOTPInvalid ResponseType = "OTP_INVALID" ErrOldPasswordRequired ResponseType = "OLD_PASSWORD_REQUIRED" ErrPasswordRequired ResponseType = "PASSWORD_REQUIRED" ErrPayloadInvalid ResponseType = "INVALID_PAYLOAD" ErrSecretExpired ResponseType = "SECRET_EXPIRED" ErrSecretNotFound ResponseType = "SECRET_NOT_FOUND" ErrServiceNotSubscribable ResponseType = "SERVICE_NOT_SUBSCRIBABLE" ErrSlugDuplicate ResponseType = "SLUG_DUPLICATE" ErrSlugTooLong ResponseType = "SLUG_TOO_LONG" ErrUserAlreadyExists ResponseType = "USER_ALREADY_EXISTS" ErrUserNotFound ResponseType = "USER_NOT_FOUND" )
Defines values for ResponseType.
func (ResponseType) Valid ¶
func (e ResponseType) Valid() bool
Valid indicates whether the value is a known member of the ResponseType enum.
type ServiceAccountStatusOutput ¶
type ServiceAccountStatusOutput struct {
BlockedAt *string `json:"blockedAt,omitempty"`
GraceExpiresAt *string `json:"graceExpiresAt,omitempty"`
GraceStartedAt *string `json:"graceStartedAt,omitempty"`
Status TypesOrgBillingStatus `json:"status"`
}
ServiceAccountStatusOutput defines model for service.AccountStatusOutput.
type SetDefaultPaymentMethodResponse ¶
type SetDefaultPaymentMethodResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HandlerSetDefaultPaymentMethodResponse
JSON400 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseSetDefaultPaymentMethodResponse ¶
func ParseSetDefaultPaymentMethodResponse(rsp *http.Response) (*SetDefaultPaymentMethodResponse, error)
ParseSetDefaultPaymentMethodResponse parses an HTTP response from a SetDefaultPaymentMethodWithResponse call
func (SetDefaultPaymentMethodResponse) ContentType ¶
func (r SetDefaultPaymentMethodResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetDefaultPaymentMethodResponse) Status ¶
func (r SetDefaultPaymentMethodResponse) Status() string
Status returns HTTPResponse.Status
func (SetDefaultPaymentMethodResponse) StatusCode ¶
func (r SetDefaultPaymentMethodResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TypesOrgBillingStatus ¶
type TypesOrgBillingStatus string
TypesOrgBillingStatus defines model for types.OrgBillingStatus.
const ( OrgBillingStatusActive TypesOrgBillingStatus = "active" OrgBillingStatusBlocked TypesOrgBillingStatus = "blocked" OrgBillingStatusGrace TypesOrgBillingStatus = "grace" )
Defines values for TypesOrgBillingStatus.
func (TypesOrgBillingStatus) Valid ¶
func (e TypesOrgBillingStatus) Valid() bool
Valid indicates whether the value is a known member of the TypesOrgBillingStatus enum.
type UpdateBillingPreferencesJSONRequestBody ¶
type UpdateBillingPreferencesJSONRequestBody = HandlerPayloadBillingPreferencesUpdate
UpdateBillingPreferencesJSONRequestBody defines body for UpdateBillingPreferences for application/json ContentType.
type UpdateBillingPreferencesResponse ¶
type UpdateBillingPreferencesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoBillingPreferences
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateBillingPreferencesResponse ¶
func ParseUpdateBillingPreferencesResponse(rsp *http.Response) (*UpdateBillingPreferencesResponse, error)
ParseUpdateBillingPreferencesResponse parses an HTTP response from a UpdateBillingPreferencesWithResponse call
func (UpdateBillingPreferencesResponse) ContentType ¶
func (r UpdateBillingPreferencesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateBillingPreferencesResponse) Status ¶
func (r UpdateBillingPreferencesResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateBillingPreferencesResponse) StatusCode ¶
func (r UpdateBillingPreferencesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSpendingCapJSONRequestBody ¶
type UpdateSpendingCapJSONRequestBody = HandlerUpdateSpendingCapRequest
UpdateSpendingCapJSONRequestBody defines body for UpdateSpendingCap for application/json ContentType.
type UpdateSpendingCapResponse ¶
type UpdateSpendingCapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoSpendingCap
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateSpendingCapResponse ¶
func ParseUpdateSpendingCapResponse(rsp *http.Response) (*UpdateSpendingCapResponse, error)
ParseUpdateSpendingCapResponse parses an HTTP response from a UpdateSpendingCapWithResponse call
func (UpdateSpendingCapResponse) ContentType ¶
func (r UpdateSpendingCapResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateSpendingCapResponse) Status ¶
func (r UpdateSpendingCapResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSpendingCapResponse) StatusCode ¶
func (r UpdateSpendingCapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSubscriptionJSONRequestBody ¶
type UpdateSubscriptionJSONRequestBody = DtoUpdateSubscriptionRequest
UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType.
type UpdateSubscriptionResponse ¶
type UpdateSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoSubscription
JSON400 *ResponseAPIError
JSON404 *ResponseAPIError
JSON409 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateSubscriptionResponse ¶
func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error)
ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call
func (UpdateSubscriptionResponse) ContentType ¶
func (r UpdateSubscriptionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateSubscriptionResponse) Status ¶
func (r UpdateSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSubscriptionResponse) StatusCode ¶
func (r UpdateSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode