Package com.clover.sdk.v3.payments
Class TerminalManagementComponent
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.TerminalManagementComponent
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class TerminalManagementComponent 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
TerminalManagementComponent.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<TerminalManagementComponent>
CREATOR
static JSONifiable.Creator<TerminalManagementComponent>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description TerminalManagementComponent()
Constructs a new empty instance.protected
TerminalManagementComponent(boolean noInit)
Constructs a new empty instance.TerminalManagementComponent(TerminalManagementComponent src)
Constructs a new instance that is a deep copy of the source instance.TerminalManagementComponent(String json)
Constructs a new instance from the given JSON String.TerminalManagementComponent(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
clearIdentification()
Clears the 'identification' field, the 'has' method for this field will now return falsevoid
clearItemNumber()
Clears the 'itemNumber' field, the 'has' method for this field will now return falsevoid
clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return falsevoid
clearSerial()
Clears the 'serial' field, the 'has' method for this field will now return falsevoid
clearStandard()
Clears the 'standard' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falsevoid
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.TerminalManagementComponent
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.protected GenericClient
getGenericClient()
String
getIdentification()
String
getItemNumber()
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
getProvider()
String
getSerial()
TerminalManagementStandard
getStandard()
Standard and assessment info for the componentTerminalManagementComponentType
getType()
String
getVersion()
boolean
hasIdentification()
Checks whether the 'identification' field has been set, however the value could be nullboolean
hasItemNumber()
Checks whether the 'itemNumber' field has been set, however the value could be nullboolean
hasProvider()
Checks whether the 'provider' field has been set, however the value could be nullboolean
hasSerial()
Checks whether the 'serial' field has been set, however the value could be nullboolean
hasStandard()
Checks whether the 'standard' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
hasVersion()
Checks whether the 'version' field has been set, however the value could be nullboolean
isNotNullIdentification()
Checks whether the 'identification' field is set and is not nullboolean
isNotNullItemNumber()
Checks whether the 'itemNumber' field is set and is not nullboolean
isNotNullProvider()
Checks whether the 'provider' field is set and is not nullboolean
isNotNullSerial()
Checks whether the 'serial' field is set and is not nullboolean
isNotNullStandard()
Checks whether the 'standard' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullboolean
isNotNullVersion()
Checks whether the 'version' field is set and is not nullvoid
mergeChanges(TerminalManagementComponent 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.TerminalManagementComponent
setIdentification(String identification)
Sets the field 'identification'.TerminalManagementComponent
setItemNumber(String itemNumber)
Sets the field 'itemNumber'.TerminalManagementComponent
setProvider(String provider)
Sets the field 'provider'.TerminalManagementComponent
setSerial(String serial)
Sets the field 'serial'.TerminalManagementComponent
setStandard(TerminalManagementStandard standard)
Sets the field 'standard'.TerminalManagementComponent
setType(TerminalManagementComponentType type)
Sets the field 'type'.TerminalManagementComponent
setVersion(String version)
Sets the field 'version'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<TerminalManagementComponent> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<TerminalManagementComponent> JSON_CREATOR
-
-
Constructor Detail
-
TerminalManagementComponent
public TerminalManagementComponent()
Constructs a new empty instance.
-
TerminalManagementComponent
protected TerminalManagementComponent(boolean noInit)
Constructs a new empty instance.
-
TerminalManagementComponent
public TerminalManagementComponent(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
TerminalManagementComponent
public TerminalManagementComponent(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.
-
TerminalManagementComponent
public TerminalManagementComponent(TerminalManagementComponent src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getType
public TerminalManagementComponentType getType()
-
getItemNumber
public String getItemNumber()
-
getProvider
public String getProvider()
-
getSerial
public String getSerial()
-
getVersion
public String getVersion()
-
getIdentification
public String getIdentification()
-
getStandard
public TerminalManagementStandard getStandard()
Standard and assessment info for the component
-
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
-
isNotNullType
public boolean isNotNullType()
Checks whether the 'type' field is set and is not null
-
isNotNullItemNumber
public boolean isNotNullItemNumber()
Checks whether the 'itemNumber' field is set and is not null
-
isNotNullProvider
public boolean isNotNullProvider()
Checks whether the 'provider' field is set and is not null
-
isNotNullSerial
public boolean isNotNullSerial()
Checks whether the 'serial' field is set and is not null
-
isNotNullVersion
public boolean isNotNullVersion()
Checks whether the 'version' field is set and is not null
-
isNotNullIdentification
public boolean isNotNullIdentification()
Checks whether the 'identification' field is set and is not null
-
isNotNullStandard
public boolean isNotNullStandard()
Checks whether the 'standard' field is set and is not null
-
hasType
public boolean hasType()
Checks whether the 'type' field has been set, however the value could be null
-
hasItemNumber
public boolean hasItemNumber()
Checks whether the 'itemNumber' field has been set, however the value could be null
-
hasProvider
public boolean hasProvider()
Checks whether the 'provider' field has been set, however the value could be null
-
hasSerial
public boolean hasSerial()
Checks whether the 'serial' field has been set, however the value could be null
-
hasVersion
public boolean hasVersion()
Checks whether the 'version' field has been set, however the value could be null
-
hasIdentification
public boolean hasIdentification()
Checks whether the 'identification' field has been set, however the value could be null
-
hasStandard
public boolean hasStandard()
Checks whether the 'standard' field has been set, however the value could be null
-
setType
public TerminalManagementComponent setType(TerminalManagementComponentType type)
Sets the field 'type'.
-
setItemNumber
public TerminalManagementComponent setItemNumber(String itemNumber)
Sets the field 'itemNumber'.
-
setProvider
public TerminalManagementComponent setProvider(String provider)
Sets the field 'provider'.
-
setSerial
public TerminalManagementComponent setSerial(String serial)
Sets the field 'serial'.
-
setVersion
public TerminalManagementComponent setVersion(String version)
Sets the field 'version'.
-
setIdentification
public TerminalManagementComponent setIdentification(String identification)
Sets the field 'identification'.
-
setStandard
public TerminalManagementComponent setStandard(TerminalManagementStandard standard)
Sets the field 'standard'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearType
public void clearType()
Clears the 'type' field, the 'has' method for this field will now return false
-
clearItemNumber
public void clearItemNumber()
Clears the 'itemNumber' field, the 'has' method for this field will now return false
-
clearProvider
public void clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return false
-
clearSerial
public void clearSerial()
Clears the 'serial' field, the 'has' method for this field will now return false
-
clearVersion
public void clearVersion()
Clears the 'version' field, the 'has' method for this field will now return false
-
clearIdentification
public void clearIdentification()
Clears the 'identification' field, the 'has' method for this field will now return false
-
clearStandard
public void clearStandard()
Clears the 'standard' 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 TerminalManagementComponent copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(TerminalManagementComponent src)
Copy all the changed fields from the given source to this instance.
-
-