invoice_service

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for invoice service API

func (*Client) InvoiceServiceGetUsage

func (a *Client) InvoiceServiceGetUsage(params *InvoiceServiceGetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InvoiceServiceGetUsageOK, error)

InvoiceServiceGetUsage gets usage returns the current billing period s usage usage information is not calculated on demand but the response explicitly specifies the considered billing period

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	InvoiceServiceGetUsage(params *InvoiceServiceGetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InvoiceServiceGetUsageOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new invoice service API client.

type InvoiceServiceGetUsageDefault

type InvoiceServiceGetUsageDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}

InvoiceServiceGetUsageDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewInvoiceServiceGetUsageDefault

func NewInvoiceServiceGetUsageDefault(code int) *InvoiceServiceGetUsageDefault

NewInvoiceServiceGetUsageDefault creates a InvoiceServiceGetUsageDefault with default headers values

func (*InvoiceServiceGetUsageDefault) Code

Code gets the status code for the invoice service get usage default response

func (*InvoiceServiceGetUsageDefault) Error

func (*InvoiceServiceGetUsageDefault) GetPayload

func (*InvoiceServiceGetUsageDefault) IsClientError

func (o *InvoiceServiceGetUsageDefault) IsClientError() bool

IsClientError returns true when this invoice service get usage default response has a 4xx status code

func (*InvoiceServiceGetUsageDefault) IsCode

func (o *InvoiceServiceGetUsageDefault) IsCode(code int) bool

IsCode returns true when this invoice service get usage default response a status code equal to that given

func (*InvoiceServiceGetUsageDefault) IsRedirect

func (o *InvoiceServiceGetUsageDefault) IsRedirect() bool

IsRedirect returns true when this invoice service get usage default response has a 3xx status code

func (*InvoiceServiceGetUsageDefault) IsServerError

func (o *InvoiceServiceGetUsageDefault) IsServerError() bool

IsServerError returns true when this invoice service get usage default response has a 5xx status code

func (*InvoiceServiceGetUsageDefault) IsSuccess

func (o *InvoiceServiceGetUsageDefault) IsSuccess() bool

IsSuccess returns true when this invoice service get usage default response has a 2xx status code

func (*InvoiceServiceGetUsageDefault) String

type InvoiceServiceGetUsageOK

type InvoiceServiceGetUsageOK struct {
	Payload *models.Billing20201105GetUsageResponse
}

InvoiceServiceGetUsageOK describes a response with status code 200, with default header values.

A successful response.

func NewInvoiceServiceGetUsageOK

func NewInvoiceServiceGetUsageOK() *InvoiceServiceGetUsageOK

NewInvoiceServiceGetUsageOK creates a InvoiceServiceGetUsageOK with default headers values

func (*InvoiceServiceGetUsageOK) Error

func (o *InvoiceServiceGetUsageOK) Error() string

func (*InvoiceServiceGetUsageOK) GetPayload

func (*InvoiceServiceGetUsageOK) IsClientError

func (o *InvoiceServiceGetUsageOK) IsClientError() bool

IsClientError returns true when this invoice service get usage o k response has a 4xx status code

func (*InvoiceServiceGetUsageOK) IsCode

func (o *InvoiceServiceGetUsageOK) IsCode(code int) bool

IsCode returns true when this invoice service get usage o k response a status code equal to that given

func (*InvoiceServiceGetUsageOK) IsRedirect

func (o *InvoiceServiceGetUsageOK) IsRedirect() bool

IsRedirect returns true when this invoice service get usage o k response has a 3xx status code

func (*InvoiceServiceGetUsageOK) IsServerError

func (o *InvoiceServiceGetUsageOK) IsServerError() bool

IsServerError returns true when this invoice service get usage o k response has a 5xx status code

func (*InvoiceServiceGetUsageOK) IsSuccess

func (o *InvoiceServiceGetUsageOK) IsSuccess() bool

IsSuccess returns true when this invoice service get usage o k response has a 2xx status code

func (*InvoiceServiceGetUsageOK) String

func (o *InvoiceServiceGetUsageOK) String() string

type InvoiceServiceGetUsageParams

type InvoiceServiceGetUsageParams struct {

	/* BillingAccountID.

	     id is the user-settable ID that uniquely identifies the Billing Account
	within the organization.
	*/
	BillingAccountID string

	/* OrganizationID.

	     organization_id is the ID of the organization to which the Billing Account
	belongs.
	*/
	OrganizationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InvoiceServiceGetUsageParams contains all the parameters to send to the API endpoint

for the invoice service get usage operation.

Typically these are written to a http.Request.

func NewInvoiceServiceGetUsageParams

func NewInvoiceServiceGetUsageParams() *InvoiceServiceGetUsageParams

NewInvoiceServiceGetUsageParams creates a new InvoiceServiceGetUsageParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewInvoiceServiceGetUsageParamsWithContext

func NewInvoiceServiceGetUsageParamsWithContext(ctx context.Context) *InvoiceServiceGetUsageParams

NewInvoiceServiceGetUsageParamsWithContext creates a new InvoiceServiceGetUsageParams object with the ability to set a context for a request.

func NewInvoiceServiceGetUsageParamsWithHTTPClient

func NewInvoiceServiceGetUsageParamsWithHTTPClient(client *http.Client) *InvoiceServiceGetUsageParams

NewInvoiceServiceGetUsageParamsWithHTTPClient creates a new InvoiceServiceGetUsageParams object with the ability to set a custom HTTPClient for a request.

func NewInvoiceServiceGetUsageParamsWithTimeout

func NewInvoiceServiceGetUsageParamsWithTimeout(timeout time.Duration) *InvoiceServiceGetUsageParams

NewInvoiceServiceGetUsageParamsWithTimeout creates a new InvoiceServiceGetUsageParams object with the ability to set a timeout on a request.

func (*InvoiceServiceGetUsageParams) SetBillingAccountID

func (o *InvoiceServiceGetUsageParams) SetBillingAccountID(billingAccountID string)

SetBillingAccountID adds the billingAccountId to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) SetContext

func (o *InvoiceServiceGetUsageParams) SetContext(ctx context.Context)

SetContext adds the context to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) SetDefaults

func (o *InvoiceServiceGetUsageParams) SetDefaults()

SetDefaults hydrates default values in the invoice service get usage params (not the query body).

All values with no default are reset to their zero value.

func (*InvoiceServiceGetUsageParams) SetHTTPClient

func (o *InvoiceServiceGetUsageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) SetOrganizationID

func (o *InvoiceServiceGetUsageParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) SetTimeout

func (o *InvoiceServiceGetUsageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WithBillingAccountID

func (o *InvoiceServiceGetUsageParams) WithBillingAccountID(billingAccountID string) *InvoiceServiceGetUsageParams

WithBillingAccountID adds the billingAccountID to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WithContext

WithContext adds the context to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WithDefaults

WithDefaults hydrates default values in the invoice service get usage params (not the query body).

All values with no default are reset to their zero value.

func (*InvoiceServiceGetUsageParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WithOrganizationID

func (o *InvoiceServiceGetUsageParams) WithOrganizationID(organizationID string) *InvoiceServiceGetUsageParams

WithOrganizationID adds the organizationID to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WithTimeout

WithTimeout adds the timeout to the invoice service get usage params

func (*InvoiceServiceGetUsageParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InvoiceServiceGetUsageReader

type InvoiceServiceGetUsageReader struct {
	// contains filtered or unexported fields
}

InvoiceServiceGetUsageReader is a Reader for the InvoiceServiceGetUsage structure.

func (*InvoiceServiceGetUsageReader) ReadResponse

func (o *InvoiceServiceGetUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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