ZenMagick 0.9.1


org.zenmagick.service.ZMTaxRates

Class ZMTaxRates

ZMObject
|
+--ZMTaxRates

public class ZMTaxRates
extends ZMObject

Tax rates.

Author:
DerManoMann
Version:
$Id: ZMTaxRates.php 957 2008-03-30 21:03:12Z DerManoMann $

Constructor Summary

ZMTaxRates()

Create new instance.

Method Summary
string

getTaxDescription(int classId, int countryId, int zoneId)

Get the tax description for the give tax details.

ZMTaxRate

getTaxRateForClassId(int classId, 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.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMTaxRates

public ZMTaxRates()

Create new instance. /


Method Detail

getTaxDescription

public string getTaxDescription(int classId, int countryId, int zoneId)

Get the tax description for the give tax details.

Parameters:
classId - The tax class id.
countryId - The country id.
zoneId - The zoneId.
Returns:
The decription or null.

getTaxRateForClassId

public ZMTaxRate getTaxRateForClassId(int classId, 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.

Parameters:
classId - The tax class id.
countryId - Optional country id; default is 0.
zoneId - Optional zoneId; default is 0.
Returns:
The tax rate.

getTaxRateForDescription

public float getTaxRateForDescription(string description)

Get the tax rate for the given description.

Parameters:
description - The tax description.
Returns:
The tax rate.

instance

public static void instance()

Get instance. /


ZenMagick 0.9.1