ZMObject
└─ZMOrder
public class ZMOrder
extends ZMObject
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMOrder() Create order. |
|
| Method Summary | |
|---|---|
| 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 | Get the order status history. |
| int | Get the order status [id]. |
| ZMOrderTotal | getOrderTotal(string name, boolean force) Get order total for the given name. |
| array | Get all order totals. |
| 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 | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public mixed $accountId_
public mixed $orderDate_
public mixed $totalValue_
public mixed $total_
public mixed $zenOrder_
public ZMOrder()
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()
Get the order status history.
public int getOrderStatusId()
Get the order status [id].
public ZMOrderTotal getOrderTotal(string name, boolean force)
Get order total for the given name.
ZMOrderTotal or null.public array getOrderTotals()
Get all order totals.
ZMOrderTotal instances.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.