public class

Shipping

extends Object
java.lang.Object
   ↳ com.google.api.gbase.client.Shipping

Class Overview

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

Summary

Fields
private final String country Destination country, optional.
private final String currency Currency, not always set.
private final float price Price, always set.
private final Collection<String> regions The regions, optional and repeatable.
private final String service Shipping service, optional.
Public Constructors
Shipping(String country, String service, float price, String currency)
Creates a shipping object.
Shipping(String country, Collection<String> regions, String service, float price, String currency)
Creates a shipping object.
Public Methods
String getCountry()
Gets the destination country, or null.
String getCurrency()
Gets the price currency, or null.
float getPrice()
Gets the price.
Collection<String> getRegions()
Gets the regions.
String getService()
Gets the shipping service, or null.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final String country

Destination country, optional.

private final String currency

Currency, not always set.

private final float price

Price, always set.

private final Collection<String> regions

The regions, optional and repeatable.

private final String service

Shipping service, optional.

Public Constructors

public Shipping (String country, String service, float price, String currency)

Creates a shipping object.

Parameters
country Destination country (ISO 3312 2-letter code), can be null.
service Shipping method, can be null.
price Price
currency Price currency, can be null.

public Shipping (String country, Collection<String> regions, String service, float price, String currency)

Creates a shipping object.

Parameters
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 Price
currency Price currency, can be null.

Public Methods

public String getCountry ()

Gets the destination country, or null. This should be a ISO 3312 2-letter code.

public String getCurrency ()

Gets the price currency, or null.

public float getPrice ()

Gets the price.

public Collection<String> getRegions ()

Gets the regions. This method never returns null, but the returned list can be empty.

public String getService ()

Gets the shipping service, or null.

public String toString ()