Coupon management service interface. @api
- Since
- 100.0.2
Definition at line 15 of file CouponManagementInterface.php.
◆ get()
Returns information for a coupon in a specified cart.
- Parameters
-
- Returns
- string The coupon code data.
- Exceptions
-
◆ remove()
Deletes a coupon from a specified cart.
- Parameters
-
- Returns
- bool
- Exceptions
-
◆ set()
set |
( |
|
$cartId, |
|
|
|
$couponCode |
|
) |
| |
Adds a coupon by code to a specified cart.
- Parameters
-
int | $cartId | The cart ID. |
string | $couponCode | The coupon code data. |
- Returns
- bool
- Exceptions
-
The documentation for this interface was generated from the following file: