public class Charge extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Charge.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Charge> |
CREATOR |
static JSONifiable.Creator<Charge> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Charge()
Constructs a new empty instance.
|
protected |
Charge(boolean noInit)
Constructs a new empty instance.
|
|
Charge(Charge src)
Constructs a new instance that is a deep copy of the source instance.
|
|
Charge(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.
|
|
Charge(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
|
void |
clearDeveloperPortion()
Clears the 'developerPortion' field, the 'has' method for this field will now return false
|
void |
clearEndDate()
Clears the 'endDate' field, the 'has' method for this field will now return false
|
void |
clearExportMonth()
Clears the 'exportMonth' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearInfoleaseChargeAttempts()
Clears the 'infoleaseChargeAttempts' field, the 'has' method for this field will now return false
|
void |
clearMerchantAppCharge()
Clears the 'merchantAppCharge' field, the 'has' method for this field will now return false
|
void |
clearMerchantPlanCharge()
Clears the 'merchantPlanCharge' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearStartDate()
Clears the 'startDate' field, the 'has' method for this field will now return false
|
void |
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
|
void |
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
|
void |
clearTaxClassificationCode()
Clears the 'taxClassificationCode' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Charge |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAmount() |
Long |
getCreatedTime() |
String |
getCurrency() |
Long |
getDeveloperPortion() |
Long |
getEndDate() |
Long |
getExportMonth() |
protected GenericClient |
getGenericClient() |
String |
getId() |
List<InfoleaseChargeAttempt> |
getInfoleaseChargeAttempts()
Infolease charge attempts
|
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.
|
Reference |
getMerchantAppCharge()
Object which includes the charge object and some details regarding the app charge
|
Reference |
getMerchantPlanCharge()
Object which includes the charge object and some details regarding the plan charge
|
Long |
getModifiedTime() |
Long |
getStartDate() |
ChargeStatus |
getStatus() |
Long |
getTax() |
String |
getTaxClassificationCode() |
ChargeType |
getType() |
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be null
|
boolean |
hasDeveloperPortion()
Checks whether the 'developerPortion' field has been set, however the value could be null
|
boolean |
hasEndDate()
Checks whether the 'endDate' field has been set, however the value could be null
|
boolean |
hasExportMonth()
Checks whether the 'exportMonth' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field has been set, however the value could be null
|
boolean |
hasMerchantAppCharge()
Checks whether the 'merchantAppCharge' field has been set, however the value could be null
|
boolean |
hasMerchantPlanCharge()
Checks whether the 'merchantPlanCharge' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasStartDate()
Checks whether the 'startDate' field has been set, however the value could be null
|
boolean |
hasStatus()
Checks whether the 'status' field has been set, however the value could be null
|
boolean |
hasTax()
Checks whether the 'tax' field has been set, however the value could be null
|
boolean |
hasTaxClassificationCode()
Checks whether the 'taxClassificationCode' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
isNotEmptyInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field is set and is not null and is not empty
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
|
boolean |
isNotNullDeveloperPortion()
Checks whether the 'developerPortion' field is set and is not null
|
boolean |
isNotNullEndDate()
Checks whether the 'endDate' field is set and is not null
|
boolean |
isNotNullExportMonth()
Checks whether the 'exportMonth' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field is set and is not null
|
boolean |
isNotNullMerchantAppCharge()
Checks whether the 'merchantAppCharge' field is set and is not null
|
boolean |
isNotNullMerchantPlanCharge()
Checks whether the 'merchantPlanCharge' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullStartDate()
Checks whether the 'startDate' field is set and is not null
|
boolean |
isNotNullStatus()
Checks whether the 'status' field is set and is not null
|
boolean |
isNotNullTax()
Checks whether the 'tax' field is set and is not null
|
boolean |
isNotNullTaxClassificationCode()
Checks whether the 'taxClassificationCode' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
void |
mergeChanges(Charge 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.
|
Charge |
setAmount(Long amount)
Sets the field 'amount'.
|
Charge |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
Charge |
setCurrency(String currency)
Sets the field 'currency'.
|
Charge |
setDeveloperPortion(Long developerPortion)
Sets the field 'developerPortion'.
|
Charge |
setEndDate(Long endDate)
Sets the field 'endDate'.
|
Charge |
setExportMonth(Long exportMonth)
Sets the field 'exportMonth'.
|
Charge |
setId(String id)
Sets the field 'id'.
|
Charge |
setInfoleaseChargeAttempts(List<InfoleaseChargeAttempt> infoleaseChargeAttempts)
Sets the field 'infoleaseChargeAttempts'.
|
Charge |
setMerchantAppCharge(Reference merchantAppCharge)
Sets the field 'merchantAppCharge'.
|
Charge |
setMerchantPlanCharge(Reference merchantPlanCharge)
Sets the field 'merchantPlanCharge'.
|
Charge |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
Charge |
setStartDate(Long startDate)
Sets the field 'startDate'.
|
Charge |
setStatus(ChargeStatus status)
Sets the field 'status'.
|
Charge |
setTax(Long tax)
Sets the field 'tax'.
|
Charge |
setTaxClassificationCode(String taxClassificationCode)
Sets the field 'taxClassificationCode'.
|
Charge |
setType(ChargeType type)
Sets the field 'type'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Charge> CREATOR
public static final JSONifiable.Creator<Charge> JSON_CREATOR
public Charge()
protected Charge(boolean noInit)
public Charge(String json) throws IllegalArgumentException
IllegalArgumentException
public Charge(JSONObject jsonObject)
public Charge(Charge src)
public String getId()
public String getCurrency()
public Long getAmount()
public Long getTax()
public Long getDeveloperPortion()
public ChargeStatus getStatus()
public ChargeType getType()
public String getTaxClassificationCode()
public Long getStartDate()
public Long getEndDate()
public Long getExportMonth()
public Long getCreatedTime()
public Long getModifiedTime()
public Reference getMerchantAppCharge()
public Reference getMerchantPlanCharge()
public List<InfoleaseChargeAttempt> getInfoleaseChargeAttempts()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCurrency()
public boolean isNotNullAmount()
public boolean isNotNullTax()
public boolean isNotNullDeveloperPortion()
public boolean isNotNullStatus()
public boolean isNotNullType()
public boolean isNotNullTaxClassificationCode()
public boolean isNotNullStartDate()
public boolean isNotNullEndDate()
public boolean isNotNullExportMonth()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullMerchantAppCharge()
public boolean isNotNullMerchantPlanCharge()
public boolean isNotNullInfoleaseChargeAttempts()
public boolean isNotEmptyInfoleaseChargeAttempts()
public boolean hasId()
public boolean hasCurrency()
public boolean hasAmount()
public boolean hasTax()
public boolean hasDeveloperPortion()
public boolean hasStatus()
public boolean hasType()
public boolean hasTaxClassificationCode()
public boolean hasStartDate()
public boolean hasEndDate()
public boolean hasExportMonth()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasMerchantAppCharge()
public boolean hasMerchantPlanCharge()
public boolean hasInfoleaseChargeAttempts()
public Charge setDeveloperPortion(Long developerPortion)
public Charge setStatus(ChargeStatus status)
public Charge setType(ChargeType type)
public Charge setTaxClassificationCode(String taxClassificationCode)
public Charge setMerchantAppCharge(Reference merchantAppCharge)
public Charge setMerchantPlanCharge(Reference merchantPlanCharge)
public Charge setInfoleaseChargeAttempts(List<InfoleaseChargeAttempt> infoleaseChargeAttempts)
public void clearId()
public void clearCurrency()
public void clearAmount()
public void clearTax()
public void clearDeveloperPortion()
public void clearStatus()
public void clearType()
public void clearTaxClassificationCode()
public void clearStartDate()
public void clearEndDate()
public void clearExportMonth()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearMerchantAppCharge()
public void clearMerchantPlanCharge()
public void clearInfoleaseChargeAttempts()
public boolean containsChanges()
public void resetChangeLog()
public Charge copyChanges()
public void mergeChanges(Charge src)