coupon

package
v8.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Unlicense Imports: 10 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

func UpdateCouponByOrderItem added in v8.14.0

func UpdateCouponByOrderItem(ctx context.Context, orderID string, item shopdb.OrderItem) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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