ePages 7.3.0 - DE_EPAGES/PayPalPlus/API/Webservice/CreatePayment/Repository/Discount.pm

Package DE_EPAGES::PayPalPlus::API::Webservice::CreatePayment::Repository::Discount

Class to calculate the discount value on the LineItemContainer

Functions

getDiscountValue
getFeeValue
new

getDiscountValue

Return the total discount value on the LineItemContainer

Syntax
getDiscountValue( $LineItemContainer );
Input
$LineItemContainer (DE_EPAGES::Order::API::Object::LineItemContainer)
LineItemContainer Object
Return
(float)
Discount value

getFeeValue

Return the fee value on the LineItemContainer

Syntax
getFeeValue( $LineItemContainer );
Input
$LineItemContainer (DE_EPAGES::Order::API::Object::LineItemContainer)
LineItemContainer Object
Return
(float)
Fee value

new

constuctor

Syntax
new( );
Return
$self (DE_EPAGES::PayPalPlus::API::Webservice::CreatePayment::Repository::Discount)
self