public final class CSPrices
extends java.lang.Object
The CSPrices
class stores product option prices and the information used for calculating the prices.
CSCountry
,
CSProductOption
,
CSVatScheme
Constructor and Description |
---|
CSPrices()
Construct an empty
CSPrices object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getCountryGrossPrice()
Gets the specified country's price, excluding VAT.
|
java.lang.String |
getCountryName()
Gets the country's name used when calculating the country prices.
|
java.lang.Double |
getCountryNetPrice()
Gets the specified country's price, including VAT.
|
java.lang.Double |
getCountryVat()
Gets the specified country's VAT.
|
java.lang.Double |
getGrossPrice()
Gets the price, including VAT, for the country defined in the iCM Commerce Settings.
|
java.lang.Double |
getNetPrice()
Gets the price, excluding VAT, for the country defined in the iCM Commerce Settings.
|
java.lang.Double |
getVat()
Sets the VAT for the country defined in the iCM Commerce Settings.
|
java.lang.String |
getVatCode()
Gets the VAT code used to calculate the prices.
|
java.lang.Integer |
getVatSchemeID()
Gets the VAT scheme's ID used to calculate the prices.
|
void |
setCountryGrossPrice(java.lang.Double nCountryGrossPrice)
Sets the specified country's price, excluding VAT.
|
void |
setCountryName(java.lang.String strCountryName)
Sets the country's name used when calculating the country prices.
|
void |
setCountryNetPrice(java.lang.Double nCountryNetPrice)
Sets the specified country's price, including VAT.
|
void |
setCountryVat(java.lang.Double nCountryVatRate)
Sets the specified country's VAT.
|
void |
setGrossPrice(java.lang.Double nGrossPrice)
Sets the price, including VAT, for the country defined in the iCM Commerce Settings.
|
void |
setNetPrice(java.lang.Double nNetPrice)
Sets the price, excluding VAT, for the country defined in the iCM Commerce Settings.
|
void |
setVat(java.lang.Double nVatRate)
Gets the VAT for the country defined in the iCM Commerce Settings.
|
void |
setVatCode(java.lang.String strVatCode)
Sets the VAT code used to calculate the prices.
|
void |
setVatSchemeID(java.lang.Integer nVatSchemeID)
Sets the VAT scheme's ID used to calculate the prices.
|
public java.lang.Double getNetPrice()
public void setNetPrice(java.lang.Double nNetPrice)
nNetPrice
- price excluding VAT.public java.lang.Double getGrossPrice()
public void setGrossPrice(java.lang.Double nGrossPrice)
nGrossPrice
- price including VAT.public java.lang.Double getVat()
public void setVat(java.lang.Double nVatRate)
nVatRate
- the VAT.public java.lang.Double getCountryNetPrice()
public void setCountryNetPrice(java.lang.Double nCountryNetPrice)
nCountryNetPrice
- the country's price, including VAT.public java.lang.Double getCountryGrossPrice()
public void setCountryGrossPrice(java.lang.Double nCountryGrossPrice)
nCountryGrossPrice
- The country's price, excluding VAT.public java.lang.Double getCountryVat()
public void setCountryVat(java.lang.Double nCountryVatRate)
nCountryVatRate
- the VAT.public java.lang.String getCountryName()
public void setCountryName(java.lang.String strCountryName)
strCountryName
- the country's name.public java.lang.String getVatCode()
public void setVatCode(java.lang.String strVatCode)
strVatCode
- the VAT code.public java.lang.Integer getVatSchemeID()
public void setVatSchemeID(java.lang.Integer nVatSchemeID)
nVatSchemeID
- the VAT scheme's ID.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.