Class TermsOfServiceAcceptanceInfo
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.TermsOfServiceAcceptanceInfo
-
public class TermsOfServiceAcceptanceInfo extends Object
TermsOfServiceAcceptanceInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermsOfServiceAcceptanceInfo.CustomTypeAdapterFactorystatic classTermsOfServiceAcceptanceInfo.TypeEnumThe type of Terms of Service.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCEPTED_BYstatic StringSERIALIZED_NAME_ACCEPTED_FORstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TermsOfServiceAcceptanceInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TermsOfServiceAcceptanceInfoacceptedBy(String acceptedBy)TermsOfServiceAcceptanceInfoacceptedFor(String acceptedFor)TermsOfServiceAcceptanceInfocreatedAt(OffsetDateTime createdAt)booleanequals(Object o)static TermsOfServiceAcceptanceInfofromJson(String jsonString)Create an instance of TermsOfServiceAcceptanceInfo given an JSON stringStringgetAcceptedBy()The unique identifier of the user that accepted the Terms of Service.StringgetAcceptedFor()The unique identifier of the legal entity for which the Terms of Service are accepted.OffsetDateTimegetCreatedAt()The date when the Terms of Service were accepted.StringgetId()An Adyen-generated reference for the accepted Terms of Service.TermsOfServiceAcceptanceInfo.TypeEnumgetType()The type of Terms of Service.inthashCode()TermsOfServiceAcceptanceInfoid(String id)voidsetAcceptedBy(String acceptedBy)voidsetAcceptedFor(String acceptedFor)voidsetCreatedAt(OffsetDateTime createdAt)voidsetId(String id)voidsetType(TermsOfServiceAcceptanceInfo.TypeEnum type)StringtoJson()Convert an instance of TermsOfServiceAcceptanceInfo to an JSON stringStringtoString()TermsOfServiceAcceptanceInfotype(TermsOfServiceAcceptanceInfo.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCEPTED_BY
public static final String SERIALIZED_NAME_ACCEPTED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCEPTED_FOR
public static final String SERIALIZED_NAME_ACCEPTED_FOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
acceptedBy
public TermsOfServiceAcceptanceInfo acceptedBy(String acceptedBy)
-
getAcceptedBy
public String getAcceptedBy()
The unique identifier of the user that accepted the Terms of Service.- Returns:
- acceptedBy
-
setAcceptedBy
public void setAcceptedBy(String acceptedBy)
-
acceptedFor
public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor)
-
getAcceptedFor
public String getAcceptedFor()
The unique identifier of the legal entity for which the Terms of Service are accepted.- Returns:
- acceptedFor
-
setAcceptedFor
public void setAcceptedFor(String acceptedFor)
-
createdAt
public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt)
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date when the Terms of Service were accepted.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
id
public TermsOfServiceAcceptanceInfo id(String id)
-
getId
public String getId()
An Adyen-generated reference for the accepted Terms of Service.- Returns:
- id
-
setId
public void setId(String id)
-
type
public TermsOfServiceAcceptanceInfo type(TermsOfServiceAcceptanceInfo.TypeEnum type)
-
getType
public TermsOfServiceAcceptanceInfo.TypeEnum getType()
The type of Terms of Service.- Returns:
- type
-
setType
public void setType(TermsOfServiceAcceptanceInfo.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 TermsOfServiceAcceptanceInfo
-
fromJson
public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) throws IOException
Create an instance of TermsOfServiceAcceptanceInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TermsOfServiceAcceptanceInfo
- Throws:
IOException- if the JSON string is invalid with respect to TermsOfServiceAcceptanceInfo
-
toJson
public String toJson()
Convert an instance of TermsOfServiceAcceptanceInfo to an JSON string- Returns:
- JSON string
-
-