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.TypeEnumThe type of Terms of Service.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOCUMENTstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LANGUAGEstatic StringJSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_IDstatic StringJSON_PROPERTY_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)Return true if this GetTermsOfServiceDocumentResponse object is equal to 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)
-
-
-
Field Detail
-
JSON_PROPERTY_DOCUMENT
public static final String JSON_PROPERTY_DOCUMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID
public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_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. Possible value: **en** for English.- 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)
-
equals
public boolean equals(Object o)
Return true if this GetTermsOfServiceDocumentResponse object is equal to o.
-
fromJson
public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetTermsOfServiceDocumentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTermsOfServiceDocumentResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetTermsOfServiceDocumentResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-