price

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Price

type Price struct {
	mixin.Model[Price]

	PriceSetId   string         `json:"priceSetId"`
	CurrencyCode string         `json:"currencyCode"`
	Amount       currency.Cents `json:"amount"`
	MinQuantity  int            `json:"minQuantity"`
	MaxQuantity  int            `json:"maxQuantity"`
	PriceListId  string         `json:"priceListId"`

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

func New

func New(db *datastore.Datastore) *Price

func (*Price) Load

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

func (*Price) Save

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

Jump to

Keyboard shortcuts

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