ZMObject
└─ZMTaxRate
public class ZMTaxRate
extends ZMObject
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| double | addTax(double amount) Add tax to the given amount. |
| double | calculateTax(double amount) Caclulate tax for the given amount. |
| int | Get the tax class id. |
| int | Get the country id. |
| string | Get the tax descrption. |
| string | getId() Get the tax rate idendtifier |
| float | getRate() Get the tax rate. |
| int | Get the zone id. |
| void | setClassId(int classId) Set the tax class id. |
| void | setCountryId(int countryId) Set the country id. |
| void | setDescription(string description) Set the tax description. |
| void | setId(string id) Set the tax rate idendtifier |
| void | setRate(float rate) Set the tax rate. |
| void | setZoneId(int zoneId) Set the zone id. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public mixed $classId_
public mixed $countryId_
public mixed $description_
public mixed $id_
public mixed $rate_
public mixed $zoneId_
public ZMTaxRate()
Create new instance.
public double addTax(double amount)
Add tax to the given amount.
public double calculateTax(double amount)
Caclulate tax for the given amount.
public int getClassId()
Get the tax class id.
public int getCountryId()
Get the country id.
public string getDescription()
Get the tax descrption.
public string getId()
Get the tax rate idendtifier
public float getRate()
Get the tax rate.
public int getZoneId()
Get the zone id.
public void setClassId(int classId)
Set the tax class id.
public void setCountryId(int countryId)
Set the country id.
public void setDescription(string description)
Set the tax description.
public void setId(string id)
Set the tax rate idendtifier
public void setRate(float rate)
Set the tax rate.
public void setZoneId(int zoneId)
Set the zone id.
Info for a single tax rate.
The tax rate id is build from the tax classId, countryId and zoneId to make it unique.