Package DE_EPAGES::Order::API::Object::Basket
object interface for Basket.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- className
- container
- dbPackage
- insertLineItem
- recalculate
- updatePaymentMethod
- updateShippingMethod
- updateTaxArea
className
Returns the class name, used for DAL access.
Syntax |
$ClassName = $Basket->className; |
Return |
|
container
Returns lineitem container of basket.
Syntax |
$LineItemContainer = $Basket->container; |
dbPackage
Returns the database package, used for DAL access.
Syntax |
$DbPackage = $Basket->dbPackage; |
Return |
|
insertLineItem
Insert a lineItem in to container, see DE_EPAGES::Order::API::Object::LineItemContainer::insertLineItem.
Syntax |
$Basket->insertLineItem; |
recalculate
Recalculate lineitem container, see DE_EPAGES::Order::API::Object::LineItemContainer::recalculate.
Syntax |
$Basket->recalculate; |
updatePaymentMethod
Sets the basket payment method based on the shipping/billing address country Returns 1 if payment method has changed, because of changed country in billing or shipping address
Syntax |
$PaymentChanged = $Basket->updatePaymentMethod(); |
Return |
|
updateShippingMethod
Sets the basket shipping method based on the shipping/billing address country Returns 1 if shipping method has changed, because of changed country in billing or shipping address
Syntax |
$ShippingChanged = $Basket->updateShippingMethod(); |
Return |
|
updateTaxArea
Sets the basket tax area based on the shipping address country Returns true, if calculation of tax has changed, because of changed country in billing or shipping address
Syntax |
$TaxChanged = $Basket->updateTaxArea(); |
Return |
|