|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.gbase.client.Shipping
public class Shipping
Shipping information, defined using destination country, a region, a price (in the item's currency), and a shipping service.
Constructor Summary | |
---|---|
Shipping(java.lang.String country,
java.util.Collection<java.lang.String> regions,
java.lang.String service,
float price,
java.lang.String currency)
Creates a shipping object. |
|
Shipping(java.lang.String country,
java.lang.String service,
float price,
java.lang.String currency)
Creates a shipping object. |
Method Summary | |
---|---|
java.lang.String |
getCountry()
Gets the destination country, or null. |
java.lang.String |
getCurrency()
Gets the price currency, or null. |
float |
getPrice()
Gets the price. |
java.util.Collection<java.lang.String> |
getRegions()
Gets the regions. |
java.lang.String |
getService()
Gets the shipping service, or null. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Shipping(java.lang.String country, java.lang.String service, float price, java.lang.String currency)
country
- destination country (ISO 3312 2-letter code), can be null.service
- shipping method, can be null.price
- pricecurrency
- price currency, can be null.public Shipping(java.lang.String country, java.util.Collection<java.lang.String> regions, java.lang.String service, float price, java.lang.String currency)
country
- destination country (ISO 3312 2-letter code), can be null.regions
- A list of shipping regions within the destination country. Can be null.service
- shipping method, can be null.price
- pricecurrency
- price currency, can be null.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public float getPrice()
public java.lang.String getCurrency()
public java.lang.String getCountry()
public java.util.Collection<java.lang.String> getRegions()
public java.lang.String getService()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |