Class GetAcceptedTermsOfServiceDocumentResponse
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.GetAcceptedTermsOfServiceDocumentResponse
-
public class GetAcceptedTermsOfServiceDocumentResponse extends Object
GetAcceptedTermsOfServiceDocumentResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnumThe format of the Terms of Service document.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOCUMENTstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCEstatic StringJSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT
-
Constructor Summary
Constructors Constructor Description GetAcceptedTermsOfServiceDocumentResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAcceptedTermsOfServiceDocumentResponsedocument(byte[] document)The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.booleanequals(Object o)Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o.static GetAcceptedTermsOfServiceDocumentResponsefromJson(String jsonString)Create an instance of GetAcceptedTermsOfServiceDocumentResponse given an JSON stringbyte[]getDocument()The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.StringgetId()The unique identifier of the legal entity.StringgetTermsOfServiceAcceptanceReference()An Adyen-generated reference for the accepted Terms of Service.GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnumgetTermsOfServiceDocumentFormat()The format of the Terms of Service document.inthashCode()GetAcceptedTermsOfServiceDocumentResponseid(String id)The unique identifier of the legal entity.voidsetDocument(byte[] document)The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.voidsetId(String id)The unique identifier of the legal entity.voidsetTermsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)An Adyen-generated reference for the accepted Terms of Service.voidsetTermsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)The format of the Terms of Service document.GetAcceptedTermsOfServiceDocumentResponsetermsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)An Adyen-generated reference for the accepted Terms of Service.GetAcceptedTermsOfServiceDocumentResponsetermsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)The format of the Terms of Service document.StringtoJson()Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON stringStringtoString()
-
-
-
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_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE
public static final String JSON_PROPERTY_TERMS_OF_SERVICE_ACCEPTANCE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT
public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
document
public GetAcceptedTermsOfServiceDocumentResponse document(byte[] document)
The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.- Parameters:
document-- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getDocument
public byte[] getDocument()
The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.- Returns:
- document
-
setDocument
public void setDocument(byte[] document)
The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.- Parameters:
document-
-
id
public GetAcceptedTermsOfServiceDocumentResponse id(String id)
The unique identifier of the legal entity.- Parameters:
id-- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the legal entity.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the legal entity.- Parameters:
id-
-
termsOfServiceAcceptanceReference
public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)
An Adyen-generated reference for the accepted Terms of Service.- Parameters:
termsOfServiceAcceptanceReference-- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getTermsOfServiceAcceptanceReference
public String getTermsOfServiceAcceptanceReference()
An Adyen-generated reference for the accepted Terms of Service.- Returns:
- termsOfServiceAcceptanceReference
-
setTermsOfServiceAcceptanceReference
public void setTermsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)
An Adyen-generated reference for the accepted Terms of Service.- Parameters:
termsOfServiceAcceptanceReference-
-
termsOfServiceDocumentFormat
public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)
The format of the Terms of Service document.- Parameters:
termsOfServiceDocumentFormat-- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getTermsOfServiceDocumentFormat
public GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum getTermsOfServiceDocumentFormat()
The format of the Terms of Service document.- Returns:
- termsOfServiceDocumentFormat
-
setTermsOfServiceDocumentFormat
public void setTermsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)
The format of the Terms of Service document.- Parameters:
termsOfServiceDocumentFormat-
-
equals
public boolean equals(Object o)
Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o.
-
fromJson
public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetAcceptedTermsOfServiceDocumentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetAcceptedTermsOfServiceDocumentResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetAcceptedTermsOfServiceDocumentResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetAcceptedTermsOfServiceDocumentResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-