Package com.clover.sdk.v3.billing
Class MerchantAppCharge
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.billing.MerchantAppCharge
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class MerchantAppCharge 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
MerchantAppCharge.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<MerchantAppCharge>
CREATOR
static JSONifiable.Creator<MerchantAppCharge>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description MerchantAppCharge()
Constructs a new empty instance.protected
MerchantAppCharge(boolean noInit)
Constructs a new empty instance.MerchantAppCharge(MerchantAppCharge src)
Constructs a new instance that is a deep copy of the source instance.MerchantAppCharge(String json)
Constructs a new instance from the given JSON String.MerchantAppCharge(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
clearApp()
Clears the 'app' field, the 'has' method for this field will now return falsevoid
clearAppInstallTime()
Clears the 'appInstallTime' field, the 'has' method for this field will now return falsevoid
clearAppMeteredEvents()
Clears the 'appMeteredEvents' field, the 'has' method for this field will now return falsevoid
clearAppSubscription()
Clears the 'appSubscription' field, the 'has' method for this field will now return falsevoid
clearAppUninstallTime()
Clears the 'appUninstallTime' field, the 'has' method for this field will now return falsevoid
clearCharge()
Clears the 'charge' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.MerchantAppCharge
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.App
getApp()
The app that this line item belongs to.Long
getAppInstallTime()
A timestamp indicating when the app was installed by the merchantList<AppMeteredEvent>
getAppMeteredEvents()
Reference
getAppSubscription()
Long
getAppUninstallTime()
This is only filled in if the install that caused this app line item has been uninstalledCharge
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.Reference
getMerchant()
The merchant that belongs to this line item.Long
getModifiedTime()
boolean
hasApp()
Checks whether the 'app' field has been set, however the value could be nullboolean
hasAppInstallTime()
Checks whether the 'appInstallTime' field has been set, however the value could be nullboolean
hasAppMeteredEvents()
Checks whether the 'appMeteredEvents' field has been set, however the value could be nullboolean
hasAppSubscription()
Checks whether the 'appSubscription' field has been set, however the value could be nullboolean
hasAppUninstallTime()
Checks whether the 'appUninstallTime' field has been set, however the value could be nullboolean
hasCharge()
Checks whether the 'charge' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
isNotEmptyAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not null and is not emptyboolean
isNotNullApp()
Checks whether the 'app' field is set and is not nullboolean
isNotNullAppInstallTime()
Checks whether the 'appInstallTime' field is set and is not nullboolean
isNotNullAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not nullboolean
isNotNullAppSubscription()
Checks whether the 'appSubscription' field is set and is not nullboolean
isNotNullAppUninstallTime()
Checks whether the 'appUninstallTime' field is set and is not nullboolean
isNotNullCharge()
Checks whether the 'charge' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullvoid
mergeChanges(MerchantAppCharge 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.MerchantAppCharge
setApp(App app)
Sets the field 'app'.MerchantAppCharge
setAppInstallTime(Long appInstallTime)
Sets the field 'appInstallTime'.MerchantAppCharge
setAppMeteredEvents(List<AppMeteredEvent> appMeteredEvents)
Sets the field 'appMeteredEvents'.MerchantAppCharge
setAppSubscription(Reference appSubscription)
Sets the field 'appSubscription'.MerchantAppCharge
setAppUninstallTime(Long appUninstallTime)
Sets the field 'appUninstallTime'.MerchantAppCharge
setCharge(Charge charge)
Sets the field 'charge'.MerchantAppCharge
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.MerchantAppCharge
setId(String id)
Sets the field 'id'.MerchantAppCharge
setMerchant(Reference merchant)
Sets the field 'merchant'.MerchantAppCharge
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<MerchantAppCharge> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<MerchantAppCharge> JSON_CREATOR
-
-
Constructor Detail
-
MerchantAppCharge
public MerchantAppCharge()
Constructs a new empty instance.
-
MerchantAppCharge
protected MerchantAppCharge(boolean noInit)
Constructs a new empty instance.
-
MerchantAppCharge
public MerchantAppCharge(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
MerchantAppCharge
public MerchantAppCharge(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.
-
MerchantAppCharge
public MerchantAppCharge(MerchantAppCharge src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
-
getCharge
public Charge getCharge()
-
getApp
public App getApp()
The app that this line item belongs to.
-
getMerchant
public Reference getMerchant()
The merchant that belongs to this line item.
-
getAppSubscription
public Reference getAppSubscription()
-
getCreatedTime
public Long getCreatedTime()
-
getModifiedTime
public Long getModifiedTime()
-
getAppInstallTime
public Long getAppInstallTime()
A timestamp indicating when the app was installed by the merchant
-
getAppUninstallTime
public Long getAppUninstallTime()
This is only filled in if the install that caused this app line item has been uninstalled
-
getAppMeteredEvents
public List<AppMeteredEvent> getAppMeteredEvents()
-
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
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullCharge
public boolean isNotNullCharge()
Checks whether the 'charge' field is set and is not null
-
isNotNullApp
public boolean isNotNullApp()
Checks whether the 'app' field is set and is not null
-
isNotNullMerchant
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
-
isNotNullAppSubscription
public boolean isNotNullAppSubscription()
Checks whether the 'appSubscription' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullAppInstallTime
public boolean isNotNullAppInstallTime()
Checks whether the 'appInstallTime' field is set and is not null
-
isNotNullAppUninstallTime
public boolean isNotNullAppUninstallTime()
Checks whether the 'appUninstallTime' field is set and is not null
-
isNotNullAppMeteredEvents
public boolean isNotNullAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not null
-
isNotEmptyAppMeteredEvents
public boolean isNotEmptyAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not null and is not empty
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasCharge
public boolean hasCharge()
Checks whether the 'charge' field has been set, however the value could be null
-
hasApp
public boolean hasApp()
Checks whether the 'app' field has been set, however the value could be null
-
hasMerchant
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
-
hasAppSubscription
public boolean hasAppSubscription()
Checks whether the 'appSubscription' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasAppInstallTime
public boolean hasAppInstallTime()
Checks whether the 'appInstallTime' field has been set, however the value could be null
-
hasAppUninstallTime
public boolean hasAppUninstallTime()
Checks whether the 'appUninstallTime' field has been set, however the value could be null
-
hasAppMeteredEvents
public boolean hasAppMeteredEvents()
Checks whether the 'appMeteredEvents' field has been set, however the value could be null
-
setId
public MerchantAppCharge setId(String id)
Sets the field 'id'.
-
setCharge
public MerchantAppCharge setCharge(Charge charge)
Sets the field 'charge'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setApp
public MerchantAppCharge setApp(App app)
Sets the field 'app'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setMerchant
public MerchantAppCharge setMerchant(Reference merchant)
Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setAppSubscription
public MerchantAppCharge setAppSubscription(Reference appSubscription)
Sets the field 'appSubscription'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCreatedTime
public MerchantAppCharge setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public MerchantAppCharge setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setAppInstallTime
public MerchantAppCharge setAppInstallTime(Long appInstallTime)
Sets the field 'appInstallTime'.
-
setAppUninstallTime
public MerchantAppCharge setAppUninstallTime(Long appUninstallTime)
Sets the field 'appUninstallTime'.
-
setAppMeteredEvents
public MerchantAppCharge setAppMeteredEvents(List<AppMeteredEvent> appMeteredEvents)
Sets the field 'appMeteredEvents'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearCharge
public void clearCharge()
Clears the 'charge' field, the 'has' method for this field will now return false
-
clearApp
public void clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
-
clearMerchant
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
-
clearAppSubscription
public void clearAppSubscription()
Clears the 'appSubscription' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearAppInstallTime
public void clearAppInstallTime()
Clears the 'appInstallTime' field, the 'has' method for this field will now return false
-
clearAppUninstallTime
public void clearAppUninstallTime()
Clears the 'appUninstallTime' field, the 'has' method for this field will now return false
-
clearAppMeteredEvents
public void clearAppMeteredEvents()
Clears the 'appMeteredEvents' 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 MerchantAppCharge copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(MerchantAppCharge src)
Copy all the changed fields from the given source to this instance.
-
-