Class NameLocation


  • public class NameLocation
    extends Object
    NameLocation
    • Constructor Detail

      • NameLocation

        public NameLocation()
    • Method Detail

      • city

        public NameLocation city​(String city)
        The city where the merchant is located.
        Parameters:
        city -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getCity

        public String getCity()
        The city where the merchant is located.
        Returns:
        city
      • setCity

        public void setCity​(String city)
        The city where the merchant is located.
        Parameters:
        city -
      • country

        public NameLocation country​(String country)
        The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
        Parameters:
        country -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getCountry

        public String getCountry()
        The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
        The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
        Parameters:
        country -
      • countryOfOrigin

        public NameLocation countryOfOrigin​(String countryOfOrigin)
        The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies.
        Parameters:
        countryOfOrigin -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getCountryOfOrigin

        public String getCountryOfOrigin()
        The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies.
        Returns:
        countryOfOrigin
      • setCountryOfOrigin

        public void setCountryOfOrigin​(String countryOfOrigin)
        The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies.
        Parameters:
        countryOfOrigin -
      • name

        public NameLocation name​(String name)
        The name of the merchant's shop or service.
        Parameters:
        name -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getName

        public String getName()
        The name of the merchant's shop or service.
        Returns:
        name
      • setName

        public void setName​(String name)
        The name of the merchant's shop or service.
        Parameters:
        name -
      • rawData

        public NameLocation rawData​(String rawData)
        The raw data.
        Parameters:
        rawData -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getRawData

        public String getRawData()
        The raw data.
        Returns:
        rawData
      • setRawData

        public void setRawData​(String rawData)
        The raw data.
        Parameters:
        rawData -
      • state

        public NameLocation state​(String state)
        The state where the merchant is located.
        Parameters:
        state -
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getState

        public String getState()
        The state where the merchant is located.
        Returns:
        state
      • setState

        public void setState​(String state)
        The state where the merchant is located.
        Parameters:
        state -
      • equals

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

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

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

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