|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.checkout.ShippingRestrictions
public class ShippingRestrictions
This class represents the <shipping-restrictions> tag in the Checkout API.
Constructor Summary | |
---|---|
ShippingRestrictions()
The default constructor. |
Method Summary | |
---|---|
void |
addAllowedCountryArea(USArea countryArea)
This method adds an allowed U.S. |
void |
addAllowedPostalArea(java.lang.String countryCode,
java.lang.String postalCodePattern)
This method adds an allowed <postal-area> element. |
void |
addAllowedStateCode(java.lang.String stateCode)
This method adds an allowed U.S. |
void |
addAllowedWorldArea()
This method adds an allowed <world-area> element. |
void |
addAllowedZipPattern(java.lang.String zipPattern)
This method adds an allowed zip code pattern to a <us-zip-area> element. |
void |
addExcludedCountryArea(USArea countryArea)
This method adds an excluded U.S. |
void |
addExcludedPostalArea(java.lang.String countryCode,
java.lang.String postalCodePattern)
This method adds an excluded <postal-area> element. |
void |
addExcludedStateCode(java.lang.String stateCode)
This method adds an excluded U.S. |
void |
addExcludedWorldArea()
This method adds an excluded <world-area> element. |
void |
addExcludedZipPattern(java.lang.String zipPattern)
This method adds an excluded zip code pattern to a <us-zip-area> element. |
org.w3c.dom.Element |
getRootElement()
Get the root element, <shipping-restrictions> |
boolean |
isAllowUsPoBox()
Retrieve the value of the <allow-us-po-box> tag. |
void |
setAllowUsPoBox(boolean b)
Set the value of the <allow-us-po-box> tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShippingRestrictions()
Method Detail |
---|
public void addAllowedCountryArea(USArea countryArea)
countryArea
- The country area.USArea
public void addAllowedStateCode(java.lang.String stateCode)
stateCode
- The state code.public void addAllowedZipPattern(java.lang.String zipPattern)
zipPattern
- The zip pattern.public void addExcludedCountryArea(USArea countryArea)
countryArea
- The country area.USArea
public void addExcludedStateCode(java.lang.String stateCode)
stateCode
- The state code.public void addExcludedZipPattern(java.lang.String zipPattern)
zipPattern
- The zip pattern.public org.w3c.dom.Element getRootElement()
public void addAllowedPostalArea(java.lang.String countryCode, java.lang.String postalCodePattern)
countryCode
- The country code.postalCodePattern
- The Postal Code Pattern.public void addAllowedWorldArea()
public void addExcludedPostalArea(java.lang.String countryCode, java.lang.String postalCodePattern)
countryCode
- The country code.postalCodePattern
- The Postal Code Pattern.public void addExcludedWorldArea()
public boolean isAllowUsPoBox()
public void setAllowUsPoBox(boolean b)
b
- Whether the shipping allows a US PO Box.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |