ZMObject
└─ZMTaxRates
public class ZMTaxRates
extends ZMObject
| Constant Summary | |
|---|---|
| final static str | |
| final static str | |
| final static str | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| 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 | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public final static str TAX_BASE_BILLING = 'Billing'
public final static str TAX_BASE_SHIPPING = 'Shipping'
public final static str TAX_BASE_STORE = 'Store'
public void __construct()
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').