enums

package
v0.0.0-...-4605876 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string

Category determines the 'category' of a product

const (
	//CategoryCereals represents cereals product type
	CategoryCereals Category = "CEREALS"

	// CategoryMedicine represents the medicine product category type
	CategoryMedicine Category = "MEDICINE"

	// CategoryFoodStuff represents the food stuff category type
	CategoryFoodStuff Category = "FOOD_STUFF"
)

func (Category) IsValid

func (u Category) IsValid() bool

IsValid returns true if a Category type is valid

func (Category) MarshalGQL

func (u Category) MarshalGQL(w io.Writer)

MarshalGQL writes the Category type to the supplied

func (Category) String

func (u Category) String() string

func (*Category) UnmarshalGQL

func (u *Category) UnmarshalGQL(v interface{}) error

UnmarshalGQL converts the supplied value to a category type.

type Flavour

type Flavour string

Flavour is a list of application types.

const (
	//FlavourPro represents the admin app
	FlavourPro Flavour = "PRO"
	// FlavourConsumer represents the tenant app user
	FlavourConsumer Flavour = "CONSUMER"
)

func (Flavour) IsValid

func (f Flavour) IsValid() bool

IsValid returns true if a flavour type is valid

func (Flavour) MarshalGQL

func (f Flavour) MarshalGQL(w io.Writer)

MarshalGQL writes the flavour type to the supplied

func (Flavour) String

func (f Flavour) String() string

func (*Flavour) UnmarshalGQL

func (f *Flavour) UnmarshalGQL(v interface{}) error

UnmarshalGQL converts the supplied value to a flavour type.

type Unit

type Unit string

Unit determines the 'unit' of sale of a product

const (
	//UnitSingle represents the admin app
	UnitSingle Unit = "ONE"

	// UnitHalfDozen represents the half dozen unit of ocean
	UnitHalfDozen Unit = "HALF_DOZEN"

	// UnitDozen represents product dozen unit
	UnitDozen Unit = "DOZEN"

	// UnitOuter represents product outer unit
	UnitOuter Unit = "OUTER"

	// UnitCarton represents product carton unit
	UnitCarton Unit = "CARTON"

	// UnitBale represents product bale unit
	UnitBale Unit = "BALE"

	// UnitBag represents product bag unit
	UnitBag Unit = "BAG"

	// UnitPacket represents product packet unit
	UnitPacket Unit = "PACKET"
)

func (Unit) IsValid

func (u Unit) IsValid() bool

IsValid returns true if a Unit type is valid

func (Unit) MarshalGQL

func (u Unit) MarshalGQL(w io.Writer)

MarshalGQL writes the Unit type to the supplied

func (Unit) String

func (u Unit) String() string

func (*Unit) UnmarshalGQL

func (u *Unit) UnmarshalGQL(v interface{}) error

UnmarshalGQL converts the supplied value to a Unit type.

Jump to

Keyboard shortcuts

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