Package com.clover.sdk.v3.report
Class SummaryGroup
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.report.SummaryGroup
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class SummaryGroup 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
SummaryGroup.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<SummaryGroup>
CREATOR
static JSONifiable.Creator<SummaryGroup>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description SummaryGroup()
Constructs a new empty instance.protected
SummaryGroup(boolean noInit)
Constructs a new empty instance.SummaryGroup(SummaryGroup src)
Constructs a new instance that is a deep copy of the source instance.SummaryGroup(String json)
Constructs a new instance from the given JSON String.SummaryGroup(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
clearCreditsSummary()
Clears the 'creditsSummary' field, the 'has' method for this field will now return falsevoid
clearDiscountsSummary()
Clears the 'discountsSummary' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearPaymentsSummary()
Clears the 'paymentsSummary' field, the 'has' method for this field will now return falsevoid
clearRefundsSummary()
Clears the 'refundsSummary' field, the 'has' method for this field will now return falsevoid
clearSummaryObject()
Clears the 'summaryObject' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.SummaryGroup
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Summary
getCreditsSummary()
Summary
getDiscountsSummary()
protected GenericClient
getGenericClient()
String
getId()
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.Summary
getPaymentsSummary()
Summary
getRefundsSummary()
Reference
getSummaryObject()
boolean
hasCreditsSummary()
Checks whether the 'creditsSummary' field has been set, however the value could be nullboolean
hasDiscountsSummary()
Checks whether the 'discountsSummary' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasPaymentsSummary()
Checks whether the 'paymentsSummary' field has been set, however the value could be nullboolean
hasRefundsSummary()
Checks whether the 'refundsSummary' field has been set, however the value could be nullboolean
hasSummaryObject()
Checks whether the 'summaryObject' field has been set, however the value could be nullboolean
isNotNullCreditsSummary()
Checks whether the 'creditsSummary' field is set and is not nullboolean
isNotNullDiscountsSummary()
Checks whether the 'discountsSummary' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullPaymentsSummary()
Checks whether the 'paymentsSummary' field is set and is not nullboolean
isNotNullRefundsSummary()
Checks whether the 'refundsSummary' field is set and is not nullboolean
isNotNullSummaryObject()
Checks whether the 'summaryObject' field is set and is not nullvoid
mergeChanges(SummaryGroup 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.SummaryGroup
setCreditsSummary(Summary creditsSummary)
Sets the field 'creditsSummary'.SummaryGroup
setDiscountsSummary(Summary discountsSummary)
Sets the field 'discountsSummary'.SummaryGroup
setId(String id)
Sets the field 'id'.SummaryGroup
setPaymentsSummary(Summary paymentsSummary)
Sets the field 'paymentsSummary'.SummaryGroup
setRefundsSummary(Summary refundsSummary)
Sets the field 'refundsSummary'.SummaryGroup
setSummaryObject(Reference summaryObject)
Sets the field 'summaryObject'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<SummaryGroup> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<SummaryGroup> JSON_CREATOR
-
-
Constructor Detail
-
SummaryGroup
public SummaryGroup()
Constructs a new empty instance.
-
SummaryGroup
protected SummaryGroup(boolean noInit)
Constructs a new empty instance.
-
SummaryGroup
public SummaryGroup(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
SummaryGroup
public SummaryGroup(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.
-
SummaryGroup
public SummaryGroup(SummaryGroup src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
-
getSummaryObject
public Reference getSummaryObject()
-
getPaymentsSummary
public Summary getPaymentsSummary()
-
getRefundsSummary
public Summary getRefundsSummary()
-
getCreditsSummary
public Summary getCreditsSummary()
-
getDiscountsSummary
public Summary getDiscountsSummary()
-
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
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullSummaryObject
public boolean isNotNullSummaryObject()
Checks whether the 'summaryObject' field is set and is not null
-
isNotNullPaymentsSummary
public boolean isNotNullPaymentsSummary()
Checks whether the 'paymentsSummary' field is set and is not null
-
isNotNullRefundsSummary
public boolean isNotNullRefundsSummary()
Checks whether the 'refundsSummary' field is set and is not null
-
isNotNullCreditsSummary
public boolean isNotNullCreditsSummary()
Checks whether the 'creditsSummary' field is set and is not null
-
isNotNullDiscountsSummary
public boolean isNotNullDiscountsSummary()
Checks whether the 'discountsSummary' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasSummaryObject
public boolean hasSummaryObject()
Checks whether the 'summaryObject' field has been set, however the value could be null
-
hasPaymentsSummary
public boolean hasPaymentsSummary()
Checks whether the 'paymentsSummary' field has been set, however the value could be null
-
hasRefundsSummary
public boolean hasRefundsSummary()
Checks whether the 'refundsSummary' field has been set, however the value could be null
-
hasCreditsSummary
public boolean hasCreditsSummary()
Checks whether the 'creditsSummary' field has been set, however the value could be null
-
hasDiscountsSummary
public boolean hasDiscountsSummary()
Checks whether the 'discountsSummary' field has been set, however the value could be null
-
setId
public SummaryGroup setId(String id)
Sets the field 'id'.
-
setSummaryObject
public SummaryGroup setSummaryObject(Reference summaryObject)
Sets the field 'summaryObject'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setPaymentsSummary
public SummaryGroup setPaymentsSummary(Summary paymentsSummary)
Sets the field 'paymentsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setRefundsSummary
public SummaryGroup setRefundsSummary(Summary refundsSummary)
Sets the field 'refundsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCreditsSummary
public SummaryGroup setCreditsSummary(Summary creditsSummary)
Sets the field 'creditsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDiscountsSummary
public SummaryGroup setDiscountsSummary(Summary discountsSummary)
Sets the field 'discountsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearSummaryObject
public void clearSummaryObject()
Clears the 'summaryObject' field, the 'has' method for this field will now return false
-
clearPaymentsSummary
public void clearPaymentsSummary()
Clears the 'paymentsSummary' field, the 'has' method for this field will now return false
-
clearRefundsSummary
public void clearRefundsSummary()
Clears the 'refundsSummary' field, the 'has' method for this field will now return false
-
clearCreditsSummary
public void clearCreditsSummary()
Clears the 'creditsSummary' field, the 'has' method for this field will now return false
-
clearDiscountsSummary
public void clearDiscountsSummary()
Clears the 'discountsSummary' 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 SummaryGroup copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(SummaryGroup src)
Copy all the changed fields from the given source to this instance.
-
-