GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Google::Checkout::General::TaxTableAreas(3) User Contributed Perl Documentation Google::Checkout::General::TaxTableAreas(3)

Google::Checkout::General::TaxTableAreas

  use Google::Checkout::XML::Constants;
  use Google::Checkout::General::TaxRule;
  use Google::Checkout::General::TaxTable;
  use Google::Checkout::General::TaxTableAreas;
  use Google::Checkout::General::MerchantCheckoutFlow;

  #--
  #-- 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]);

  #--
  #-- same tax table but with a name
  #--
  my $tax_table2 = Google::Checkout::General::TaxTable->new(
                   default    => 0,
                   name       => "tax",
                   standalone => 1,
                   rules      => [$tax_rule]);

  my $checkout_flow = Google::Checkout::General::MerchantCheckoutFlow->new(
                      shipping_method       => [$flat_rate_shipping],
                      edit_cart_url         => "http://edit/cart/url",
                      continue_shopping_url => "http://continue/shopping/url",
                      buyer_phone           => "1-111-111-1111",
                      tax_table             => [$tax_table1,$tax_table2],
                      merchant_calculation  => $merchant_calculation);

A sub-class of "Google::Checkout::General::ShippingRestrictions". This module is responsible for creating tax table areas which can then be added to "Google::Checkout::General::TaxRule".
new STATE => ..., ZIP => ..., COUNTRY => ...
Constructor. Takes array reference of state, zip code and country area where this tax table area will cover.
get_state
Returns an array reference of states.
add_state STATE
Adds another state.
get_zip
Returns an array reference of zip codes.
add_zip ZIP
Adds another zip code. Zip code might contains wildcard operator to specify a range of zip codes.
get_country
Returns the country area.
add_country COUNTRY_AREA
Adds another country area. Currently, only "Google::Checkout::XML::Constants::FULL_50_STATES" is supported.
get_country
Returns the country area.
add_postal POSTAL_AREA
Adds another postal area.
get_postal
Returns the postal area.
add_world BOOLEAN
Adds world area.
get_world
Returns

Copyright 2006 Google. All rights reserved.

Google::Checkout::General::TaxRule Google::Checkout::General::ShippingRestrictions
2007-09-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.