Class MerchantBillingInfo

    • Constructor Detail

      • MerchantBillingInfo

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

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