Class GetTermsOfServiceDocumentResponse
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentResponse
-
public class GetTermsOfServiceDocumentResponse extends Object
GetTermsOfServiceDocumentResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetTermsOfServiceDocumentResponse.CustomTypeAdapterFactorystatic classGetTermsOfServiceDocumentResponse.TypeEnumThe type of Terms of Service.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENTstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LANGUAGEstatic StringSERIALIZED_NAME_TERMS_OF_SERVICE_DOCUMENT_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description GetTermsOfServiceDocumentResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetTermsOfServiceDocumentResponsedocument(byte[] document)booleanequals(Object o)static GetTermsOfServiceDocumentResponsefromJson(String jsonString)Create an instance of GetTermsOfServiceDocumentResponse given an JSON stringbyte[]getDocument()The Terms of Service document in Base64-encoded format.StringgetId()The unique identifier of the legal entity.StringgetLanguage()The language 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.StringgetTermsOfServiceDocumentId()The unique identifier of the Terms of Service document.GetTermsOfServiceDocumentResponse.TypeEnumgetType()The type of Terms of Service.inthashCode()GetTermsOfServiceDocumentResponseid(String id)GetTermsOfServiceDocumentResponselanguage(String language)voidsetDocument(byte[] document)voidsetId(String id)voidsetLanguage(String language)voidsetTermsOfServiceDocumentId(String termsOfServiceDocumentId)voidsetType(GetTermsOfServiceDocumentResponse.TypeEnum type)GetTermsOfServiceDocumentResponsetermsOfServiceDocumentId(String termsOfServiceDocumentId)StringtoJson()Convert an instance of GetTermsOfServiceDocumentResponse to an JSON stringStringtoString()GetTermsOfServiceDocumentResponsetype(GetTermsOfServiceDocumentResponse.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DOCUMENT
public static final String SERIALIZED_NAME_DOCUMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANGUAGE
public static final String SERIALIZED_NAME_LANGUAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TERMS_OF_SERVICE_DOCUMENT_ID
public static final String SERIALIZED_NAME_TERMS_OF_SERVICE_DOCUMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
document
public GetTermsOfServiceDocumentResponse document(byte[] document)
-
getDocument
public byte[] getDocument()
The Terms of Service document in Base64-encoded format.- Returns:
- document
-
setDocument
public void setDocument(byte[] document)
-
id
public GetTermsOfServiceDocumentResponse id(String id)
-
getId
public String getId()
The unique identifier of the legal entity.- Returns:
- id
-
setId
public void setId(String id)
-
language
public GetTermsOfServiceDocumentResponse language(String language)
-
getLanguage
public String getLanguage()
The language 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)
-
termsOfServiceDocumentId
public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId(String termsOfServiceDocumentId)
-
getTermsOfServiceDocumentId
public String getTermsOfServiceDocumentId()
The unique identifier of the Terms of Service document.- Returns:
- termsOfServiceDocumentId
-
setTermsOfServiceDocumentId
public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId)
-
type
public GetTermsOfServiceDocumentResponse type(GetTermsOfServiceDocumentResponse.TypeEnum type)
-
getType
public GetTermsOfServiceDocumentResponse.TypeEnum getType()
The type of Terms of Service.- Returns:
- type
-
setType
public void setType(GetTermsOfServiceDocumentResponse.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 GetTermsOfServiceDocumentResponse
-
fromJson
public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) throws IOException
Create an instance of GetTermsOfServiceDocumentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTermsOfServiceDocumentResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetTermsOfServiceDocumentResponse
-
toJson
public String toJson()
Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string- Returns:
- JSON string
-
-