Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PromotionRule ¶
type PromotionRule struct {
mixin.Model
PromotionId string `json:"promotionId"`
Attribute string `json:"attribute"`
Operator string `json:"operator"`
// Values stored as JSON-encoded string in datastore
Values []string `json:"values" datastore:"-"`
Values_ string `json:"-" datastore:",noindex"`
}
func New ¶
func New(db *datastore.Datastore) *PromotionRule
func (*PromotionRule) Defaults ¶
func (p *PromotionRule) Defaults()
func (*PromotionRule) Init ¶
func (p *PromotionRule) Init(db *datastore.Datastore)
func (PromotionRule) Kind ¶
func (p PromotionRule) Kind() string
Click to show internal directories.
Click to hide internal directories.