Package com.clover.sdk.v3.payments
Class BatchCardTotal
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.BatchCardTotal
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class BatchCardTotal 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
BatchCardTotal.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<BatchCardTotal>
CREATOR
static JSONifiable.Creator<BatchCardTotal>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description BatchCardTotal()
Constructs a new empty instance.protected
BatchCardTotal(boolean noInit)
Constructs a new empty instance.BatchCardTotal(BatchCardTotal src)
Constructs a new instance that is a deep copy of the source instance.BatchCardTotal(String json)
Constructs a new instance from the given JSON String.BatchCardTotal(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
clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return falsevoid
clearCardTypeLabel()
Clears the 'cardTypeLabel' field, the 'has' method for this field will now return falsevoid
clearCount()
Clears the 'count' field, the 'has' method for this field will now return falsevoid
clearInstallments()
Clears the 'installments' field, the 'has' method for this field will now return falsevoid
clearTotal()
Clears the 'total' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.BatchCardTotal
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.CardType
getCardType()
String
getCardTypeLabel()
In the case of CardType.OTHER, an optional label might be providedLong
getCount()
Total count of typesprotected GenericClient
getGenericClient()
Long
getInstallments()
Number of installments for this CardTotalJSONObject
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.Long
getTotal()
Total amount for typeboolean
hasCardType()
Checks whether the 'cardType' field has been set, however the value could be nullboolean
hasCardTypeLabel()
Checks whether the 'cardTypeLabel' field has been set, however the value could be nullboolean
hasCount()
Checks whether the 'count' field has been set, however the value could be nullboolean
hasInstallments()
Checks whether the 'installments' field has been set, however the value could be nullboolean
hasTotal()
Checks whether the 'total' field has been set, however the value could be nullboolean
isNotNullCardType()
Checks whether the 'cardType' field is set and is not nullboolean
isNotNullCardTypeLabel()
Checks whether the 'cardTypeLabel' field is set and is not nullboolean
isNotNullCount()
Checks whether the 'count' field is set and is not nullboolean
isNotNullInstallments()
Checks whether the 'installments' field is set and is not nullboolean
isNotNullTotal()
Checks whether the 'total' field is set and is not nullvoid
mergeChanges(BatchCardTotal 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.BatchCardTotal
setCardType(CardType cardType)
Sets the field 'cardType'.BatchCardTotal
setCardTypeLabel(String cardTypeLabel)
Sets the field 'cardTypeLabel'.BatchCardTotal
setCount(Long count)
Sets the field 'count'.BatchCardTotal
setInstallments(Long installments)
Sets the field 'installments'.BatchCardTotal
setTotal(Long total)
Sets the field 'total'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<BatchCardTotal> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<BatchCardTotal> JSON_CREATOR
-
-
Constructor Detail
-
BatchCardTotal
public BatchCardTotal()
Constructs a new empty instance.
-
BatchCardTotal
protected BatchCardTotal(boolean noInit)
Constructs a new empty instance.
-
BatchCardTotal
public BatchCardTotal(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
BatchCardTotal
public BatchCardTotal(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.
-
BatchCardTotal
public BatchCardTotal(BatchCardTotal src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getCardType
public CardType getCardType()
-
getCardTypeLabel
public String getCardTypeLabel()
In the case of CardType.OTHER, an optional label might be provided
-
getInstallments
public Long getInstallments()
Number of installments for this CardTotal
-
getCount
public Long getCount()
Total count of types
-
getTotal
public Long getTotal()
Total amount for type
-
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
-
isNotNullCardType
public boolean isNotNullCardType()
Checks whether the 'cardType' field is set and is not null
-
isNotNullCardTypeLabel
public boolean isNotNullCardTypeLabel()
Checks whether the 'cardTypeLabel' field is set and is not null
-
isNotNullInstallments
public boolean isNotNullInstallments()
Checks whether the 'installments' field is set and is not null
-
isNotNullCount
public boolean isNotNullCount()
Checks whether the 'count' field is set and is not null
-
isNotNullTotal
public boolean isNotNullTotal()
Checks whether the 'total' field is set and is not null
-
hasCardType
public boolean hasCardType()
Checks whether the 'cardType' field has been set, however the value could be null
-
hasCardTypeLabel
public boolean hasCardTypeLabel()
Checks whether the 'cardTypeLabel' field has been set, however the value could be null
-
hasInstallments
public boolean hasInstallments()
Checks whether the 'installments' field has been set, however the value could be null
-
hasCount
public boolean hasCount()
Checks whether the 'count' field has been set, however the value could be null
-
hasTotal
public boolean hasTotal()
Checks whether the 'total' field has been set, however the value could be null
-
setCardType
public BatchCardTotal setCardType(CardType cardType)
Sets the field 'cardType'.
-
setCardTypeLabel
public BatchCardTotal setCardTypeLabel(String cardTypeLabel)
Sets the field 'cardTypeLabel'.
-
setInstallments
public BatchCardTotal setInstallments(Long installments)
Sets the field 'installments'.
-
setCount
public BatchCardTotal setCount(Long count)
Sets the field 'count'.
-
setTotal
public BatchCardTotal setTotal(Long total)
Sets the field 'total'.
-
clearCardType
public void clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return false
-
clearCardTypeLabel
public void clearCardTypeLabel()
Clears the 'cardTypeLabel' field, the 'has' method for this field will now return false
-
clearInstallments
public void clearInstallments()
Clears the 'installments' field, the 'has' method for this field will now return false
-
clearCount
public void clearCount()
Clears the 'count' field, the 'has' method for this field will now return false
-
clearTotal
public void clearTotal()
Clears the 'total' 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 BatchCardTotal copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(BatchCardTotal src)
Copy all the changed fields from the given source to this instance.
-
-