interface AmountAndPercentageCouponInterface

Represents a Coupon ready to be processed in a Checkout process

Methods

setFieldsValue( Array $effects)

Set the value of specific coupon fields.

float
getCartItemDiscount( CartItem $cartItem)

Get the discount for a specific cart item.

string
drawBaseBackOfficeInputs( string $templateName, array $otherFields)

Renders the template which implements coupon specific user-input, using the provided template file, and a list of specific input fields.

getBaseFieldList($otherFields)

No description

checkBaseCouponFieldValue($fieldName, $fieldValue)

No description

Details

at line 30
setFieldsValue( Array $effects)

Set the value of specific coupon fields.

Parameters

Array $effects the Coupon effects params

at line 38
float getCartItemDiscount( CartItem $cartItem)

Get the discount for a specific cart item.

Parameters

CartItem $cartItem the cart item

Return Value

float the discount value

at line 49
string drawBaseBackOfficeInputs( string $templateName, array $otherFields)

Renders the template which implements coupon specific user-input, using the provided template file, and a list of specific input fields.

Parameters

string $templateName the path to the template
array $otherFields the list of additional fields fields

Return Value

string the rendered template.

at line 54
getBaseFieldList($otherFields)

Parameters

$otherFields

at line 59
checkBaseCouponFieldValue($fieldName, $fieldValue)

Parameters

$fieldName
$fieldValue