Documentation
¶
Index ¶
- Constants
- type PricingTierListParamParser
- type PricingTierService
- func (svc PricingTierService) Create(ctx context.Context, pricingTierSpec PricingTierSpec) (*PricingTierSpec, error)
- func (svc PricingTierService) DeleteByPricingTierId(ctx context.Context, pricingTierId string) error
- func (svc PricingTierService) GetByPricingTierId(ctx context.Context, pricingTierId string) (*PricingTierSpec, error)
- func (svc PricingTierService) List(ctx context.Context, listParams service.ListParams) ([]PricingTierSpec, error)
- func (svc PricingTierService) Routes() ([]service.Route, error)
- func (svc PricingTierService) UpdateByPricingTierId(ctx context.Context, pricingTierId string, ...) (*PricingTierSpec, error)
- type PricingTierSpec
- type UpdatePricingTierSpec
Constants ¶
View Source
const ResourceTypePricingTier = "pricing-tier"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PricingTierListParamParser ¶
type PricingTierListParamParser struct{}
func (PricingTierListParamParser) GetDefaultSortBy ¶
func (parser PricingTierListParamParser) GetDefaultSortBy() string
func (PricingTierListParamParser) GetSupportedSortBys ¶
func (parser PricingTierListParamParser) GetSupportedSortBys() []string
func (PricingTierListParamParser) ParseValue ¶
func (parser PricingTierListParamParser) ParseValue(val string, sortBy string) (interface{}, error)
type PricingTierService ¶
type PricingTierService struct {
service.BaseService
EventSvc event.Service
ObjectSvc object.Service
}
func NewService ¶
func (PricingTierService) Create ¶
func (svc PricingTierService) Create(ctx context.Context, pricingTierSpec PricingTierSpec) (*PricingTierSpec, error)
func (PricingTierService) DeleteByPricingTierId ¶
func (svc PricingTierService) DeleteByPricingTierId(ctx context.Context, pricingTierId string) error
func (PricingTierService) GetByPricingTierId ¶
func (svc PricingTierService) GetByPricingTierId(ctx context.Context, pricingTierId string) (*PricingTierSpec, error)
func (PricingTierService) List ¶
func (svc PricingTierService) List(ctx context.Context, listParams service.ListParams) ([]PricingTierSpec, error)
func (PricingTierService) UpdateByPricingTierId ¶
func (svc PricingTierService) UpdateByPricingTierId(ctx context.Context, pricingTierId string, pricingTierSpec UpdatePricingTierSpec) (*PricingTierSpec, error)
type PricingTierSpec ¶
type PricingTierSpec struct {
PricingTierId string `json:"pricingTierId" validate:"required,valid_object_id"`
Name *string `json:"name"`
Description *string `json:"description"`
CreatedAt time.Time `json:"createdAt"`
}
func NewPricingTierSpecFromObjectSpec ¶
func NewPricingTierSpecFromObjectSpec(objectSpec *object.ObjectSpec) (*PricingTierSpec, error)
func (PricingTierSpec) ToCreateObjectSpec ¶
func (spec PricingTierSpec) ToCreateObjectSpec() (*object.CreateObjectSpec, error)
type UpdatePricingTierSpec ¶
type UpdatePricingTierSpec struct {
Name *string `json:"name"`
Description *string `json:"description"`
}
func (UpdatePricingTierSpec) ToUpdateObjectSpec ¶
func (updateSpec UpdatePricingTierSpec) ToUpdateObjectSpec() *object.UpdateObjectSpec
Click to show internal directories.
Click to hide internal directories.