com.google.api.gbase.client
Class Shipping

java.lang.Object
  extended by com.google.api.gbase.client.Shipping

public class Shipping
extends java.lang.Object

Shipping information, defined using destination country, a price (in the item's currency), and optionally a shipping service and comments (notes).


Constructor Summary
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.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

Shipping

public Shipping(java.lang.String country,
                java.lang.String service,
                float price,
                java.lang.String currency)
Creates a shipping object.

Parameters:
country - destination country (ISO 3312 2-letter code)
service - shipping method
price - price
currency - price currency
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPrice

public float getPrice()
Gets the price.


getCurrency

public java.lang.String getCurrency()
Gets the price currency, or null.


getCountry

public java.lang.String getCountry()
Gets the destination country, or null. This should be a ISO 3312 2-letter code.


getService

public java.lang.String getService()
Gets the shipping service, or null.