billing

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-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 billing API

func (*Client) ListOrgInvoices

func (a *Client) ListOrgInvoices(params *ListOrgInvoicesParams, authInfo runtime.ClientAuthInfoWriter) (*ListOrgInvoicesOK, error)

ListOrgInvoices List the invoices for the specified orgnaization.

func (*Client) ListPlans

func (a *Client) ListPlans(params *ListPlansParams) (*ListPlansOK, error)

ListPlans List the avaialble plans.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListOrgInvoices(params *ListOrgInvoicesParams, authInfo runtime.ClientAuthInfoWriter) (*ListOrgInvoicesOK, error)

	ListPlans(params *ListPlansParams) (*ListPlansOK, 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 billing API client.

type ListOrgInvoicesBadRequest

type ListOrgInvoicesBadRequest struct {
	Payload *models.APIError
}

ListOrgInvoicesBadRequest handles this case with default header values.

Bad Request

func NewListOrgInvoicesBadRequest

func NewListOrgInvoicesBadRequest() *ListOrgInvoicesBadRequest

NewListOrgInvoicesBadRequest creates a ListOrgInvoicesBadRequest with default headers values

func (*ListOrgInvoicesBadRequest) Error

func (o *ListOrgInvoicesBadRequest) Error() string

func (*ListOrgInvoicesBadRequest) GetPayload

func (o *ListOrgInvoicesBadRequest) GetPayload() *models.APIError

type ListOrgInvoicesForbidden

type ListOrgInvoicesForbidden struct {
	Payload *models.APIError
}

ListOrgInvoicesForbidden handles this case with default header values.

Unauthorized access

func NewListOrgInvoicesForbidden

func NewListOrgInvoicesForbidden() *ListOrgInvoicesForbidden

NewListOrgInvoicesForbidden creates a ListOrgInvoicesForbidden with default headers values

func (*ListOrgInvoicesForbidden) Error

func (o *ListOrgInvoicesForbidden) Error() string

func (*ListOrgInvoicesForbidden) GetPayload

func (o *ListOrgInvoicesForbidden) GetPayload() *models.APIError

type ListOrgInvoicesNotFound

type ListOrgInvoicesNotFound struct {
	Payload *models.APIError
}

ListOrgInvoicesNotFound handles this case with default header values.

Not found

func NewListOrgInvoicesNotFound

func NewListOrgInvoicesNotFound() *ListOrgInvoicesNotFound

NewListOrgInvoicesNotFound creates a ListOrgInvoicesNotFound with default headers values

func (*ListOrgInvoicesNotFound) Error

func (o *ListOrgInvoicesNotFound) Error() string

func (*ListOrgInvoicesNotFound) GetPayload

func (o *ListOrgInvoicesNotFound) GetPayload() *models.APIError

type ListOrgInvoicesOK

type ListOrgInvoicesOK struct {
}

ListOrgInvoicesOK handles this case with default header values.

Successful invocation

func NewListOrgInvoicesOK

func NewListOrgInvoicesOK() *ListOrgInvoicesOK

NewListOrgInvoicesOK creates a ListOrgInvoicesOK with default headers values

func (*ListOrgInvoicesOK) Error

func (o *ListOrgInvoicesOK) Error() string

type ListOrgInvoicesParams

type ListOrgInvoicesParams struct {

	/*Orgname
	  The name of the organization

	*/
	Orgname string

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

ListOrgInvoicesParams contains all the parameters to send to the API endpoint for the list org invoices operation typically these are written to a http.Request

func NewListOrgInvoicesParams

func NewListOrgInvoicesParams() *ListOrgInvoicesParams

NewListOrgInvoicesParams creates a new ListOrgInvoicesParams object with the default values initialized.

func NewListOrgInvoicesParamsWithContext

func NewListOrgInvoicesParamsWithContext(ctx context.Context) *ListOrgInvoicesParams

NewListOrgInvoicesParamsWithContext creates a new ListOrgInvoicesParams object with the default values initialized, and the ability to set a context for a request

func NewListOrgInvoicesParamsWithHTTPClient

func NewListOrgInvoicesParamsWithHTTPClient(client *http.Client) *ListOrgInvoicesParams

NewListOrgInvoicesParamsWithHTTPClient creates a new ListOrgInvoicesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListOrgInvoicesParamsWithTimeout

func NewListOrgInvoicesParamsWithTimeout(timeout time.Duration) *ListOrgInvoicesParams

NewListOrgInvoicesParamsWithTimeout creates a new ListOrgInvoicesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListOrgInvoicesParams) SetContext

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

SetContext adds the context to the list org invoices params

func (*ListOrgInvoicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list org invoices params

func (*ListOrgInvoicesParams) SetOrgname

func (o *ListOrgInvoicesParams) SetOrgname(orgname string)

SetOrgname adds the orgname to the list org invoices params

func (*ListOrgInvoicesParams) SetTimeout

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

SetTimeout adds the timeout to the list org invoices params

func (*ListOrgInvoicesParams) WithContext

WithContext adds the context to the list org invoices params

func (*ListOrgInvoicesParams) WithHTTPClient

func (o *ListOrgInvoicesParams) WithHTTPClient(client *http.Client) *ListOrgInvoicesParams

WithHTTPClient adds the HTTPClient to the list org invoices params

func (*ListOrgInvoicesParams) WithOrgname

func (o *ListOrgInvoicesParams) WithOrgname(orgname string) *ListOrgInvoicesParams

WithOrgname adds the orgname to the list org invoices params

func (*ListOrgInvoicesParams) WithTimeout

func (o *ListOrgInvoicesParams) WithTimeout(timeout time.Duration) *ListOrgInvoicesParams

WithTimeout adds the timeout to the list org invoices params

func (*ListOrgInvoicesParams) WriteToRequest

func (o *ListOrgInvoicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListOrgInvoicesReader

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

ListOrgInvoicesReader is a Reader for the ListOrgInvoices structure.

func (*ListOrgInvoicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListOrgInvoicesUnauthorized

type ListOrgInvoicesUnauthorized struct {
	Payload *models.APIError
}

ListOrgInvoicesUnauthorized handles this case with default header values.

Session required

func NewListOrgInvoicesUnauthorized

func NewListOrgInvoicesUnauthorized() *ListOrgInvoicesUnauthorized

NewListOrgInvoicesUnauthorized creates a ListOrgInvoicesUnauthorized with default headers values

func (*ListOrgInvoicesUnauthorized) Error

func (*ListOrgInvoicesUnauthorized) GetPayload

func (o *ListOrgInvoicesUnauthorized) GetPayload() *models.APIError

type ListPlansBadRequest

type ListPlansBadRequest struct {
	Payload *models.APIError
}

ListPlansBadRequest handles this case with default header values.

Bad Request

func NewListPlansBadRequest

func NewListPlansBadRequest() *ListPlansBadRequest

NewListPlansBadRequest creates a ListPlansBadRequest with default headers values

func (*ListPlansBadRequest) Error

func (o *ListPlansBadRequest) Error() string

func (*ListPlansBadRequest) GetPayload

func (o *ListPlansBadRequest) GetPayload() *models.APIError

type ListPlansForbidden

type ListPlansForbidden struct {
	Payload *models.APIError
}

ListPlansForbidden handles this case with default header values.

Unauthorized access

func NewListPlansForbidden

func NewListPlansForbidden() *ListPlansForbidden

NewListPlansForbidden creates a ListPlansForbidden with default headers values

func (*ListPlansForbidden) Error

func (o *ListPlansForbidden) Error() string

func (*ListPlansForbidden) GetPayload

func (o *ListPlansForbidden) GetPayload() *models.APIError

type ListPlansNotFound

type ListPlansNotFound struct {
	Payload *models.APIError
}

ListPlansNotFound handles this case with default header values.

Not found

func NewListPlansNotFound

func NewListPlansNotFound() *ListPlansNotFound

NewListPlansNotFound creates a ListPlansNotFound with default headers values

func (*ListPlansNotFound) Error

func (o *ListPlansNotFound) Error() string

func (*ListPlansNotFound) GetPayload

func (o *ListPlansNotFound) GetPayload() *models.APIError

type ListPlansOK

type ListPlansOK struct {
}

ListPlansOK handles this case with default header values.

Successful invocation

func NewListPlansOK

func NewListPlansOK() *ListPlansOK

NewListPlansOK creates a ListPlansOK with default headers values

func (*ListPlansOK) Error

func (o *ListPlansOK) Error() string

type ListPlansParams

type ListPlansParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListPlansParams contains all the parameters to send to the API endpoint for the list plans operation typically these are written to a http.Request

func NewListPlansParams

func NewListPlansParams() *ListPlansParams

NewListPlansParams creates a new ListPlansParams object with the default values initialized.

func NewListPlansParamsWithContext

func NewListPlansParamsWithContext(ctx context.Context) *ListPlansParams

NewListPlansParamsWithContext creates a new ListPlansParams object with the default values initialized, and the ability to set a context for a request

func NewListPlansParamsWithHTTPClient

func NewListPlansParamsWithHTTPClient(client *http.Client) *ListPlansParams

NewListPlansParamsWithHTTPClient creates a new ListPlansParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListPlansParamsWithTimeout

func NewListPlansParamsWithTimeout(timeout time.Duration) *ListPlansParams

NewListPlansParamsWithTimeout creates a new ListPlansParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListPlansParams) SetContext

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

SetContext adds the context to the list plans params

func (*ListPlansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list plans params

func (*ListPlansParams) SetTimeout

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

SetTimeout adds the timeout to the list plans params

func (*ListPlansParams) WithContext

func (o *ListPlansParams) WithContext(ctx context.Context) *ListPlansParams

WithContext adds the context to the list plans params

func (*ListPlansParams) WithHTTPClient

func (o *ListPlansParams) WithHTTPClient(client *http.Client) *ListPlansParams

WithHTTPClient adds the HTTPClient to the list plans params

func (*ListPlansParams) WithTimeout

func (o *ListPlansParams) WithTimeout(timeout time.Duration) *ListPlansParams

WithTimeout adds the timeout to the list plans params

func (*ListPlansParams) WriteToRequest

func (o *ListPlansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListPlansReader

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

ListPlansReader is a Reader for the ListPlans structure.

func (*ListPlansReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPlansUnauthorized

type ListPlansUnauthorized struct {
	Payload *models.APIError
}

ListPlansUnauthorized handles this case with default header values.

Session required

func NewListPlansUnauthorized

func NewListPlansUnauthorized() *ListPlansUnauthorized

NewListPlansUnauthorized creates a ListPlansUnauthorized with default headers values

func (*ListPlansUnauthorized) Error

func (o *ListPlansUnauthorized) Error() string

func (*ListPlansUnauthorized) GetPayload

func (o *ListPlansUnauthorized) GetPayload() *models.APIError

Jump to

Keyboard shortcuts

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