|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OrderSku
Represents an order for a quantity of SKUs.
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 amount 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 createdBy)
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 interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
java.math.BigDecimal getAmount()
Money getAmountMoney(java.util.Currency currency)
Money
object.
currency
- The currency of the order.
Money
object representing the total pricejava.util.Date getCreatedDate()
DigitalAsset getDigitalAsset()
java.lang.String getDisplayName()
java.lang.String getDisplayNameCsr()
java.lang.String getDisplaySkuOptions()
Money getDollarSavingsMoney(java.util.Currency currency)
MoneyImpl
savings if the price has a discount.
currency
- The currency of the order.
MoneyImpl
java.lang.String getEncryptedUidPk()
java.lang.String getImage()
CmUser getLastModifiedBy()
java.util.Date getLastModifiedDate()
java.math.BigDecimal getListPrice()
Money getListPriceMoney(java.util.Currency currency)
Money
object.
currency
- The currency of the order.
Money
object representing the priceProduct getProduct()
Product
or null if the product is unknownProductSku getProductSku()
long getProductSkuUid()
OrderSku
.
long getProductUid()
OrderSku
.
Note that this value matches the key defined on the TPRODUCTSKU table by Product
Product
uidint getQuantity()
java.math.BigDecimal getSavings()
BigDecimal
savings if any.
MoneyImpl
java.lang.String getSkuCode()
java.math.BigDecimal getTax()
java.lang.String getTaxCode()
java.math.BigDecimal getUnitPrice()
Money getUnitPriceMoney(java.util.Currency currency)
Money
object.
currency
- The currency of the order.
Money
object representing the unit priceint getWeight()
boolean isUnitLessThanList(java.util.Currency currency)
currency
- The currency of the order.
void setAmount(java.math.BigDecimal amount)
amount
- the amountvoid setCreatedDate(java.util.Date createdDate)
createdDate
- the start datevoid setDigitalAsset(DigitalAsset digitalAsset)
digitalAsset
- the digital assetvoid setDisplayName(java.lang.String displayName)
displayName
- the product's display namevoid setDisplayNameCsr(java.lang.String displayNameCsr)
displayNameCsr
- the product's display name in the CSR language.void setDisplaySkuOptions(java.lang.String displaySkuOptions)
displaySkuOptions
- the product's option values for displayvoid setImage(java.lang.String image)
image
- the product's image pathvoid setLastModifiedBy(CmUser createdBy)
createdBy
- the CM uservoid setLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- the date that the order was last modifiedvoid setListPrice(java.math.BigDecimal price)
price
- the pricevoid setProduct(Product product)
product
- the parent productvoid setProductSku(ProductSku productSku)
productSku
- the product skuvoid setProductSkuUid(long productSkuUid)
productSkuUid
- the product sku uidvoid setProductUid(long productUid)
productUid
- the parent productUidvoid setQuantity(int quantity)
quantity
- the quantityvoid setSkuCode(java.lang.String skuCode)
skuCode
- the SKUvoid setTax(java.math.BigDecimal tax)
tax
- the tax amountvoid setTaxCode(java.lang.String taxCode)
taxCode
- the tax code for this order SKU.void setUnitPrice(java.math.BigDecimal price)
price
- the pricevoid setWeight(int weight)
weight
- the shipping weight to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |