coupon

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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 Redemption

type Redemption struct {
	mixin.Model[Redemption]

	// 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) 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