Class MerchantAppCharge

    • Constructor Detail

      • MerchantAppCharge

        public MerchantAppCharge()
        Constructs a new empty instance.
      • MerchantAppCharge

        protected MerchantAppCharge​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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
      • 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.