Package com.clover.sdk.v3.report
Class SummaryMerchantCharges
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.report.SummaryMerchantCharges
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class SummaryMerchantCharges 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
SummaryMerchantCharges.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<SummaryMerchantCharges>
CREATOR
static JSONifiable.Creator<SummaryMerchantCharges>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description SummaryMerchantCharges()
Constructs a new empty instance.protected
SummaryMerchantCharges(boolean noInit)
Constructs a new empty instance.SummaryMerchantCharges(SummaryMerchantCharges src)
Constructs a new instance that is a deep copy of the source instance.SummaryMerchantCharges(String json)
Constructs a new instance from the given JSON String.SummaryMerchantCharges(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
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return falsevoid
clearNum()
Clears the 'num' field, the 'has' method for this field will now return falsevoid
clearNumOfMerchants()
Clears the 'numOfMerchants' field, the 'has' method for this field will now return falsevoid
clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return falsevoid
clearTotalDeveloperPortion()
Clears the 'totalDeveloperPortion' field, the 'has' method for this field will now return falsevoid
clearTotalTax()
Clears the 'totalTax' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.SummaryMerchantCharges
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getCurrency()
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.Long
getNum()
Integer
getNumOfMerchants()
Long
getTotalAmount()
Long
getTotalDeveloperPortion()
Long
getTotalTax()
boolean
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be nullboolean
hasNum()
Checks whether the 'num' field has been set, however the value could be nullboolean
hasNumOfMerchants()
Checks whether the 'numOfMerchants' field has been set, however the value could be nullboolean
hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be nullboolean
hasTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field has been set, however the value could be nullboolean
hasTotalTax()
Checks whether the 'totalTax' field has been set, however the value could be nullboolean
isNotNullCurrency()
Checks whether the 'currency' field is set and is not nullboolean
isNotNullNum()
Checks whether the 'num' field is set and is not nullboolean
isNotNullNumOfMerchants()
Checks whether the 'numOfMerchants' field is set and is not nullboolean
isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not nullboolean
isNotNullTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field is set and is not nullboolean
isNotNullTotalTax()
Checks whether the 'totalTax' field is set and is not nullvoid
mergeChanges(SummaryMerchantCharges 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.SummaryMerchantCharges
setCurrency(String currency)
Sets the field 'currency'.SummaryMerchantCharges
setNum(Long num)
Sets the field 'num'.SummaryMerchantCharges
setNumOfMerchants(Integer numOfMerchants)
Sets the field 'numOfMerchants'.SummaryMerchantCharges
setTotalAmount(Long totalAmount)
Sets the field 'totalAmount'.SummaryMerchantCharges
setTotalDeveloperPortion(Long totalDeveloperPortion)
Sets the field 'totalDeveloperPortion'.SummaryMerchantCharges
setTotalTax(Long totalTax)
Sets the field 'totalTax'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<SummaryMerchantCharges> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<SummaryMerchantCharges> JSON_CREATOR
-
-
Constructor Detail
-
SummaryMerchantCharges
public SummaryMerchantCharges()
Constructs a new empty instance.
-
SummaryMerchantCharges
protected SummaryMerchantCharges(boolean noInit)
Constructs a new empty instance.
-
SummaryMerchantCharges
public SummaryMerchantCharges(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
SummaryMerchantCharges
public SummaryMerchantCharges(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.
-
SummaryMerchantCharges
public SummaryMerchantCharges(SummaryMerchantCharges src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getCurrency
public String getCurrency()
-
getNum
public Long getNum()
-
getTotalAmount
public Long getTotalAmount()
-
getTotalTax
public Long getTotalTax()
-
getTotalDeveloperPortion
public Long getTotalDeveloperPortion()
-
getNumOfMerchants
public Integer getNumOfMerchants()
-
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
-
isNotNullCurrency
public boolean isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
-
isNotNullNum
public boolean isNotNullNum()
Checks whether the 'num' field is set and is not null
-
isNotNullTotalAmount
public boolean isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not null
-
isNotNullTotalTax
public boolean isNotNullTotalTax()
Checks whether the 'totalTax' field is set and is not null
-
isNotNullTotalDeveloperPortion
public boolean isNotNullTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field is set and is not null
-
isNotNullNumOfMerchants
public boolean isNotNullNumOfMerchants()
Checks whether the 'numOfMerchants' field is set and is not null
-
hasCurrency
public boolean hasCurrency()
Checks whether the 'currency' field has been set, however the value could be null
-
hasNum
public boolean hasNum()
Checks whether the 'num' field has been set, however the value could be null
-
hasTotalAmount
public boolean hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be null
-
hasTotalTax
public boolean hasTotalTax()
Checks whether the 'totalTax' field has been set, however the value could be null
-
hasTotalDeveloperPortion
public boolean hasTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field has been set, however the value could be null
-
hasNumOfMerchants
public boolean hasNumOfMerchants()
Checks whether the 'numOfMerchants' field has been set, however the value could be null
-
setCurrency
public SummaryMerchantCharges setCurrency(String currency)
Sets the field 'currency'.
-
setNum
public SummaryMerchantCharges setNum(Long num)
Sets the field 'num'.
-
setTotalAmount
public SummaryMerchantCharges setTotalAmount(Long totalAmount)
Sets the field 'totalAmount'.
-
setTotalTax
public SummaryMerchantCharges setTotalTax(Long totalTax)
Sets the field 'totalTax'.
-
setTotalDeveloperPortion
public SummaryMerchantCharges setTotalDeveloperPortion(Long totalDeveloperPortion)
Sets the field 'totalDeveloperPortion'.
-
setNumOfMerchants
public SummaryMerchantCharges setNumOfMerchants(Integer numOfMerchants)
Sets the field 'numOfMerchants'.
-
clearCurrency
public void clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
-
clearNum
public void clearNum()
Clears the 'num' field, the 'has' method for this field will now return false
-
clearTotalAmount
public void clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return false
-
clearTotalTax
public void clearTotalTax()
Clears the 'totalTax' field, the 'has' method for this field will now return false
-
clearTotalDeveloperPortion
public void clearTotalDeveloperPortion()
Clears the 'totalDeveloperPortion' field, the 'has' method for this field will now return false
-
clearNumOfMerchants
public void clearNumOfMerchants()
Clears the 'numOfMerchants' 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 SummaryMerchantCharges copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(SummaryMerchantCharges src)
Copy all the changed fields from the given source to this instance.
-
-