Class gTaxRule

Description

Google Checkout Tax Rule Primitive

Google Checkout API Tax Tables are agregated into tax rules. ie. Tax Tables 1-* Tax Rules.

This class is the abstraction of a Google Checkout Tax Rule object.

  • copyright: Expert Database Solutions, LLC 2006
  • author: Ron Howard

Located in /classes/gTaxRule.php (line 43)


	
			
Variable Summary
 mixed $_arr_states
 mixed $_arr_zips
 mixed $_rate
 mixed $_type
Method Summary
 gTaxRule gTaxRule (unknown_type $rate, [unknown_type $country_area = null], [unknown_type $arr_states = null], [unknown_type $arr_zips = null], [unknown_type $type = "alternate"])
 XML getXML ()
 void setShippingTaxed ([unknown_type $shipping_taxed = 'false'])
Variables
mixed $_arr_states (line 46)
mixed $_arr_zips (line 47)
mixed $_country_area (line 45)
mixed $_rate (line 44)
mixed $_shipping_taxed (line 49)
mixed $_type (line 48)
Methods
Constructor gTaxRule (line 69)

Google Checkout Tax Rule Constructor

Note: $type parameter is here just for unit testing during construction of the tax table. The rule will be set to the type of the tax table.

ie if a default tax table calls the getXML() method then the tax rule will be set to type = 'default'

gTaxRule gTaxRule (unknown_type $rate, [unknown_type $country_area = null], [unknown_type $arr_states = null], [unknown_type $arr_zips = null], [unknown_type $type = "alternate"])
  • unknown_type $rate
  • unknown_type $country_area
  • unknown_type $arr_states
  • unknown_type $arr_zips
  • unknown_type $type
getXML (line 94)

Returns the XML Representation of tax rule

  • return: representation of a tax rul
  • access: public
XML getXML ()
setShippingTaxed (line 84)

Are we taxing the shipping as well

void setShippingTaxed ([unknown_type $shipping_taxed = 'false'])
  • unknown_type $shipping_taxed

Documentation generated on Mon, 04 Dec 2006 10:47:12 -0500 by phpDocumentor 1.3.0RC3