Package DE_EPAGES::Coupon::API::Object::CouponCode
object interface for CouponCode.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
addToContainer
Adds a line item to container after checking if the Coupon is invalidated, if the valid coupon count is reached, if the coupon is effective/valid and if there is a coupon in the basket already.
Syntax |
$LineItem = $CouponCode->addToContainer( $Container, $hInfo ); |
Input |
|
Return |
|
lineItem
Builds a line item like hash for all line item information.
Syntax |
$hLineItem = $CouponCode->lineItem( $Container, $hInfo ); |
Input |
|
Return |
|
recalculateLineItem
Coupon line items call this function to recalculate the item.
Syntax |
$CouponCode->recalculateLineItem($CouponCode, $LineItem); |
Input |
|
redeem
Redeems a coupon and increases the count of redeemed coupons. If a coupon is redeemable only once then it'll be invalidated.
Syntax |
$CouponCode->redeem; |