CouponConsumeEvent
class CouponConsumeEvent extends ActionEvent
Occurring when a Coupon is consumed
Methods
__construct(
string $code,
float $discount = null,
bool $isValid = null,
bool $freeShipping = false)
Constructor
setFreeShipping(
boolean $freeShipping)
No description
boolean
getFreeShipping()
No description
$this
setCode(
string $code)
Set Coupon code
string
getCode()
Get Coupon code
$this
setDiscount(
float $discount)
Set total discount given by this coupon
float
getDiscount()
Get total discount given by this coupon
$this
setIsValid(
boolean $isValid)
Set if Coupon is valid or if Customer meets coupon conditions
boolean
getIsValid()
Get if Coupon is valid or if Customer meets coupon conditions
Details
in
ActionEvent at line 30
__set($name, $value)
in
ActionEvent at line 35
__get($name)
in
ActionEvent at line 44
bindForm(
Form $form)
at line 46
__construct(
string $code,
float $discount = null,
bool $isValid = null,
bool $freeShipping = false)
Constructor
at line 58
setFreeShipping(
boolean $freeShipping)
at line 68
boolean
getFreeShipping()
at line 80
$this
setCode(
string $code)
Set Coupon code
at line 92
string
getCode()
Get Coupon code
at line 104
$this
setDiscount(
float $discount)
Set total discount given by this coupon
at line 116
float
getDiscount()
Get total discount given by this coupon
at line 129
$this
setIsValid(
boolean $isValid)
Set if Coupon is valid or if Customer meets coupon conditions
at line 141
boolean
getIsValid()
Get if Coupon is valid or if Customer meets coupon conditions