|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractValueObjectImpl
com.elasticpath.domain.order.impl.OrderSkuImpl
public class OrderSkuImpl
Represents an order for a quantity of SKUs.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
OrderSkuImpl()
|
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getAmount()
Get the amount for this sku (Price * Quantity). |
Money |
getAmountMoney(java.util.Currency currency)
Get the amount as a Money object. |
java.util.Date |
getCreatedDate()
Get the date that this order was created on. |
DigitalAsset |
getDigitalAsset()
Gets the digital asset belong to this order SKU. |
java.lang.String |
getDisplayName()
Get the product's display name. |
java.lang.String |
getDisplayNameCsr()
Get the product's display name in the CSR language. |
java.lang.String |
getDisplaySkuOptions()
Get the product's option values for display. |
Money |
getDollarSavingsMoney(java.util.Currency currency)
Calculates the MoneyImpl savings if the price has a discount. |
java.lang.String |
getEncryptedUidPk()
Get the encrypted uidPk string. |
java.lang.String |
getImage()
Get the product's image path. |
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.math.BigDecimal |
getListPrice()
Get the list price for this sku. |
Money |
getListPriceMoney(java.util.Currency currency)
Get the list price as a Money object. |
Product |
getProduct()
Get the parent product corresponding to this SKU. |
ProductSku |
getProductSku()
Get the product sku sold. |
long |
getProductSkuUid()
Get the product sku uid corrsponding to this OrderSku. |
long |
getProductUid()
Get the parent product uid corresponding to this OrderSku. |
int |
getQuantity()
Get the quantity of this sku ordered. |
java.math.BigDecimal |
getSavings()
Calculates the BigDecimal savings if any. |
java.lang.String |
getSkuCode()
Get the productSku SKU. |
java.math.BigDecimal |
getTax()
Get the tax amount. |
java.lang.String |
getTaxCode()
Gets the tax code for this order SKU. |
java.math.BigDecimal |
getUnitPrice()
Get the unit price for this sku. |
Money |
getUnitPriceMoney(java.util.Currency currency)
Get the unit price as a Money object. |
int |
getWeight()
Returns the shipping weight. |
boolean |
isUnitLessThanList(java.util.Currency currency)
Check if the unit price is less than the list price, i.e. |
void |
setAmount(java.math.BigDecimal amount)
Set the amount for this sku (Price * Quantity). |
void |
setCreatedDate(java.util.Date createdDate)
Set the date that the order is created. |
void |
setDigitalAsset(DigitalAsset digitalAsset)
Sets the digital asset. |
void |
setDisplayName(java.lang.String displayName)
Set the product's display name. |
void |
setDisplayNameCsr(java.lang.String displayNameCsr)
Set the product's display name in the CSR language. |
void |
setDisplaySkuOptions(java.lang.String displaySkuOptions)
Set the product's option values for display. |
void |
setImage(java.lang.String image)
Set the product's image path. |
void |
setLastModifiedBy(CmUser modifiedBy)
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 |
setListPrice(java.math.BigDecimal price)
Set the amount for this sku. |
void |
setProduct(Product product)
Set the parent product of this SKU. |
void |
setProductSku(ProductSku productSku)
Set the product sku sold. |
void |
setProductSkuUid(long productSkuUid)
Set the product sku uid. |
void |
setProductUid(long productUid)
Set the parent product uid of this SKU. |
void |
setQuantity(int quantity)
Set the quantity of this sku ordered. |
void |
setSkuCode(java.lang.String skuCode)
Set the SKU for this productSku. |
void |
setTax(java.math.BigDecimal tax)
Set the tax amount. |
void |
setTaxCode(java.lang.String taxCode)
Sets the tax code for this order SKU. |
void |
setUnitPrice(java.math.BigDecimal price)
Set the unit price for this sku. |
void |
setWeight(int weight)
Sets the shipping weight. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public OrderSkuImpl()
| Method Detail |
|---|
public java.math.BigDecimal getAmount()
getAmount in interface OrderSkupublic Money getAmountMoney(java.util.Currency currency)
Money object.
getAmountMoney in interface OrderSkucurrency - The currency of the order.
Money object representing the total pricepublic java.util.Date getCreatedDate()
getCreatedDate in interface OrderSkupublic DigitalAsset getDigitalAsset()
getDigitalAsset in interface OrderSkupublic java.lang.String getDisplayName()
getDisplayName in interface OrderSkupublic java.lang.String getDisplayNameCsr()
getDisplayNameCsr in interface OrderSkupublic java.lang.String getDisplaySkuOptions()
getDisplaySkuOptions in interface OrderSkupublic Money getDollarSavingsMoney(java.util.Currency currency)
MoneyImpl savings if the price has a discount.
getDollarSavingsMoney in interface OrderSkucurrency - The currency of the order.
MoneyImplpublic java.lang.String getEncryptedUidPk()
getEncryptedUidPk in interface OrderSkupublic java.lang.String getImage()
getImage in interface OrderSkupublic CmUser getLastModifiedBy()
getLastModifiedBy in interface OrderSkupublic java.util.Date getLastModifiedDate()
getLastModifiedDate in interface OrderSkupublic java.math.BigDecimal getListPrice()
getListPrice in interface OrderSkupublic Money getListPriceMoney(java.util.Currency currency)
Money object.
getListPriceMoney in interface OrderSkucurrency - The currency of the order.
Money object representing the list pricepublic Product getProduct()
getProduct in interface OrderSkuProduct or null if the product is unknownpublic ProductSku getProductSku()
getProductSku in interface OrderSkupublic long getProductSkuUid()
OrderSku.
getProductSkuUid in interface OrderSkupublic long getProductUid()
OrderSku.
Note that this value matches the key defined on the TPRODUCTSKU table by Product
getProductUid in interface OrderSkuProduct uidpublic int getQuantity()
getQuantity in interface OrderSkupublic java.math.BigDecimal getSavings()
BigDecimal savings if any.
getSavings in interface OrderSkuMoneyImplpublic java.lang.String getSkuCode()
getSkuCode in interface OrderSkupublic java.math.BigDecimal getTax()
getTax in interface OrderSkupublic java.lang.String getTaxCode()
getTaxCode in interface OrderSkupublic java.math.BigDecimal getUnitPrice()
getUnitPrice in interface OrderSkupublic Money getUnitPriceMoney(java.util.Currency currency)
Money object.
getUnitPriceMoney in interface OrderSkucurrency - The currency of the order.
Money object representing the unit pricepublic int getWeight()
getWeight in interface OrderSkupublic boolean isUnitLessThanList(java.util.Currency currency)
isUnitLessThanList in interface OrderSkucurrency - The currency of the order.
public void setAmount(java.math.BigDecimal amount)
setAmount in interface OrderSkuamount - the amountpublic void setCreatedDate(java.util.Date createdDate)
setCreatedDate in interface OrderSkucreatedDate - the start datepublic void setDigitalAsset(DigitalAsset digitalAsset)
setDigitalAsset in interface OrderSkudigitalAsset - the digital assetpublic void setDisplayName(java.lang.String displayName)
setDisplayName in interface OrderSkudisplayName - the product's display namepublic void setDisplayNameCsr(java.lang.String displayNameCsr)
setDisplayNameCsr in interface OrderSkudisplayNameCsr - the product's display name in the CSR language.public void setDisplaySkuOptions(java.lang.String displaySkuOptions)
setDisplaySkuOptions in interface OrderSkudisplaySkuOptions - the product's option values for displaypublic void setImage(java.lang.String image)
setImage in interface OrderSkuimage - the product's image pathpublic void setLastModifiedBy(CmUser modifiedBy)
setLastModifiedBy in interface OrderSkumodifiedBy - the CM userpublic void setLastModifiedDate(java.util.Date lastModifiedDate)
setLastModifiedDate in interface OrderSkulastModifiedDate - the date that the order was last modifiedpublic void setListPrice(java.math.BigDecimal price)
setListPrice in interface OrderSkuprice - the pricepublic void setProduct(Product product)
setProduct in interface OrderSkuproduct - the parent productpublic void setProductSku(ProductSku productSku)
setProductSku in interface OrderSkuproductSku - the product skupublic void setProductSkuUid(long productSkuUid)
setProductSkuUid in interface OrderSkuproductSkuUid - the product sku uidpublic void setProductUid(long productUid)
setProductUid in interface OrderSkuproductUid - the parent productUidpublic void setQuantity(int quantity)
setQuantity in interface OrderSkuquantity - the quantitypublic void setSkuCode(java.lang.String skuCode)
setSkuCode in interface OrderSkuskuCode - the SKUpublic void setTax(java.math.BigDecimal tax)
setTax in interface OrderSkutax - the tax amountpublic void setTaxCode(java.lang.String taxCode)
setTaxCode in interface OrderSkutaxCode - the tax code for this order SKU.public void setUnitPrice(java.math.BigDecimal price)
setUnitPrice in interface OrderSkuprice - the pricepublic void setWeight(int weight)
setWeight in interface OrderSkuweight - the shipping weight to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||