public class SummaryMerchantCharges extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
SummaryMerchantCharges.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SummaryMerchantCharges> |
CREATOR |
static JSONifiable.Creator<SummaryMerchantCharges> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
SummaryMerchantCharges()
Constructs a new empty instance.
|
protected |
SummaryMerchantCharges(boolean noInit)
Constructs a new empty instance.
|
|
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(String json)
Constructs a new instance from the given JSON String.
|
|
SummaryMerchantCharges(SummaryMerchantCharges src)
Constructs a new instance that is a deep copy of the source instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
|
void |
clearNum()
Clears the 'num' field, the 'has' method for this field will now return false
|
void |
clearNumOfMerchants()
Clears the 'numOfMerchants' field, the 'has' method for this field will now return false
|
void |
clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return false
|
void |
clearTotalDeveloperPortion()
Clears the 'totalDeveloperPortion' field, the 'has' method for this field will now return false
|
void |
clearTotalTax()
Clears the 'totalTax' field, the 'has' method for this field will now return false
|
boolean |
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 null
|
boolean |
hasNum()
Checks whether the 'num' field has been set, however the value could be null
|
boolean |
hasNumOfMerchants()
Checks whether the 'numOfMerchants' field has been set, however the value could be null
|
boolean |
hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be null
|
boolean |
hasTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field has been set, however the value could be null
|
boolean |
hasTotalTax()
Checks whether the 'totalTax' field has been set, however the value could be null
|
boolean |
isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
|
boolean |
isNotNullNum()
Checks whether the 'num' field is set and is not null
|
boolean |
isNotNullNumOfMerchants()
Checks whether the 'numOfMerchants' field is set and is not null
|
boolean |
isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not null
|
boolean |
isNotNullTotalDeveloperPortion()
Checks whether the 'totalDeveloperPortion' field is set and is not null
|
boolean |
isNotNullTotalTax()
Checks whether the 'totalTax' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<SummaryMerchantCharges> CREATOR
public static final JSONifiable.Creator<SummaryMerchantCharges> JSON_CREATOR
public SummaryMerchantCharges()
protected SummaryMerchantCharges(boolean noInit)
public SummaryMerchantCharges(String json) throws IllegalArgumentException
IllegalArgumentException
public SummaryMerchantCharges(JSONObject jsonObject)
public SummaryMerchantCharges(SummaryMerchantCharges src)
public String getCurrency()
public Long getNum()
public Long getTotalAmount()
public Long getTotalTax()
public Long getTotalDeveloperPortion()
public Integer getNumOfMerchants()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullCurrency()
public boolean isNotNullNum()
public boolean isNotNullTotalAmount()
public boolean isNotNullTotalTax()
public boolean isNotNullTotalDeveloperPortion()
public boolean isNotNullNumOfMerchants()
public boolean hasCurrency()
public boolean hasNum()
public boolean hasTotalAmount()
public boolean hasTotalTax()
public boolean hasTotalDeveloperPortion()
public boolean hasNumOfMerchants()
public SummaryMerchantCharges setCurrency(String currency)
public SummaryMerchantCharges setNum(Long num)
public SummaryMerchantCharges setTotalAmount(Long totalAmount)
public SummaryMerchantCharges setTotalTax(Long totalTax)
public SummaryMerchantCharges setTotalDeveloperPortion(Long totalDeveloperPortion)
public SummaryMerchantCharges setNumOfMerchants(Integer numOfMerchants)
public void clearCurrency()
public void clearNum()
public void clearTotalAmount()
public void clearTotalTax()
public void clearTotalDeveloperPortion()
public void clearNumOfMerchants()
public boolean containsChanges()
public void resetChangeLog()
public SummaryMerchantCharges copyChanges()
public void mergeChanges(SummaryMerchantCharges src)