public class MerchantBillingInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantBillingInfo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantBillingInfo> |
CREATOR |
static JSONifiable.Creator<MerchantBillingInfo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantBillingInfo()
Constructs a new empty instance.
|
protected |
MerchantBillingInfo(boolean noInit)
Constructs a new empty instance.
|
|
MerchantBillingInfo(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.
|
|
MerchantBillingInfo(MerchantBillingInfo src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantBillingInfo(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppBillable()
Clears the 'appBillable' field, the 'has' method for this field will now return false
|
void |
clearAppExportable()
Clears the 'appExportable' field, the 'has' method for this field will now return false
|
void |
clearPlanBillable()
Clears the 'planBillable' field, the 'has' method for this field will now return false
|
void |
clearPlanExportable()
Clears the 'planExportable' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantBillingInfo |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getAppBillable()
Returns true if all apps are billable for the merchant in context.
|
Boolean |
getAppExportable()
Returns true if all apps are exportable for the merchant in context.
|
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.
|
Boolean |
getPlanBillable()
Returns true if all plans are billable for the merchant in context.
|
Boolean |
getPlanExportable()
Returns true if all plans are exportable for the merchant in context.
|
boolean |
hasAppBillable()
Checks whether the 'appBillable' field has been set, however the value could be null
|
boolean |
hasAppExportable()
Checks whether the 'appExportable' field has been set, however the value could be null
|
boolean |
hasPlanBillable()
Checks whether the 'planBillable' field has been set, however the value could be null
|
boolean |
hasPlanExportable()
Checks whether the 'planExportable' field has been set, however the value could be null
|
boolean |
isNotNullAppBillable()
Checks whether the 'appBillable' field is set and is not null
|
boolean |
isNotNullAppExportable()
Checks whether the 'appExportable' field is set and is not null
|
boolean |
isNotNullPlanBillable()
Checks whether the 'planBillable' field is set and is not null
|
boolean |
isNotNullPlanExportable()
Checks whether the 'planExportable' field is set and is not null
|
void |
mergeChanges(MerchantBillingInfo 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.
|
MerchantBillingInfo |
setAppBillable(Boolean appBillable)
Sets the field 'appBillable'.
|
MerchantBillingInfo |
setAppExportable(Boolean appExportable)
Sets the field 'appExportable'.
|
MerchantBillingInfo |
setPlanBillable(Boolean planBillable)
Sets the field 'planBillable'.
|
MerchantBillingInfo |
setPlanExportable(Boolean planExportable)
Sets the field 'planExportable'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantBillingInfo> CREATOR
public static final JSONifiable.Creator<MerchantBillingInfo> JSON_CREATOR
public MerchantBillingInfo()
protected MerchantBillingInfo(boolean noInit)
public MerchantBillingInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantBillingInfo(JSONObject jsonObject)
public MerchantBillingInfo(MerchantBillingInfo src)
public Boolean getPlanBillable()
public Boolean getAppBillable()
public Boolean getPlanExportable()
public Boolean getAppExportable()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullPlanBillable()
public boolean isNotNullAppBillable()
public boolean isNotNullPlanExportable()
public boolean isNotNullAppExportable()
public boolean hasPlanBillable()
public boolean hasAppBillable()
public boolean hasPlanExportable()
public boolean hasAppExportable()
public MerchantBillingInfo setPlanBillable(Boolean planBillable)
public MerchantBillingInfo setAppBillable(Boolean appBillable)
public MerchantBillingInfo setPlanExportable(Boolean planExportable)
public MerchantBillingInfo setAppExportable(Boolean appExportable)
public void clearPlanBillable()
public void clearAppBillable()
public void clearPlanExportable()
public void clearAppExportable()
public boolean containsChanges()
public void resetChangeLog()
public MerchantBillingInfo copyChanges()
public void mergeChanges(MerchantBillingInfo src)