coupon

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 Redemption

type Redemption struct {
	mixin.BaseModel

	// Coupon code (need not be unique).
	Code string `json:"code"`
}

func Fake

func Fake(db *datastore.Datastore) *Redemption

func New

func New(db *datastore.Datastore) *Redemption

func (*Redemption) Defaults

func (r *Redemption) Defaults()

func (*Redemption) Init

func (r *Redemption) Init(db *datastore.Datastore)

func (Redemption) Kind

func (r Redemption) Kind() string

func (*Redemption) Load

func (r *Redemption) Load(props []datastore.Property) (err error)

func (*Redemption) Save

func (r *Redemption) Save() (props []datastore.Property, err error)

Jump to

Keyboard shortcuts

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