shippingrates

package
v1.35.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Query returns a datastore query for shipping rates.

Types

type GeoRate

type GeoRate struct {
	georate.GeoRate

	// Shipping Name like 'Shipping'
	ShippingName string `json:"shippingName"`
}

type ShippingRates

type ShippingRates struct {
	mixin.Model[ShippingRates]

	StoreId string `json:"storeId"`

	GeoRates []GeoRate `json:"geoRates" orm:"default:[]"`
}

func New

New creates a new ShippingRates wired to the given datastore.

func (ShippingRates) GetGeoRates

func (t ShippingRates) GetGeoRates() []georate.GeoRate

func (ShippingRates) Match

func (t ShippingRates) Match(ctr, st, ct, pc string, c currency.Cents) (*GeoRate, int, int)

Jump to

Keyboard shortcuts

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