ZMObject
└─ZMOrder
public class ZMOrder
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create order. |
| ZMAccount | Get the account for this order. |
| int | Get the account id. |
| ZMAddress | Get the billing address. |
| int | getId() Get the order id. |
| string | Get the order date. |
| array | Get the order items. |
| array | getOrderStatusHistory(int languageId) Get the order status history. |
| int | Get the order status [id]. |
| float | getOrderTotalLineAmountForType(mixed tpye, string type) Get the total amount for a given total line type. |
| array | Get all order total lines. |
| ZMOrderTotalLine | getOrderTotalLinesForType(string type, boolean force) Get order total lines for the given type. |
| ZMPaymentType | Get the payment type. |
| ZMAddress | Get the shipping address. |
| string | Get the order status name [read only] |
| float | getTotal() Get the order total. |
| boolean | Checks if the order has a shipping address. |
| boolean | Check if the order it pickup. |
| void | setAccount(ZMAccount account) Set the account for this order. |
| void | setAccountId(int accountId) Set the account id. |
| void | setBillingAddress(ZMAddress address) Set the billing address. |
| void | setId(int id) Set the order id. |
| void | setOrderDate(string date) Set the order date. |
| void | setOrderStatusId(int statusId) Set the order status [id]. |
| void | setShippingAddress(ZMAddress address) Set the shipping address. |
| void | setTotal(float total) Set the order total. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create order.
public ZMAccount getAccount()
Get the account for this order.
NOTE: This contains the account information as of the time the order was placed. This might be different from the current account data.
public int getAccountId()
Get the account id.
public ZMAddress getBillingAddress()
Get the billing address.
null.public int getId()
Get the order id.
public string getOrderDate()
Get the order date.
public array getOrderItems()
Get the order items.
ZMOrderItem instances.public array getOrderStatusHistory(int languageId)
Get the order status history.
public int getOrderStatusId()
Get the order status [id].
public float getOrderTotalLineAmountForType(mixed tpye, string type)
Get the total amount for a given total line type.
public array getOrderTotalLines()
Get all order total lines.
ZMOrderTotalLine instances.public ZMOrderTotalLine getOrderTotalLinesForType(string type, boolean force)
Get order total lines for the given type.
ZMOrderTotalLine or null.public ZMPaymentType getPaymentType()
Get the payment type.
null if N/A.public ZMAddress getShippingAddress()
Get the shipping address.
null.public string getStatusName()
Get the order status name [read only]
public float getTotal()
Get the order total.
public boolean hasShippingAddress()
Checks if the order has a shipping address.
true if a shipping address exists, false if not.public boolean isStorePickup()
Check if the order it pickup.
true if the order is store pickup, false if not.public void setAccount(ZMAccount account)
Set the account for this order.
NOTE: This contains the account information as of the time the order was placed. This might be different from the current account data.
public void setAccountId(int accountId)
Set the account id.
public void setBillingAddress(ZMAddress address)
Set the billing address.
public void setId(int id)
Set the order id.
public void setOrderDate(string date)
Set the order date.
public void setOrderStatusId(int statusId)
Set the order status [id].
public void setShippingAddress(ZMAddress address)
Set the shipping address.
public void setTotal(float total)
Set the order total.
A single order.