public class BatchCardTotal extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
BatchCardTotal.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BatchCardTotal> |
CREATOR |
static JSONifiable.Creator<BatchCardTotal> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
BatchCardTotal()
Constructs a new empty instance.
|
|
BatchCardTotal(BatchCardTotal src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
BatchCardTotal(boolean noInit)
Constructs a new empty instance.
|
|
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(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCardType()
Clears the 'cardType' field, the 'has' method for this field will now return false
|
void |
clearCardTypeLabel()
Clears the 'cardTypeLabel' field, the 'has' method for this field will now return false
|
void |
clearCount()
Clears the 'count' field, the 'has' method for this field will now return false
|
void |
clearInstallments()
Clears the 'installments' field, the 'has' method for this field will now return false
|
void |
clearTotal()
Clears the 'total' field, the 'has' method for this field will now return false
|
boolean |
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 provided
|
Long |
getCount()
Total count of types
|
protected GenericClient |
getGenericClient() |
Long |
getInstallments()
Number of installments for this CardTotal
|
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.
|
Long |
getTotal()
Total amount for type
|
boolean |
hasCardType()
Checks whether the 'cardType' field has been set, however the value could be null
|
boolean |
hasCardTypeLabel()
Checks whether the 'cardTypeLabel' field has been set, however the value could be null
|
boolean |
hasCount()
Checks whether the 'count' field has been set, however the value could be null
|
boolean |
hasInstallments()
Checks whether the 'installments' field has been set, however the value could be null
|
boolean |
hasTotal()
Checks whether the 'total' field has been set, however the value could be null
|
boolean |
isNotNullCardType()
Checks whether the 'cardType' field is set and is not null
|
boolean |
isNotNullCardTypeLabel()
Checks whether the 'cardTypeLabel' field is set and is not null
|
boolean |
isNotNullCount()
Checks whether the 'count' field is set and is not null
|
boolean |
isNotNullInstallments()
Checks whether the 'installments' field is set and is not null
|
boolean |
isNotNullTotal()
Checks whether the 'total' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<BatchCardTotal> CREATOR
public static final JSONifiable.Creator<BatchCardTotal> JSON_CREATOR
public BatchCardTotal()
protected BatchCardTotal(boolean noInit)
public BatchCardTotal(String json) throws IllegalArgumentException
IllegalArgumentException
public BatchCardTotal(JSONObject jsonObject)
public BatchCardTotal(BatchCardTotal src)
public CardType getCardType()
public String getCardTypeLabel()
public Long getInstallments()
public Long getCount()
public Long getTotal()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullCardType()
public boolean isNotNullCardTypeLabel()
public boolean isNotNullInstallments()
public boolean isNotNullCount()
public boolean isNotNullTotal()
public boolean hasCardType()
public boolean hasCardTypeLabel()
public boolean hasInstallments()
public boolean hasCount()
public boolean hasTotal()
public BatchCardTotal setCardType(CardType cardType)
public BatchCardTotal setCardTypeLabel(String cardTypeLabel)
public BatchCardTotal setInstallments(Long installments)
public BatchCardTotal setCount(Long count)
public BatchCardTotal setTotal(Long total)
public void clearCardType()
public void clearCardTypeLabel()
public void clearInstallments()
public void clearCount()
public void clearTotal()
public boolean containsChanges()
public void resetChangeLog()
public BatchCardTotal copyChanges()
public void mergeChanges(BatchCardTotal src)