Package com.clover.sdk.v3.merchant
Class MerchantBillingInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.merchant.MerchantBillingInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class MerchantBillingInfo 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
MerchantBillingInfo.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<MerchantBillingInfo>
CREATOR
static JSONifiable.Creator<MerchantBillingInfo>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description MerchantBillingInfo()
Constructs a new empty instance.protected
MerchantBillingInfo(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAppBillable()
Clears the 'appBillable' field, the 'has' method for this field will now return falsevoid
clearAppExportable()
Clears the 'appExportable' field, the 'has' method for this field will now return falsevoid
clearPlanBillable()
Clears the 'planBillable' field, the 'has' method for this field will now return falsevoid
clearPlanExportable()
Clears the 'planExportable' field, the 'has' method for this field will now return falseboolean
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 nullboolean
hasAppExportable()
Checks whether the 'appExportable' field has been set, however the value could be nullboolean
hasPlanBillable()
Checks whether the 'planBillable' field has been set, however the value could be nullboolean
hasPlanExportable()
Checks whether the 'planExportable' field has been set, however the value could be nullboolean
isNotNullAppBillable()
Checks whether the 'appBillable' field is set and is not nullboolean
isNotNullAppExportable()
Checks whether the 'appExportable' field is set and is not nullboolean
isNotNullPlanBillable()
Checks whether the 'planBillable' field is set and is not nullboolean
isNotNullPlanExportable()
Checks whether the 'planExportable' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<MerchantBillingInfo> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<MerchantBillingInfo> JSON_CREATOR
-
-
Constructor Detail
-
MerchantBillingInfo
public MerchantBillingInfo()
Constructs a new empty instance.
-
MerchantBillingInfo
protected MerchantBillingInfo(boolean noInit)
Constructs a new empty instance.
-
MerchantBillingInfo
public MerchantBillingInfo(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
MerchantBillingInfo
public 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
public MerchantBillingInfo(MerchantBillingInfo src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getPlanBillable
public Boolean getPlanBillable()
Returns true if all plans are billable for the merchant in context.
-
getAppBillable
public Boolean getAppBillable()
Returns true if all apps are billable for the merchant in context.
-
getPlanExportable
public Boolean getPlanExportable()
Returns true if all plans are exportable for the merchant in context.
-
getAppExportable
public Boolean getAppExportable()
Returns true if all apps are exportable for the merchant in context.
-
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
-
isNotNullPlanBillable
public boolean isNotNullPlanBillable()
Checks whether the 'planBillable' field is set and is not null
-
isNotNullAppBillable
public boolean isNotNullAppBillable()
Checks whether the 'appBillable' field is set and is not null
-
isNotNullPlanExportable
public boolean isNotNullPlanExportable()
Checks whether the 'planExportable' field is set and is not null
-
isNotNullAppExportable
public boolean isNotNullAppExportable()
Checks whether the 'appExportable' field is set and is not null
-
hasPlanBillable
public boolean hasPlanBillable()
Checks whether the 'planBillable' field has been set, however the value could be null
-
hasAppBillable
public boolean hasAppBillable()
Checks whether the 'appBillable' field has been set, however the value could be null
-
hasPlanExportable
public boolean hasPlanExportable()
Checks whether the 'planExportable' field has been set, however the value could be null
-
hasAppExportable
public boolean hasAppExportable()
Checks whether the 'appExportable' field has been set, however the value could be null
-
setPlanBillable
public MerchantBillingInfo setPlanBillable(Boolean planBillable)
Sets the field 'planBillable'.
-
setAppBillable
public MerchantBillingInfo setAppBillable(Boolean appBillable)
Sets the field 'appBillable'.
-
setPlanExportable
public MerchantBillingInfo setPlanExportable(Boolean planExportable)
Sets the field 'planExportable'.
-
setAppExportable
public MerchantBillingInfo setAppExportable(Boolean appExportable)
Sets the field 'appExportable'.
-
clearPlanBillable
public void clearPlanBillable()
Clears the 'planBillable' field, the 'has' method for this field will now return false
-
clearAppBillable
public void clearAppBillable()
Clears the 'appBillable' field, the 'has' method for this field will now return false
-
clearPlanExportable
public void clearPlanExportable()
Clears the 'planExportable' field, the 'has' method for this field will now return false
-
clearAppExportable
public void clearAppExportable()
Clears the 'appExportable' 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 MerchantBillingInfo copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(MerchantBillingInfo src)
Copy all the changed fields from the given source to this instance.
-
-