David Shao Lin Zhuo

NAME

Google::Checkout::General::Shipping

DESCRIPTION

Parent class of Google::Checkout::General::FlatRateShipping, Google::Checkout::General::Pickup, and Google::Checkout::General::MerchantCalculatedShipping. Normally, you won't need to use this module directly.

new NAME => ..., SHIPPING_NAME => ..., PRICE => ..., RESTRICTION => ..., AddressFilters => ...

Constructor. NAME is used internally. SHIPPING_NAME is the name of the shipping method. RPICE is the shipping charge and RESTRICTION is an object of Google::Checkout::General::ShippingRestrictions where shipping restrictions are defined. ADDRESS_FILTERS is an object of Google::Checkout::General::AddressFilters where address filters are defined. Again, you probably won't need to use this module directly.

get_name

Returns the internally used name.

set_name NAME

Sets the internal name.

get_shipping_name

Returns the name of the shipping method.

set_shipping_name NAME

Sets the name of the shipping method.

get_price

Returns the charging price for this shipping method.

set_price PRICE

Sets the charging price for this shipping method.

get_address_filters

Returns the shipping address-filters: An object of Google::Checkout::General::AddressFilters.

set_address_filters ADDRESS_FILTERS

Sets the shipping address filters to ADDRESS_FILTERS: An object of Google::Checkout::General::AddressFilters.

get_restriction

Returns the shipping restrictions: An object of Google::Checkout::General::ShippingRestrictions.

set_restriction RESTRICTION

Sets the shipping restriction to RESTRICTION: An object of Google::Checkout::General::ShippingRestrictions.

COPYRIGHT

Copyright 2006 Google. All rights reserved.

SEE ALSO

Google::Checkout::General::ShippingRestrictions