Package com.clover.sdk.v3.connectpay
Class ValidationDetails
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.connectpay.ValidationDetails
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class ValidationDetails extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ValidationDetails.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<ValidationDetails>
CREATOR
static JSONifiable.Creator<ValidationDetails>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description ValidationDetails()
Constructs a new empty instance.protected
ValidationDetails(boolean noInit)
Constructs a new empty instance.ValidationDetails(ValidationDetails src)
Constructs a new instance that is a deep copy of the source instance.ValidationDetails(String json)
Constructs a new instance from the given JSON String.ValidationDetails(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearValidationCode()
Clears the 'validationCode' field, the 'has' method for this field will now return falsevoid
clearValidationCodeDesc()
Clears the 'validationCodeDesc' field, the 'has' method for this field will now return falsevoid
clearValidationCodeStatus()
Clears the 'validationCodeStatus' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.ValidationDetails
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.protected GenericClient
getGenericClient()
JSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.String
getValidationCode()
Code signifying what kind of validation error occurredString
getValidationCodeDesc()
Description of validation codeString
getValidationCodeStatus()
Validation code statusboolean
hasValidationCode()
Checks whether the 'validationCode' field has been set, however the value could be nullboolean
hasValidationCodeDesc()
Checks whether the 'validationCodeDesc' field has been set, however the value could be nullboolean
hasValidationCodeStatus()
Checks whether the 'validationCodeStatus' field has been set, however the value could be nullboolean
isNotNullValidationCode()
Checks whether the 'validationCode' field is set and is not nullboolean
isNotNullValidationCodeDesc()
Checks whether the 'validationCodeDesc' field is set and is not nullboolean
isNotNullValidationCodeStatus()
Checks whether the 'validationCodeStatus' field is set and is not nullvoid
mergeChanges(ValidationDetails src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.ValidationDetails
setValidationCode(String validationCode)
Sets the field 'validationCode'.ValidationDetails
setValidationCodeDesc(String validationCodeDesc)
Sets the field 'validationCodeDesc'.ValidationDetails
setValidationCodeStatus(String validationCodeStatus)
Sets the field 'validationCodeStatus'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<ValidationDetails> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<ValidationDetails> JSON_CREATOR
-
-
Constructor Detail
-
ValidationDetails
public ValidationDetails()
Constructs a new empty instance.
-
ValidationDetails
protected ValidationDetails(boolean noInit)
Constructs a new empty instance.
-
ValidationDetails
public ValidationDetails(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
ValidationDetails
public ValidationDetails(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
ValidationDetails
public ValidationDetails(ValidationDetails src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getValidationCode
public String getValidationCode()
Code signifying what kind of validation error occurred
-
getValidationCodeDesc
public String getValidationCodeDesc()
Description of validation code
-
getValidationCodeStatus
public String getValidationCodeStatus()
Validation code status
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullValidationCode
public boolean isNotNullValidationCode()
Checks whether the 'validationCode' field is set and is not null
-
isNotNullValidationCodeDesc
public boolean isNotNullValidationCodeDesc()
Checks whether the 'validationCodeDesc' field is set and is not null
-
isNotNullValidationCodeStatus
public boolean isNotNullValidationCodeStatus()
Checks whether the 'validationCodeStatus' field is set and is not null
-
hasValidationCode
public boolean hasValidationCode()
Checks whether the 'validationCode' field has been set, however the value could be null
-
hasValidationCodeDesc
public boolean hasValidationCodeDesc()
Checks whether the 'validationCodeDesc' field has been set, however the value could be null
-
hasValidationCodeStatus
public boolean hasValidationCodeStatus()
Checks whether the 'validationCodeStatus' field has been set, however the value could be null
-
setValidationCode
public ValidationDetails setValidationCode(String validationCode)
Sets the field 'validationCode'.
-
setValidationCodeDesc
public ValidationDetails setValidationCodeDesc(String validationCodeDesc)
Sets the field 'validationCodeDesc'.
-
setValidationCodeStatus
public ValidationDetails setValidationCodeStatus(String validationCodeStatus)
Sets the field 'validationCodeStatus'.
-
clearValidationCode
public void clearValidationCode()
Clears the 'validationCode' field, the 'has' method for this field will now return false
-
clearValidationCodeDesc
public void clearValidationCodeDesc()
Clears the 'validationCodeDesc' field, the 'has' method for this field will now return false
-
clearValidationCodeStatus
public void clearValidationCodeStatus()
Clears the 'validationCodeStatus' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public ValidationDetails copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(ValidationDetails src)
Copy all the changed fields from the given source to this instance.
-
-