Versions in this module Expand all Collapse all v3 v3.1.0 Mar 12, 2023 v3.0.0 Mar 10, 2023 Changes in this version + type Client struct + func New(transport runtime.ClientTransport, formats strfmt.Registry, ...) *Client + func (a *Client) GetAllUsage(ctx context.Context, params *GetAllUsageParams) (*GetAllUsageOK, error) + func (a *Client) GetUsage(ctx context.Context, params *GetUsageParams) (*GetUsageOK, error) + func (a *Client) RecordUsage(ctx context.Context, params *RecordUsageParams) (*RecordUsageOK, error) + func (a *Client) SetTransport(transport runtime.ClientTransport) + type ClientOption func(*runtime.ClientOperation) + type ClientService interface + GetAllUsage func(ctx context.Context, params *GetAllUsageParams) (*GetAllUsageOK, error) + GetUsage func(ctx context.Context, params *GetUsageParams) (*GetUsageOK, error) + RecordUsage func(ctx context.Context, params *RecordUsageParams) (*RecordUsageOK, error) + SetTransport func(transport runtime.ClientTransport) + type GetAllUsageBadRequest struct + HttpResponse runtime.ClientResponse + func NewGetAllUsageBadRequest() *GetAllUsageBadRequest + func (o *GetAllUsageBadRequest) Code() int + func (o *GetAllUsageBadRequest) Error() string + func (o *GetAllUsageBadRequest) IsClientError() bool + func (o *GetAllUsageBadRequest) IsCode(code int) bool + func (o *GetAllUsageBadRequest) IsRedirect() bool + func (o *GetAllUsageBadRequest) IsServerError() bool + func (o *GetAllUsageBadRequest) IsSuccess() bool + func (o *GetAllUsageBadRequest) String() string + type GetAllUsageOK struct + HttpResponse runtime.ClientResponse + Payload *kbmodel.RolledUpUsage + func NewGetAllUsageOK() *GetAllUsageOK + func (o *GetAllUsageOK) Code() int + func (o *GetAllUsageOK) Error() string + func (o *GetAllUsageOK) GetPayload() *kbmodel.RolledUpUsage + func (o *GetAllUsageOK) IsClientError() bool + func (o *GetAllUsageOK) IsCode(code int) bool + func (o *GetAllUsageOK) IsRedirect() bool + func (o *GetAllUsageOK) IsServerError() bool + func (o *GetAllUsageOK) IsSuccess() bool + func (o *GetAllUsageOK) String() string + type GetAllUsageParams struct + Context context.Context + EndDate *strfmt.Date + HTTPClient *http.Client + PluginProperty []string + ProcessLocationHeader bool + StartDate *strfmt.Date + SubscriptionID strfmt.UUID + WithProfilingInfo *string + WithStackTrace *bool + func NewGetAllUsageParams() *GetAllUsageParams + func NewGetAllUsageParamsWithContext(ctx context.Context) *GetAllUsageParams + func NewGetAllUsageParamsWithHTTPClient(client *http.Client) *GetAllUsageParams + func NewGetAllUsageParamsWithTimeout(timeout time.Duration) *GetAllUsageParams + func (o *GetAllUsageParams) SetContext(ctx context.Context) + func (o *GetAllUsageParams) SetDefaults() + func (o *GetAllUsageParams) SetEndDate(endDate *strfmt.Date) + func (o *GetAllUsageParams) SetHTTPClient(client *http.Client) + func (o *GetAllUsageParams) SetPluginProperty(pluginProperty []string) + func (o *GetAllUsageParams) SetStartDate(startDate *strfmt.Date) + func (o *GetAllUsageParams) SetSubscriptionID(subscriptionID strfmt.UUID) + func (o *GetAllUsageParams) SetTimeout(timeout time.Duration) + func (o *GetAllUsageParams) WithContext(ctx context.Context) *GetAllUsageParams + func (o *GetAllUsageParams) WithDefaults() *GetAllUsageParams + func (o *GetAllUsageParams) WithEndDate(endDate *strfmt.Date) *GetAllUsageParams + func (o *GetAllUsageParams) WithHTTPClient(client *http.Client) *GetAllUsageParams + func (o *GetAllUsageParams) WithPluginProperty(pluginProperty []string) *GetAllUsageParams + func (o *GetAllUsageParams) WithStartDate(startDate *strfmt.Date) *GetAllUsageParams + func (o *GetAllUsageParams) WithSubscriptionID(subscriptionID strfmt.UUID) *GetAllUsageParams + func (o *GetAllUsageParams) WithTimeout(timeout time.Duration) *GetAllUsageParams + func (o *GetAllUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type GetAllUsageReader struct + func (o *GetAllUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type GetUsageBadRequest struct + HttpResponse runtime.ClientResponse + func NewGetUsageBadRequest() *GetUsageBadRequest + func (o *GetUsageBadRequest) Code() int + func (o *GetUsageBadRequest) Error() string + func (o *GetUsageBadRequest) IsClientError() bool + func (o *GetUsageBadRequest) IsCode(code int) bool + func (o *GetUsageBadRequest) IsRedirect() bool + func (o *GetUsageBadRequest) IsServerError() bool + func (o *GetUsageBadRequest) IsSuccess() bool + func (o *GetUsageBadRequest) String() string + type GetUsageOK struct + HttpResponse runtime.ClientResponse + Payload *kbmodel.RolledUpUsage + func NewGetUsageOK() *GetUsageOK + func (o *GetUsageOK) Code() int + func (o *GetUsageOK) Error() string + func (o *GetUsageOK) GetPayload() *kbmodel.RolledUpUsage + func (o *GetUsageOK) IsClientError() bool + func (o *GetUsageOK) IsCode(code int) bool + func (o *GetUsageOK) IsRedirect() bool + func (o *GetUsageOK) IsServerError() bool + func (o *GetUsageOK) IsSuccess() bool + func (o *GetUsageOK) String() string + type GetUsageParams struct + Context context.Context + EndDate *strfmt.Date + HTTPClient *http.Client + PluginProperty []string + ProcessLocationHeader bool + StartDate *strfmt.Date + SubscriptionID strfmt.UUID + UnitType string + WithProfilingInfo *string + WithStackTrace *bool + func NewGetUsageParams() *GetUsageParams + func NewGetUsageParamsWithContext(ctx context.Context) *GetUsageParams + func NewGetUsageParamsWithHTTPClient(client *http.Client) *GetUsageParams + func NewGetUsageParamsWithTimeout(timeout time.Duration) *GetUsageParams + func (o *GetUsageParams) SetContext(ctx context.Context) + func (o *GetUsageParams) SetDefaults() + func (o *GetUsageParams) SetEndDate(endDate *strfmt.Date) + func (o *GetUsageParams) SetHTTPClient(client *http.Client) + func (o *GetUsageParams) SetPluginProperty(pluginProperty []string) + func (o *GetUsageParams) SetStartDate(startDate *strfmt.Date) + func (o *GetUsageParams) SetSubscriptionID(subscriptionID strfmt.UUID) + func (o *GetUsageParams) SetTimeout(timeout time.Duration) + func (o *GetUsageParams) SetUnitType(unitType string) + func (o *GetUsageParams) WithContext(ctx context.Context) *GetUsageParams + func (o *GetUsageParams) WithDefaults() *GetUsageParams + func (o *GetUsageParams) WithEndDate(endDate *strfmt.Date) *GetUsageParams + func (o *GetUsageParams) WithHTTPClient(client *http.Client) *GetUsageParams + func (o *GetUsageParams) WithPluginProperty(pluginProperty []string) *GetUsageParams + func (o *GetUsageParams) WithStartDate(startDate *strfmt.Date) *GetUsageParams + func (o *GetUsageParams) WithSubscriptionID(subscriptionID strfmt.UUID) *GetUsageParams + func (o *GetUsageParams) WithTimeout(timeout time.Duration) *GetUsageParams + func (o *GetUsageParams) WithUnitType(unitType string) *GetUsageParams + func (o *GetUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type GetUsageReader struct + func (o *GetUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type KillbillDefaults interface + KillbillWithProfilingInfo func() *string + KillbillWithStackTrace func() *bool + XKillbillComment func() *string + XKillbillCreatedBy func() *string + XKillbillReason func() *string + type RecordUsageBadRequest struct + HttpResponse runtime.ClientResponse + func NewRecordUsageBadRequest() *RecordUsageBadRequest + func (o *RecordUsageBadRequest) Code() int + func (o *RecordUsageBadRequest) Error() string + func (o *RecordUsageBadRequest) IsClientError() bool + func (o *RecordUsageBadRequest) IsCode(code int) bool + func (o *RecordUsageBadRequest) IsRedirect() bool + func (o *RecordUsageBadRequest) IsServerError() bool + func (o *RecordUsageBadRequest) IsSuccess() bool + func (o *RecordUsageBadRequest) String() string + type RecordUsageOK struct + HttpResponse runtime.ClientResponse + func NewRecordUsageOK() *RecordUsageOK + func (o *RecordUsageOK) Code() int + func (o *RecordUsageOK) Error() string + func (o *RecordUsageOK) IsClientError() bool + func (o *RecordUsageOK) IsCode(code int) bool + func (o *RecordUsageOK) IsRedirect() bool + func (o *RecordUsageOK) IsServerError() bool + func (o *RecordUsageOK) IsSuccess() bool + func (o *RecordUsageOK) String() string + type RecordUsageParams struct + Body *kbmodel.SubscriptionUsageRecord + Context context.Context + HTTPClient *http.Client + ProcessLocationHeader bool + WithProfilingInfo *string + WithStackTrace *bool + XKillbillComment *string + XKillbillCreatedBy string + XKillbillReason *string + func NewRecordUsageParams() *RecordUsageParams + func NewRecordUsageParamsWithContext(ctx context.Context) *RecordUsageParams + func NewRecordUsageParamsWithHTTPClient(client *http.Client) *RecordUsageParams + func NewRecordUsageParamsWithTimeout(timeout time.Duration) *RecordUsageParams + func (o *RecordUsageParams) SetBody(body *kbmodel.SubscriptionUsageRecord) + func (o *RecordUsageParams) SetContext(ctx context.Context) + func (o *RecordUsageParams) SetDefaults() + func (o *RecordUsageParams) SetHTTPClient(client *http.Client) + func (o *RecordUsageParams) SetTimeout(timeout time.Duration) + func (o *RecordUsageParams) SetXKillbillComment(xKillbillComment *string) + func (o *RecordUsageParams) SetXKillbillCreatedBy(xKillbillCreatedBy string) + func (o *RecordUsageParams) SetXKillbillReason(xKillbillReason *string) + func (o *RecordUsageParams) WithBody(body *kbmodel.SubscriptionUsageRecord) *RecordUsageParams + func (o *RecordUsageParams) WithContext(ctx context.Context) *RecordUsageParams + func (o *RecordUsageParams) WithDefaults() *RecordUsageParams + func (o *RecordUsageParams) WithHTTPClient(client *http.Client) *RecordUsageParams + func (o *RecordUsageParams) WithTimeout(timeout time.Duration) *RecordUsageParams + func (o *RecordUsageParams) WithXKillbillComment(xKillbillComment *string) *RecordUsageParams + func (o *RecordUsageParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *RecordUsageParams + func (o *RecordUsageParams) WithXKillbillReason(xKillbillReason *string) *RecordUsageParams + func (o *RecordUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type RecordUsageReader struct + func (o *RecordUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) Other modules containing this package github.com/killbill/kbcli github.com/killbill/kbcli/v2