public class MerchantPlanCharge extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantPlanCharge.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantPlanCharge> |
CREATOR |
static JSONifiable.Creator<MerchantPlanCharge> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantPlanCharge()
Constructs a new empty instance.
|
protected |
MerchantPlanCharge(boolean noInit)
Constructs a new empty instance.
|
|
MerchantPlanCharge(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.
|
|
MerchantPlanCharge(MerchantPlanCharge src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantPlanCharge(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCharge()
Clears the 'charge' 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 |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
|
void |
clearMerchantPlan()
Clears the 'merchantPlan' 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 |
clearNumOfDevices()
Clears the 'numOfDevices' field, the 'has' method for this field will now return false
|
void |
clearPlanChargeType()
Clears the 'planChargeType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantPlanCharge |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Charge |
getCharge() |
Long |
getCreatedTime() |
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.
|
Merchant |
getMerchant()
The merchant that this merchant plan charge belongs to.
|
MerchantPlan |
getMerchantPlan()
The merchant plan that this merchant plan charge was created for.
|
Long |
getModifiedTime() |
Long |
getNumOfDevices() |
PlanChargeType |
getPlanChargeType() |
boolean |
hasCharge()
Checks whether the 'charge' 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 |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
|
boolean |
hasMerchantPlan()
Checks whether the 'merchantPlan' 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 |
hasNumOfDevices()
Checks whether the 'numOfDevices' field has been set, however the value could be null
|
boolean |
hasPlanChargeType()
Checks whether the 'planChargeType' field has been set, however the value could be null
|
boolean |
isNotNullCharge()
Checks whether the 'charge' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
|
boolean |
isNotNullMerchantPlan()
Checks whether the 'merchantPlan' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullNumOfDevices()
Checks whether the 'numOfDevices' field is set and is not null
|
boolean |
isNotNullPlanChargeType()
Checks whether the 'planChargeType' field is set and is not null
|
void |
mergeChanges(MerchantPlanCharge 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.
|
MerchantPlanCharge |
setCharge(Charge charge)
Sets the field 'charge'.
|
MerchantPlanCharge |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
MerchantPlanCharge |
setId(String id)
Sets the field 'id'.
|
MerchantPlanCharge |
setMerchant(Merchant merchant)
Sets the field 'merchant'.
|
MerchantPlanCharge |
setMerchantPlan(MerchantPlan merchantPlan)
Sets the field 'merchantPlan'.
|
MerchantPlanCharge |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
MerchantPlanCharge |
setNumOfDevices(Long numOfDevices)
Sets the field 'numOfDevices'.
|
MerchantPlanCharge |
setPlanChargeType(PlanChargeType planChargeType)
Sets the field 'planChargeType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantPlanCharge> CREATOR
public static final JSONifiable.Creator<MerchantPlanCharge> JSON_CREATOR
public MerchantPlanCharge()
protected MerchantPlanCharge(boolean noInit)
public MerchantPlanCharge(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantPlanCharge(JSONObject jsonObject)
public MerchantPlanCharge(MerchantPlanCharge src)
public String getId()
public Charge getCharge()
public PlanChargeType getPlanChargeType()
public Long getNumOfDevices()
public Merchant getMerchant()
public MerchantPlan getMerchantPlan()
public Long getCreatedTime()
public Long getModifiedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCharge()
public boolean isNotNullPlanChargeType()
public boolean isNotNullNumOfDevices()
public boolean isNotNullMerchant()
public boolean isNotNullMerchantPlan()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean hasId()
public boolean hasCharge()
public boolean hasPlanChargeType()
public boolean hasNumOfDevices()
public boolean hasMerchant()
public boolean hasMerchantPlan()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public MerchantPlanCharge setId(String id)
public MerchantPlanCharge setCharge(Charge charge)
public MerchantPlanCharge setPlanChargeType(PlanChargeType planChargeType)
public MerchantPlanCharge setNumOfDevices(Long numOfDevices)
public MerchantPlanCharge setMerchant(Merchant merchant)
public MerchantPlanCharge setMerchantPlan(MerchantPlan merchantPlan)
public MerchantPlanCharge setCreatedTime(Long createdTime)
public MerchantPlanCharge setModifiedTime(Long modifiedTime)
public void clearId()
public void clearCharge()
public void clearPlanChargeType()
public void clearNumOfDevices()
public void clearMerchant()
public void clearMerchantPlan()
public void clearCreatedTime()
public void clearModifiedTime()
public boolean containsChanges()
public void resetChangeLog()
public MerchantPlanCharge copyChanges()
public void mergeChanges(MerchantPlanCharge src)