Package com.adyen.model.management
Class Localization
- java.lang.Object
-
- com.adyen.model.management.Localization
-
public class Localization extends Object
Localization
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LANGUAGEstatic StringJSON_PROPERTY_SECONDARY_LANGUAGEstatic StringJSON_PROPERTY_TIMEZONE
-
Constructor Summary
Constructors Constructor Description Localization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Localization object is equal to o.static LocalizationfromJson(String jsonString)Create an instance of Localization given an JSON stringStringgetLanguage()Language of the terminal.StringgetSecondaryLanguage()Secondary language of the terminal.StringgetTimezone()The time zone of the terminal.inthashCode()Localizationlanguage(String language)Language of the terminal.LocalizationsecondaryLanguage(String secondaryLanguage)Secondary language of the terminal.voidsetLanguage(String language)Language of the terminal.voidsetSecondaryLanguage(String secondaryLanguage)Secondary language of the terminal.voidsetTimezone(String timezone)The time zone of the terminal.Localizationtimezone(String timezone)The time zone of the terminal.StringtoJson()Convert an instance of Localization to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECONDARY_LANGUAGE
public static final String JSON_PROPERTY_SECONDARY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMEZONE
public static final String JSON_PROPERTY_TIMEZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
language
public Localization language(String language)
Language of the terminal.- Parameters:
language-- Returns:
- the current
Localizationinstance, allowing for method chaining
-
getLanguage
public String getLanguage()
Language of the terminal.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
Language of the terminal.- Parameters:
language-
-
secondaryLanguage
public Localization secondaryLanguage(String secondaryLanguage)
Secondary language of the terminal.- Parameters:
secondaryLanguage-- Returns:
- the current
Localizationinstance, allowing for method chaining
-
getSecondaryLanguage
public String getSecondaryLanguage()
Secondary language of the terminal.- Returns:
- secondaryLanguage
-
setSecondaryLanguage
public void setSecondaryLanguage(String secondaryLanguage)
Secondary language of the terminal.- Parameters:
secondaryLanguage-
-
timezone
public Localization timezone(String timezone)
The time zone of the terminal.- Parameters:
timezone-- Returns:
- the current
Localizationinstance, allowing for method chaining
-
getTimezone
public String getTimezone()
The time zone of the terminal.- Returns:
- timezone
-
setTimezone
public void setTimezone(String timezone)
The time zone of the terminal.- Parameters:
timezone-
-
equals
public boolean equals(Object o)
Return true if this Localization object is equal to o.
-
fromJson
public static Localization fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Localization given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Localization
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Localization
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Localization to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-