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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.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.GetAcceptedTermsOfServiceDocumentResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.- 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 The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.
-
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- The accepted Terms of Service document in the requested format represented as a Base64-encoded bytes array.
-
id
public GetAcceptedTermsOfServiceDocumentResponse id(String id)
The unique identifier of the legal entity.- Parameters:
id- The unique identifier of the legal entity.- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the legal entity.- Returns:
- id The unique identifier of the legal entity.
-
setId
public void setId(String id)
The unique identifier of the legal entity.- Parameters:
id- The unique identifier of the legal entity.
-
termsOfServiceAcceptanceReference
public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)
An Adyen-generated reference for the accepted Terms of Service.- Parameters:
termsOfServiceAcceptanceReference- An Adyen-generated reference for the accepted Terms of Service.- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getTermsOfServiceAcceptanceReference
public String getTermsOfServiceAcceptanceReference()
An Adyen-generated reference for the accepted Terms of Service.- Returns:
- termsOfServiceAcceptanceReference An Adyen-generated reference for the accepted Terms of Service.
-
setTermsOfServiceAcceptanceReference
public void setTermsOfServiceAcceptanceReference(String termsOfServiceAcceptanceReference)
An Adyen-generated reference for the accepted Terms of Service.- Parameters:
termsOfServiceAcceptanceReference- An Adyen-generated reference for the accepted Terms of Service.
-
termsOfServiceDocumentFormat
public GetAcceptedTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)
The format of the Terms of Service document.- Parameters:
termsOfServiceDocumentFormat- The format of the Terms of Service document.- Returns:
- the current
GetAcceptedTermsOfServiceDocumentResponseinstance, allowing for method chaining
-
getTermsOfServiceDocumentFormat
public GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum getTermsOfServiceDocumentFormat()
The format of the Terms of Service document.- Returns:
- termsOfServiceDocumentFormat The format of the Terms of Service document.
-
setTermsOfServiceDocumentFormat
public void setTermsOfServiceDocumentFormat(GetAcceptedTermsOfServiceDocumentResponse.TermsOfServiceDocumentFormatEnum termsOfServiceDocumentFormat)
The format of the Terms of Service document.- Parameters:
termsOfServiceDocumentFormat- The format of the Terms of Service document.
-
includeNullValues
public GetAcceptedTermsOfServiceDocumentResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this GetAcceptedTermsOfServiceDocumentResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-