public class SkuPriceDataTierDto extends Object implements SkuPriceDataTier
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected Integer |
minQuantity |
protected org.broadleafcommerce.common.money.Money |
salePrice |
| Constructor and Description |
|---|
SkuPriceDataTierDto() |
| Modifier and Type | Method and Description |
|---|---|
static SkuPriceDataTierDto |
copy(SkuPriceDataTier skuPriceDataTier)
Returns an instance of a SkuPriceDataTierDto
|
<G extends SkuPriceDataTier> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
Long |
getId()
The unique identifier of this Entity
|
Integer |
getMinQuantity()
get the minimum quantity needed to qualify for sale price
|
org.broadleafcommerce.common.money.Money |
getSalePrice()
return the sale price of a
Sku for this tier. |
SkuPriceData |
getSkuPriceData()
get the
SkuPriceData |
void |
setId(Long id)
Sets the unique id of the Entity.(usually generated)
|
void |
setMinQuantity(Integer minQuantity)
set the minimum quantity needed to qualify for sale price
|
void |
setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
set the sale price of a
Sku for this tier. |
void |
setSkuPriceData(SkuPriceData skuPriceData)
set an associated
SkuPriceData |
protected Long id
protected org.broadleafcommerce.common.money.Money salePrice
protected Integer minQuantity
public Long getId()
SkuPriceDataTiergetId in interface SkuPriceDataTierpublic void setId(Long id)
SkuPriceDataTiersetId in interface SkuPriceDataTierpublic org.broadleafcommerce.common.money.Money getSalePrice()
SkuPriceDataTierSku for this tier.getSalePrice in interface SkuPriceDataTierpublic void setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
SkuPriceDataTierSku for this tier.setSalePrice in interface SkuPriceDataTierpublic Integer getMinQuantity()
SkuPriceDataTiergetMinQuantity in interface SkuPriceDataTierpublic void setMinQuantity(Integer minQuantity)
SkuPriceDataTiersetMinQuantity in interface SkuPriceDataTierpublic static SkuPriceDataTierDto copy(SkuPriceDataTier skuPriceDataTier)
skuPriceDataTier - public SkuPriceData getSkuPriceData()
SkuPriceDataTierSkuPriceDatagetSkuPriceData in interface SkuPriceDataTierpublic void setSkuPriceData(SkuPriceData skuPriceData)
SkuPriceDataTierSkuPriceDatasetSkuPriceData in interface SkuPriceDataTierpublic <G extends SkuPriceDataTier> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<SkuPriceDataTier>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.