shippingoption

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type PriceType

type PriceType string
const (
	FlatRate   PriceType = "flat"
	Calculated PriceType = "calculated"
)

type ShippingOption

type ShippingOption struct {
	mixin.Model

	Name          string         `json:"name"`
	PriceType     PriceType      `json:"priceType"`
	Amount        currency.Cents `json:"amount"`
	ServiceZoneId string         `json:"serviceZoneId"`
	ProviderId    string         `json:"providerId"`
	ProfileId     string         `json:"profileId"`
	DataJSON      string         `json:"data" datastore:",noindex"`

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

func New

func (*ShippingOption) Defaults

func (s *ShippingOption) Defaults()

func (*ShippingOption) Init

func (s *ShippingOption) Init(db *datastore.Datastore)

func (ShippingOption) Kind

func (s ShippingOption) Kind() string

func (*ShippingOption) Load

func (s *ShippingOption) Load(ps []datastore.Property) (err error)

func (*ShippingOption) Save

func (s *ShippingOption) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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