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
- func NewCreateMeteringUnitRequest(server string, body CreateMeteringUnitJSONRequestBody) (*http.Request, error)
- func NewCreateMeteringUnitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePricingMenuRequest(server string, body CreatePricingMenuJSONRequestBody) (*http.Request, error)
- func NewCreatePricingMenuRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePricingPlanRequest(server string, body CreatePricingPlanJSONRequestBody) (*http.Request, error)
- func NewCreatePricingPlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePricingUnitRequest(server string, body CreatePricingUnitJSONRequestBody) (*http.Request, error)
- func NewCreatePricingUnitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTaxRateRequest(server string, body CreateTaxRateJSONRequestBody) (*http.Request, error)
- func NewCreateTaxRateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesRequest(server string) (*http.Request, error)
- func NewDeleteMeteringUnitByIDRequest(server string, meteringUnitId MeteringUnitId) (*http.Request, error)
- func NewDeleteMeteringUnitTimestampCountRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewDeletePricingMenuRequest(server string, menuId MenuId) (*http.Request, error)
- func NewDeletePricingPlanRequest(server string, planId PlanId) (*http.Request, error)
- func NewDeletePricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)
- func NewDeleteStripePlanRequest(server string) (*http.Request, error)
- func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDateRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewGetMeteringUnitDateCountByTenantIdAndUnitNameTodayRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName) (*http.Request, error)
- func NewGetMeteringUnitDateCountsByTenantIdAndDateRequest(server string, tenantId TenantId, date DateString) (*http.Request, error)
- func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewGetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName) (*http.Request, error)
- func NewGetMeteringUnitMonthCountsByTenantIdAndMonthRequest(server string, tenantId TenantId, month MonthString) (*http.Request, error)
- func NewGetMeteringUnitsRequest(server string) (*http.Request, error)
- func NewGetPricingMenuRequest(server string, menuId MenuId) (*http.Request, error)
- func NewGetPricingMenusRequest(server string) (*http.Request, error)
- func NewGetPricingPlanRequest(server string, planId PlanId) (*http.Request, error)
- func NewGetPricingPlansRequest(server string) (*http.Request, error)
- func NewGetPricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)
- func NewGetPricingUnitsRequest(server string) (*http.Request, error)
- func NewGetTaxRatesRequest(server string) (*http.Request, error)
- func NewLinkPlanToStripeRequest(server string) (*http.Request, error)
- func NewReturnInternalServerErrorRequest(server string) (*http.Request, error)
- func NewUpdateMeteringUnitByIDRequest(server string, meteringUnitId MeteringUnitId, ...) (*http.Request, error)
- func NewUpdateMeteringUnitByIDRequestWithBody(server string, meteringUnitId MeteringUnitId, contentType string, ...) (*http.Request, error)
- func NewUpdateMeteringUnitTimestampCountNowRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewUpdateMeteringUnitTimestampCountNowRequestWithBody(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewUpdateMeteringUnitTimestampCountRequest(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewUpdateMeteringUnitTimestampCountRequestWithBody(server string, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Request, error)
- func NewUpdatePricingMenuRequest(server string, menuId MenuId, body UpdatePricingMenuJSONRequestBody) (*http.Request, error)
- func NewUpdatePricingMenuRequestWithBody(server string, menuId MenuId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePricingPlanRequest(server string, planId PlanId, body UpdatePricingPlanJSONRequestBody) (*http.Request, error)
- func NewUpdatePricingPlanRequestWithBody(server string, planId PlanId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePricingPlansUsedRequest(server string, body UpdatePricingPlansUsedJSONRequestBody) (*http.Request, error)
- func NewUpdatePricingPlansUsedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePricingUnitRequest(server string, pricingUnitId PricingUnitId, ...) (*http.Request, error)
- func NewUpdatePricingUnitRequestWithBody(server string, pricingUnitId PricingUnitId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTaxRateRequest(server string, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody) (*http.Request, error)
- func NewUpdateTaxRateRequestWithBody(server string, taxRateId TaxRateId, contentType string, body io.Reader) (*http.Request, error)
- type AggregateUsage
- type Client
- func (c *Client) CreateMeteringUnit(ctx context.Context, body CreateMeteringUnitJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateMeteringUnitWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePricingMenu(ctx context.Context, body CreatePricingMenuJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePricingMenuWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePricingPlan(ctx context.Context, body CreatePricingPlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePricingPlanWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePricingUnit(ctx context.Context, body CreatePricingUnitJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePricingUnitWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateTaxRate(ctx context.Context, body CreateTaxRateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTaxRateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, ...) (*http.Response, error)
- func (c *Client) DeleteMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) DeletePricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, ...) (*http.Response, error)
- func (c *Client) DeleteStripePlan(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameToday(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitDateCountsByTenantIdAndDate(ctx context.Context, tenantId TenantId, date DateString, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonth(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnitMonthCountsByTenantIdAndMonth(ctx context.Context, tenantId TenantId, month MonthString, ...) (*http.Response, error)
- func (c *Client) GetMeteringUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPricingMenu(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPricingMenus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPricingPlan(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPricingPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPricingUnit(ctx context.Context, pricingUnitId PricingUnitId, ...) (*http.Response, error)
- func (c *Client) GetPricingUnits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTaxRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LinkPlanToStripe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, ...) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitByIDWithBody(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitTimestampCount(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitTimestampCountNow(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitTimestampCountNowWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) UpdateMeteringUnitTimestampCountWithBody(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*http.Response, error)
- func (c *Client) UpdatePricingMenu(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePricingMenuWithBody(ctx context.Context, menuId MenuId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePricingPlan(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePricingPlanWithBody(ctx context.Context, planId PlanId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePricingPlansUsed(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePricingPlansUsedWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, ...) (*http.Response, error)
- func (c *Client) UpdatePricingUnitWithBody(ctx context.Context, pricingUnitId PricingUnitId, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateTaxRate(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTaxRateWithBody(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateMeteringUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateMeteringUnitResponse, error)
- func (c *ClientWithResponses) CreateMeteringUnitWithResponse(ctx context.Context, body CreateMeteringUnitJSONRequestBody, ...) (*CreateMeteringUnitResponse, error)
- func (c *ClientWithResponses) CreatePricingMenuWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePricingMenuResponse, error)
- func (c *ClientWithResponses) CreatePricingMenuWithResponse(ctx context.Context, body CreatePricingMenuJSONRequestBody, ...) (*CreatePricingMenuResponse, error)
- func (c *ClientWithResponses) CreatePricingPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePricingPlanResponse, error)
- func (c *ClientWithResponses) CreatePricingPlanWithResponse(ctx context.Context, body CreatePricingPlanJSONRequestBody, ...) (*CreatePricingPlanResponse, error)
- func (c *ClientWithResponses) CreatePricingUnitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePricingUnitResponse, error)
- func (c *ClientWithResponses) CreatePricingUnitWithResponse(ctx context.Context, body CreatePricingUnitJSONRequestBody, ...) (*CreatePricingUnitResponse, error)
- func (c *ClientWithResponses) CreateTaxRateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTaxRateResponse, error)
- func (c *ClientWithResponses) CreateTaxRateWithResponse(ctx context.Context, body CreateTaxRateJSONRequestBody, ...) (*CreateTaxRateResponse, error)
- func (c *ClientWithResponses) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse, error)
- func (c *ClientWithResponses) DeleteMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, ...) (*DeleteMeteringUnitByIDResponse, error)
- func (c *ClientWithResponses) DeleteMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*DeleteMeteringUnitTimestampCountResponse, error)
- func (c *ClientWithResponses) DeletePricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*DeletePricingMenuResponse, error)
- func (c *ClientWithResponses) DeletePricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*DeletePricingPlanResponse, error)
- func (c *ClientWithResponses) DeletePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, ...) (*DeletePricingUnitResponse, error)
- func (c *ClientWithResponses) DeleteStripePlanWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteStripePlanResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitDateCountByTenantIdAndUnitNameTodayWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitDateCountsByTenantIdAndDateWithResponse(ctx context.Context, tenantId TenantId, date DateString, ...) (*GetMeteringUnitDateCountsByTenantIdAndDateResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitMonthCountsByTenantIdAndMonthWithResponse(ctx context.Context, tenantId TenantId, month MonthString, ...) (*GetMeteringUnitMonthCountsByTenantIdAndMonthResponse, error)
- func (c *ClientWithResponses) GetMeteringUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeteringUnitsResponse, error)
- func (c *ClientWithResponses) GetPricingMenuWithResponse(ctx context.Context, menuId MenuId, reqEditors ...RequestEditorFn) (*GetPricingMenuResponse, error)
- func (c *ClientWithResponses) GetPricingMenusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingMenusResponse, error)
- func (c *ClientWithResponses) GetPricingPlanWithResponse(ctx context.Context, planId PlanId, reqEditors ...RequestEditorFn) (*GetPricingPlanResponse, error)
- func (c *ClientWithResponses) GetPricingPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingPlansResponse, error)
- func (c *ClientWithResponses) GetPricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, ...) (*GetPricingUnitResponse, error)
- func (c *ClientWithResponses) GetPricingUnitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPricingUnitsResponse, error)
- func (c *ClientWithResponses) GetTaxRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTaxRatesResponse, error)
- func (c *ClientWithResponses) LinkPlanToStripeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinkPlanToStripeResponse, error)
- func (c *ClientWithResponses) ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitByIDWithBodyWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, contentType string, ...) (*UpdateMeteringUnitByIDResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitByIDWithResponse(ctx context.Context, meteringUnitId MeteringUnitId, ...) (*UpdateMeteringUnitByIDResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*UpdateMeteringUnitTimestampCountNowResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountNowWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*UpdateMeteringUnitTimestampCountNowResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountWithBodyWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*UpdateMeteringUnitTimestampCountResponse, error)
- func (c *ClientWithResponses) UpdateMeteringUnitTimestampCountWithResponse(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, ...) (*UpdateMeteringUnitTimestampCountResponse, error)
- func (c *ClientWithResponses) UpdatePricingMenuWithBodyWithResponse(ctx context.Context, menuId MenuId, contentType string, body io.Reader, ...) (*UpdatePricingMenuResponse, error)
- func (c *ClientWithResponses) UpdatePricingMenuWithResponse(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, ...) (*UpdatePricingMenuResponse, error)
- func (c *ClientWithResponses) UpdatePricingPlanWithBodyWithResponse(ctx context.Context, planId PlanId, contentType string, body io.Reader, ...) (*UpdatePricingPlanResponse, error)
- func (c *ClientWithResponses) UpdatePricingPlanWithResponse(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, ...) (*UpdatePricingPlanResponse, error)
- func (c *ClientWithResponses) UpdatePricingPlansUsedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdatePricingPlansUsedResponse, error)
- func (c *ClientWithResponses) UpdatePricingPlansUsedWithResponse(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, ...) (*UpdatePricingPlansUsedResponse, error)
- func (c *ClientWithResponses) UpdatePricingUnitWithBodyWithResponse(ctx context.Context, pricingUnitId PricingUnitId, contentType string, ...) (*UpdatePricingUnitResponse, error)
- func (c *ClientWithResponses) UpdatePricingUnitWithResponse(ctx context.Context, pricingUnitId PricingUnitId, ...) (*UpdatePricingUnitResponse, error)
- func (c *ClientWithResponses) UpdateTaxRateWithBodyWithResponse(ctx context.Context, taxRateId TaxRateId, contentType string, body io.Reader, ...) (*UpdateTaxRateResponse, error)
- func (c *ClientWithResponses) UpdateTaxRateWithResponse(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, ...) (*UpdateTaxRateResponse, error)
- type ClientWithResponsesInterface
- type CreateMeteringUnitJSONRequestBody
- type CreateMeteringUnitParam
- type CreateMeteringUnitResponse
- type CreatePricingMenuJSONRequestBody
- type CreatePricingMenuParam
- type CreatePricingMenuResponse
- type CreatePricingPlanJSONRequestBody
- type CreatePricingPlanParam
- type CreatePricingPlanResponse
- type CreatePricingUnitJSONRequestBody
- type CreatePricingUnitParam
- type CreatePricingUnitResponse
- type CreateTaxRateJSONRequestBody
- type CreateTaxRateParam
- type CreateTaxRateResponse
- type Currency
- type DateString
- type DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse
- type DeleteMeteringUnitByIDResponse
- type DeleteMeteringUnitTimestampCountResponse
- type DeletePricingMenuResponse
- type DeletePricingPlanResponse
- type DeletePricingUnitResponse
- type DeleteStripePlanResponse
- type EndTimestamp
- type Error
- type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodParams
- type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse
- type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse
- type GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse
- type GetMeteringUnitDateCountsByTenantIdAndDateResponse
- type GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse
- type GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse
- type GetMeteringUnitMonthCountsByTenantIdAndMonthResponse
- type GetMeteringUnitsResponse
- type GetPricingMenuResponse
- type GetPricingMenusResponse
- type GetPricingPlanResponse
- type GetPricingPlansResponse
- type GetPricingUnitResponse
- type GetPricingUnitsResponse
- type GetTaxRatesResponse
- type HttpRequestDoer
- type LinkPlanToStripeResponse
- type MenuId
- type MeteringUnit
- type MeteringUnitCount
- type MeteringUnitDateCount
- type MeteringUnitDateCounts
- type MeteringUnitDatePeriodCounts
- type MeteringUnitId
- type MeteringUnitMonthCount
- type MeteringUnitMonthCounts
- type MeteringUnitName
- type MeteringUnitProps
- type MeteringUnitTimestampCount
- type MeteringUnits
- type MonthString
- type PlanId
- type PricingFixedUnit
- type PricingFixedUnitForSave
- type PricingMenu
- type PricingMenuProps
- type PricingMenus
- type PricingPlan
- type PricingPlanProps
- type PricingPlans
- type PricingTier
- type PricingTieredUnit
- type PricingTieredUnitForSave
- type PricingTieredUsageUnit
- type PricingTieredUsageUnitForSave
- type PricingTiers
- type PricingUnit
- func (t PricingUnit) AsPricingFixedUnit() (PricingFixedUnit, error)
- func (t PricingUnit) AsPricingTieredUnit() (PricingTieredUnit, error)
- func (t PricingUnit) AsPricingTieredUsageUnit() (PricingTieredUsageUnit, error)
- func (t PricingUnit) AsPricingUsageUnit() (PricingUsageUnit, error)
- func (t PricingUnit) Discriminator() (string, error)
- func (t *PricingUnit) FromPricingFixedUnit(v PricingFixedUnit) error
- func (t *PricingUnit) FromPricingTieredUnit(v PricingTieredUnit) error
- func (t *PricingUnit) FromPricingTieredUsageUnit(v PricingTieredUsageUnit) error
- func (t *PricingUnit) FromPricingUsageUnit(v PricingUsageUnit) error
- func (t PricingUnit) MarshalJSON() ([]byte, error)
- func (t *PricingUnit) MergePricingFixedUnit(v PricingFixedUnit) error
- func (t *PricingUnit) MergePricingTieredUnit(v PricingTieredUnit) error
- func (t *PricingUnit) MergePricingTieredUsageUnit(v PricingTieredUsageUnit) error
- func (t *PricingUnit) MergePricingUsageUnit(v PricingUsageUnit) error
- func (t *PricingUnit) UnmarshalJSON(b []byte) error
- func (t PricingUnit) ValueByDiscriminator() (interface{}, error)
- type PricingUnitBaseProps
- type PricingUnitForSave
- func (t PricingUnitForSave) AsPricingFixedUnitForSave() (PricingFixedUnitForSave, error)
- func (t PricingUnitForSave) AsPricingTieredUnitForSave() (PricingTieredUnitForSave, error)
- func (t PricingUnitForSave) AsPricingTieredUsageUnitForSave() (PricingTieredUsageUnitForSave, error)
- func (t PricingUnitForSave) AsPricingUsageUnitForSave() (PricingUsageUnitForSave, error)
- func (t PricingUnitForSave) Discriminator() (string, error)
- func (t *PricingUnitForSave) FromPricingFixedUnitForSave(v PricingFixedUnitForSave) error
- func (t *PricingUnitForSave) FromPricingTieredUnitForSave(v PricingTieredUnitForSave) error
- func (t *PricingUnitForSave) FromPricingTieredUsageUnitForSave(v PricingTieredUsageUnitForSave) error
- func (t *PricingUnitForSave) FromPricingUsageUnitForSave(v PricingUsageUnitForSave) error
- func (t PricingUnitForSave) MarshalJSON() ([]byte, error)
- func (t *PricingUnitForSave) MergePricingFixedUnitForSave(v PricingFixedUnitForSave) error
- func (t *PricingUnitForSave) MergePricingTieredUnitForSave(v PricingTieredUnitForSave) error
- func (t *PricingUnitForSave) MergePricingTieredUsageUnitForSave(v PricingTieredUsageUnitForSave) error
- func (t *PricingUnitForSave) MergePricingUsageUnitForSave(v PricingUsageUnitForSave) error
- func (t *PricingUnitForSave) UnmarshalJSON(b []byte) error
- func (t PricingUnitForSave) ValueByDiscriminator() (interface{}, error)
- type PricingUnitId
- type PricingUnits
- type PricingUsageUnit
- type PricingUsageUnitForSave
- type RecurringInterval
- type RequestEditorFn
- type ReturnInternalServerErrorResponse
- type SavePricingMenuParam
- type SavePricingPlanParam
- type StartTimestamp
- type TaxRate
- type TaxRateId
- type TaxRateProps
- type TaxRates
- type TenantId
- type Timestamp
- type UnitType
- type UpdateMeteringUnitByIDJSONRequestBody
- type UpdateMeteringUnitByIDResponse
- type UpdateMeteringUnitParam
- type UpdateMeteringUnitTimestampCountJSONRequestBody
- type UpdateMeteringUnitTimestampCountMethod
- type UpdateMeteringUnitTimestampCountNowJSONRequestBody
- type UpdateMeteringUnitTimestampCountNowParam
- type UpdateMeteringUnitTimestampCountNowResponse
- type UpdateMeteringUnitTimestampCountParam
- type UpdateMeteringUnitTimestampCountResponse
- type UpdatePricingMenuJSONRequestBody
- type UpdatePricingMenuParam
- type UpdatePricingMenuResponse
- type UpdatePricingPlanJSONRequestBody
- type UpdatePricingPlanParam
- type UpdatePricingPlanResponse
- type UpdatePricingPlansUsedJSONRequestBody
- type UpdatePricingPlansUsedParam
- type UpdatePricingPlansUsedResponse
- type UpdatePricingUnitJSONRequestBody
- type UpdatePricingUnitParam
- type UpdatePricingUnitResponse
- type UpdateTaxRateJSONRequestBody
- type UpdateTaxRateParam
- type UpdateTaxRateResponse
- type Uuid
Constants ¶
const (
BearerScopes = "Bearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateMeteringUnitRequest ¶ added in v1.10.19
func NewCreateMeteringUnitRequest(server string, body CreateMeteringUnitJSONRequestBody) (*http.Request, error)
NewCreateMeteringUnitRequest calls the generic CreateMeteringUnit builder with application/json body
func NewCreateMeteringUnitRequestWithBody ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶
NewDeletePricingMenuRequest generates requests for DeletePricingMenu
func NewDeletePricingPlanRequest ¶
NewDeletePricingPlanRequest generates requests for DeletePricingPlan
func NewDeletePricingUnitRequest ¶
func NewDeletePricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)
NewDeletePricingUnitRequest generates requests for DeletePricingUnit
func NewDeleteStripePlanRequest ¶
NewDeleteStripePlanRequest generates requests for DeleteStripePlan
func NewGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodRequest ¶ added in v1.6.0
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 ¶ added in v1.10.19
NewGetMeteringUnitsRequest generates requests for GetMeteringUnits
func NewGetPricingMenuRequest ¶
NewGetPricingMenuRequest generates requests for GetPricingMenu
func NewGetPricingMenusRequest ¶
NewGetPricingMenusRequest generates requests for GetPricingMenus
func NewGetPricingPlanRequest ¶
NewGetPricingPlanRequest generates requests for GetPricingPlan
func NewGetPricingPlansRequest ¶
NewGetPricingPlansRequest generates requests for GetPricingPlans
func NewGetPricingUnitRequest ¶
func NewGetPricingUnitRequest(server string, pricingUnitId PricingUnitId) (*http.Request, error)
NewGetPricingUnitRequest generates requests for GetPricingUnit
func NewGetPricingUnitsRequest ¶
NewGetPricingUnitsRequest generates requests for GetPricingUnits
func NewGetTaxRatesRequest ¶
NewGetTaxRatesRequest generates requests for GetTaxRates
func NewLinkPlanToStripeRequest ¶
NewLinkPlanToStripeRequest generates requests for LinkPlanToStripe
func NewReturnInternalServerErrorRequest ¶
NewReturnInternalServerErrorRequest generates requests for ReturnInternalServerError
func NewUpdateMeteringUnitByIDRequest ¶ added in v1.10.19
func NewUpdateMeteringUnitByIDRequest(server string, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody) (*http.Request, error)
NewUpdateMeteringUnitByIDRequest calls the generic UpdateMeteringUnitByID builder with application/json body
func NewUpdateMeteringUnitByIDRequestWithBody ¶ added in v1.10.19
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 ¶ added in v1.6.0
func NewUpdateTaxRateRequest(server string, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody) (*http.Request, error)
NewUpdateTaxRateRequest calls the generic UpdateTaxRate builder with application/json 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 ¶ added in v1.10.19
func (c *Client) CreateMeteringUnit(ctx context.Context, body CreateMeteringUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMeteringUnitWithBody ¶ added in v1.10.19
func (*Client) CreatePricingMenu ¶
func (c *Client) CreatePricingMenu(ctx context.Context, body CreatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePricingMenuWithBody ¶
func (*Client) CreatePricingPlan ¶
func (c *Client) CreatePricingPlan(ctx context.Context, body CreatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePricingPlanWithBody ¶
func (*Client) CreatePricingUnit ¶
func (c *Client) CreatePricingUnit(ctx context.Context, body CreatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePricingUnitWithBody ¶
func (*Client) CreateTaxRate ¶
func (c *Client) CreateTaxRate(ctx context.Context, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTaxRateWithBody ¶
func (*Client) DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates ¶
func (*Client) DeleteMeteringUnitByID ¶ added in v1.10.19
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 (*Client) DeletePricingPlan ¶
func (*Client) DeletePricingUnit ¶
func (c *Client) DeletePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteStripePlan ¶
func (*Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate ¶
func (c *Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDate(ctx context.Context, tenantId TenantId, meteringUnitName MeteringUnitName, date DateString, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriod ¶ added in v1.6.0
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 ¶ added in v1.10.19
func (*Client) GetPricingMenu ¶
func (*Client) GetPricingMenus ¶
func (*Client) GetPricingPlan ¶
func (*Client) GetPricingPlans ¶
func (*Client) GetPricingUnit ¶
func (c *Client) GetPricingUnit(ctx context.Context, pricingUnitId PricingUnitId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPricingUnits ¶
func (*Client) GetTaxRates ¶
func (*Client) LinkPlanToStripe ¶
func (*Client) ReturnInternalServerError ¶
func (*Client) UpdateMeteringUnitByID ¶ added in v1.10.19
func (c *Client) UpdateMeteringUnitByID(ctx context.Context, meteringUnitId MeteringUnitId, body UpdateMeteringUnitByIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMeteringUnitByIDWithBody ¶ added in v1.10.19
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 (*Client) UpdateMeteringUnitTimestampCountWithBody ¶
func (*Client) UpdatePricingMenu ¶
func (c *Client) UpdatePricingMenu(ctx context.Context, menuId MenuId, body UpdatePricingMenuJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePricingMenuWithBody ¶
func (*Client) UpdatePricingPlan ¶
func (c *Client) UpdatePricingPlan(ctx context.Context, planId PlanId, body UpdatePricingPlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePricingPlanWithBody ¶
func (*Client) UpdatePricingPlansUsed ¶
func (c *Client) UpdatePricingPlansUsed(ctx context.Context, body UpdatePricingPlansUsedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePricingPlansUsedWithBody ¶
func (*Client) UpdatePricingUnit ¶
func (c *Client) UpdatePricingUnit(ctx context.Context, pricingUnitId PricingUnitId, body UpdatePricingUnitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePricingUnitWithBody ¶
func (*Client) UpdateTaxRate ¶ added in v1.6.0
func (c *Client) UpdateTaxRate(ctx context.Context, taxRateId TaxRateId, body UpdateTaxRateJSONRequestBody, 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 ¶
ClientOption allows setting custom parameters during construction
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.6.0
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.10.19
type CreateMeteringUnitJSONRequestBody = CreateMeteringUnitParam
CreateMeteringUnitJSONRequestBody defines body for CreateMeteringUnit for application/json ContentType.
type CreateMeteringUnitParam ¶ added in v1.10.19
type CreateMeteringUnitParam = MeteringUnitProps
CreateMeteringUnitParam defines model for CreateMeteringUnitParam.
type CreateMeteringUnitResponse ¶ added in v1.10.19
type CreateMeteringUnitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *MeteringUnit
JSON400 *Error
JSON500 *Error
}
func ParseCreateMeteringUnitResponse ¶ added in v1.10.19
func ParseCreateMeteringUnitResponse(rsp *http.Response) (*CreateMeteringUnitResponse, error)
ParseCreateMeteringUnitResponse parses an HTTP response from a CreateMeteringUnitWithResponse call
func (CreateMeteringUnitResponse) Status ¶ added in v1.10.19
func (r CreateMeteringUnitResponse) Status() string
Status returns HTTPResponse.Status
func (CreateMeteringUnitResponse) StatusCode ¶ added in v1.10.19
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 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 ¶
func (r DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse) StatusCode ¶
func (r DeleteAllPlansAndMenusAndUnitsAndMetersAndTaxRatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMeteringUnitByIDResponse ¶ added in v1.10.19
type DeleteMeteringUnitByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteMeteringUnitByIDResponse ¶ added in v1.10.19
func ParseDeleteMeteringUnitByIDResponse(rsp *http.Response) (*DeleteMeteringUnitByIDResponse, error)
ParseDeleteMeteringUnitByIDResponse parses an HTTP response from a DeleteMeteringUnitByIDWithResponse call
func (DeleteMeteringUnitByIDResponse) Status ¶ added in v1.10.19
func (r DeleteMeteringUnitByIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMeteringUnitByIDResponse) StatusCode ¶ added in v1.10.19
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 ¶
func (r DeleteMeteringUnitTimestampCountResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMeteringUnitTimestampCountResponse) StatusCode ¶
func (r DeleteMeteringUnitTimestampCountResponse) StatusCode() int
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 ¶
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 ¶
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
type GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeteringUnitDatePeriodCounts
JSON500 *Error
}
func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse ¶ added in v1.6.0
func ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse(rsp *http.Response) (*GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse, error)
ParseGetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse parses an HTTP response from a GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodWithResponse call
func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) Status ¶ added in v1.6.0
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) StatusCode ¶ added in v1.6.0
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameAndDatePeriodResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse) StatusCode ¶
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameAndDateResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse) StatusCode ¶
func (r GetMeteringUnitDateCountByTenantIdAndUnitNameTodayResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitDateCountsByTenantIdAndDateResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitDateCountsByTenantIdAndDateResponse) StatusCode ¶
func (r GetMeteringUnitDateCountsByTenantIdAndDateResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse) StatusCode ¶
func (r GetMeteringUnitMonthCountByTenantIdAndUnitNameAndMonthResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse) StatusCode ¶
func (r GetMeteringUnitMonthCountByTenantIdAndUnitNameThisMonthResponse) StatusCode() int
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 ¶
func (r GetMeteringUnitMonthCountsByTenantIdAndMonthResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitMonthCountsByTenantIdAndMonthResponse) StatusCode ¶
func (r GetMeteringUnitMonthCountsByTenantIdAndMonthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMeteringUnitsResponse ¶ added in v1.10.19
type GetMeteringUnitsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeteringUnits
JSON500 *Error
}
func ParseGetMeteringUnitsResponse ¶ added in v1.10.19
func ParseGetMeteringUnitsResponse(rsp *http.Response) (*GetMeteringUnitsResponse, error)
ParseGetMeteringUnitsResponse parses an HTTP response from a GetMeteringUnitsWithResponse call
func (GetMeteringUnitsResponse) Status ¶ added in v1.10.19
func (r GetMeteringUnitsResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeteringUnitsResponse) StatusCode ¶ added in v1.10.19
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 ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LinkPlanToStripeResponse ¶
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 MeteringUnit ¶ added in v1.10.19
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 ¶ added in v1.6.0
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 ¶ added in v1.6.0
type MeteringUnitDatePeriodCounts struct {
Counts []MeteringUnitCount `json:"counts"`
// MeteringUnitName Metering unit name
MeteringUnitName string `json:"metering_unit_name"`
}
MeteringUnitDatePeriodCounts defines model for MeteringUnitDatePeriodCounts.
type MeteringUnitId ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
type MeteringUnits struct {
Units []MeteringUnit `json:"units"`
}
MeteringUnits defines model for MeteringUnits.
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
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 ¶ added in v1.10.19
func (t PricingUnitForSave) ValueByDiscriminator() (interface{}, error)
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 ¶
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 ¶
func (r ReturnInternalServerErrorResponse) Status() string
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 ¶ added in v1.6.0
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 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 UnitType ¶
type UnitType string
UnitType Unit of measurement type fixed: Fixed unit usage: Usage unit tiered: Tiered unit tiered_usage: Tiered usage unit
type UpdateMeteringUnitByIDJSONRequestBody ¶ added in v1.10.19
type UpdateMeteringUnitByIDJSONRequestBody = UpdateMeteringUnitParam
UpdateMeteringUnitByIDJSONRequestBody defines body for UpdateMeteringUnitByID for application/json ContentType.
type UpdateMeteringUnitByIDResponse ¶ added in v1.10.19
type UpdateMeteringUnitByIDResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON500 *Error
}
func ParseUpdateMeteringUnitByIDResponse ¶ added in v1.10.19
func ParseUpdateMeteringUnitByIDResponse(rsp *http.Response) (*UpdateMeteringUnitByIDResponse, error)
ParseUpdateMeteringUnitByIDResponse parses an HTTP response from a UpdateMeteringUnitByIDWithResponse call
func (UpdateMeteringUnitByIDResponse) Status ¶ added in v1.10.19
func (r UpdateMeteringUnitByIDResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMeteringUnitByIDResponse) StatusCode ¶ added in v1.10.19
func (r UpdateMeteringUnitByIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMeteringUnitParam ¶ added in v1.10.19
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
const ( Add UpdateMeteringUnitTimestampCountMethod = "add" Direct UpdateMeteringUnitTimestampCountMethod = "direct" Sub UpdateMeteringUnitTimestampCountMethod = "sub" )
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 ¶
func (r UpdateMeteringUnitTimestampCountNowResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMeteringUnitTimestampCountNowResponse) StatusCode ¶
func (r UpdateMeteringUnitTimestampCountNowResponse) StatusCode() int
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 ¶
func (r UpdateMeteringUnitTimestampCountResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMeteringUnitTimestampCountResponse) StatusCode ¶
func (r UpdateMeteringUnitTimestampCountResponse) StatusCode() int
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 ¶
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 ¶
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 ¶
func (r UpdatePricingPlansUsedResponse) Status() string
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 ¶
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 ¶ added in v1.6.0
type UpdateTaxRateJSONRequestBody = UpdateTaxRateParam
UpdateTaxRateJSONRequestBody defines body for UpdateTaxRate for application/json ContentType.
type UpdateTaxRateParam ¶ added in v1.6.0
type UpdateTaxRateParam struct {
// Description Description
Description string `json:"description"`
// DisplayName Display name
DisplayName string `json:"display_name"`
}
UpdateTaxRateParam defines model for UpdateTaxRateParam.
type UpdateTaxRateResponse ¶ added in v1.6.0
type UpdateTaxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON500 *Error
}
func ParseUpdateTaxRateResponse ¶ added in v1.6.0
func ParseUpdateTaxRateResponse(rsp *http.Response) (*UpdateTaxRateResponse, error)
ParseUpdateTaxRateResponse parses an HTTP response from a UpdateTaxRateWithResponse call
func (UpdateTaxRateResponse) Status ¶ added in v1.6.0
func (r UpdateTaxRateResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTaxRateResponse) StatusCode ¶ added in v1.6.0
func (r UpdateTaxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode