shippingoption

package
v1.36.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 PriceType

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

type ShippingOption

type ShippingOption struct {
	mixin.Model[ShippingOption]

	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:"-" orm:"default:{}"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

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