|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 OrderSku
public Money getAmountMoney(java.util.Currency currency)
Money
object.
getAmountMoney
in interface OrderSku
currency
- The currency of the order.
Money
object representing the total pricepublic java.util.Date getCreatedDate()
getCreatedDate
in interface OrderSku
public DigitalAsset getDigitalAsset()
getDigitalAsset
in interface OrderSku
public java.lang.String getDisplayName()
getDisplayName
in interface OrderSku
public java.lang.String getDisplayNameCsr()
getDisplayNameCsr
in interface OrderSku
public java.lang.String getDisplaySkuOptions()
getDisplaySkuOptions
in interface OrderSku
public Money getDollarSavingsMoney(java.util.Currency currency)
MoneyImpl
savings if the price has a discount.
getDollarSavingsMoney
in interface OrderSku
currency
- The currency of the order.
MoneyImpl
public java.lang.String getEncryptedUidPk()
getEncryptedUidPk
in interface OrderSku
public java.lang.String getImage()
getImage
in interface OrderSku
public CmUser getLastModifiedBy()
getLastModifiedBy
in interface OrderSku
public java.util.Date getLastModifiedDate()
getLastModifiedDate
in interface OrderSku
public java.math.BigDecimal getListPrice()
getListPrice
in interface OrderSku
public Money getListPriceMoney(java.util.Currency currency)
Money
object.
getListPriceMoney
in interface OrderSku
currency
- The currency of the order.
Money
object representing the list pricepublic Product getProduct()
getProduct
in interface OrderSku
Product
or null if the product is unknownpublic ProductSku getProductSku()
getProductSku
in interface OrderSku
public long getProductSkuUid()
OrderSku
.
getProductSkuUid
in interface OrderSku
public long getProductUid()
OrderSku
.
Note that this value matches the key defined on the TPRODUCTSKU table by Product
getProductUid
in interface OrderSku
Product
uidpublic int getQuantity()
getQuantity
in interface OrderSku
public java.math.BigDecimal getSavings()
BigDecimal
savings if any.
getSavings
in interface OrderSku
MoneyImpl
public java.lang.String getSkuCode()
getSkuCode
in interface OrderSku
public java.math.BigDecimal getTax()
getTax
in interface OrderSku
public java.lang.String getTaxCode()
getTaxCode
in interface OrderSku
public java.math.BigDecimal getUnitPrice()
getUnitPrice
in interface OrderSku
public Money getUnitPriceMoney(java.util.Currency currency)
Money
object.
getUnitPriceMoney
in interface OrderSku
currency
- The currency of the order.
Money
object representing the unit pricepublic int getWeight()
getWeight
in interface OrderSku
public boolean isUnitLessThanList(java.util.Currency currency)
isUnitLessThanList
in interface OrderSku
currency
- The currency of the order.
public void setAmount(java.math.BigDecimal amount)
setAmount
in interface OrderSku
amount
- the amountpublic void setCreatedDate(java.util.Date createdDate)
setCreatedDate
in interface OrderSku
createdDate
- the start datepublic void setDigitalAsset(DigitalAsset digitalAsset)
setDigitalAsset
in interface OrderSku
digitalAsset
- the digital assetpublic void setDisplayName(java.lang.String displayName)
setDisplayName
in interface OrderSku
displayName
- the product's display namepublic void setDisplayNameCsr(java.lang.String displayNameCsr)
setDisplayNameCsr
in interface OrderSku
displayNameCsr
- the product's display name in the CSR language.public void setDisplaySkuOptions(java.lang.String displaySkuOptions)
setDisplaySkuOptions
in interface OrderSku
displaySkuOptions
- the product's option values for displaypublic void setImage(java.lang.String image)
setImage
in interface OrderSku
image
- the product's image pathpublic void setLastModifiedBy(CmUser modifiedBy)
setLastModifiedBy
in interface OrderSku
modifiedBy
- the CM userpublic void setLastModifiedDate(java.util.Date lastModifiedDate)
setLastModifiedDate
in interface OrderSku
lastModifiedDate
- the date that the order was last modifiedpublic void setListPrice(java.math.BigDecimal price)
setListPrice
in interface OrderSku
price
- the pricepublic void setProduct(Product product)
setProduct
in interface OrderSku
product
- the parent productpublic void setProductSku(ProductSku productSku)
setProductSku
in interface OrderSku
productSku
- the product skupublic void setProductSkuUid(long productSkuUid)
setProductSkuUid
in interface OrderSku
productSkuUid
- the product sku uidpublic void setProductUid(long productUid)
setProductUid
in interface OrderSku
productUid
- the parent productUidpublic void setQuantity(int quantity)
setQuantity
in interface OrderSku
quantity
- the quantitypublic void setSkuCode(java.lang.String skuCode)
setSkuCode
in interface OrderSku
skuCode
- the SKUpublic void setTax(java.math.BigDecimal tax)
setTax
in interface OrderSku
tax
- the tax amountpublic void setTaxCode(java.lang.String taxCode)
setTaxCode
in interface OrderSku
taxCode
- the tax code for this order SKU.public void setUnitPrice(java.math.BigDecimal price)
setUnitPrice
in interface OrderSku
price
- the pricepublic void setWeight(int weight)
setWeight
in interface OrderSku
weight
- the shipping weight to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |