coupon

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCouponByCode

func GetCouponByCode(log *logrus.Entry, ctx context.Context, stage, code string) (*woo.Coupon, error)

func IsValidAndHasEnough

func IsValidAndHasEnough(log *logrus.Entry, ctx context.Context, stage, code, appliedAmount string) bool

func UpdateCouponByCode

func UpdateCouponByCode(log *logrus.Entry, ctx context.Context, stage, 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