Class ShippingType

    • Constructor Detail

      • ShippingType

        public ShippingType​(FloatUnit price,
                            ShippingType.ServiceEnumeration service,
                            String country)
        Parameters:
        price - The price of the shipping option
        service - Shipping service used.
        country - Country shipped to.
    • Method Detail

      • getCountry

        public String getCountry()
        Returns the destination country.
        Returns:
        Returns the destination country.
      • getPrice

        public FloatUnit getPrice()
        Returns the price of this shipping option.
        Returns:
        Returns the price of this shipping option.
      • getService

        public ShippingType.ServiceEnumeration getService()
        Returns the ServiceEnumeration instance for the shipping service used.
        Returns:
        Returns the ServiceEnumeration instance for the shipping service used.
      • clone

        public Object clone()
        Clones this object.
        Specified by:
        clone in interface CloneableType
        Overrides:
        clone in class Object
        Returns:
        Duplicate ShippingType object.
      • toString

        public String toString()
        Returns a String representation of this object.
        Overrides:
        toString in class Object
        Returns:
        String representation of this object.