coupon

package
v8.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCouponByCode

func GetCouponByCode(ctx context.Context, code string) (*shopdb.Coupon, error)

func IsValidAndHasEnough

func IsValidAndHasEnough(ctx context.Context, code, appliedAmount string) bool

func UpdateCouponByCode

func UpdateCouponByCode(ctx context.Context, code, amount string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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