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 - The city where the merchant is located.
        Returns:
        the current NameLocation instance, allowing for method chaining
      • getCity

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

        public void setCity​(String city)
        The city where the merchant is located.
        Parameters:
        city - The city where the merchant is located.
      • 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 - The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
        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 The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
      • 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 - The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
      • 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 - 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:
        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 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.
      • 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 - 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.
      • name

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

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

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

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

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

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

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

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

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

        public NameLocation includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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