public class Shipping
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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.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()