billing

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) GETPositionsForOrganization

GETPositionsForOrganization Gets billing positions for a given organization

func (*Client) GETSumForOrganization

GETSumForOrganization Gets billing amount of services for a given organization

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GETPositionsForOrganizationAccepted

type GETPositionsForOrganizationAccepted struct {
}

GETPositionsForOrganizationAccepted handles this case with default header values.

Accepted

func NewGETPositionsForOrganizationAccepted

func NewGETPositionsForOrganizationAccepted() *GETPositionsForOrganizationAccepted

NewGETPositionsForOrganizationAccepted creates a GETPositionsForOrganizationAccepted with default headers values

func (*GETPositionsForOrganizationAccepted) Error

type GETPositionsForOrganizationForbidden

type GETPositionsForOrganizationForbidden struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationForbidden handles this case with default header values.

Forbidden

func NewGETPositionsForOrganizationForbidden

func NewGETPositionsForOrganizationForbidden() *GETPositionsForOrganizationForbidden

NewGETPositionsForOrganizationForbidden creates a GETPositionsForOrganizationForbidden with default headers values

func (*GETPositionsForOrganizationForbidden) Error

type GETPositionsForOrganizationInternalServerError

type GETPositionsForOrganizationInternalServerError struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationInternalServerError handles this case with default header values.

Internal Server Error

func NewGETPositionsForOrganizationInternalServerError

func NewGETPositionsForOrganizationInternalServerError() *GETPositionsForOrganizationInternalServerError

NewGETPositionsForOrganizationInternalServerError creates a GETPositionsForOrganizationInternalServerError with default headers values

func (*GETPositionsForOrganizationInternalServerError) Error

type GETPositionsForOrganizationMethodNotAllowed

type GETPositionsForOrganizationMethodNotAllowed struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationMethodNotAllowed handles this case with default header values.

Method not allowed

func NewGETPositionsForOrganizationMethodNotAllowed

func NewGETPositionsForOrganizationMethodNotAllowed() *GETPositionsForOrganizationMethodNotAllowed

NewGETPositionsForOrganizationMethodNotAllowed creates a GETPositionsForOrganizationMethodNotAllowed with default headers values

func (*GETPositionsForOrganizationMethodNotAllowed) Error

type GETPositionsForOrganizationNotAcceptable

type GETPositionsForOrganizationNotAcceptable struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationNotAcceptable handles this case with default header values.

Not Acceptable

func NewGETPositionsForOrganizationNotAcceptable

func NewGETPositionsForOrganizationNotAcceptable() *GETPositionsForOrganizationNotAcceptable

NewGETPositionsForOrganizationNotAcceptable creates a GETPositionsForOrganizationNotAcceptable with default headers values

func (*GETPositionsForOrganizationNotAcceptable) Error

type GETPositionsForOrganizationNotFound

type GETPositionsForOrganizationNotFound struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationNotFound handles this case with default header values.

Not Found

func NewGETPositionsForOrganizationNotFound

func NewGETPositionsForOrganizationNotFound() *GETPositionsForOrganizationNotFound

NewGETPositionsForOrganizationNotFound creates a GETPositionsForOrganizationNotFound with default headers values

func (*GETPositionsForOrganizationNotFound) Error

type GETPositionsForOrganizationOK

type GETPositionsForOrganizationOK struct {
	Payload []*api_models.BillingPosition
}

GETPositionsForOrganizationOK handles this case with default header values.

OK

func NewGETPositionsForOrganizationOK

func NewGETPositionsForOrganizationOK() *GETPositionsForOrganizationOK

NewGETPositionsForOrganizationOK creates a GETPositionsForOrganizationOK with default headers values

func (*GETPositionsForOrganizationOK) Error

type GETPositionsForOrganizationParams

type GETPositionsForOrganizationParams struct {

	/*FromDate
	  Billing start date

	*/
	FromDate *strfmt.DateTime
	/*OrganizationID
	  The organization to compute the billing information for

	*/
	OrganizationID string
	/*ToDate
	  Billing end date

	*/
	ToDate *strfmt.DateTime

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

GETPositionsForOrganizationParams contains all the parameters to send to the API endpoint for the get positions for organization operation typically these are written to a http.Request

func NewGETPositionsForOrganizationParams

func NewGETPositionsForOrganizationParams() *GETPositionsForOrganizationParams

NewGETPositionsForOrganizationParams creates a new GETPositionsForOrganizationParams object with the default values initialized.

func NewGETPositionsForOrganizationParamsWithContext

func NewGETPositionsForOrganizationParamsWithContext(ctx context.Context) *GETPositionsForOrganizationParams

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

func NewGETPositionsForOrganizationParamsWithHTTPClient

func NewGETPositionsForOrganizationParamsWithHTTPClient(client *http.Client) *GETPositionsForOrganizationParams

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

func NewGETPositionsForOrganizationParamsWithTimeout

func NewGETPositionsForOrganizationParamsWithTimeout(timeout time.Duration) *GETPositionsForOrganizationParams

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

func (*GETPositionsForOrganizationParams) SetContext

SetContext adds the context to the get positions for organization params

func (*GETPositionsForOrganizationParams) SetFromDate

func (o *GETPositionsForOrganizationParams) SetFromDate(fromDate *strfmt.DateTime)

SetFromDate adds the fromDate to the get positions for organization params

func (*GETPositionsForOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get positions for organization params

func (*GETPositionsForOrganizationParams) SetOrganizationID

func (o *GETPositionsForOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get positions for organization params

func (*GETPositionsForOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the get positions for organization params

func (*GETPositionsForOrganizationParams) SetToDate

func (o *GETPositionsForOrganizationParams) SetToDate(toDate *strfmt.DateTime)

SetToDate adds the toDate to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithContext

WithContext adds the context to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithFromDate

WithFromDate adds the fromDate to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithTimeout

WithTimeout adds the timeout to the get positions for organization params

func (*GETPositionsForOrganizationParams) WithToDate

WithToDate adds the toDate to the get positions for organization params

func (*GETPositionsForOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GETPositionsForOrganizationReader

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

GETPositionsForOrganizationReader is a Reader for the GETPositionsForOrganization structure.

func (*GETPositionsForOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GETPositionsForOrganizationUnauthorized

type GETPositionsForOrganizationUnauthorized struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationUnauthorized handles this case with default header values.

Unauthorized

func NewGETPositionsForOrganizationUnauthorized

func NewGETPositionsForOrganizationUnauthorized() *GETPositionsForOrganizationUnauthorized

NewGETPositionsForOrganizationUnauthorized creates a GETPositionsForOrganizationUnauthorized with default headers values

func (*GETPositionsForOrganizationUnauthorized) Error

type GETPositionsForOrganizationUnsupportedMediaType

type GETPositionsForOrganizationUnsupportedMediaType struct {
	Payload *api_models.APIError
}

GETPositionsForOrganizationUnsupportedMediaType handles this case with default header values.

Unsupported Media Type

func NewGETPositionsForOrganizationUnsupportedMediaType

func NewGETPositionsForOrganizationUnsupportedMediaType() *GETPositionsForOrganizationUnsupportedMediaType

NewGETPositionsForOrganizationUnsupportedMediaType creates a GETPositionsForOrganizationUnsupportedMediaType with default headers values

func (*GETPositionsForOrganizationUnsupportedMediaType) Error

type GETSumForOrganizationAccepted

type GETSumForOrganizationAccepted struct {
}

GETSumForOrganizationAccepted handles this case with default header values.

Accepted

func NewGETSumForOrganizationAccepted

func NewGETSumForOrganizationAccepted() *GETSumForOrganizationAccepted

NewGETSumForOrganizationAccepted creates a GETSumForOrganizationAccepted with default headers values

func (*GETSumForOrganizationAccepted) Error

type GETSumForOrganizationForbidden

type GETSumForOrganizationForbidden struct {
	Payload *api_models.APIError
}

GETSumForOrganizationForbidden handles this case with default header values.

Forbidden

func NewGETSumForOrganizationForbidden

func NewGETSumForOrganizationForbidden() *GETSumForOrganizationForbidden

NewGETSumForOrganizationForbidden creates a GETSumForOrganizationForbidden with default headers values

func (*GETSumForOrganizationForbidden) Error

type GETSumForOrganizationInternalServerError

type GETSumForOrganizationInternalServerError struct {
	Payload *api_models.APIError
}

GETSumForOrganizationInternalServerError handles this case with default header values.

Internal Server Error

func NewGETSumForOrganizationInternalServerError

func NewGETSumForOrganizationInternalServerError() *GETSumForOrganizationInternalServerError

NewGETSumForOrganizationInternalServerError creates a GETSumForOrganizationInternalServerError with default headers values

func (*GETSumForOrganizationInternalServerError) Error

type GETSumForOrganizationMethodNotAllowed

type GETSumForOrganizationMethodNotAllowed struct {
	Payload *api_models.APIError
}

GETSumForOrganizationMethodNotAllowed handles this case with default header values.

Method not allowed

func NewGETSumForOrganizationMethodNotAllowed

func NewGETSumForOrganizationMethodNotAllowed() *GETSumForOrganizationMethodNotAllowed

NewGETSumForOrganizationMethodNotAllowed creates a GETSumForOrganizationMethodNotAllowed with default headers values

func (*GETSumForOrganizationMethodNotAllowed) Error

type GETSumForOrganizationNotAcceptable

type GETSumForOrganizationNotAcceptable struct {
	Payload *api_models.APIError
}

GETSumForOrganizationNotAcceptable handles this case with default header values.

Not Acceptable

func NewGETSumForOrganizationNotAcceptable

func NewGETSumForOrganizationNotAcceptable() *GETSumForOrganizationNotAcceptable

NewGETSumForOrganizationNotAcceptable creates a GETSumForOrganizationNotAcceptable with default headers values

func (*GETSumForOrganizationNotAcceptable) Error

type GETSumForOrganizationNotFound

type GETSumForOrganizationNotFound struct {
	Payload *api_models.APIError
}

GETSumForOrganizationNotFound handles this case with default header values.

Not Found

func NewGETSumForOrganizationNotFound

func NewGETSumForOrganizationNotFound() *GETSumForOrganizationNotFound

NewGETSumForOrganizationNotFound creates a GETSumForOrganizationNotFound with default headers values

func (*GETSumForOrganizationNotFound) Error

type GETSumForOrganizationOK

type GETSumForOrganizationOK struct {
	Payload *api_models.ServiceCosts
}

GETSumForOrganizationOK handles this case with default header values.

OK

func NewGETSumForOrganizationOK

func NewGETSumForOrganizationOK() *GETSumForOrganizationOK

NewGETSumForOrganizationOK creates a GETSumForOrganizationOK with default headers values

func (*GETSumForOrganizationOK) Error

func (o *GETSumForOrganizationOK) Error() string

type GETSumForOrganizationParams

type GETSumForOrganizationParams struct {

	/*FromDate
	  Billing start date

	*/
	FromDate *strfmt.DateTime
	/*OrganizationID
	  The organization to compute the billing information for

	*/
	OrganizationID string
	/*ToDate
	  Billing end date

	*/
	ToDate *strfmt.DateTime

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

GETSumForOrganizationParams contains all the parameters to send to the API endpoint for the get sum for organization operation typically these are written to a http.Request

func NewGETSumForOrganizationParams

func NewGETSumForOrganizationParams() *GETSumForOrganizationParams

NewGETSumForOrganizationParams creates a new GETSumForOrganizationParams object with the default values initialized.

func NewGETSumForOrganizationParamsWithContext

func NewGETSumForOrganizationParamsWithContext(ctx context.Context) *GETSumForOrganizationParams

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

func NewGETSumForOrganizationParamsWithHTTPClient

func NewGETSumForOrganizationParamsWithHTTPClient(client *http.Client) *GETSumForOrganizationParams

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

func NewGETSumForOrganizationParamsWithTimeout

func NewGETSumForOrganizationParamsWithTimeout(timeout time.Duration) *GETSumForOrganizationParams

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

func (*GETSumForOrganizationParams) SetContext

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

SetContext adds the context to the get sum for organization params

func (*GETSumForOrganizationParams) SetFromDate

func (o *GETSumForOrganizationParams) SetFromDate(fromDate *strfmt.DateTime)

SetFromDate adds the fromDate to the get sum for organization params

func (*GETSumForOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sum for organization params

func (*GETSumForOrganizationParams) SetOrganizationID

func (o *GETSumForOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get sum for organization params

func (*GETSumForOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the get sum for organization params

func (*GETSumForOrganizationParams) SetToDate

func (o *GETSumForOrganizationParams) SetToDate(toDate *strfmt.DateTime)

SetToDate adds the toDate to the get sum for organization params

func (*GETSumForOrganizationParams) WithContext

WithContext adds the context to the get sum for organization params

func (*GETSumForOrganizationParams) WithFromDate

WithFromDate adds the fromDate to the get sum for organization params

func (*GETSumForOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get sum for organization params

func (*GETSumForOrganizationParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the get sum for organization params

func (*GETSumForOrganizationParams) WithTimeout

WithTimeout adds the timeout to the get sum for organization params

func (*GETSumForOrganizationParams) WithToDate

WithToDate adds the toDate to the get sum for organization params

func (*GETSumForOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GETSumForOrganizationReader

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

GETSumForOrganizationReader is a Reader for the GETSumForOrganization structure.

func (*GETSumForOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GETSumForOrganizationUnauthorized

type GETSumForOrganizationUnauthorized struct {
	Payload *api_models.APIError
}

GETSumForOrganizationUnauthorized handles this case with default header values.

Unauthorized

func NewGETSumForOrganizationUnauthorized

func NewGETSumForOrganizationUnauthorized() *GETSumForOrganizationUnauthorized

NewGETSumForOrganizationUnauthorized creates a GETSumForOrganizationUnauthorized with default headers values

func (*GETSumForOrganizationUnauthorized) Error

type GETSumForOrganizationUnsupportedMediaType

type GETSumForOrganizationUnsupportedMediaType struct {
	Payload *api_models.APIError
}

GETSumForOrganizationUnsupportedMediaType handles this case with default header values.

Unsupported Media Type

func NewGETSumForOrganizationUnsupportedMediaType

func NewGETSumForOrganizationUnsupportedMediaType() *GETSumForOrganizationUnsupportedMediaType

NewGETSumForOrganizationUnsupportedMediaType creates a GETSumForOrganizationUnsupportedMediaType with default headers values

func (*GETSumForOrganizationUnsupportedMediaType) Error

Jump to

Keyboard shortcuts

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