|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Order
Order
represents a customer's order.
Method Summary | |
---|---|
void |
addOrderNote(OrderNote orderNote)
Add a order note. |
void |
addOrderPayment(OrderPayment orderPayment)
Add a payment to the order. |
void |
addOrderSku(OrderSku orderSku)
Add an order SKU. |
void |
addReturn(OrderReturn orderReturn)
Add a return to the order. |
void |
addShipment(OrderShipment orderShipment)
Add an order shipment. |
java.util.Set |
getAppliedRules()
Get the set of AppliedRule objects that correspond to
rules that were fired while processing this order. |
java.math.BigDecimal |
getBalanceAmount()
Return the balance amount for this order. |
java.math.BigDecimal |
getBeforeTaxSubtotal()
Get the order before-tax subtotal of all items in the cart. |
Money |
getBeforeTaxSubtotalMoney()
Get the subtotal of all items in the cart. |
java.math.BigDecimal |
getBeforeTaxTotal()
Get the order before-tax total. |
Money |
getBeforeTaxTotalMoney()
Get the before-tax total of all items in the cart as Money object. |
Money |
getBeforeTaxTotalShippingCostMoney()
Get the before-tax total shipping cost for this order. |
OrderAddress |
getBillingAddress()
Get the billing address corresponding to this order. |
java.util.Date |
getCreatedDate()
Get the date that this order was created on. |
java.math.BigDecimal |
getCreditAmount()
Return the credit amount for this order. |
java.util.Currency |
getCurrency()
Get the order's currency. |
Customer |
getCustomer()
Get the customer corresponding to this order. |
java.lang.String |
getIpAddress()
Get the ip address of the computer that created the order. |
CmUser |
getLastModifiedBy()
Get the CM user who last modifed this order sku. |
java.util.Date |
getLastModifiedDate()
Get the date that the order was last modified on. |
java.util.Locale |
getLocale()
Get the order's locale. |
java.util.Set |
getOrderNotes()
Get the CSR notes associatied with this order. |
java.lang.String |
getOrderNumber()
Get the order number that is used by customers to reference their order. |
OrderPayment |
getOrderPayment()
Convenience method to retrieve a default order payment for this order. |
java.util.Set |
getOrderPayments()
Get the payment(s) for this order. |
java.util.Set |
getOrderSkus()
Get the SKUs in this order. |
java.util.Set |
getOrderTaxes()
Return the set of OrderTaxValue s. |
java.math.BigDecimal |
getPaidAmount()
Return the paid amount for this order. |
java.util.Set |
getReturns()
Get the returns associatied with this order. |
java.util.Set |
getShipments()
Get the shipments associatied with this order. |
Address |
getShippingAddress()
Convenience method that should only be used when only a single shipment is supported for a single order. |
OrderStatus |
getStatus()
Get the status of the order. |
java.math.BigDecimal |
getSubtotal()
Get the order subtotal of all items in the cart. |
java.math.BigDecimal |
getSubtotalDiscount()
Get the discount to the shopping cart subtotal. |
Money |
getSubtotalDiscountMoney()
Get the amount discounted from the order subtotal. |
Money |
getSubtotalMoney()
Get the subtotal of all items in the cart. |
java.math.BigDecimal |
getTotal()
Get the order total paid by the customer. |
Money |
getTotalMoney()
Get the sub total of all items in the cart after shipping, promotions, etc. |
Money |
getTotalShippingCostMoney()
Get the total shipping cost for this order. |
java.math.BigDecimal |
getTotalTaxes()
Calculate total taxes on order. |
Money |
getTotalTaxMoney()
Get the total tax for this order. |
boolean |
hasSubtotalDiscount()
Returns true if an order subtotal discount has been applied. |
boolean |
isInclusiveTaxCalculation()
Return whether this order is based on inclusive tax calculation or not. |
void |
setAppliedRules(java.util.Set appliedRules)
Set the AppliedRule objects that represent rules that
were fired while processing this order. |
void |
setBeforeTaxSubtotal(java.math.BigDecimal beforeTaxSubtotal)
Set the order before-tax subtotal paid by the customer. |
void |
setBeforeTaxTotal(java.math.BigDecimal beforeTaxTotal)
Set the order before-tax total. |
void |
setBillingAddress(OrderAddress billingAddress)
Set the billing address corresponding to this order. |
void |
setCreatedDate(java.util.Date createdDate)
Set the date that the order is created. |
void |
setCurrency(java.util.Currency currency)
Set the order's currency. |
void |
setCustomer(Customer customer)
Set the customer corresponding to this order. |
void |
setInclusiveTaxCalculation(boolean inclusiveTaxCalculation)
Set whether this order is based on inclusive tax calculation or not. |
void |
setIpAddress(java.lang.String ipAddress)
Set the ip address of the computer creating the order. |
void |
setLastModifiedBy(CmUser lastModifiedBy)
Set the CM User who last modified this order sku. |
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
Set the date that the order was last modified on. |
void |
setLocale(java.util.Locale locale)
Set the order's locale. |
void |
setOrderNotes(java.util.Set orderNotes)
Set the CSR Notes of this order. |
void |
setOrderNumber(java.lang.String orderNumber)
Set the order number that is used by customers to reference their order. |
void |
setOrderPayments(java.util.Set orderPayments)
Set the payment(s) for this order. |
void |
setOrderSkus(java.util.Set orderSkus)
Set the SKUs in this order. |
void |
setOrderTaxes(java.util.Set orderTaxes)
Set the set of OrderTaxValue s. |
void |
setReturns(java.util.Set returns)
Set the returns of this order. |
void |
setShipments(java.util.Set shipments)
Set the shipments of this order. |
void |
setStatus(OrderStatus status)
Set the status of the order. |
void |
setSubtotal(java.math.BigDecimal subtotal)
Set the order subtotal paid by the customer. |
void |
setSubtotalDiscount(java.math.BigDecimal discountAmount)
Applies a discount to the shopping cart subtotal. |
void |
setTotal(java.math.BigDecimal orderTotal)
Set the order total paid by the customer. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
void addOrderNote(OrderNote orderNote)
orderNote
- a new order note.void addOrderPayment(OrderPayment orderPayment)
orderPayment
- an OrderPayment
void addOrderSku(OrderSku orderSku)
orderSku
- the order SKU to addvoid addReturn(OrderReturn orderReturn)
orderReturn
- the OrderReturn
instance.void addShipment(OrderShipment orderShipment)
orderShipment
- the order shipment to addjava.util.Set getAppliedRules()
AppliedRule
objects that correspond to
rules that were fired while processing this order.
AppliedRule
objectsjava.math.BigDecimal getBalanceAmount()
java.math.BigDecimal getBeforeTaxSubtotal()
BigDecimal
object representing the order before-tax subtotalMoney getBeforeTaxSubtotalMoney()
Money
object representing the subtotaljava.math.BigDecimal getBeforeTaxTotal()
BigDecimal
object representing the order before-tax totalMoney getBeforeTaxTotalMoney()
Money
object representing the before-tax totalMoney getBeforeTaxTotalShippingCostMoney()
Money
representing the before-tax total shipping costOrderAddress getBillingAddress()
java.util.Date getCreatedDate()
java.math.BigDecimal getCreditAmount()
java.util.Currency getCurrency()
Currency
Customer getCustomer()
java.lang.String getIpAddress()
CmUser getLastModifiedBy()
java.util.Date getLastModifiedDate()
java.util.Locale getLocale()
Locale
java.util.Set getOrderNotes()
OrderNote
sjava.lang.String getOrderNumber()
OrderPayment getOrderPayment()
java.util.Set getOrderPayments()
OrderPayment
objectsjava.util.Set getOrderSkus()
OrderSkus
sjava.util.Set getOrderTaxes()
OrderTaxValue
s.
OrderTaxValue
s.java.math.BigDecimal getPaidAmount()
java.util.Set getReturns()
OrderReturn
sjava.util.Set getShipments()
OrderShipment
sAddress getShippingAddress()
OrderStatus getStatus()
java.math.BigDecimal getSubtotal()
BigDecimal
object representing the order subtotaljava.math.BigDecimal getSubtotalDiscount()
Money getSubtotalDiscountMoney()
Money
objectMoney getSubtotalMoney()
Money
object representing the subtotaljava.math.BigDecimal getTotal()
Money getTotalMoney()
Money
object representing the totalMoney getTotalShippingCostMoney()
Money
representing the total shipping costjava.math.BigDecimal getTotalTaxes()
Money getTotalTaxMoney()
Money
object representing the total taxboolean hasSubtotalDiscount()
boolean isInclusiveTaxCalculation()
void setAppliedRules(java.util.Set appliedRules)
AppliedRule
objects that represent rules that
were fired while processing this order.
appliedRules
- a set of AppliedRule
objectsvoid setBeforeTaxSubtotal(java.math.BigDecimal beforeTaxSubtotal)
beforeTaxSubtotal
- the order before-tax subtotalvoid setBeforeTaxTotal(java.math.BigDecimal beforeTaxTotal)
beforeTaxTotal
- the order before-tax totalvoid setBillingAddress(OrderAddress billingAddress)
billingAddress
- the Uid of the corresponding order address.void setCreatedDate(java.util.Date createdDate)
createdDate
- the start datevoid setCurrency(java.util.Currency currency)
currency
- the Currency
void setCustomer(Customer customer)
customer
- the Uid of the corresponding customer.void setInclusiveTaxCalculation(boolean inclusiveTaxCalculation)
inclusiveTaxCalculation
- true if this order is based on inclusive tax calculation; otherwise, false.void setIpAddress(java.lang.String ipAddress)
ipAddress
- the ip address of the creating computervoid setLastModifiedBy(CmUser lastModifiedBy)
lastModifiedBy
- the CM uservoid setLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- the date that the order was last modifiedvoid setLocale(java.util.Locale locale)
locale
- the Locale
void setOrderNotes(java.util.Set orderNotes)
orderNotes
- the set of OrderNote
svoid setOrderNumber(java.lang.String orderNumber)
orderNumber
- the order number, which may include characters.void setOrderPayments(java.util.Set orderPayments)
orderPayments
- a set of OrderPayment
objects.void setOrderSkus(java.util.Set orderSkus)
orderSkus
- the set of OrderSku
svoid setOrderTaxes(java.util.Set orderTaxes)
OrderTaxValue
s.
orderTaxes
- - set of OrderTaxValue
s.void setReturns(java.util.Set returns)
returns
- the set of OrderReturn
svoid setShipments(java.util.Set shipments)
shipments
- the set of OrderShipment
svoid setStatus(OrderStatus status)
status
- the status of the ordervoid setSubtotal(java.math.BigDecimal subtotal)
subtotal
- the order subtotalvoid setSubtotalDiscount(java.math.BigDecimal discountAmount)
discountAmount
- the amount to discount the subtotal by as a BigIntegervoid setTotal(java.math.BigDecimal orderTotal)
orderTotal
- the order total
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |