coupon

package
v8.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Unlicense Imports: 14 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) (*servicewoo.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