public class Shipping extends Object
| Constructor and Description |
|---|
Shipping(String country,
Collection<String> regions,
String service,
float price,
String currency)
Creates a shipping object.
|
Shipping(String country,
String service,
float price,
String currency)
Creates a shipping object.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public Shipping(String country, String service, float price, 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(String country, Collection<String> regions, String service, float price, 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.public float getPrice()
public String getCurrency()
public String getCountry()
public Collection<String> getRegions()
public String getService()
Copyright © 2012. All Rights Reserved.