CouponService
Namespace
IO\Services
Type | Name | Value | Description |
---|---|---|---|
|
301 |
||
|
302 |
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
Methods
public __construct($couponCampaignRepository, $basketRepository, $variationCategoryRepository, $authHelper)
CouponService constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
public setCoupon($couponCode)
Type |
Name |
Description |
|
public removeCoupon($code = null)
Type |
Name |
Description |
|
public validateBasketItemDelete($basket, $basketItem)
Validate the basket for the coupon, and remove the coupon if invalid
Type |
Name |
Description |
|
||
|
Current basketItem |
public validateBasketItemUpdate($basket, $data, $basketItem)
Validate the basket for the coupon, and remove the coupon if invalid
Type |
Name |
Description |
|
||
|
New basketItem |
|
|
Current basketItem |
Thank you for your feedback!