Class ShippingLocation


  • public class ShippingLocation
    extends Object
    ShippingLocation
    • Constructor Detail

      • ShippingLocation

        public ShippingLocation()
    • Method Detail

      • address

        public ShippingLocation address​(Address address)
        address
        Parameters:
        address -
        Returns:
        the current ShippingLocation instance, allowing for method chaining
      • getAddress

        public Address getAddress()
        address
        Returns:
        address
      • setAddress

        public void setAddress​(Address address)
        address
        Parameters:
        address -
      • contact

        public ShippingLocation contact​(Contact contact)
        contact
        Parameters:
        contact -
        Returns:
        the current ShippingLocation instance, allowing for method chaining
      • getContact

        public Contact getContact()
        contact
        Returns:
        contact
      • setContact

        public void setContact​(Contact contact)
        contact
        Parameters:
        contact -
      • id

        public ShippingLocation id​(String id)
        The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.
        Parameters:
        id -
        Returns:
        the current ShippingLocation instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.
        Parameters:
        id -
      • name

        public ShippingLocation name​(String name)
        The unique name of the shipping location.
        Parameters:
        name -
        Returns:
        the current ShippingLocation instance, allowing for method chaining
      • getName

        public String getName()
        The unique name of the shipping location.
        Returns:
        name
      • setName

        public void setName​(String name)
        The unique name of the shipping location.
        Parameters:
        name -
      • equals

        public boolean equals​(Object o)
        Return true if this ShippingLocation object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ShippingLocation fromJson​(String jsonString)
                                         throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ShippingLocation given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ShippingLocation
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ShippingLocation
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ShippingLocation to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException