ZMObject
└─ZMTaxRates
public class ZMTaxRates
extends ZMObject
| Field Summary | |
|---|---|
| final str | |
| final str | |
| final str | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| string | getTaxDescription(int taxClassId, int countryId, int zoneId) Get the tax description for the give tax details. |
| ZMTaxRate | getTaxRateForClassId(int taxClassId, int countryId, int zoneId) Get tax for the given parameter. |
| float | getTaxRateForDescription(string description) Get the tax rate for the given description. |
| static void | instance() Get instance. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public final str TAX_BASE_BILLING = 'Billing'
public final str TAX_BASE_SHIPPING = 'Shipping'
public final str TAX_BASE_STORE = 'Store'
public ZMTaxRates()
Create new instance.
public string getTaxDescription(int taxClassId, int countryId, int zoneId)
Get the tax description for the give tax details.
null.public ZMTaxRate getTaxRateForClassId(int taxClassId, int countryId, int zoneId)
Get tax for the given parameter.
If neither countryId nor zoneId are specified, the customers default address
details will be used, or, if not available, the store defaults.
public float getTaxRateForDescription(string description)
Get the tax rate for the given description.
public static void instance()
Get instance.
Tax rates.
Rate values will have a precision that is 2 digits more than ZMSettings::get('calculationDecimals').