pricingapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package pricingapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Package pricingapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerScopes = "Bearer.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateMeteringUnitRequest

func NewCreateMeteringUnitRequest(server string, body CreateMeteringUnitJSONRequestBody) (*http.Request, error)

NewCreateMeteringUnitRequest calls the generic CreateMeteringUnit builder with application/json body

func NewCreateMeteringUnitRequestWithBody

func NewCreateMeteringUnitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateMeteringUnitRequestWithBody generates requests for CreateMeteringUnit with any type of body

func NewCreatePricingMenuRequest

func NewCreatePricingMenuRequest(server string, body CreatePricingMenuJSONRequestBody) (*http.Request, error)

NewCreatePricingMenuRequest calls the generic CreatePricingMenu builder with application/json body

func NewCreatePricingMenuRequestWithBody

func NewCreatePricingMenuRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePricingMenuRequestWithBody generates requests for CreatePricingMenu with any type of body

func NewCreatePricingPlanRequest

func NewCreatePricingPlanRequest(server string, body CreatePricingPlanJSONRequestBody) (*http.Request, error)

NewCreatePricingPlanRequest calls the generic CreatePricingPlan builder with application/json body

func NewCreatePricingPlanRequestWithBody

func NewCreatePricingPlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePricingPlanRequestWithBody generates requests for CreatePricingPlan with any type of body

func NewCreatePricingUnitRequest

func NewCreatePricingUnitRequest(server string, body CreatePricingUnitJSONRequestBody) (*http.Request, error)

NewCreatePricingUnitRequest calls the generic CreatePricingUnit builder with application/json body

func NewCreatePricingUnitRequestWithBody

func NewCreatePricingUnitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePricingUnitRequestWithBody generates requests for CreatePricingUnit with any type of body

func NewCreateTaxRateRequest

func NewCreateTaxRateRequest(server string, body CreateTaxRateJSONRequestBody) (*http.Request, error)

NewCreateTaxRateRequest calls the generic CreateTaxRate builder with application/json body

func NewCreateTaxRateRequestWithBody

func NewCreateTaxRateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTaxRateRequestWithBody generates requests for CreateTaxRate with any type of body

func NewDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesRequest

func NewDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesRequest(server string) (*http.Request, error)

NewDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesRequest generates requests for DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates

func NewDeleteMeteringUnitByIDRequest

func NewDeleteMeteringUnitByIDRequest(server string, meteringUnitId MeteringUnitId) (*http.Request, error)

NewDeleteMeteringUnitByIDRequest generates requests for DeleteMeteringUnitByID

func NewDeleteMeteringUnitTimestampCountRequest

func NewDeleteMeteringUnitTimestampCountRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp) (*http.Request, error)

NewDeleteMeteringUnitTimestampCountRequest generates requests for DeleteMeteringUnitTimestampCount

func NewDeletePricingMenuRequest

func NewDeletePricingMenuRequest(server string, menuId MenuId) (*http.Request, error)

NewDeletePricingMenuRequest generates requests for DeletePricingMenu

func NewDeletePricingPlanRequest

func NewDeletePricingPlanRequest(server string, planId PlanId) (*http.Request, error)

NewDeletePricingPlanRequest generates requests for DeletePricingPlan

func NewDeletePricingUnitRequest

func NewDeletePricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)

NewDeletePricingUnitRequest generates requests for DeletePricingUnit

func NewDeleteStripePlanRequest

func NewDeleteStripePlanRequest(server string) (*http.Request, error)

NewDeleteStripePlanRequest generates requests for DeleteStripePlan

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodRequest

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, params *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams) (*http.Request, error)

NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodRequest generates requests for GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateRequest

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString) (*http.Request, error)

NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateRequest generates requests for GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameTodayRequest

func NewGetMeteringUnitDateCountByTenantIdAndUnitNameTodayRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName) (*http.Request, error)

NewGetMeteringUnitDateCountByTenantIdAndUnitNameTodayRequest generates requests for GetMeteringUnitDateCountByTenantIdAndUnitNameToday

func NewGetMeteringUnitDateCountsByTenantIdAndDateRequest

func NewGetMeteringUnitDateCountsByTenantIdAndDateRequest(server string, tenantId TenantId, date DateString) (*http.Request, error)

NewGetMeteringUnitDateCountsByTenantIdAndDateRequest generates requests for GetMeteringUnitDateCountsByTenantIdAndDate

func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthRequest

func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, month MonthString) (*http.Request, error)

NewGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthRequest generates requests for GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth

func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthRequest

func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName) (*http.Request, error)

NewGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthRequest generates requests for GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth

func NewGetMeteringUnitMonthCountsByTenantIdAndMonthRequest

func NewGetMeteringUnitMonthCountsByTenantIdAndMonthRequest(server string, tenantId TenantId, month MonthString) (*http.Request, error)

NewGetMeteringUnitMonthCountsByTenantIdAndMonthRequest generates requests for GetMeteringUnitMonthCountsByTenantIdAndMonth

func NewGetMeteringUnitsRequest

func NewGetMeteringUnitsRequest(server string) (*http.Request, error)

NewGetMeteringUnitsRequest generates requests for GetMeteringUnits

func NewGetPricingMenuRequest

func NewGetPricingMenuRequest(server string, menuId MenuId) (*http.Request, error)

NewGetPricingMenuRequest generates requests for GetPricingMenu

func NewGetPricingMenusRequest

func NewGetPricingMenusRequest(server string) (*http.Request, error)

NewGetPricingMenusRequest generates requests for GetPricingMenus

func NewGetPricingPlanRequest

func NewGetPricingPlanRequest(server string, planId PlanId) (*http.Request, error)

NewGetPricingPlanRequest generates requests for GetPricingPlan

func NewGetPricingPlansRequest

func NewGetPricingPlansRequest(server string) (*http.Request, error)

NewGetPricingPlansRequest generates requests for GetPricingPlans

func NewGetPricingUnitRequest

func NewGetPricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)

NewGetPricingUnitRequest generates requests for GetPricingUnit

func NewGetPricingUnitsRequest

func NewGetPricingUnitsRequest(server string) (*http.Request, error)

NewGetPricingUnitsRequest generates requests for GetPricingUnits

func NewGetTaxRatesRequest

func NewGetTaxRatesRequest(server string) (*http.Request, error)

NewGetTaxRatesRequest generates requests for GetTaxRates

func NewLinkPlanToStripeRequest

func NewLinkPlanToStripeRequest(server string) (*http.Request, error)

NewLinkPlanToStripeRequest generates requests for LinkPlanToStripe

func NewReturnInternalServerErrorRequest

func NewReturnInternalServerErrorRequest(server string) (*http.Request, error)

NewReturnInternalServerErrorRequest generates requests for ReturnInternalServerError

func NewUpdateMeteringUnitByIDRequest

func NewUpdateMeteringUnitByIDRequest(server string, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody) (*http.Request, error)

NewUpdateMeteringUnitByIDRequest calls the generic UpdateMeteringUnitByID builder with application/json body

func NewUpdateMeteringUnitByIDRequestWithBody

func NewUpdateMeteringUnitByIDRequestWithBody(server string, meteringUnitId MeteringUnitId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMeteringUnitByIDRequestWithBody generates requests for UpdateMeteringUnitByID with any type of body

func NewUpdateMeteringUnitTimestampCountNowRequest

func NewUpdateMeteringUnitTimestampCountNowRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, body UpdateMeteringUnitTimestampCountNowJSONRequestBody) (*http.Request, error)

NewUpdateMeteringUnitTimestampCountNowRequest calls the generic UpdateMeteringUnitTimestampCountNow builder with application/json body

func NewUpdateMeteringUnitTimestampCountNowRequestWithBody

func NewUpdateMeteringUnitTimestampCountNowRequestWithBody(server string, tenantId TenantId, meteringUnitName MeteringUnitName, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMeteringUnitTimestampCountNowRequestWithBody generates requests for UpdateMeteringUnitTimestampCountNow with any type of body

func NewUpdateMeteringUnitTimestampCountRequest

func NewUpdateMeteringUnitTimestampCountRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, body UpdateMeteringUnitTimestampCountJSONRequestBody) (*http.Request, error)

NewUpdateMeteringUnitTimestampCountRequest calls the generic UpdateMeteringUnitTimestampCount builder with application/json body

func NewUpdateMeteringUnitTimestampCountRequestWithBody

func NewUpdateMeteringUnitTimestampCountRequestWithBody(server string, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMeteringUnitTimestampCountRequestWithBody generates requests for UpdateMeteringUnitTimestampCount with any type of body

func NewUpdatePricingMenuRequest

func NewUpdatePricingMenuRequest(server string, menuId MenuId, body UpdatePricingMenuJSONRequestBody) (*http.Request, error)

NewUpdatePricingMenuRequest calls the generic UpdatePricingMenu builder with application/json body

func NewUpdatePricingMenuRequestWithBody

func NewUpdatePricingMenuRequestWithBody(server string, menuId MenuId, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePricingMenuRequestWithBody generates requests for UpdatePricingMenu with any type of body

func NewUpdatePricingPlanRequest

func NewUpdatePricingPlanRequest(server string, planId PlanId, body UpdatePricingPlanJSONRequestBody) (*http.Request, error)

NewUpdatePricingPlanRequest calls the generic UpdatePricingPlan builder with application/json body

func NewUpdatePricingPlanRequestWithBody

func NewUpdatePricingPlanRequestWithBody(server string, planId PlanId, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePricingPlanRequestWithBody generates requests for UpdatePricingPlan with any type of body

func NewUpdatePricingPlansUsedRequest

func NewUpdatePricingPlansUsedRequest(server string, body UpdatePricingPlansUsedJSONRequestBody) (*http.Request, error)

NewUpdatePricingPlansUsedRequest calls the generic UpdatePricingPlansUsed builder with application/json body

func NewUpdatePricingPlansUsedRequestWithBody

func NewUpdatePricingPlansUsedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePricingPlansUsedRequestWithBody generates requests for UpdatePricingPlansUsed with any type of body

func NewUpdatePricingUnitRequest

func NewUpdatePricingUnitRequest(server string, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody) (*http.Request, error)

NewUpdatePricingUnitRequest calls the generic UpdatePricingUnit builder with application/json body

func NewUpdatePricingUnitRequestWithBody

func NewUpdatePricingUnitRequestWithBody(server string, pricingUnitId PricingUnitId, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePricingUnitRequestWithBody generates requests for UpdatePricingUnit with any type of body

func NewUpdateTaxRateRequest

func NewUpdateTaxRateRequest(server string, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody) (*http.Request, error)

NewUpdateTaxRateRequest calls the generic UpdateTaxRate builder with application/json body

func NewUpdateTaxRateRequestWithBody

func NewUpdateTaxRateRequestWithBody(server string, taxRateId TaxRateId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTaxRateRequestWithBody generates requests for UpdateTaxRate with any type of body

Types

type AggregateUsage

type AggregateUsage string

AggregateUsage Aggregate usage sum: Total usage during the period max: Maximum usage during the period

const (
	Max AggregateUsage = "max"
	Sum AggregateUsage = "sum"
)

Defines values for AggregateUsage.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateMeteringUnit

func (c *Client) CreateMeteringUnit(ctx context.Context, body CreateMeteringUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMeteringUnitWithBody

func (c *Client) CreateMeteringUnitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingMenu

func (c *Client) CreatePricingMenu(ctx context.Context, body CreatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingMenuWithBody

func (c *Client) CreatePricingMenuWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingPlan

func (c *Client) CreatePricingPlan(ctx context.Context, body CreatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingPlanWithBody

func (c *Client) CreatePricingPlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingUnit

func (c *Client) CreatePricingUnit(ctx context.Context, body CreatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePricingUnitWithBody

func (c *Client) CreatePricingUnitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTaxRate

func (c *Client) CreateTaxRate(ctx context.Context, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTaxRateWithBody

func (c *Client) CreateTaxRateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates

func (c *Client) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteMeteringUnitByID

func (c *Client) DeleteMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteMeteringUnitTimestampCount

func (c *Client) DeleteMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePricingMenu

func (c *Client) DeletePricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePricingPlan

func (c *Client) DeletePricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePricingUnit

func (c *Client) DeletePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStripePlan

func (c *Client) DeleteStripePlan(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate

func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod

func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, params *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitDateCountByTenantIdAndUnitNameToday

func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameToday(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitDateCountsByTenantIdAndDate

func (c *Client) GetMeteringUnitDateCountsByTenantIdAndDate(ctx context.Context, tenantId TenantId, date DateString, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth

func (c *Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, month MonthString, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth

func (c *Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnitMonthCountsByTenantIdAndMonth

func (c *Client) GetMeteringUnitMonthCountsByTenantIdAndMonth(ctx context.Context, tenantId TenantId, month MonthString, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMeteringUnits

func (c *Client) GetMeteringUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingMenu

func (c *Client) GetPricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingMenus

func (c *Client) GetPricingMenus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingPlan

func (c *Client) GetPricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingPlans

func (c *Client) GetPricingPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingUnit

func (c *Client) GetPricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPricingUnits

func (c *Client) GetPricingUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTaxRates

func (c *Client) GetTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LinkPlanToStripe

func (c *Client) LinkPlanToStripe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReturnInternalServerError

func (c *Client) ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitByID

func (c *Client) UpdateMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitByIDWithBody

func (c *Client) UpdateMeteringUnitByIDWithBody(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitTimestampCount

func (c *Client) UpdateMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, body UpdateMeteringUnitTimestampCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitTimestampCountNow

func (c *Client) UpdateMeteringUnitTimestampCountNow(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, body UpdateMeteringUnitTimestampCountNowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitTimestampCountNowWithBody

func (c *Client) UpdateMeteringUnitTimestampCountNowWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMeteringUnitTimestampCountWithBody

func (c *Client) UpdateMeteringUnitTimestampCountWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingMenu

func (c *Client) UpdatePricingMenu(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingMenuWithBody

func (c *Client) UpdatePricingMenuWithBody(ctx context.Context, menuId MenuId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingPlan

func (c *Client) UpdatePricingPlan(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingPlanWithBody

func (c *Client) UpdatePricingPlanWithBody(ctx context.Context, planId PlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingPlansUsed

func (c *Client) UpdatePricingPlansUsed(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingPlansUsedWithBody

func (c *Client) UpdatePricingPlansUsedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingUnit

func (c *Client) UpdatePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePricingUnitWithBody

func (c *Client) UpdatePricingUnitWithBody(ctx context.Context, pricingUnitId PricingUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTaxRate

func (c *Client) UpdateTaxRate(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTaxRateWithBody

func (c *Client) UpdateTaxRateWithBody(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ReturnInternalServerError request
	ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingMenus request
	GetPricingMenus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePricingMenu request with any body
	CreatePricingMenuWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePricingMenu(ctx context.Context, body CreatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePricingMenu request
	DeletePricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingMenu request
	GetPricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePricingMenu request with any body
	UpdatePricingMenuWithBody(ctx context.Context, menuId MenuId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePricingMenu(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitDateCountsByTenantIdAndDate request
	GetMeteringUnitDateCountsByTenantIdAndDate(ctx context.Context, tenantId TenantId, date DateString, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitMonthCountsByTenantIdAndMonth request
	GetMeteringUnitMonthCountsByTenantIdAndMonth(ctx context.Context, tenantId TenantId, month MonthString, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod request
	GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, params *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate request
	GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth request
	GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, month MonthString, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMeteringUnitTimestampCountNow request with any body
	UpdateMeteringUnitTimestampCountNowWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMeteringUnitTimestampCountNow(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, body UpdateMeteringUnitTimestampCountNowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth request
	GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMeteringUnitTimestampCount request
	DeleteMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMeteringUnitTimestampCount request with any body
	UpdateMeteringUnitTimestampCountWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, body UpdateMeteringUnitTimestampCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameToday request
	GetMeteringUnitDateCountByTenantIdAndUnitNameToday(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeteringUnits request
	GetMeteringUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMeteringUnit request with any body
	CreateMeteringUnitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateMeteringUnit(ctx context.Context, body CreateMeteringUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMeteringUnitByID request
	DeleteMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMeteringUnitByID request with any body
	UpdateMeteringUnitByIDWithBody(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingPlans request
	GetPricingPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePricingPlan request with any body
	CreatePricingPlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePricingPlan(ctx context.Context, body CreatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates request
	DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePricingPlansUsed request with any body
	UpdatePricingPlansUsedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePricingPlansUsed(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePricingPlan request
	DeletePricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingPlan request
	GetPricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePricingPlan request with any body
	UpdatePricingPlanWithBody(ctx context.Context, planId PlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePricingPlan(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStripePlan request
	DeleteStripePlan(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LinkPlanToStripe request
	LinkPlanToStripe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTaxRates request
	GetTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTaxRate request with any body
	CreateTaxRateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateTaxRate(ctx context.Context, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTaxRate request with any body
	UpdateTaxRateWithBody(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateTaxRate(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingUnits request
	GetPricingUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePricingUnit request with any body
	CreatePricingUnitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePricingUnit(ctx context.Context, body CreatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePricingUnit request
	DeletePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPricingUnit request
	GetPricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePricingUnit request with any body
	UpdatePricingUnitWithBody(ctx context.Context, pricingUnitId PricingUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateMeteringUnitWithBodyWithResponse

func (c *ClientWithResponses) CreateMeteringUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeteringUnitResponse, error)

CreateMeteringUnitWithBodyWithResponse request with arbitrary body returning *CreateMeteringUnitResponse

func (*ClientWithResponses) CreateMeteringUnitWithResponse

func (c *ClientWithResponses) CreateMeteringUnitWithResponse(ctx context.Context, body CreateMeteringUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeteringUnitResponse, error)

func (*ClientWithResponses) CreatePricingMenuWithBodyWithResponse

func (c *ClientWithResponses) CreatePricingMenuWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingMenuResponse, error)

CreatePricingMenuWithBodyWithResponse request with arbitrary body returning *CreatePricingMenuResponse

func (*ClientWithResponses) CreatePricingMenuWithResponse

func (c *ClientWithResponses) CreatePricingMenuWithResponse(ctx context.Context, body CreatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingMenuResponse, error)

func (*ClientWithResponses) CreatePricingPlanWithBodyWithResponse

func (c *ClientWithResponses) CreatePricingPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingPlanResponse, error)

CreatePricingPlanWithBodyWithResponse request with arbitrary body returning *CreatePricingPlanResponse

func (*ClientWithResponses) CreatePricingPlanWithResponse

func (c *ClientWithResponses) CreatePricingPlanWithResponse(ctx context.Context, body CreatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingPlanResponse, error)

func (*ClientWithResponses) CreatePricingUnitWithBodyWithResponse

func (c *ClientWithResponses) CreatePricingUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingUnitResponse, error)

CreatePricingUnitWithBodyWithResponse request with arbitrary body returning *CreatePricingUnitResponse

func (*ClientWithResponses) CreatePricingUnitWithResponse

func (c *ClientWithResponses) CreatePricingUnitWithResponse(ctx context.Context, body CreatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingUnitResponse, error)

func (*ClientWithResponses) CreateTaxRateWithBodyWithResponse

func (c *ClientWithResponses) CreateTaxRateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)

CreateTaxRateWithBodyWithResponse request with arbitrary body returning *CreateTaxRateResponse

func (*ClientWithResponses) CreateTaxRateWithResponse

func (c *ClientWithResponses) CreateTaxRateWithResponse(ctx context.Context, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)

func (*ClientWithResponses) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse

func (c *ClientWithResponses) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse, error)

DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse request returning *DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse

func (*ClientWithResponses) DeleteMeteringUnitByIDWithResponse

func (c *ClientWithResponses) DeleteMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, reqEditors ...RequestEditorFn) (*DeleteMeteringUnitByIDResponse, error)

DeleteMeteringUnitByIDWithResponse request returning *DeleteMeteringUnitByIDResponse

func (*ClientWithResponses) DeleteMeteringUnitTimestampCountWithResponse

func (c *ClientWithResponses) DeleteMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, reqEditors ...RequestEditorFn) (*DeleteMeteringUnitTimestampCountResponse, error)

DeleteMeteringUnitTimestampCountWithResponse request returning *DeleteMeteringUnitTimestampCountResponse

func (*ClientWithResponses) DeletePricingMenuWithResponse

func (c *ClientWithResponses) DeletePricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*DeletePricingMenuResponse, error)

DeletePricingMenuWithResponse request returning *DeletePricingMenuResponse

func (*ClientWithResponses) DeletePricingPlanWithResponse

func (c *ClientWithResponses) DeletePricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*DeletePricingPlanResponse, error)

DeletePricingPlanWithResponse request returning *DeletePricingPlanResponse

func (*ClientWithResponses) DeletePricingUnitWithResponse

func (c *ClientWithResponses) DeletePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*DeletePricingUnitResponse, error)

DeletePricingUnitWithResponse request returning *DeletePricingUnitResponse

func (*ClientWithResponses) DeleteStripePlanWithResponse

func (c *ClientWithResponses) DeleteStripePlanWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteStripePlanResponse, error)

DeleteStripePlanWithResponse request returning *DeleteStripePlanResponse

func (*ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse

func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, params *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse, error)

GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse request returning *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse

func (*ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse

func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse, error)

GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse request returning *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse

func (*ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse

func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse, error)

GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse request returning *GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse

func (*ClientWithResponses) GetMeteringUnitDateCountsByTenantIdAndDateWithResponse

func (c *ClientWithResponses) GetMeteringUnitDateCountsByTenantIdAndDateWithResponse(ctx context.Context, tenantId TenantId, date DateString, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountsByTenantIdAndDateResponse, error)

GetMeteringUnitDateCountsByTenantIdAndDateWithResponse request returning *GetMeteringUnitDateCountsByTenantIdAndDateResponse

func (*ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse

func (c *ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, month MonthString, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse, error)

GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse request returning *GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse

func (*ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse

func (c *ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse, error)

GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse request returning *GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse

func (*ClientWithResponses) GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse

func (c *ClientWithResponses) GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse(ctx context.Context, tenantId TenantId, month MonthString, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountsByTenantIdAndMonthResponse, error)

GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse request returning *GetMeteringUnitMonthCountsByTenantIdAndMonthResponse

func (*ClientWithResponses) GetMeteringUnitsWithResponse

func (c *ClientWithResponses) GetMeteringUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeteringUnitsResponse, error)

GetMeteringUnitsWithResponse request returning *GetMeteringUnitsResponse

func (*ClientWithResponses) GetPricingMenuWithResponse

func (c *ClientWithResponses) GetPricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*GetPricingMenuResponse, error)

GetPricingMenuWithResponse request returning *GetPricingMenuResponse

func (*ClientWithResponses) GetPricingMenusWithResponse

func (c *ClientWithResponses) GetPricingMenusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingMenusResponse, error)

GetPricingMenusWithResponse request returning *GetPricingMenusResponse

func (*ClientWithResponses) GetPricingPlanWithResponse

func (c *ClientWithResponses) GetPricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*GetPricingPlanResponse, error)

GetPricingPlanWithResponse request returning *GetPricingPlanResponse

func (*ClientWithResponses) GetPricingPlansWithResponse

func (c *ClientWithResponses) GetPricingPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingPlansResponse, error)

GetPricingPlansWithResponse request returning *GetPricingPlansResponse

func (*ClientWithResponses) GetPricingUnitWithResponse

func (c *ClientWithResponses) GetPricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*GetPricingUnitResponse, error)

GetPricingUnitWithResponse request returning *GetPricingUnitResponse

func (*ClientWithResponses) GetPricingUnitsWithResponse

func (c *ClientWithResponses) GetPricingUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingUnitsResponse, error)

GetPricingUnitsWithResponse request returning *GetPricingUnitsResponse

func (*ClientWithResponses) GetTaxRatesWithResponse

func (c *ClientWithResponses) GetTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTaxRatesResponse, error)

GetTaxRatesWithResponse request returning *GetTaxRatesResponse

func (*ClientWithResponses) LinkPlanToStripeWithResponse

func (c *ClientWithResponses) LinkPlanToStripeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinkPlanToStripeResponse, error)

LinkPlanToStripeWithResponse request returning *LinkPlanToStripeResponse

func (*ClientWithResponses) ReturnInternalServerErrorWithResponse

func (c *ClientWithResponses) ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)

ReturnInternalServerErrorWithResponse request returning *ReturnInternalServerErrorResponse

func (*ClientWithResponses) UpdateMeteringUnitByIDWithBodyWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitByIDWithBodyWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitByIDResponse, error)

UpdateMeteringUnitByIDWithBodyWithResponse request with arbitrary body returning *UpdateMeteringUnitByIDResponse

func (*ClientWithResponses) UpdateMeteringUnitByIDWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitByIDResponse, error)

func (*ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithBodyWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountNowResponse, error)

UpdateMeteringUnitTimestampCountNowWithBodyWithResponse request with arbitrary body returning *UpdateMeteringUnitTimestampCountNowResponse

func (*ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, body UpdateMeteringUnitTimestampCountNowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountNowResponse, error)

func (*ClientWithResponses) UpdateMeteringUnitTimestampCountWithBodyWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountResponse, error)

UpdateMeteringUnitTimestampCountWithBodyWithResponse request with arbitrary body returning *UpdateMeteringUnitTimestampCountResponse

func (*ClientWithResponses) UpdateMeteringUnitTimestampCountWithResponse

func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, body UpdateMeteringUnitTimestampCountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountResponse, error)

func (*ClientWithResponses) UpdatePricingMenuWithBodyWithResponse

func (c *ClientWithResponses) UpdatePricingMenuWithBodyWithResponse(ctx context.Context, menuId MenuId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingMenuResponse, error)

UpdatePricingMenuWithBodyWithResponse request with arbitrary body returning *UpdatePricingMenuResponse

func (*ClientWithResponses) UpdatePricingMenuWithResponse

func (c *ClientWithResponses) UpdatePricingMenuWithResponse(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingMenuResponse, error)

func (*ClientWithResponses) UpdatePricingPlanWithBodyWithResponse

func (c *ClientWithResponses) UpdatePricingPlanWithBodyWithResponse(ctx context.Context, planId PlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingPlanResponse, error)

UpdatePricingPlanWithBodyWithResponse request with arbitrary body returning *UpdatePricingPlanResponse

func (*ClientWithResponses) UpdatePricingPlanWithResponse

func (c *ClientWithResponses) UpdatePricingPlanWithResponse(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingPlanResponse, error)

func (*ClientWithResponses) UpdatePricingPlansUsedWithBodyWithResponse

func (c *ClientWithResponses) UpdatePricingPlansUsedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingPlansUsedResponse, error)

UpdatePricingPlansUsedWithBodyWithResponse request with arbitrary body returning *UpdatePricingPlansUsedResponse

func (*ClientWithResponses) UpdatePricingPlansUsedWithResponse

func (c *ClientWithResponses) UpdatePricingPlansUsedWithResponse(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingPlansUsedResponse, error)

func (*ClientWithResponses) UpdatePricingUnitWithBodyWithResponse

func (c *ClientWithResponses) UpdatePricingUnitWithBodyWithResponse(ctx context.Context, pricingUnitId PricingUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingUnitResponse, error)

UpdatePricingUnitWithBodyWithResponse request with arbitrary body returning *UpdatePricingUnitResponse

func (*ClientWithResponses) UpdatePricingUnitWithResponse

func (c *ClientWithResponses) UpdatePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingUnitResponse, error)

func (*ClientWithResponses) UpdateTaxRateWithBodyWithResponse

func (c *ClientWithResponses) UpdateTaxRateWithBodyWithResponse(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)

UpdateTaxRateWithBodyWithResponse request with arbitrary body returning *UpdateTaxRateResponse

func (*ClientWithResponses) UpdateTaxRateWithResponse

func (c *ClientWithResponses) UpdateTaxRateWithResponse(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ReturnInternalServerError request
	ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)

	// GetPricingMenus request
	GetPricingMenusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingMenusResponse, error)

	// CreatePricingMenu request with any body
	CreatePricingMenuWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingMenuResponse, error)

	CreatePricingMenuWithResponse(ctx context.Context, body CreatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingMenuResponse, error)

	// DeletePricingMenu request
	DeletePricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*DeletePricingMenuResponse, error)

	// GetPricingMenu request
	GetPricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*GetPricingMenuResponse, error)

	// UpdatePricingMenu request with any body
	UpdatePricingMenuWithBodyWithResponse(ctx context.Context, menuId MenuId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingMenuResponse, error)

	UpdatePricingMenuWithResponse(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingMenuResponse, error)

	// GetMeteringUnitDateCountsByTenantIdAndDate request
	GetMeteringUnitDateCountsByTenantIdAndDateWithResponse(ctx context.Context, tenantId TenantId, date DateString, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountsByTenantIdAndDateResponse, error)

	// GetMeteringUnitMonthCountsByTenantIdAndMonth request
	GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse(ctx context.Context, tenantId TenantId, month MonthString, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountsByTenantIdAndMonthResponse, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod request
	GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, params *GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate request
	GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse, error)

	// GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth request
	GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, month MonthString, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse, error)

	// UpdateMeteringUnitTimestampCountNow request with any body
	UpdateMeteringUnitTimestampCountNowWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountNowResponse, error)

	UpdateMeteringUnitTimestampCountNowWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, body UpdateMeteringUnitTimestampCountNowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountNowResponse, error)

	// GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth request
	GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse, error)

	// DeleteMeteringUnitTimestampCount request
	DeleteMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, reqEditors ...RequestEditorFn) (*DeleteMeteringUnitTimestampCountResponse, error)

	// UpdateMeteringUnitTimestampCount request with any body
	UpdateMeteringUnitTimestampCountWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountResponse, error)

	UpdateMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, timestamp Timestamp, body UpdateMeteringUnitTimestampCountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitTimestampCountResponse, error)

	// GetMeteringUnitDateCountByTenantIdAndUnitNameToday request
	GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, reqEditors ...RequestEditorFn) (*GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse, error)

	// GetMeteringUnits request
	GetMeteringUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeteringUnitsResponse, error)

	// CreateMeteringUnit request with any body
	CreateMeteringUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMeteringUnitResponse, error)

	CreateMeteringUnitWithResponse(ctx context.Context, body CreateMeteringUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMeteringUnitResponse, error)

	// DeleteMeteringUnitByID request
	DeleteMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, reqEditors ...RequestEditorFn) (*DeleteMeteringUnitByIDResponse, error)

	// UpdateMeteringUnitByID request with any body
	UpdateMeteringUnitByIDWithBodyWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitByIDResponse, error)

	UpdateMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeteringUnitByIDResponse, error)

	// GetPricingPlans request
	GetPricingPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingPlansResponse, error)

	// CreatePricingPlan request with any body
	CreatePricingPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingPlanResponse, error)

	CreatePricingPlanWithResponse(ctx context.Context, body CreatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingPlanResponse, error)

	// DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates request
	DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse, error)

	// UpdatePricingPlansUsed request with any body
	UpdatePricingPlansUsedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingPlansUsedResponse, error)

	UpdatePricingPlansUsedWithResponse(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingPlansUsedResponse, error)

	// DeletePricingPlan request
	DeletePricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*DeletePricingPlanResponse, error)

	// GetPricingPlan request
	GetPricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*GetPricingPlanResponse, error)

	// UpdatePricingPlan request with any body
	UpdatePricingPlanWithBodyWithResponse(ctx context.Context, planId PlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingPlanResponse, error)

	UpdatePricingPlanWithResponse(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingPlanResponse, error)

	// DeleteStripePlan request
	DeleteStripePlanWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteStripePlanResponse, error)

	// LinkPlanToStripe request
	LinkPlanToStripeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinkPlanToStripeResponse, error)

	// GetTaxRates request
	GetTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTaxRatesResponse, error)

	// CreateTaxRate request with any body
	CreateTaxRateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)

	CreateTaxRateWithResponse(ctx context.Context, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)

	// UpdateTaxRate request with any body
	UpdateTaxRateWithBodyWithResponse(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)

	UpdateTaxRateWithResponse(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)

	// GetPricingUnits request
	GetPricingUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingUnitsResponse, error)

	// CreatePricingUnit request with any body
	CreatePricingUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingUnitResponse, error)

	CreatePricingUnitWithResponse(ctx context.Context, body CreatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingUnitResponse, error)

	// DeletePricingUnit request
	DeletePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*DeletePricingUnitResponse, error)

	// GetPricingUnit request
	GetPricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*GetPricingUnitResponse, error)

	// UpdatePricingUnit request with any body
	UpdatePricingUnitWithBodyWithResponse(ctx context.Context, pricingUnitId PricingUnitId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingUnitResponse, error)

	UpdatePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingUnitResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateMeteringUnitJSONRequestBody

type CreateMeteringUnitJSONRequestBody = CreateMeteringUnitParam

CreateMeteringUnitJSONRequestBody defines body for CreateMeteringUnit for application/json ContentType.

type CreateMeteringUnitParam

type CreateMeteringUnitParam = MeteringUnitProps

CreateMeteringUnitParam defines model for CreateMeteringUnitParam.

type CreateMeteringUnitResponse

type CreateMeteringUnitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *MeteringUnit
	JSON400      *Error
	JSON500      *Error
}

func ParseCreateMeteringUnitResponse

func ParseCreateMeteringUnitResponse(rsp *http.Response) (*CreateMeteringUnitResponse, error)

ParseCreateMeteringUnitResponse parses an HTTP response from a CreateMeteringUnitWithResponse call

func (CreateMeteringUnitResponse) Status

Status returns HTTPResponse.Status

func (CreateMeteringUnitResponse) StatusCode

func (r CreateMeteringUnitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePricingMenuJSONRequestBody

type CreatePricingMenuJSONRequestBody = CreatePricingMenuParam

CreatePricingMenuJSONRequestBody defines body for CreatePricingMenu for application/json ContentType.

type CreatePricingMenuParam

type CreatePricingMenuParam = SavePricingMenuParam

CreatePricingMenuParam defines model for CreatePricingMenuParam.

type CreatePricingMenuResponse

type CreatePricingMenuResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PricingMenu
	JSON500      *Error
}

func ParseCreatePricingMenuResponse

func ParseCreatePricingMenuResponse(rsp *http.Response) (*CreatePricingMenuResponse, error)

ParseCreatePricingMenuResponse parses an HTTP response from a CreatePricingMenuWithResponse call

func (CreatePricingMenuResponse) Status

func (r CreatePricingMenuResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePricingMenuResponse) StatusCode

func (r CreatePricingMenuResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePricingPlanJSONRequestBody

type CreatePricingPlanJSONRequestBody = CreatePricingPlanParam

CreatePricingPlanJSONRequestBody defines body for CreatePricingPlan for application/json ContentType.

type CreatePricingPlanParam

type CreatePricingPlanParam = SavePricingPlanParam

CreatePricingPlanParam defines model for CreatePricingPlanParam.

type CreatePricingPlanResponse

type CreatePricingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PricingPlan
	JSON500      *Error
}

func ParseCreatePricingPlanResponse

func ParseCreatePricingPlanResponse(rsp *http.Response) (*CreatePricingPlanResponse, error)

ParseCreatePricingPlanResponse parses an HTTP response from a CreatePricingPlanWithResponse call

func (CreatePricingPlanResponse) Status

func (r CreatePricingPlanResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePricingPlanResponse) StatusCode

func (r CreatePricingPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePricingUnitJSONRequestBody

type CreatePricingUnitJSONRequestBody = CreatePricingUnitParam

CreatePricingUnitJSONRequestBody defines body for CreatePricingUnit for application/json ContentType.

type CreatePricingUnitParam

type CreatePricingUnitParam = PricingUnitForSave

CreatePricingUnitParam defines model for CreatePricingUnitParam.

type CreatePricingUnitResponse

type CreatePricingUnitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PricingUnit
	JSON500      *Error
}

func ParseCreatePricingUnitResponse

func ParseCreatePricingUnitResponse(rsp *http.Response) (*CreatePricingUnitResponse, error)

ParseCreatePricingUnitResponse parses an HTTP response from a CreatePricingUnitWithResponse call

func (CreatePricingUnitResponse) Status

func (r CreatePricingUnitResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePricingUnitResponse) StatusCode

func (r CreatePricingUnitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTaxRateJSONRequestBody

type CreateTaxRateJSONRequestBody = CreateTaxRateParam

CreateTaxRateJSONRequestBody defines body for CreateTaxRate for application/json ContentType.

type CreateTaxRateParam

type CreateTaxRateParam = TaxRateProps

CreateTaxRateParam defines model for CreateTaxRateParam.

type CreateTaxRateResponse

type CreateTaxRateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *TaxRate
	JSON400      *Error
	JSON500      *Error
}

func ParseCreateTaxRateResponse

func ParseCreateTaxRateResponse(rsp *http.Response) (*CreateTaxRateResponse, error)

ParseCreateTaxRateResponse parses an HTTP response from a CreateTaxRateWithResponse call

func (CreateTaxRateResponse) Status

func (r CreateTaxRateResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTaxRateResponse) StatusCode

func (r CreateTaxRateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Currency

type Currency string

Currency Unit of currency

const (
	JPY Currency = "JPY"
	USD Currency = "USD"
)

Defines values for Currency.

type DateString

type DateString = string

DateString defines model for DateString.

type DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse

type DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse

func ParseDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse(rsp *http.Response) (*DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse, error)

ParseDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse parses an HTTP response from a DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse call

func (DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse) Status

Status returns HTTPResponse.Status

func (DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteMeteringUnitByIDResponse

type DeleteMeteringUnitByIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteMeteringUnitByIDResponse

func ParseDeleteMeteringUnitByIDResponse(rsp *http.Response) (*DeleteMeteringUnitByIDResponse, error)

ParseDeleteMeteringUnitByIDResponse parses an HTTP response from a DeleteMeteringUnitByIDWithResponse call

func (DeleteMeteringUnitByIDResponse) Status

Status returns HTTPResponse.Status

func (DeleteMeteringUnitByIDResponse) StatusCode

func (r DeleteMeteringUnitByIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMeteringUnitTimestampCountResponse

type DeleteMeteringUnitTimestampCountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseDeleteMeteringUnitTimestampCountResponse

func ParseDeleteMeteringUnitTimestampCountResponse(rsp *http.Response) (*DeleteMeteringUnitTimestampCountResponse, error)

ParseDeleteMeteringUnitTimestampCountResponse parses an HTTP response from a DeleteMeteringUnitTimestampCountWithResponse call

func (DeleteMeteringUnitTimestampCountResponse) Status

Status returns HTTPResponse.Status

func (DeleteMeteringUnitTimestampCountResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeletePricingMenuResponse

type DeletePricingMenuResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeletePricingMenuResponse

func ParseDeletePricingMenuResponse(rsp *http.Response) (*DeletePricingMenuResponse, error)

ParseDeletePricingMenuResponse parses an HTTP response from a DeletePricingMenuWithResponse call

func (DeletePricingMenuResponse) Status

func (r DeletePricingMenuResponse) Status() string

Status returns HTTPResponse.Status

func (DeletePricingMenuResponse) StatusCode

func (r DeletePricingMenuResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePricingPlanResponse

type DeletePricingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeletePricingPlanResponse

func ParseDeletePricingPlanResponse(rsp *http.Response) (*DeletePricingPlanResponse, error)

ParseDeletePricingPlanResponse parses an HTTP response from a DeletePricingPlanWithResponse call

func (DeletePricingPlanResponse) Status

func (r DeletePricingPlanResponse) Status() string

Status returns HTTPResponse.Status

func (DeletePricingPlanResponse) StatusCode

func (r DeletePricingPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePricingUnitResponse

type DeletePricingUnitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseDeletePricingUnitResponse

func ParseDeletePricingUnitResponse(rsp *http.Response) (*DeletePricingUnitResponse, error)

ParseDeletePricingUnitResponse parses an HTTP response from a DeletePricingUnitWithResponse call

func (DeletePricingUnitResponse) Status

func (r DeletePricingUnitResponse) Status() string

Status returns HTTPResponse.Status

func (DeletePricingUnitResponse) StatusCode

func (r DeletePricingUnitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteStripePlanResponse

type DeleteStripePlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseDeleteStripePlanResponse

func ParseDeleteStripePlanResponse(rsp *http.Response) (*DeleteStripePlanResponse, error)

ParseDeleteStripePlanResponse parses an HTTP response from a DeleteStripePlanWithResponse call

func (DeleteStripePlanResponse) Status

func (r DeleteStripePlanResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteStripePlanResponse) StatusCode

func (r DeleteStripePlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EndTimestamp

type EndTimestamp = int

EndTimestamp defines model for EndTimestamp.

type Error

type Error struct {
	// Message Error message
	Message string `json:"message"`

	// Type Error type
	Type string `json:"type"`
}

Error defines model for Error.

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams struct {
	// StartTimestamp Start Date-Time
	StartTimestamp *StartTimestamp `form:"start_timestamp,omitempty" json:"start_timestamp,omitempty"`

	// EndTimestamp End Date-Time
	EndTimestamp *EndTimestamp `form:"end_timestamp,omitempty" json:"end_timestamp,omitempty"`
}

GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams defines parameters for GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod.

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitDatePeriodCounts
	JSON500      *Error
}

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse(rsp *http.Response) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse, error)

ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse parses an HTTP response from a GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse call

func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse

type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitDateCount
	JSON500      *Error
}

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse(rsp *http.Response) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse, error)

ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse parses an HTTP response from a GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse call

func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse

type GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitDateCount
	JSON500      *Error
}

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse

func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse(rsp *http.Response) (*GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse, error)

ParseGetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse parses an HTTP response from a GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse call

func (GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitDateCountsByTenantIdAndDateResponse

type GetMeteringUnitDateCountsByTenantIdAndDateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitDateCounts
	JSON500      *Error
}

func ParseGetMeteringUnitDateCountsByTenantIdAndDateResponse

func ParseGetMeteringUnitDateCountsByTenantIdAndDateResponse(rsp *http.Response) (*GetMeteringUnitDateCountsByTenantIdAndDateResponse, error)

ParseGetMeteringUnitDateCountsByTenantIdAndDateResponse parses an HTTP response from a GetMeteringUnitDateCountsByTenantIdAndDateWithResponse call

func (GetMeteringUnitDateCountsByTenantIdAndDateResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitDateCountsByTenantIdAndDateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse

type GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitMonthCount
	JSON500      *Error
}

func ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse

func ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse(rsp *http.Response) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse, error)

ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse parses an HTTP response from a GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse call

func (GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse

type GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitMonthCount
	JSON500      *Error
}

func ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse

func ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse(rsp *http.Response) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse, error)

ParseGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse parses an HTTP response from a GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse call

func (GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitMonthCountsByTenantIdAndMonthResponse

type GetMeteringUnitMonthCountsByTenantIdAndMonthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitMonthCounts
	JSON500      *Error
}

func ParseGetMeteringUnitMonthCountsByTenantIdAndMonthResponse

func ParseGetMeteringUnitMonthCountsByTenantIdAndMonthResponse(rsp *http.Response) (*GetMeteringUnitMonthCountsByTenantIdAndMonthResponse, error)

ParseGetMeteringUnitMonthCountsByTenantIdAndMonthResponse parses an HTTP response from a GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse call

func (GetMeteringUnitMonthCountsByTenantIdAndMonthResponse) Status

Status returns HTTPResponse.Status

func (GetMeteringUnitMonthCountsByTenantIdAndMonthResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetMeteringUnitsResponse

type GetMeteringUnitsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnits
	JSON500      *Error
}

func ParseGetMeteringUnitsResponse

func ParseGetMeteringUnitsResponse(rsp *http.Response) (*GetMeteringUnitsResponse, error)

ParseGetMeteringUnitsResponse parses an HTTP response from a GetMeteringUnitsWithResponse call

func (GetMeteringUnitsResponse) Status

func (r GetMeteringUnitsResponse) Status() string

Status returns HTTPResponse.Status

func (GetMeteringUnitsResponse) StatusCode

func (r GetMeteringUnitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingMenuResponse

type GetPricingMenuResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingMenu
	JSON500      *Error
}

func ParseGetPricingMenuResponse

func ParseGetPricingMenuResponse(rsp *http.Response) (*GetPricingMenuResponse, error)

ParseGetPricingMenuResponse parses an HTTP response from a GetPricingMenuWithResponse call

func (GetPricingMenuResponse) Status

func (r GetPricingMenuResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingMenuResponse) StatusCode

func (r GetPricingMenuResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingMenusResponse

type GetPricingMenusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingMenus
	JSON500      *Error
}

func ParseGetPricingMenusResponse

func ParseGetPricingMenusResponse(rsp *http.Response) (*GetPricingMenusResponse, error)

ParseGetPricingMenusResponse parses an HTTP response from a GetPricingMenusWithResponse call

func (GetPricingMenusResponse) Status

func (r GetPricingMenusResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingMenusResponse) StatusCode

func (r GetPricingMenusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingPlanResponse

type GetPricingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingPlan
	JSON500      *Error
}

func ParseGetPricingPlanResponse

func ParseGetPricingPlanResponse(rsp *http.Response) (*GetPricingPlanResponse, error)

ParseGetPricingPlanResponse parses an HTTP response from a GetPricingPlanWithResponse call

func (GetPricingPlanResponse) Status

func (r GetPricingPlanResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingPlanResponse) StatusCode

func (r GetPricingPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingPlansResponse

type GetPricingPlansResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingPlans
	JSON500      *Error
}

func ParseGetPricingPlansResponse

func ParseGetPricingPlansResponse(rsp *http.Response) (*GetPricingPlansResponse, error)

ParseGetPricingPlansResponse parses an HTTP response from a GetPricingPlansWithResponse call

func (GetPricingPlansResponse) Status

func (r GetPricingPlansResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingPlansResponse) StatusCode

func (r GetPricingPlansResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingUnitResponse

type GetPricingUnitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingUnit
	JSON500      *Error
}

func ParseGetPricingUnitResponse

func ParseGetPricingUnitResponse(rsp *http.Response) (*GetPricingUnitResponse, error)

ParseGetPricingUnitResponse parses an HTTP response from a GetPricingUnitWithResponse call

func (GetPricingUnitResponse) Status

func (r GetPricingUnitResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingUnitResponse) StatusCode

func (r GetPricingUnitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPricingUnitsResponse

type GetPricingUnitsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PricingUnits
	JSON500      *Error
}

func ParseGetPricingUnitsResponse

func ParseGetPricingUnitsResponse(rsp *http.Response) (*GetPricingUnitsResponse, error)

ParseGetPricingUnitsResponse parses an HTTP response from a GetPricingUnitsWithResponse call

func (GetPricingUnitsResponse) Status

func (r GetPricingUnitsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPricingUnitsResponse) StatusCode

func (r GetPricingUnitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTaxRatesResponse

type GetTaxRatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TaxRates
	JSON500      *Error
}

func ParseGetTaxRatesResponse

func ParseGetTaxRatesResponse(rsp *http.Response) (*GetTaxRatesResponse, error)

ParseGetTaxRatesResponse parses an HTTP response from a GetTaxRatesWithResponse call

func (GetTaxRatesResponse) Status

func (r GetTaxRatesResponse) Status() string

Status returns HTTPResponse.Status

func (GetTaxRatesResponse) StatusCode

func (r GetTaxRatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type LinkPlanToStripeResponse

type LinkPlanToStripeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseLinkPlanToStripeResponse

func ParseLinkPlanToStripeResponse(rsp *http.Response) (*LinkPlanToStripeResponse, error)

ParseLinkPlanToStripeResponse parses an HTTP response from a LinkPlanToStripeWithResponse call

func (LinkPlanToStripeResponse) Status

func (r LinkPlanToStripeResponse) Status() string

Status returns HTTPResponse.Status

func (LinkPlanToStripeResponse) StatusCode

func (r LinkPlanToStripeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MenuId = Uuid

MenuId Universally Unique Identifier

type MeteringUnit

type MeteringUnit struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// UnitName Metering unit name
	UnitName string `json:"unit_name"`

	// Used Metering unit used settings
	Used bool `json:"used"`
}

MeteringUnit defines model for MeteringUnit.

type MeteringUnitCount

type MeteringUnitCount struct {
	// Count Count
	Count int `json:"count"`

	// Timestamp Timestamp
	Timestamp int `json:"timestamp"`
}

MeteringUnitCount defines model for MeteringUnitCount.

type MeteringUnitDateCount

type MeteringUnitDateCount struct {
	// Count Count
	Count int `json:"count"`

	// Date Date
	Date string `json:"date"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`
}

MeteringUnitDateCount defines model for MeteringUnitDateCount.

type MeteringUnitDateCounts

type MeteringUnitDateCounts struct {
	Counts []MeteringUnitDateCount `json:"counts"`
}

MeteringUnitDateCounts defines model for MeteringUnitDateCounts.

type MeteringUnitDatePeriodCounts

type MeteringUnitDatePeriodCounts struct {
	Counts []MeteringUnitCount `json:"counts"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`
}

MeteringUnitDatePeriodCounts defines model for MeteringUnitDatePeriodCounts.

type MeteringUnitId

type MeteringUnitId = string

MeteringUnitId defines model for MeteringUnitId.

type MeteringUnitMonthCount

type MeteringUnitMonthCount struct {
	// Count Count
	Count int `json:"count"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Month Month
	Month string `json:"month"`
}

MeteringUnitMonthCount defines model for MeteringUnitMonthCount.

type MeteringUnitMonthCounts

type MeteringUnitMonthCounts struct {
	Counts []MeteringUnitMonthCount `json:"counts"`
}

MeteringUnitMonthCounts defines model for MeteringUnitMonthCounts.

type MeteringUnitName

type MeteringUnitName = string

MeteringUnitName defines model for MeteringUnitName.

type MeteringUnitProps

type MeteringUnitProps struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display name
	DisplayName string `json:"display_name"`

	// UnitName Metering unit name
	UnitName string `json:"unit_name"`
}

MeteringUnitProps defines model for MeteringUnitProps.

type MeteringUnitTimestampCount

type MeteringUnitTimestampCount struct {
	// Count Count
	Count int `json:"count"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Timestamp Timestamp
	Timestamp int `json:"timestamp"`
}

MeteringUnitTimestampCount defines model for MeteringUnitTimestampCount.

type MeteringUnits

type MeteringUnits struct {
	Units []MeteringUnit `json:"units"`
}

MeteringUnits defines model for MeteringUnits.

type MonthString

type MonthString = string

MonthString defines model for MonthString.

type PlanId

type PlanId = Uuid

PlanId Universally Unique Identifier

type PricingFixedUnit

type PricingFixedUnit struct {
	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// Name Name
	Name string `json:"name"`

	// RecurringInterval Cycle
	// month: Monthly
	// year: Yearly
	RecurringInterval RecurringInterval `json:"recurring_interval"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UnitAmount Price
	UnitAmount uint64 `json:"unit_amount"`
	Used       bool   `json:"used"`
}

PricingFixedUnit defines model for PricingFixedUnit.

type PricingFixedUnitForSave

type PricingFixedUnitForSave struct {
	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Name Name
	Name string `json:"name"`

	// RecurringInterval Cycle
	// month: Monthly
	// year: Yearly
	RecurringInterval RecurringInterval `json:"recurring_interval"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UnitAmount Price
	UnitAmount uint64 `json:"unit_amount"`
}

PricingFixedUnitForSave defines model for PricingFixedUnitForSave.

type PricingMenu

type PricingMenu struct {
	// Description Menu description
	Description string `json:"description"`

	// DisplayName Menu display name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// Name Menu name
	Name  string        `json:"name"`
	Units []PricingUnit `json:"units"`

	// Used Menu used settings
	Used bool `json:"used"`
}

PricingMenu defines model for PricingMenu.

type PricingMenuProps

type PricingMenuProps struct {
	// Description Menu description
	Description string `json:"description"`

	// DisplayName Menu display name
	DisplayName string `json:"display_name"`

	// Name Menu name
	Name  string        `json:"name"`
	Units []PricingUnit `json:"units"`

	// Used Menu used settings
	Used bool `json:"used"`
}

PricingMenuProps defines model for PricingMenuProps.

type PricingMenus

type PricingMenus struct {
	PricingMenus []PricingMenu `json:"pricing_menus"`
}

PricingMenus defines model for PricingMenus.

type PricingPlan

type PricingPlan struct {
	// Description Pricing plan description
	Description string `json:"description"`

	// DisplayName Pricing plan display name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// Name Pricing plan name
	Name         string        `json:"name"`
	PricingMenus []PricingMenu `json:"pricing_menus"`

	// Used Pricing plan used settings
	Used bool `json:"used"`
}

PricingPlan defines model for PricingPlan.

type PricingPlanProps

type PricingPlanProps struct {
	// Description Pricing plan description
	Description string `json:"description"`

	// DisplayName Pricing plan display name
	DisplayName string `json:"display_name"`

	// Name Pricing plan name
	Name         string        `json:"name"`
	PricingMenus []PricingMenu `json:"pricing_menus"`

	// Used Pricing plan used settings
	Used bool `json:"used"`
}

PricingPlanProps defines model for PricingPlanProps.

type PricingPlans

type PricingPlans struct {
	PricingPlans []PricingPlan `json:"pricing_plans"`
}

PricingPlans defines model for PricingPlans.

type PricingTier

type PricingTier struct {
	// FlatAmount Fixed amount
	FlatAmount uint64 `json:"flat_amount"`

	// Inf Indefinite
	Inf bool `json:"inf"`

	// UnitAmount Amount per unit
	UnitAmount uint64 `json:"unit_amount"`

	// UpTo Upper limit
	UpTo uint64 `json:"up_to"`
}

PricingTier defines model for PricingTier.

type PricingTieredUnit

type PricingTieredUnit struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// MeteringUnitId Universally Unique Identifier
	MeteringUnitId Uuid `json:"metering_unit_id"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name string `json:"name"`

	// RecurringInterval Cycle
	// month: Monthly
	// year: Yearly
	RecurringInterval RecurringInterval `json:"recurring_interval"`
	Tiers             []PricingTier     `json:"tiers"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`

	// Used Indicates if the unit is used
	Used bool `json:"used"`
}

PricingTieredUnit defines model for PricingTieredUnit.

type PricingTieredUnitForSave

type PricingTieredUnitForSave struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name  string        `json:"name"`
	Tiers []PricingTier `json:"tiers"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`
}

PricingTieredUnitForSave defines model for PricingTieredUnitForSave.

type PricingTieredUsageUnit

type PricingTieredUsageUnit struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// MeteringUnitId Universally Unique Identifier
	MeteringUnitId Uuid `json:"metering_unit_id"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name string `json:"name"`

	// RecurringInterval Cycle
	// month: Monthly
	// year: Yearly
	RecurringInterval RecurringInterval `json:"recurring_interval"`
	Tiers             []PricingTier     `json:"tiers"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`

	// Used Indicates if the unit is used
	Used bool `json:"used"`
}

PricingTieredUsageUnit defines model for PricingTieredUsageUnit.

type PricingTieredUsageUnitForSave

type PricingTieredUsageUnitForSave struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name  string        `json:"name"`
	Tiers []PricingTier `json:"tiers"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`
}

PricingTieredUsageUnitForSave defines model for PricingTieredUsageUnitForSave.

type PricingTiers

type PricingTiers struct {
	Tiers []PricingTier `json:"tiers"`
}

PricingTiers defines model for PricingTiers.

type PricingUnit

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

PricingUnit defines model for PricingUnit.

func (PricingUnit) AsPricingFixedUnit

func (t PricingUnit) AsPricingFixedUnit() (PricingFixedUnit, error)

AsPricingFixedUnit returns the union data inside the PricingUnit as a PricingFixedUnit

func (PricingUnit) AsPricingTieredUnit

func (t PricingUnit) AsPricingTieredUnit() (PricingTieredUnit, error)

AsPricingTieredUnit returns the union data inside the PricingUnit as a PricingTieredUnit

func (PricingUnit) AsPricingTieredUsageUnit

func (t PricingUnit) AsPricingTieredUsageUnit() (PricingTieredUsageUnit, error)

AsPricingTieredUsageUnit returns the union data inside the PricingUnit as a PricingTieredUsageUnit

func (PricingUnit) AsPricingUsageUnit

func (t PricingUnit) AsPricingUsageUnit() (PricingUsageUnit, error)

AsPricingUsageUnit returns the union data inside the PricingUnit as a PricingUsageUnit

func (PricingUnit) Discriminator

func (t PricingUnit) Discriminator() (string, error)

func (*PricingUnit) FromPricingFixedUnit

func (t *PricingUnit) FromPricingFixedUnit(v PricingFixedUnit) error

FromPricingFixedUnit overwrites any union data inside the PricingUnit as the provided PricingFixedUnit

func (*PricingUnit) FromPricingTieredUnit

func (t *PricingUnit) FromPricingTieredUnit(v PricingTieredUnit) error

FromPricingTieredUnit overwrites any union data inside the PricingUnit as the provided PricingTieredUnit

func (*PricingUnit) FromPricingTieredUsageUnit

func (t *PricingUnit) FromPricingTieredUsageUnit(v PricingTieredUsageUnit) error

FromPricingTieredUsageUnit overwrites any union data inside the PricingUnit as the provided PricingTieredUsageUnit

func (*PricingUnit) FromPricingUsageUnit

func (t *PricingUnit) FromPricingUsageUnit(v PricingUsageUnit) error

FromPricingUsageUnit overwrites any union data inside the PricingUnit as the provided PricingUsageUnit

func (PricingUnit) MarshalJSON

func (t PricingUnit) MarshalJSON() ([]byte, error)

func (*PricingUnit) MergePricingFixedUnit

func (t *PricingUnit) MergePricingFixedUnit(v PricingFixedUnit) error

MergePricingFixedUnit performs a merge with any union data inside the PricingUnit, using the provided PricingFixedUnit

func (*PricingUnit) MergePricingTieredUnit

func (t *PricingUnit) MergePricingTieredUnit(v PricingTieredUnit) error

MergePricingTieredUnit performs a merge with any union data inside the PricingUnit, using the provided PricingTieredUnit

func (*PricingUnit) MergePricingTieredUsageUnit

func (t *PricingUnit) MergePricingTieredUsageUnit(v PricingTieredUsageUnit) error

MergePricingTieredUsageUnit performs a merge with any union data inside the PricingUnit, using the provided PricingTieredUsageUnit

func (*PricingUnit) MergePricingUsageUnit

func (t *PricingUnit) MergePricingUsageUnit(v PricingUsageUnit) error

MergePricingUsageUnit performs a merge with any union data inside the PricingUnit, using the provided PricingUsageUnit

func (*PricingUnit) UnmarshalJSON

func (t *PricingUnit) UnmarshalJSON(b []byte) error

func (PricingUnit) ValueByDiscriminator

func (t PricingUnit) ValueByDiscriminator() (interface{}, error)

type PricingUnitBaseProps

type PricingUnitBaseProps struct {
	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Name Name
	Name string `json:"name"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`
}

PricingUnitBaseProps defines model for PricingUnitBaseProps.

type PricingUnitForSave

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

PricingUnitForSave defines model for PricingUnitForSave.

func (PricingUnitForSave) AsPricingFixedUnitForSave

func (t PricingUnitForSave) AsPricingFixedUnitForSave() (PricingFixedUnitForSave, error)

AsPricingFixedUnitForSave returns the union data inside the PricingUnitForSave as a PricingFixedUnitForSave

func (PricingUnitForSave) AsPricingTieredUnitForSave

func (t PricingUnitForSave) AsPricingTieredUnitForSave() (PricingTieredUnitForSave, error)

AsPricingTieredUnitForSave returns the union data inside the PricingUnitForSave as a PricingTieredUnitForSave

func (PricingUnitForSave) AsPricingTieredUsageUnitForSave

func (t PricingUnitForSave) AsPricingTieredUsageUnitForSave() (PricingTieredUsageUnitForSave, error)

AsPricingTieredUsageUnitForSave returns the union data inside the PricingUnitForSave as a PricingTieredUsageUnitForSave

func (PricingUnitForSave) AsPricingUsageUnitForSave

func (t PricingUnitForSave) AsPricingUsageUnitForSave() (PricingUsageUnitForSave, error)

AsPricingUsageUnitForSave returns the union data inside the PricingUnitForSave as a PricingUsageUnitForSave

func (PricingUnitForSave) Discriminator

func (t PricingUnitForSave) Discriminator() (string, error)

func (*PricingUnitForSave) FromPricingFixedUnitForSave

func (t *PricingUnitForSave) FromPricingFixedUnitForSave(v PricingFixedUnitForSave) error

FromPricingFixedUnitForSave overwrites any union data inside the PricingUnitForSave as the provided PricingFixedUnitForSave

func (*PricingUnitForSave) FromPricingTieredUnitForSave

func (t *PricingUnitForSave) FromPricingTieredUnitForSave(v PricingTieredUnitForSave) error

FromPricingTieredUnitForSave overwrites any union data inside the PricingUnitForSave as the provided PricingTieredUnitForSave

func (*PricingUnitForSave) FromPricingTieredUsageUnitForSave

func (t *PricingUnitForSave) FromPricingTieredUsageUnitForSave(v PricingTieredUsageUnitForSave) error

FromPricingTieredUsageUnitForSave overwrites any union data inside the PricingUnitForSave as the provided PricingTieredUsageUnitForSave

func (*PricingUnitForSave) FromPricingUsageUnitForSave

func (t *PricingUnitForSave) FromPricingUsageUnitForSave(v PricingUsageUnitForSave) error

FromPricingUsageUnitForSave overwrites any union data inside the PricingUnitForSave as the provided PricingUsageUnitForSave

func (PricingUnitForSave) MarshalJSON

func (t PricingUnitForSave) MarshalJSON() ([]byte, error)

func (*PricingUnitForSave) MergePricingFixedUnitForSave

func (t *PricingUnitForSave) MergePricingFixedUnitForSave(v PricingFixedUnitForSave) error

MergePricingFixedUnitForSave performs a merge with any union data inside the PricingUnitForSave, using the provided PricingFixedUnitForSave

func (*PricingUnitForSave) MergePricingTieredUnitForSave

func (t *PricingUnitForSave) MergePricingTieredUnitForSave(v PricingTieredUnitForSave) error

MergePricingTieredUnitForSave performs a merge with any union data inside the PricingUnitForSave, using the provided PricingTieredUnitForSave

func (*PricingUnitForSave) MergePricingTieredUsageUnitForSave

func (t *PricingUnitForSave) MergePricingTieredUsageUnitForSave(v PricingTieredUsageUnitForSave) error

MergePricingTieredUsageUnitForSave performs a merge with any union data inside the PricingUnitForSave, using the provided PricingTieredUsageUnitForSave

func (*PricingUnitForSave) MergePricingUsageUnitForSave

func (t *PricingUnitForSave) MergePricingUsageUnitForSave(v PricingUsageUnitForSave) error

MergePricingUsageUnitForSave performs a merge with any union data inside the PricingUnitForSave, using the provided PricingUsageUnitForSave

func (*PricingUnitForSave) UnmarshalJSON

func (t *PricingUnitForSave) UnmarshalJSON(b []byte) error

func (PricingUnitForSave) ValueByDiscriminator

func (t PricingUnitForSave) ValueByDiscriminator() (interface{}, error)

type PricingUnitId

type PricingUnitId = Uuid

PricingUnitId Universally Unique Identifier

type PricingUnits

type PricingUnits struct {
	Units []PricingUnit `json:"units"`
}

PricingUnits defines model for PricingUnits.

type PricingUsageUnit

type PricingUsageUnit struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// MeteringUnitId Universally Unique Identifier
	MeteringUnitId Uuid `json:"metering_unit_id"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name string `json:"name"`

	// RecurringInterval Cycle
	// month: Monthly
	// year: Yearly
	RecurringInterval RecurringInterval `json:"recurring_interval"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UnitAmount Amount per usage
	UnitAmount uint64 `json:"unit_amount"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`
	Used       bool   `json:"used"`
}

PricingUsageUnit defines model for PricingUsageUnit.

type PricingUsageUnitForSave

type PricingUsageUnitForSave struct {
	// AggregateUsage Aggregate usage
	// sum: Total usage during the period
	// max: Maximum usage during the period
	AggregateUsage *AggregateUsage `json:"aggregate_usage,omitempty"`

	// Currency Unit of currency
	Currency Currency `json:"currency"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display Name
	DisplayName string `json:"display_name"`

	// MeteringUnitName Metering unit name
	MeteringUnitName string `json:"metering_unit_name"`

	// Name Name
	Name string `json:"name"`

	// Type Unit of measurement type
	// fixed: Fixed unit
	// usage: Usage unit
	// tiered: Tiered unit
	// tiered_usage: Tiered usage unit
	Type UnitType `json:"type"`

	// UnitAmount Amount per usage
	UnitAmount uint64 `json:"unit_amount"`

	// UpperCount Upper limit
	UpperCount uint64 `json:"upper_count"`
}

PricingUsageUnitForSave defines model for PricingUsageUnitForSave.

type RecurringInterval

type RecurringInterval string

RecurringInterval Cycle month: Monthly year: Yearly

const (
	Month RecurringInterval = "month"
	Year  RecurringInterval = "year"
)

Defines values for RecurringInterval.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ReturnInternalServerErrorResponse

type ReturnInternalServerErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseReturnInternalServerErrorResponse

func ParseReturnInternalServerErrorResponse(rsp *http.Response) (*ReturnInternalServerErrorResponse, error)

ParseReturnInternalServerErrorResponse parses an HTTP response from a ReturnInternalServerErrorWithResponse call

func (ReturnInternalServerErrorResponse) Status

Status returns HTTPResponse.Status

func (ReturnInternalServerErrorResponse) StatusCode

func (r ReturnInternalServerErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SavePricingMenuParam

type SavePricingMenuParam struct {
	// Description Menu description
	Description string `json:"description"`

	// DisplayName Menu display name
	DisplayName string `json:"display_name"`

	// Name Menu name
	Name string `json:"name"`

	// UnitIds Unit IDs to add
	UnitIds []Uuid `json:"unit_ids"`
}

SavePricingMenuParam defines model for SavePricingMenuParam.

type SavePricingPlanParam

type SavePricingPlanParam struct {
	// Description Pricing plan description
	Description string `json:"description"`

	// DisplayName Pricing plan display name
	DisplayName string `json:"display_name"`

	// MenuIds Menu ID to be added to the pricing plan
	MenuIds []Uuid `json:"menu_ids"`

	// Name Pricing plan name
	Name string `json:"name"`
}

SavePricingPlanParam defines model for SavePricingPlanParam.

type StartTimestamp

type StartTimestamp = int

StartTimestamp defines model for StartTimestamp.

type TaxRate

type TaxRate struct {
	// Country Country code of ISO 3166-1 alpha-2
	Country string `json:"country"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display name
	DisplayName string `json:"display_name"`

	// Id Universally Unique Identifier
	Id Uuid `json:"id"`

	// Inclusive Inclusive or not
	Inclusive bool `json:"inclusive"`

	// Name Name of tax rate
	Name string `json:"name"`

	// Percentage Percentage
	Percentage float64 `json:"percentage"`
}

TaxRate defines model for TaxRate.

type TaxRateId

type TaxRateId = Uuid

TaxRateId Universally Unique Identifier

type TaxRateProps

type TaxRateProps struct {
	// Country Country code of ISO 3166-1 alpha-2
	Country string `json:"country"`

	// Description Description
	Description string `json:"description"`

	// DisplayName Display name
	DisplayName string `json:"display_name"`

	// Inclusive Inclusive or not
	Inclusive bool `json:"inclusive"`

	// Name Name of tax rate
	Name string `json:"name"`

	// Percentage Percentage
	Percentage float64 `json:"percentage"`
}

TaxRateProps defines model for TaxRateProps.

type TaxRates

type TaxRates struct {
	TaxRates []TaxRate `json:"tax_rates"`
}

TaxRates defines model for TaxRates.

type TenantId

type TenantId = string

TenantId defines model for TenantId.

type Timestamp

type Timestamp = int

Timestamp defines model for Timestamp.

type UnitType

type UnitType string

UnitType Unit of measurement type fixed: Fixed unit usage: Usage unit tiered: Tiered unit tiered_usage: Tiered usage unit

const (
	Fixed       UnitType = "fixed"
	Tiered      UnitType = "tiered"
	TieredUsage UnitType = "tiered_usage"
	Usage       UnitType = "usage"
)

Defines values for UnitType.

type UpdateMeteringUnitByIDJSONRequestBody

type UpdateMeteringUnitByIDJSONRequestBody = UpdateMeteringUnitParam

UpdateMeteringUnitByIDJSONRequestBody defines body for UpdateMeteringUnitByID for application/json ContentType.

type UpdateMeteringUnitByIDResponse

type UpdateMeteringUnitByIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON500      *Error
}

func ParseUpdateMeteringUnitByIDResponse

func ParseUpdateMeteringUnitByIDResponse(rsp *http.Response) (*UpdateMeteringUnitByIDResponse, error)

ParseUpdateMeteringUnitByIDResponse parses an HTTP response from a UpdateMeteringUnitByIDWithResponse call

func (UpdateMeteringUnitByIDResponse) Status

Status returns HTTPResponse.Status

func (UpdateMeteringUnitByIDResponse) StatusCode

func (r UpdateMeteringUnitByIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMeteringUnitParam

type UpdateMeteringUnitParam = MeteringUnitProps

UpdateMeteringUnitParam defines model for UpdateMeteringUnitParam.

type UpdateMeteringUnitTimestampCountJSONRequestBody

type UpdateMeteringUnitTimestampCountJSONRequestBody = UpdateMeteringUnitTimestampCountParam

UpdateMeteringUnitTimestampCountJSONRequestBody defines body for UpdateMeteringUnitTimestampCount for application/json ContentType.

type UpdateMeteringUnitTimestampCountMethod

type UpdateMeteringUnitTimestampCountMethod string

UpdateMeteringUnitTimestampCountMethod Update method add: Addition sub: Subtraction direct: Overwrite

Defines values for UpdateMeteringUnitTimestampCountMethod.

type UpdateMeteringUnitTimestampCountNowJSONRequestBody

type UpdateMeteringUnitTimestampCountNowJSONRequestBody = UpdateMeteringUnitTimestampCountNowParam

UpdateMeteringUnitTimestampCountNowJSONRequestBody defines body for UpdateMeteringUnitTimestampCountNow for application/json ContentType.

type UpdateMeteringUnitTimestampCountNowParam

type UpdateMeteringUnitTimestampCountNowParam struct {
	// Count Count
	Count int `json:"count"`

	// Method Update method
	// add: Addition
	// sub: Subtraction
	// direct: Overwrite
	Method UpdateMeteringUnitTimestampCountMethod `json:"method"`
}

UpdateMeteringUnitTimestampCountNowParam defines model for UpdateMeteringUnitTimestampCountNowParam.

type UpdateMeteringUnitTimestampCountNowResponse

type UpdateMeteringUnitTimestampCountNowResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitTimestampCount
	JSON500      *Error
}

func ParseUpdateMeteringUnitTimestampCountNowResponse

func ParseUpdateMeteringUnitTimestampCountNowResponse(rsp *http.Response) (*UpdateMeteringUnitTimestampCountNowResponse, error)

ParseUpdateMeteringUnitTimestampCountNowResponse parses an HTTP response from a UpdateMeteringUnitTimestampCountNowWithResponse call

func (UpdateMeteringUnitTimestampCountNowResponse) Status

Status returns HTTPResponse.Status

func (UpdateMeteringUnitTimestampCountNowResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateMeteringUnitTimestampCountParam

type UpdateMeteringUnitTimestampCountParam struct {
	// Count Count
	Count int `json:"count"`

	// Method Update method
	// add: Addition
	// sub: Subtraction
	// direct: Overwrite
	Method UpdateMeteringUnitTimestampCountMethod `json:"method"`
}

UpdateMeteringUnitTimestampCountParam defines model for UpdateMeteringUnitTimestampCountParam.

type UpdateMeteringUnitTimestampCountResponse

type UpdateMeteringUnitTimestampCountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeteringUnitTimestampCount
	JSON500      *Error
}

func ParseUpdateMeteringUnitTimestampCountResponse

func ParseUpdateMeteringUnitTimestampCountResponse(rsp *http.Response) (*UpdateMeteringUnitTimestampCountResponse, error)

ParseUpdateMeteringUnitTimestampCountResponse parses an HTTP response from a UpdateMeteringUnitTimestampCountWithResponse call

func (UpdateMeteringUnitTimestampCountResponse) Status

Status returns HTTPResponse.Status

func (UpdateMeteringUnitTimestampCountResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdatePricingMenuJSONRequestBody

type UpdatePricingMenuJSONRequestBody = UpdatePricingMenuParam

UpdatePricingMenuJSONRequestBody defines body for UpdatePricingMenu for application/json ContentType.

type UpdatePricingMenuParam

type UpdatePricingMenuParam = SavePricingMenuParam

UpdatePricingMenuParam defines model for UpdatePricingMenuParam.

type UpdatePricingMenuResponse

type UpdatePricingMenuResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseUpdatePricingMenuResponse

func ParseUpdatePricingMenuResponse(rsp *http.Response) (*UpdatePricingMenuResponse, error)

ParseUpdatePricingMenuResponse parses an HTTP response from a UpdatePricingMenuWithResponse call

func (UpdatePricingMenuResponse) Status

func (r UpdatePricingMenuResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePricingMenuResponse) StatusCode

func (r UpdatePricingMenuResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePricingPlanJSONRequestBody

type UpdatePricingPlanJSONRequestBody = UpdatePricingPlanParam

UpdatePricingPlanJSONRequestBody defines body for UpdatePricingPlan for application/json ContentType.

type UpdatePricingPlanParam

type UpdatePricingPlanParam = SavePricingPlanParam

UpdatePricingPlanParam defines model for UpdatePricingPlanParam.

type UpdatePricingPlanResponse

type UpdatePricingPlanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseUpdatePricingPlanResponse

func ParseUpdatePricingPlanResponse(rsp *http.Response) (*UpdatePricingPlanResponse, error)

ParseUpdatePricingPlanResponse parses an HTTP response from a UpdatePricingPlanWithResponse call

func (UpdatePricingPlanResponse) Status

func (r UpdatePricingPlanResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePricingPlanResponse) StatusCode

func (r UpdatePricingPlanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePricingPlansUsedJSONRequestBody

type UpdatePricingPlansUsedJSONRequestBody = UpdatePricingPlansUsedParam

UpdatePricingPlansUsedJSONRequestBody defines body for UpdatePricingPlansUsed for application/json ContentType.

type UpdatePricingPlansUsedParam

type UpdatePricingPlansUsedParam struct {
	PlanIds []Uuid `json:"plan_ids"`
}

UpdatePricingPlansUsedParam defines model for UpdatePricingPlansUsedParam.

type UpdatePricingPlansUsedResponse

type UpdatePricingPlansUsedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseUpdatePricingPlansUsedResponse

func ParseUpdatePricingPlansUsedResponse(rsp *http.Response) (*UpdatePricingPlansUsedResponse, error)

ParseUpdatePricingPlansUsedResponse parses an HTTP response from a UpdatePricingPlansUsedWithResponse call

func (UpdatePricingPlansUsedResponse) Status

Status returns HTTPResponse.Status

func (UpdatePricingPlansUsedResponse) StatusCode

func (r UpdatePricingPlansUsedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePricingUnitJSONRequestBody

type UpdatePricingUnitJSONRequestBody = UpdatePricingUnitParam

UpdatePricingUnitJSONRequestBody defines body for UpdatePricingUnit for application/json ContentType.

type UpdatePricingUnitParam

type UpdatePricingUnitParam = PricingUnitForSave

UpdatePricingUnitParam defines model for UpdatePricingUnitParam.

type UpdatePricingUnitResponse

type UpdatePricingUnitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseUpdatePricingUnitResponse

func ParseUpdatePricingUnitResponse(rsp *http.Response) (*UpdatePricingUnitResponse, error)

ParseUpdatePricingUnitResponse parses an HTTP response from a UpdatePricingUnitWithResponse call

func (UpdatePricingUnitResponse) Status

func (r UpdatePricingUnitResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePricingUnitResponse) StatusCode

func (r UpdatePricingUnitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTaxRateJSONRequestBody

type UpdateTaxRateJSONRequestBody = UpdateTaxRateParam

UpdateTaxRateJSONRequestBody defines body for UpdateTaxRate for application/json ContentType.

type UpdateTaxRateParam

type UpdateTaxRateParam struct {
	// Description Description
	Description string `json:"description"`

	// DisplayName Display name
	DisplayName string `json:"display_name"`
}

UpdateTaxRateParam defines model for UpdateTaxRateParam.

type UpdateTaxRateResponse

type UpdateTaxRateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON500      *Error
}

func ParseUpdateTaxRateResponse

func ParseUpdateTaxRateResponse(rsp *http.Response) (*UpdateTaxRateResponse, error)

ParseUpdateTaxRateResponse parses an HTTP response from a UpdateTaxRateWithResponse call

func (UpdateTaxRateResponse) Status

func (r UpdateTaxRateResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTaxRateResponse) StatusCode

func (r UpdateTaxRateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Uuid

type Uuid = string

Uuid Universally Unique Identifier

Jump to

Keyboard shortcuts

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