promotionrule

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type PromotionRule

type PromotionRule struct {
	mixin.Model[PromotionRule]

	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 (*PromotionRule) Load

func (p *PromotionRule) Load(ps []datastore.Property) (err error)

func (*PromotionRule) Save

func (p *PromotionRule) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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