public class MerchantAppCharge extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantAppCharge.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantAppCharge> |
CREATOR |
static JSONifiable.Creator<MerchantAppCharge> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantAppCharge()
Constructs a new empty instance.
|
protected |
MerchantAppCharge(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
|
void |
clearAppInstallTime()
Clears the 'appInstallTime' field, the 'has' method for this field will now return false
|
void |
clearAppMeteredEvents()
Clears the 'appMeteredEvents' field, the 'has' method for this field will now return false
|
void |
clearAppSubscription()
Clears the 'appSubscription' field, the 'has' method for this field will now return false
|
void |
clearAppUninstallTime()
Clears the 'appUninstallTime' field, the 'has' method for this field will now return false
|
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 |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
boolean |
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 merchant
|
List<AppMeteredEvent> |
getAppMeteredEvents() |
Reference |
getAppSubscription() |
Long |
getAppUninstallTime()
This is only filled in if the install that caused this app line item has been uninstalled
|
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.
|
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 null
|
boolean |
hasAppInstallTime()
Checks whether the 'appInstallTime' field has been set, however the value could be null
|
boolean |
hasAppMeteredEvents()
Checks whether the 'appMeteredEvents' field has been set, however the value could be null
|
boolean |
hasAppSubscription()
Checks whether the 'appSubscription' field has been set, however the value could be null
|
boolean |
hasAppUninstallTime()
Checks whether the 'appUninstallTime' field has been set, however the value could be null
|
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 |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
isNotEmptyAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not null and is not empty
|
boolean |
isNotNullApp()
Checks whether the 'app' field is set and is not null
|
boolean |
isNotNullAppInstallTime()
Checks whether the 'appInstallTime' field is set and is not null
|
boolean |
isNotNullAppMeteredEvents()
Checks whether the 'appMeteredEvents' field is set and is not null
|
boolean |
isNotNullAppSubscription()
Checks whether the 'appSubscription' field is set and is not null
|
boolean |
isNotNullAppUninstallTime()
Checks whether the 'appUninstallTime' field is set and is not 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 |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantAppCharge> CREATOR
public static final JSONifiable.Creator<MerchantAppCharge> JSON_CREATOR
public MerchantAppCharge()
protected MerchantAppCharge(boolean noInit)
public MerchantAppCharge(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantAppCharge(JSONObject jsonObject)
public MerchantAppCharge(MerchantAppCharge src)
public String getId()
public Charge getCharge()
public App getApp()
public Reference getMerchant()
public Reference getAppSubscription()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getAppInstallTime()
public Long getAppUninstallTime()
public List<AppMeteredEvent> getAppMeteredEvents()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCharge()
public boolean isNotNullApp()
public boolean isNotNullMerchant()
public boolean isNotNullAppSubscription()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullAppInstallTime()
public boolean isNotNullAppUninstallTime()
public boolean isNotNullAppMeteredEvents()
public boolean isNotEmptyAppMeteredEvents()
public boolean hasId()
public boolean hasCharge()
public boolean hasApp()
public boolean hasMerchant()
public boolean hasAppSubscription()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasAppInstallTime()
public boolean hasAppUninstallTime()
public boolean hasAppMeteredEvents()
public MerchantAppCharge setId(String id)
public MerchantAppCharge setCharge(Charge charge)
public MerchantAppCharge setApp(App app)
public MerchantAppCharge setMerchant(Reference merchant)
public MerchantAppCharge setAppSubscription(Reference appSubscription)
public MerchantAppCharge setCreatedTime(Long createdTime)
public MerchantAppCharge setModifiedTime(Long modifiedTime)
public MerchantAppCharge setAppInstallTime(Long appInstallTime)
public MerchantAppCharge setAppUninstallTime(Long appUninstallTime)
public MerchantAppCharge setAppMeteredEvents(List<AppMeteredEvent> appMeteredEvents)
public void clearId()
public void clearCharge()
public void clearApp()
public void clearMerchant()
public void clearAppSubscription()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearAppInstallTime()
public void clearAppUninstallTime()
public void clearAppMeteredEvents()
public boolean containsChanges()
public void resetChangeLog()
public MerchantAppCharge copyChanges()
public void mergeChanges(MerchantAppCharge src)