Package DE_EPAGES::Order::API::Object::Basket
object interface for Basket.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- className
- container
- dbPackage
- insertLineItem
- recalculate
- taxAreaDigitalByAddress
- updatePaymentMethod
- updateShippingMethod
- updateTaxArea
- updateTaxAreaDigital
className
Returns the class name, used for DAL access.
Syntax |
$ClassName = $Basket->className; |
Return |
|
container
Returns lineitem container of basket.
Syntax |
$LineItemContainer = $Basket->container; |
Return |
|
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; |
taxAreaDigitalByAddress
Get the basket tax area digital based on the shipping address country Default tax area digital is the tax area based on the shop address Returns the tax area digital for the basket, or undef if the address
Syntax |
$TaxDigital = $Basket->taxAreaDigitalByAddress(); |
Return |
|
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 |
|
updateTaxAreaDigital
Sets the basket tax area digital based on the shipping address country Default tax area digital is the tax area based on the shop address Returns true, if calculation of tax has changed, because of changed country in billing or shipping address
Syntax |
$TaxDigitalChanged = $Basket->updateTaxAreaDigital(); |
Return |
|