billing

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 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 New

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

New creates a new billing API client.

func (*Client) GetBillingOrgID

func (a *Client) GetBillingOrgID(params *GetBillingOrgIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetBillingOrgIDOK, error)

GetBillingOrgID gets the pricing plan for an org

Returns the current pricing plan

func (*Client) PostBillingOrgID

func (a *Client) PostBillingOrgID(params *PostBillingOrgIDParams, authInfo runtime.ClientAuthInfoWriter) (*PostBillingOrgIDOK, error)

PostBillingOrgID updates the pricing plan for an org

Returns 200 on successful pricing plan update

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetBillingOrgIDBadRequest

type GetBillingOrgIDBadRequest struct {
}

GetBillingOrgIDBadRequest handles this case with default header values.

Unable to process request

func NewGetBillingOrgIDBadRequest

func NewGetBillingOrgIDBadRequest() *GetBillingOrgIDBadRequest

NewGetBillingOrgIDBadRequest creates a GetBillingOrgIDBadRequest with default headers values

func (*GetBillingOrgIDBadRequest) Error

func (o *GetBillingOrgIDBadRequest) Error() string

type GetBillingOrgIDInternalServerError

type GetBillingOrgIDInternalServerError struct {
}

GetBillingOrgIDInternalServerError handles this case with default header values.

Internal server error

func NewGetBillingOrgIDInternalServerError

func NewGetBillingOrgIDInternalServerError() *GetBillingOrgIDInternalServerError

NewGetBillingOrgIDInternalServerError creates a GetBillingOrgIDInternalServerError with default headers values

func (*GetBillingOrgIDInternalServerError) Error

type GetBillingOrgIDOK

type GetBillingOrgIDOK struct {
	Payload *models.PricingPlan
}

GetBillingOrgIDOK handles this case with default header values.

Update successful

func NewGetBillingOrgIDOK

func NewGetBillingOrgIDOK() *GetBillingOrgIDOK

NewGetBillingOrgIDOK creates a GetBillingOrgIDOK with default headers values

func (*GetBillingOrgIDOK) Error

func (o *GetBillingOrgIDOK) Error() string

type GetBillingOrgIDParams

type GetBillingOrgIDParams struct {

	/*OrgID*/
	OrgID string

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

GetBillingOrgIDParams contains all the parameters to send to the API endpoint for the get billing org ID operation typically these are written to a http.Request

func NewGetBillingOrgIDParams

func NewGetBillingOrgIDParams() *GetBillingOrgIDParams

NewGetBillingOrgIDParams creates a new GetBillingOrgIDParams object with the default values initialized.

func NewGetBillingOrgIDParamsWithContext

func NewGetBillingOrgIDParamsWithContext(ctx context.Context) *GetBillingOrgIDParams

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

func NewGetBillingOrgIDParamsWithHTTPClient

func NewGetBillingOrgIDParamsWithHTTPClient(client *http.Client) *GetBillingOrgIDParams

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

func NewGetBillingOrgIDParamsWithTimeout

func NewGetBillingOrgIDParamsWithTimeout(timeout time.Duration) *GetBillingOrgIDParams

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

func (*GetBillingOrgIDParams) SetContext

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

SetContext adds the context to the get billing org ID params

func (*GetBillingOrgIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get billing org ID params

func (*GetBillingOrgIDParams) SetOrgID

func (o *GetBillingOrgIDParams) SetOrgID(orgID string)

SetOrgID adds the orgId to the get billing org ID params

func (*GetBillingOrgIDParams) SetTimeout

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

SetTimeout adds the timeout to the get billing org ID params

func (*GetBillingOrgIDParams) WithContext

WithContext adds the context to the get billing org ID params

func (*GetBillingOrgIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get billing org ID params

func (*GetBillingOrgIDParams) WithOrgID

func (o *GetBillingOrgIDParams) WithOrgID(orgID string) *GetBillingOrgIDParams

WithOrgID adds the orgID to the get billing org ID params

func (*GetBillingOrgIDParams) WithTimeout

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

WithTimeout adds the timeout to the get billing org ID params

func (*GetBillingOrgIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBillingOrgIDReader

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

GetBillingOrgIDReader is a Reader for the GetBillingOrgID structure.

func (*GetBillingOrgIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBillingOrgIDUnauthorized

type GetBillingOrgIDUnauthorized struct {
}

GetBillingOrgIDUnauthorized handles this case with default header values.

Unauthorized request

func NewGetBillingOrgIDUnauthorized

func NewGetBillingOrgIDUnauthorized() *GetBillingOrgIDUnauthorized

NewGetBillingOrgIDUnauthorized creates a GetBillingOrgIDUnauthorized with default headers values

func (*GetBillingOrgIDUnauthorized) Error

type PostBillingOrgIDBadRequest

type PostBillingOrgIDBadRequest struct {
}

PostBillingOrgIDBadRequest handles this case with default header values.

Unable to process request

func NewPostBillingOrgIDBadRequest

func NewPostBillingOrgIDBadRequest() *PostBillingOrgIDBadRequest

NewPostBillingOrgIDBadRequest creates a PostBillingOrgIDBadRequest with default headers values

func (*PostBillingOrgIDBadRequest) Error

type PostBillingOrgIDInternalServerError

type PostBillingOrgIDInternalServerError struct {
}

PostBillingOrgIDInternalServerError handles this case with default header values.

Internal server error

func NewPostBillingOrgIDInternalServerError

func NewPostBillingOrgIDInternalServerError() *PostBillingOrgIDInternalServerError

NewPostBillingOrgIDInternalServerError creates a PostBillingOrgIDInternalServerError with default headers values

func (*PostBillingOrgIDInternalServerError) Error

type PostBillingOrgIDOK

type PostBillingOrgIDOK struct {
}

PostBillingOrgIDOK handles this case with default header values.

Update successful

func NewPostBillingOrgIDOK

func NewPostBillingOrgIDOK() *PostBillingOrgIDOK

NewPostBillingOrgIDOK creates a PostBillingOrgIDOK with default headers values

func (*PostBillingOrgIDOK) Error

func (o *PostBillingOrgIDOK) Error() string

type PostBillingOrgIDParams

type PostBillingOrgIDParams struct {

	/*NewPlan*/
	NewPlan *models.PricingPlan
	/*OrgID*/
	OrgID string

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

PostBillingOrgIDParams contains all the parameters to send to the API endpoint for the post billing org ID operation typically these are written to a http.Request

func NewPostBillingOrgIDParams

func NewPostBillingOrgIDParams() *PostBillingOrgIDParams

NewPostBillingOrgIDParams creates a new PostBillingOrgIDParams object with the default values initialized.

func NewPostBillingOrgIDParamsWithContext

func NewPostBillingOrgIDParamsWithContext(ctx context.Context) *PostBillingOrgIDParams

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

func NewPostBillingOrgIDParamsWithHTTPClient

func NewPostBillingOrgIDParamsWithHTTPClient(client *http.Client) *PostBillingOrgIDParams

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

func NewPostBillingOrgIDParamsWithTimeout

func NewPostBillingOrgIDParamsWithTimeout(timeout time.Duration) *PostBillingOrgIDParams

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

func (*PostBillingOrgIDParams) SetContext

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

SetContext adds the context to the post billing org ID params

func (*PostBillingOrgIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post billing org ID params

func (*PostBillingOrgIDParams) SetNewPlan

func (o *PostBillingOrgIDParams) SetNewPlan(newPlan *models.PricingPlan)

SetNewPlan adds the newPlan to the post billing org ID params

func (*PostBillingOrgIDParams) SetOrgID

func (o *PostBillingOrgIDParams) SetOrgID(orgID string)

SetOrgID adds the orgId to the post billing org ID params

func (*PostBillingOrgIDParams) SetTimeout

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

SetTimeout adds the timeout to the post billing org ID params

func (*PostBillingOrgIDParams) WithContext

WithContext adds the context to the post billing org ID params

func (*PostBillingOrgIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post billing org ID params

func (*PostBillingOrgIDParams) WithNewPlan

WithNewPlan adds the newPlan to the post billing org ID params

func (*PostBillingOrgIDParams) WithOrgID

WithOrgID adds the orgID to the post billing org ID params

func (*PostBillingOrgIDParams) WithTimeout

WithTimeout adds the timeout to the post billing org ID params

func (*PostBillingOrgIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostBillingOrgIDReader

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

PostBillingOrgIDReader is a Reader for the PostBillingOrgID structure.

func (*PostBillingOrgIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostBillingOrgIDUnauthorized

type PostBillingOrgIDUnauthorized struct {
}

PostBillingOrgIDUnauthorized handles this case with default header values.

Unauthorized request

func NewPostBillingOrgIDUnauthorized

func NewPostBillingOrgIDUnauthorized() *PostBillingOrgIDUnauthorized

NewPostBillingOrgIDUnauthorized creates a PostBillingOrgIDUnauthorized with default headers values

func (*PostBillingOrgIDUnauthorized) Error

Jump to

Keyboard shortcuts

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