Package DE_EPAGES::Order::API::Object::CustomerOrder
object interface for CustomerOrder.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- addLineItemContainer
- className
- clone
- container
- dbPackage
- exportXMLAttributes
- getExtraExportableAttributes
- insertLineItem
- recalculate
- updateTaxArea
addLineItemContainer
Adds a line item container to a new order that does not have a line item container. Note: Do not usde this method directly! Use DE_EPAGES::Order::API::Order::CreateOrder instead.
Syntax |
$Order->addLineItemContainer( $hValues ); |
Example |
$Order->addLineItemContainer( { 'CurrencyID' => 'USD', 'LocaleID' => 'en_US' } ); |
Input |
|
Return |
|
className
Returns the class name, used for DAL access.
Syntax |
$ClassName = $CustomerOrder->className; |
Return |
|
clone
Inserts a new order into the database as copy from old order.
Syntax |
$Clone = $CustomerOrder->clone( $hInfo ); $Clone = $CustomerOrder->clone( $hInfo, $Recursive ); |
Input |
|
Return |
|
container
Returns the line item container of the order.
Syntax |
$LineItemContainer = $CustomerOrder->container; |
Return |
|
dbPackage
Returns the database package, used for DAL access.
Syntax |
$DbPackage = $CustomerOrder->dbPackage; |
Return |
|
exportXMLAttributes
Returns plain attributes of object to XML export driver. This function removes bit attributes with value 0.
Syntax |
$hAttributes = $Object->exportXMLAttributes( $Driver, $hAllAttributes ); |
Input |
|
Return |
|
getExtraExportableAttributes
Returns names of attributes of object for XML export of orders.
Syntax |
$aAttributes = $Object->getExtraExportableAttributes(); |
Return |
|
insertLineItem
Insert a lineItem in to container, see DE_EPAGES::Order::API::Object::LineItemContainer::insertLineItem.
Syntax |
$CustomerOrder->insertLineItem; |
Input |
|
recalculate
Recalculate lineitem container, see DE_EPAGES::Order::API::Object::LineItemContainer::recalculate.
Syntax |
$CustomerOrder->recalculate; |
Input |
|
updateTaxArea
Updates the tax area of the order based on the shipping address. Sets the tax are to the customer tax area if a tax area is explicitely for the customer. Note: After $CustomerOrder->updateTaxArea you must call $CustomerOrder->recalculate to update the price calculation.
Syntax |
$CustomerOrder->updateTaxArea; |
Example |
$CustomerOrder->set({'ShippingAddress' => $NewShippingAddress}); if( $CustomerOrder->updateTaxArea ) { $CustomerOrder->recalculate; } |
Return |
|