1 | <?php |
||
10 | class CouponService extends AbstractService |
||
11 | { |
||
12 | /** |
||
13 | * Get the coupons. |
||
14 | * |
||
15 | * @param string $code The code to get. |
||
16 | * @return Get\ApiResponse |
||
17 | */ |
||
18 | 3 | public function getCoupons($code = null) |
|
40 | |||
41 | /** |
||
42 | * Check a coupon. |
||
43 | * |
||
44 | * @param string $code The code to check. |
||
45 | * @param string $articleNumber The article number. |
||
46 | * @return Check\ApiResponse |
||
47 | */ |
||
48 | 6 | public function checkCoupon($code, $articleNumber) |
|
55 | |||
56 | /** |
||
57 | * Check if a coupon is valid or not. |
||
58 | * |
||
59 | * @param string $code The code to check. |
||
60 | * @param string $articleNumber The article number. |
||
61 | * @return boolean |
||
62 | */ |
||
63 | public function isCouponValid($code, $articleNumber) |
||
67 | } |
||
68 |