Class GetTermsOfServiceDocumentRequest
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentRequest
-
public class GetTermsOfServiceDocumentRequest extends Object
GetTermsOfServiceDocumentRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetTermsOfServiceDocumentRequest.CustomTypeAdapterFactorystatic classGetTermsOfServiceDocumentRequest.TypeEnumThe type of Terms of Service.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LANGUAGEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description GetTermsOfServiceDocumentRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GetTermsOfServiceDocumentRequestfromJson(String jsonString)Create an instance of GetTermsOfServiceDocumentRequest given an JSON stringStringgetLanguage()The language to be used for the Terms of Service document, specified by the two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code.GetTermsOfServiceDocumentRequest.TypeEnumgetType()The type of Terms of Service.inthashCode()GetTermsOfServiceDocumentRequestlanguage(String language)voidsetLanguage(String language)voidsetType(GetTermsOfServiceDocumentRequest.TypeEnum type)StringtoJson()Convert an instance of GetTermsOfServiceDocumentRequest to an JSON stringStringtoString()GetTermsOfServiceDocumentRequesttype(GetTermsOfServiceDocumentRequest.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LANGUAGE
public static final String SERIALIZED_NAME_LANGUAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
language
public GetTermsOfServiceDocumentRequest language(String language)
-
getLanguage
public String getLanguage()
The language to be used for the Terms of Service document, specified by the two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. For example, **nl** for Dutch.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
-
type
public GetTermsOfServiceDocumentRequest type(GetTermsOfServiceDocumentRequest.TypeEnum type)
-
getType
public GetTermsOfServiceDocumentRequest.TypeEnum getType()
The type of Terms of Service.- Returns:
- type
-
setType
public void setType(GetTermsOfServiceDocumentRequest.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to GetTermsOfServiceDocumentRequest
-
fromJson
public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws IOException
Create an instance of GetTermsOfServiceDocumentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTermsOfServiceDocumentRequest
- Throws:
IOException- if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest
-
toJson
public String toJson()
Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string- Returns:
- JSON string
-
-