Documentation ¶
Index ¶
- func GetCouponByCode(ctx context.Context, code string) (*shopdb.Coupon, error)
- func IsValidAndHasEnough(ctx context.Context, code, appliedAmount string) bool
- func UpdateCouponByAdminOrderItem(ctx context.Context, orderID string, item db.OrderItem) error
- func UpdateCouponByCode(ctx context.Context, code, amount string) error
- func UpdateCouponByOrderItem(ctx context.Context, orderID string, item shopdb.OrderItem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCouponByCode ¶
func IsValidAndHasEnough ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.