Class GXEngineOrder
Class GXEngineOrder
This class is used for managing order data.
- GXEngineOrder implements OrderInterface, AddonValueContainerInterface
Category: System
Located at Services/Core/Order/Entities/GXEngineOrder.inc.php
Methods summary
protected
_initializeAddressProperties( void )
Initializes default values for AddressBlock properties.
protected
_initializeCollectionProperties( void )
Initializes default values for Collection properties.
protected
_initializeTypeAndCodeProperties( void )
Initializes default values for type and code properties.
public
setCustomerTelephone( StringType $telephone )
: GXEngineOrder
Sets the customer telephone number.
public
setCustomerNumber( StringType $customerNumber )
: GXEngineOrder
Sets customer number of Order
public
setCustomerStatusInformation( CustomerStatusInformation $customerStatusInformation )
Sets the customer status information.
public
getCustomerStatusInformation( void )
: CustomerStatusInformation
Returns the Customer status information.
public
setCustomerAddress( AddressBlockInterface $address )
: GXEngineOrder
Sets the customer address.
public
setBillingAddress( AddressBlockInterface $address )
: GXEngineOrder
Sets the billing address.
public
setDeliveryAddress( AddressBlockInterface $address )
: GXEngineOrder
Sets the delivery address.
public
setOrderItems( OrderItemCollection $collection )
: GXEngineOrder
Sets the order items collection.
public
setOrderTotals( OrderTotalCollection $collection )
: GXEngineOrder
Sets the order total collection.
public
setShippingType( OrderShippingType $shippingType )
: GXEngineOrder
Sets the order shipping type.
public
setPurchaseDateTime( DateTime $purchaseDateTime )
: GXEngineOrder
Sets the order purchase date time.
public
setLastModifiedDateTime( DateTime $lastModifiedDateTime )
: GXEngineOrder
Sets the date time of last modification.
public
setOrderStatusHistoryReader( OrderStatusHistoryReaderInterface $orderStatusHistoryReader )
: GXEngineOrder
Sets order status history storage object.
public
getStatusHistory( void )
: OrderStatusHistoryListItemCollection
Returns the order status history.
public
getAddonValueContainerId( void )
: integer
Returns the addon value container ID. The addon value container id is equal to the orders id.
public
getAddonValue( StringType $key )
: EditableKeyValueCollection
Returns the order addon value collection.
public
getAddonValues( void )
: EditableKeyValueCollection
Returns the order addon value collection.
public
setAddonValue( StringType $key, StringType $value )
: GXEngineOrder
Adds/updates a key value in the addon value collection.
public
addAddonValues( KeyValueCollection $addonCollection )
: GXEngineOrder
Adds an addon collection to the existing one.
public
deleteAddonValue( StringType $key )
: GXEngineOrder
Removes an addon value from the addon value container by the given key.