phpDocumentor

GXEngineOrder
in package
implements OrderInterface, AddonValueContainerInterface

Class GXEngineOrder

This class is used for managing order data.

Tags
category

System

subpackage

Entities

Interfaces, Classes and Traits

OrderInterface
Interface OrderInterface
AddonValueContainerInterface
Interface AddonValueContainerInterface

Table of Contents

$addonValues  : EditableKeyValueCollection
Order addon collection.
$billingAddress  : AddressBlockInterface
Billing address.
$comment  : string
Order comment.
$currencyCode  : CurrencyCode
Order currency code.
$customerAddress  : AddressBlockInterface
Customer address.
$customerEmail  : string
Customer email address.
$customerId  : int
Customer ID.
$customerNumber  : string
Customer number.
$customerStatusInformation  : CustomerStatusInformation
Customer status information.
$customerTelephone  : string
Customer telephone number.
$deliveryAddress  : AddressBlockInterface
Delivery address.
$languageCode  : LanguageCode
Order language code.
$lastModifiedDateTime  : DateTime
Order last modified date time
$orderHash  : string
Unique order hash.
$orderId  : int
Order ID.
$orderItems  : OrderItemCollection
Order items.
$orderStatusHistoryReader  : OrderStatusHistoryStorage
Order status history.
$orderTotals  : OrderTotalCollection
Order totals.
$paymentType  : OrderPaymentType
Order payment type.
$purchaseDateTime  : DateTime
Order purchase date time.
$shippingType  : OrderShippingType
Order shipping type.
$statusId  : int
Order Status ID.
$totalWeight  : float
$vatIdNumber  : string
VAT ID number.
__construct()  : mixed
GXEngineOrder constructor.
addAddonValues()  : GXEngineOrder
Adds an addon collection to the existing one.
deleteAddonValue()  : GXEngineOrder
Removes an addon value from the addon value container by the given key.
getAddonValue()  : EditableKeyValueCollection
Returns the order addon value collection.
getAddonValueContainerId()  : int
Returns the addon value container ID.
getAddonValues()  : EditableKeyValueCollection
Returns the order addon value collection.
getBillingAddress()  : AddressBlockInterface
Returns the billing address.
getComment()  : string
Returns the order comment.
getCurrencyCode()  : CurrencyCode
Returns the order currency code.
getCustomerAddress()  : AddressBlockInterface
Returns the customer address.
getCustomerEmail()  : string
Returns the associated customer email address.
getCustomerId()  : int
Returns the associated customer ID.
getCustomerNumber()  : string
Returns the customer number.
getCustomerStatusInformation()  : CustomerStatusInformation
Returns the Customer status information.
getCustomerTelephone()  : string
Returns the associated customer telephone number.
getDeliveryAddress()  : AddressBlockInterface
Returns the delivery address.
getLanguageCode()  : LanguageCode
Returns the order language code.
getLastModifiedDateTime()  : DateTime
Returns the datetime of last modification.
getOrderHash()  : string
Returns the unique order hash.
getOrderId()  : int
Returns the order ID.
getOrderItems()  : OrderItemCollection
Returns the order items collection.
getOrderTotals()  : OrderTotalCollection
Returns the order totals collection.
getPaymentType()  : OrderPaymentType
Returns the order payment type.
getPurchaseDateTime()  : DateTime
Returns the order purchase datetime.
getShippingType()  : OrderShippingType
Returns the order shipping type.
getStatusHistory()  : OrderStatusHistoryListItemCollection
Returns the order status history.
getStatusId()  : int
Returns the order status ID.
getTotalWeight()  : float
Returns the total weight of the ordered products.
getVatIdNumber()  : string
Returns the VAT ID number.
setAddonValue()  : GXEngineOrder
Adds/updates a key value in the addon value collection.
setBillingAddress()  : GXEngineOrder
Sets the billing address.
setComment()  : GXEngineOrder
Sets the order comment.
setCurrencyCode()  : GXEngineOrder
Sets the order currency code.
setCustomerAddress()  : GXEngineOrder
Sets the customer address.
setCustomerEmail()  : GXEngineOrder
Sets the customer email address.
setCustomerId()  : GXEngineOrder
Sets the associated customer ID.
setCustomerNumber()  : GXEngineOrder
Sets customer number of Order
setCustomerStatusInformation()  : mixed
Sets the customer status information.
setCustomerTelephone()  : GXEngineOrder
Sets the customer telephone number.
setDeliveryAddress()  : GXEngineOrder
Sets the delivery address.
setLanguageCode()  : GXEngineOrder
Sets the order language code.
setLastModifiedDateTime()  : GXEngineOrder
Sets the date time of last modification.
setOrderHash()  : GXEngineOrder
Sets the unique order hash.
setOrderId()  : GXEngineOrder
Sets the order ID.
setOrderItems()  : GXEngineOrder
Sets the order items collection.
setOrderStatusHistoryReader()  : GXEngineOrder
Sets order status history storage object.
setOrderTotals()  : GXEngineOrder
Sets the order total collection.
setPaymentType()  : GXEngineOrder
Sets the order payment type.
setPurchaseDateTime()  : GXEngineOrder
Sets the order purchase date time.
setShippingType()  : GXEngineOrder
Sets the order shipping type.
setStatusId()  : GXEngineOrder
Sets the order status ID.
setTotalWeight()  : $this|GXEngineOrder
Sets the total weight of the ordered products.
setVatIdNumber()  : GXEngineOrder
Sets the VAT ID Number.
_initializeAddressProperties()  : mixed
Initializes default values for AddressBlock properties.
_initializeCollectionProperties()  : mixed
Initializes default values for Collection properties.
_initializeTypeAndCodeProperties()  : mixed
Initializes default values for type and code properties.

Properties

$customerTelephone

Customer telephone number.

protected string $customerTelephone = ''

$lastModifiedDateTime

Order last modified date time

protected DateTime $lastModifiedDateTime

$purchaseDateTime

Order purchase date time.

protected DateTime $purchaseDateTime

Methods

__construct()

GXEngineOrder constructor.

public __construct() : mixed
Return values
mixed

getAddonValueContainerId()

Returns the addon value container ID.

public getAddonValueContainerId() : int

The addon value container id is equal to the orders id.

Return values
int

Addon value container ID

getComment()

Returns the order comment.

public getComment() : string
Return values
string

Order comment.

getCustomerEmail()

Returns the associated customer email address.

public getCustomerEmail() : string
Return values
string

Associated customer email address.

getCustomerId()

Returns the associated customer ID.

public getCustomerId() : int
Return values
int

Associated customer ID.

getCustomerNumber()

Returns the customer number.

public getCustomerNumber() : string
Return values
string

Customer number.

getCustomerTelephone()

Returns the associated customer telephone number.

public getCustomerTelephone() : string
Return values
string

Associated customer telephone number.

getLastModifiedDateTime()

Returns the datetime of last modification.

public getLastModifiedDateTime() : DateTime
Return values
DateTime

Datetime of last modification.

getOrderHash()

Returns the unique order hash.

public getOrderHash() : string
Return values
string

Unique order hash.

getOrderId()

Returns the order ID.

public getOrderId() : int
Return values
int

Order ID.

getPurchaseDateTime()

Returns the order purchase datetime.

public getPurchaseDateTime() : DateTime
Return values
DateTime

Order purchase datetime.

getStatusId()

Returns the order status ID.

public getStatusId() : int
Return values
int

Order status ID.

getTotalWeight()

Returns the total weight of the ordered products.

public getTotalWeight() : float
Return values
float

getVatIdNumber()

Returns the VAT ID number.

public getVatIdNumber() : string
Return values
string

VAT ID number.

setLastModifiedDateTime()

Sets the date time of last modification.

public setLastModifiedDateTime(DateTime $lastModifiedDateTime) : GXEngineOrder
Parameters
$lastModifiedDateTime : DateTime

Last modification date time

Return values
GXEngineOrder

Same instance for method chaining.

setPurchaseDateTime()

Sets the order purchase date time.

public setPurchaseDateTime(DateTime $purchaseDateTime) : GXEngineOrder
Parameters
$purchaseDateTime : DateTime

Purchase date time.

Return values
GXEngineOrder

Same instance for method chaining.

_initializeAddressProperties()

Initializes default values for AddressBlock properties.

protected _initializeAddressProperties() : mixed
Return values
mixed

_initializeCollectionProperties()

Initializes default values for Collection properties.

protected _initializeCollectionProperties() : mixed
Return values
mixed

_initializeTypeAndCodeProperties()

Initializes default values for type and code properties.

protected _initializeTypeAndCodeProperties() : mixed
Return values
mixed

Search results