Class Order
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.ResourceBaseWithLinks<StandardResourceLinks>
com.microsoft.store.partnercenter.models.orders.Order
public class Order extends ResourceBaseWithLinks<StandardResourceLinks>
Order represents collection of information needed to purchase offers represented by each order line items.
-
Constructor Summary
Constructors Constructor Description Order() -
Method Summary
Modifier and Type Method Description BillingCycleTypegetBillingCycle()Gets the type of billing cycle for the selected offers.org.joda.time.DateTimegetCreationDate()Gets the creation date of the order.StringgetCurrencyCode()Gets the currency code.StringgetCurrencySymbol()Gets the currency symbol.StringgetId()Gets the order identifier.Iterable<OrderLineItem>getLineItems()Gets the order line items.OrderLinksgetLinks()Gets the links corresponding to the order.StringgetReferenceCustomerId()Gets the reference customer identifier.StringgetStatus()Gets the status of the order.doublegetTotalPrice()Gets the total price for the order.StringgetTransactionType()Gets the transaction type for the order.voidsetBillingCycle(BillingCycleType value)Sets the type of billing cycle for the selected offers.voidsetCreationDate(org.joda.time.DateTime value)Sets the creation date of the order.voidsetCurrencyCode(String value)Sets the currency code.voidsetCurrencySymbol(String value)Sets the currency symbol.voidsetId(String value)Sets the order identifier.voidsetLineItems(Iterable<OrderLineItem> value)Sets the order line items.voidsetLinks(OrderLinks value)Sets the links corresponding to the order.voidsetReferenceCustomerId(String value)Sets the reference customer identifier.voidsetStatus(String value)Sets the status of the order.voidsetsTotalPrice(double value)Sets the total price for the order.voidsetsTransactionType(String value)Sets the transaction type for the order.Methods inherited from class com.microsoft.store.partnercenter.models.ResourceBaseWithLinks
setLinks
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getBillingCycle
Gets the type of billing cycle for the selected offers.- Returns:
- The type of billing cycle for the selected offers.
-
setBillingCycle
Sets the type of billing cycle for the selected offers.- Parameters:
value- The type of billing cycle for the selected offers.
-
getCreationDate
public org.joda.time.DateTime getCreationDate()Gets the creation date of the order.- Returns:
- The creation date of the order.
-
setCreationDate
public void setCreationDate(org.joda.time.DateTime value)Sets the creation date of the order.- Parameters:
value- The creation date of the order.
-
getCurrencyCode
Gets the currency code.- Returns:
- The currency code for the order.
-
setCurrencyCode
Sets the currency code.- Parameters:
value- The currency code for the order.
-
getCurrencySymbol
Gets the currency symbol.- Returns:
- The currency symbol.
-
setCurrencySymbol
Sets the currency symbol.- Parameters:
value- The currency symbol.
-
getId
Gets the order identifier.- Returns:
- The order identifier.
-
setId
Sets the order identifier.- Parameters:
value- The order identifier.
-
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.
-
setLineItems
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.
-
getLinks
Gets the links corresponding to the order.- Overrides:
getLinksin classResourceBaseWithLinks<StandardResourceLinks>- Returns:
- The links corresponding to the order.
-
setLinks
Sets the links corresponding to the order.- Parameters:
value- The links corresponding to the order.
-
getReferenceCustomerId
Gets the reference customer identifier.- Returns:
- The reference customer identifier.
-
setReferenceCustomerId
Sets the reference customer identifier.- Parameters:
value- The reference customer identifier.
-
getStatus
Gets the status of the order.- Returns:
- The status of the order.
-
setStatus
Sets the status of the order.- Parameters:
value- 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.
-
setsTotalPrice
public void setsTotalPrice(double value)Sets the total price for the order.- Parameters:
value- The total price for the order.
-
getTransactionType
Gets the transaction type for the order.- Returns:
- The transaction type for the order.
-
setsTransactionType
Sets the transaction type for the order.- Parameters:
value- The transaction type for the order.
-