Order Class

public class Order extends ResourceBaseWithLinks<StandardResourceLinks>

Order represents collection of information needed to purchase offers represented by each order line items.

Constructor Summary

Constructor Description
Order()

Method Summary

Modifier and Type Method and Description
BillingCycleType getBillingCycle()

Gets the type of billing cycle for the selected offers.

org.joda.time.DateTime getCreationDate()

Gets the creation date of the order.

java.lang.String getCurrencyCode()

Gets the currency code.

java.lang.String getCurrencySymbol()

Gets the currency symbol.

java.lang.String getId()

Gets the order identifier.

java.lang.Iterable<OrderLineItem> getLineItems()

Gets the order line items.

OrderLinks getLinks()

Gets the links corresponding to the order.

java.lang.String getReferenceCustomerId()

Gets the reference customer identifier.

java.lang.String getStatus()

Gets the status of the order.

double getTotalPrice()

Gets the total price for the order.

java.lang.String getTransactionType()

Gets the transaction type for the order.

void setBillingCycle(BillingCycleType value)

Sets the type of billing cycle for the selected offers.

void setCreationDate(DateTime value)

Sets the creation date of the order.

void setCurrencyCode(String value)

Sets the currency code.

void setCurrencySymbol(String value)

Sets the currency symbol.

void setId(String value)

Sets the order identifier.

void setLineItems(Iterable<OrderLineItem> value)

Sets the order line items.

void setLinks(OrderLinks value)

Sets the links corresponding to the order.

void setReferenceCustomerId(String value)

Sets the reference customer identifier.

void setStatus(String value)

Sets the status of the order.

void setsTotalPrice(double value)

Sets the total price for the order.

void setsTransactionType(String value)

Sets the transaction type for the order.

Inherited Members

ResourceBase.getAttributes() ResourceBaseWithLinks<TLinks>.getLinks() ResourceBaseWithLinks<TLinks>.setLinks(TLinks value) java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

Order

public Order()

Method Details

getBillingCycle

public BillingCycleType getBillingCycle()

Gets the type of billing cycle for the selected offers.

Returns:

The type of billing cycle for the selected offers.

getCreationDate

public DateTime getCreationDate()

Gets the creation date of the order.

Returns:

The creation date of the order.

getCurrencyCode

public String getCurrencyCode()

Gets the currency code.

Returns:

The currency code for the order.

getCurrencySymbol

public String getCurrencySymbol()

Gets the currency symbol.

Returns:

The currency symbol.

getId

public String getId()

Gets the order identifier.

Returns:

The order identifier.

getLineItems

public Iterable getLineItems()

Gets the order line items. Each order line item refers to one offer purchase data.

Returns:

The order line items. Each order line item refers to one offer purchase data.

getLinks

public OrderLinks getLinks()

Gets the links corresponding to the order.

Overrides:

Order.getLinks()

Returns:

The links corresponding to the order.

getReferenceCustomerId

public String getReferenceCustomerId()

Gets the reference customer identifier.

Returns:

The reference customer identifier.

getStatus

public String getStatus()

Gets the status of the order.

Returns:

The status of the order.

getTotalPrice

public double getTotalPrice()

Gets the total price for the order. Order price (will not be returned unless explicitly asked for) Note: this information is PRE-TAX.

Returns:

The total price for the order.

getTransactionType

public String getTransactionType()

Gets the transaction type for the order.

Returns:

The transaction type for the order.

setBillingCycle

public void setBillingCycle(BillingCycleType value)

Sets the type of billing cycle for the selected offers.

Parameters:

value - The type of billing cycle for the selected offers.

setCreationDate

public void setCreationDate(DateTime value)

Sets the creation date of the order.

Parameters:

value - The creation date of the order.

setCurrencyCode

public void setCurrencyCode(String value)

Sets the currency code.

Parameters:

value - The currency code for the order.

setCurrencySymbol

public void setCurrencySymbol(String value)

Sets the currency symbol.

Parameters:

value - The currency symbol.

setId

public void setId(String value)

Sets the order identifier.

Parameters:

value - The order identifier.

setLineItems

public void setLineItems(Iterable value)

Sets the order line items. Each order line item refers to one offer purchase data.

Parameters:

value - The order line items. Each order line item refers to one offer purchase data.

setLinks

public void setLinks(OrderLinks value)

Sets the links corresponding to the order.

Parameters:

value - The links corresponding to the order.

setReferenceCustomerId

public void setReferenceCustomerId(String value)

Sets the reference customer identifier.

Parameters:

value - The reference customer identifier.

setStatus

public void setStatus(String value)

Sets the status of the order.

Parameters:

value - The status of the order.

setsTotalPrice

public void setsTotalPrice(double value)

Sets the total price for the order.

Parameters:

value - The total price for the order.

setsTransactionType

public void setsTransactionType(String value)

Sets the transaction type for the order.

Parameters:

value - The transaction type for the order.

Applies to