object

package
v1.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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
	// contains filtered or unexported fields
}

func NewService

func NewService(env service.Env, objectSvc object.Service) *PricingTierService

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

func (svc PricingTierService) Routes() ([]service.Route, 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

Jump to

Keyboard shortcuts

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