pricepreference

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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 PricePreference

type PricePreference struct {
	mixin.Model

	Attribute      string `json:"attribute"`
	Value          string `json:"value"`
	IsTaxInclusive bool   `json:"isTaxInclusive"`

	Metadata  Map    `json:"metadata,omitempty" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func (*PricePreference) Defaults

func (p *PricePreference) Defaults()

func (*PricePreference) Init

func (p *PricePreference) Init(db *datastore.Datastore)

func (PricePreference) Kind

func (p PricePreference) Kind() string

func (*PricePreference) Load

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

func (*PricePreference) Save

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

Jump to

Keyboard shortcuts

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