Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/General/TaxRule.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/General/TaxRule.pm


NAME

Google::Checkout::General::TaxRule


SYNOPSIS


  use Google::Checkout::XML::Constants;

  use Google::Checkout::General::TaxRule;

  use Google::Checkout::General::TaxTableAreas;

 

  #--

  #-- Shipping tax set to 1 means shippings

  #-- are taxable and the rate is 2.5%. This 

  #-- tax rule should apply to all 50 states

  #-- 

  my $tax_rule = Google::Checkout::General::TaxRule->new(

                 shipping_tax => 1,

                 rate => 0.025,

                 area => Google::Checkout::General::TaxTableAreas->new(

                         country => [Google::Checkout::XML::Constants::FULL_50_STATES]));

  #--

  #-- default tax table

  #--

  my $tax_table1 = Google::Checkout::General::TaxTable->new(

                   default => 1,

                   rules => [$tax_rule]);


DESCRIPTION

This module is responsible for creating text rule which can then be added to a tax table (Google::Checkout::General::TaxTable).

new SHIPPING_TAX => ..., RATE => ..., AREA => ...
Constructor. If SHIPPING_TAX is true, it means the shipping is taxable and the tax rate should be RATE. AREA should be an object of Google::Checkout::General::TaxTableAreas specifying where this tax rule should be applied to.

get_rate
Returns the tax rate.

set_rate RATE
Sets the tax rate.

require_shipping_tax FLAG
If there is a FLAG pass in, it sets the shipping tax flag and return the old value. If no argument is passed in, it returns the current shipping tax flag.

get_area
Returns the Google::Checkout::General::TaxTableAreas object where this tax rule is applied to.

set_area AREA
Sets where this tax rule should be applied to.


COPYRIGHT

Copyright 2006 Google. All rights reserved.


SEE ALSO

Google::Checkout::General::TaxTableAreas

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy