CouponCreateOrUpdateEvent
class CouponCreateOrUpdateEvent extends ActionEvent
Occurring when a Coupon is created or updated
Methods
Constructor
No description
No description
No description
No description
No description
No description
Return Coupon code (ex: XMAS)
Return Coupon title (ex: Coupon for XMAS)
Return Coupon short description
Return Coupon description
If Coupon is cumulative or prevent any accumulation If is cumulative you can sum Coupon effects If not cancel all other Coupon and take the last given
If Coupon is removing Checkout Postage
Return effects generated by the coupon
Return Coupon start date
Return Coupon expiration date
If Coupon is available on special offers
Get if Coupon is enabled or not
Return how many time the Coupon can be used again Ex : -1 unlimited
Get Coupon Service id (Type)
Coupon Language code ISO (ex: fr_FR)
Set effects ready to be serialized
Get effects ready to be serialized
Get if the Coupon will be available on special offers or not
Get if the Coupon effect cancel other Coupon effects
Get if Coupon is enabled or not
No description
Set Coupon Model
Return Coupon Model
Get Conditions
Set 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 111
__construct(
string $code,
string $serviceId,
string $title,
array $effects,
string $shortDescription,
string $description,
bool $isEnabled,
DateTime $expirationDate,
boolean $isAvailableOnSpecialOffers,
boolean $isCumulative,
boolean $isRemovingPostage,
int $maxUsage,
string $locale,
array $freeShippingForCountries,
array $freeShippingForMethods,
boolean $perCustomerUsageCount,
DateTime $startDate = null)
Constructor
at line 152
setPerCustomerUsageCount(
true $perCustomerUsageCount)
at line 162
true
getPerCustomerUsageCount()
at line 171
$this
setFreeShippingForCountries(
array $freeShippingForCountries)
at line 181
array
getFreeShippingForCountries()
at line 190
$this
setFreeShippingForMethods(
array $freeShippingForMethods)
at line 200
array
getFreeShippingForMethods()
at line 210
string
getCode()
Return Coupon code (ex: XMAS)
at line 220
string
getTitle()
Return Coupon title (ex: Coupon for XMAS)
at line 230
string
getShortDescription()
Return Coupon short description
at line 240
string
getDescription()
Return Coupon description
at line 252
bool
isCumulative()
If Coupon is cumulative or prevent any accumulation If is cumulative you can sum Coupon effects If not cancel all other Coupon and take the last given
at line 262
bool
isRemovingPostage()
If Coupon is removing Checkout Postage
at line 272
float
getAmount()
Return effects generated by the coupon
at line 282
DateTime
getStartDate()
Return Coupon start date
at line 295
DateTime
getExpirationDate()
Return Coupon expiration date
at line 305
boolean
isAvailableOnSpecialOffers()
If Coupon is available on special offers
at line 315
boolean
isEnabled()
Get if Coupon is enabled or not
at line 326
int
getMaxUsage()
Return how many time the Coupon can be used again Ex : -1 unlimited
at line 336
string
getServiceId()
Get Coupon Service id (Type)
at line 346
string
getLocale()
Coupon Language code ISO (ex: fr_FR)
at line 359
setEffects(
array $effects)
Set effects ready to be serialized
at line 372
array
getEffects()
Get effects ready to be serialized
at line 382
boolean
getIsAvailableOnSpecialOffers()
Get if the Coupon will be available on special offers or not
at line 392
boolean
getIsCumulative()
Get if the Coupon effect cancel other Coupon effects
at line 402
boolean
getIsEnabled()
Get if Coupon is enabled or not
at line 410
boolean
getIsRemovingPostage()
at line 422
$this
setCouponModel(
Coupon $couponModel)
Set Coupon Model
at line 434
Coupon
getCouponModel()
Return Coupon Model
at line 444
null|ConditionCollection
getConditions()
Get Conditions
at line 456
$this
setConditions(
ConditionCollection $conditions)
Set Conditions