Class MerchantPlanRules

    • Constructor Detail

      • MerchantPlanRules

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

        protected MerchantPlanRules​(boolean noInit)
        Constructs a new empty instance.
      • MerchantPlanRules

        public MerchantPlanRules​(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.
      • MerchantPlanRules

        public MerchantPlanRules​(MerchantPlanRules src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getEnforcePlanAuthorization

        public EnforcePlanAuthorization getEnforcePlanAuthorization()
        Flag for OOBE whether or not to enforce plan authorization and how often.
      • getEnforceAdditionalAppsAuthorization

        public EnforceAdditionalAppsAuthorization getEnforceAdditionalAppsAuthorization()
        Flag for OOBE whether or not to show apps authorization.
      • getDisplayPlanRestrictionAlert

        public Boolean getDisplayPlanRestrictionAlert()
        Flag for OOBE whether or not to show special language about a force plan change based on device restrictions.
      • getNotifyPlanRestrictionAlert

        public Boolean getNotifyPlanRestrictionAlert()
        Flag to control if notifications (like emails) are sent when a force plan change happens based on device restrictions.
      • getDisplayDetailedPlanSelectionDescription

        public Boolean getDisplayDetailedPlanSelectionDescription()
        Flag for OOBE and Service Plans page whether or not to show detailed plan pricing information for the plan selection screen
      • getHighlightModel

        public Map<String,​String> getHighlightModel()
        keys/values specific to this endpoint/type
      • getTosBillingModel

        public String getTosBillingModel()
      • getDisplayRecommendedPlanOnServicePlansPage

        @Deprecated
        public Boolean getDisplayRecommendedPlanOnServicePlansPage()
        Deprecated.
        Deprecated but must keep for few app OOBE cycles.
      • getEnforceChoosePlan

        @Deprecated
        public Boolean getEnforceChoosePlan()
        Deprecated.
        Deprecated but must keep for few app OOBE cycles.
      • 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
      • isNotNullEnforcePlanAuthorization

        public boolean isNotNullEnforcePlanAuthorization()
        Checks whether the 'enforcePlanAuthorization' field is set and is not null
      • isNotNullEnforceAdditionalAppsAuthorization

        public boolean isNotNullEnforceAdditionalAppsAuthorization()
        Checks whether the 'enforceAdditionalAppsAuthorization' field is set and is not null
      • isNotNullDisplayPlanRestrictionAlert

        public boolean isNotNullDisplayPlanRestrictionAlert()
        Checks whether the 'displayPlanRestrictionAlert' field is set and is not null
      • isNotNullNotifyPlanRestrictionAlert

        public boolean isNotNullNotifyPlanRestrictionAlert()
        Checks whether the 'notifyPlanRestrictionAlert' field is set and is not null
      • isNotNullDisplayDetailedPlanSelectionDescription

        public boolean isNotNullDisplayDetailedPlanSelectionDescription()
        Checks whether the 'displayDetailedPlanSelectionDescription' field is set and is not null
      • isNotNullHighlightModel

        public boolean isNotNullHighlightModel()
        Checks whether the 'highlightModel' field is set and is not null
      • isNotEmptyHighlightModel

        public boolean isNotEmptyHighlightModel()
        Checks whether the 'highlightModel' field is set and is not null and is not empty
      • isNotNullTosBillingModel

        public boolean isNotNullTosBillingModel()
        Checks whether the 'tosBillingModel' field is set and is not null
      • isNotNullDisplayRecommendedPlanOnServicePlansPage

        public boolean isNotNullDisplayRecommendedPlanOnServicePlansPage()
        Checks whether the 'displayRecommendedPlanOnServicePlansPage' field is set and is not null
      • isNotNullEnforceChoosePlan

        public boolean isNotNullEnforceChoosePlan()
        Checks whether the 'enforceChoosePlan' field is set and is not null
      • hasEnforcePlanAuthorization

        public boolean hasEnforcePlanAuthorization()
        Checks whether the 'enforcePlanAuthorization' field has been set, however the value could be null
      • hasEnforceAdditionalAppsAuthorization

        public boolean hasEnforceAdditionalAppsAuthorization()
        Checks whether the 'enforceAdditionalAppsAuthorization' field has been set, however the value could be null
      • hasDisplayPlanRestrictionAlert

        public boolean hasDisplayPlanRestrictionAlert()
        Checks whether the 'displayPlanRestrictionAlert' field has been set, however the value could be null
      • hasNotifyPlanRestrictionAlert

        public boolean hasNotifyPlanRestrictionAlert()
        Checks whether the 'notifyPlanRestrictionAlert' field has been set, however the value could be null
      • hasDisplayDetailedPlanSelectionDescription

        public boolean hasDisplayDetailedPlanSelectionDescription()
        Checks whether the 'displayDetailedPlanSelectionDescription' field has been set, however the value could be null
      • hasHighlightModel

        public boolean hasHighlightModel()
        Checks whether the 'highlightModel' field has been set, however the value could be null
      • hasTosBillingModel

        public boolean hasTosBillingModel()
        Checks whether the 'tosBillingModel' field has been set, however the value could be null
      • hasDisplayRecommendedPlanOnServicePlansPage

        public boolean hasDisplayRecommendedPlanOnServicePlansPage()
        Checks whether the 'displayRecommendedPlanOnServicePlansPage' field has been set, however the value could be null
      • hasEnforceChoosePlan

        public boolean hasEnforceChoosePlan()
        Checks whether the 'enforceChoosePlan' field has been set, however the value could be null
      • setDisplayPlanRestrictionAlert

        public MerchantPlanRules setDisplayPlanRestrictionAlert​(Boolean displayPlanRestrictionAlert)
        Sets the field 'displayPlanRestrictionAlert'.
      • setNotifyPlanRestrictionAlert

        public MerchantPlanRules setNotifyPlanRestrictionAlert​(Boolean notifyPlanRestrictionAlert)
        Sets the field 'notifyPlanRestrictionAlert'.
      • setDisplayDetailedPlanSelectionDescription

        public MerchantPlanRules setDisplayDetailedPlanSelectionDescription​(Boolean displayDetailedPlanSelectionDescription)
        Sets the field 'displayDetailedPlanSelectionDescription'.
      • setTosBillingModel

        public MerchantPlanRules setTosBillingModel​(String tosBillingModel)
        Sets the field 'tosBillingModel'.
      • setDisplayRecommendedPlanOnServicePlansPage

        public MerchantPlanRules setDisplayRecommendedPlanOnServicePlansPage​(Boolean displayRecommendedPlanOnServicePlansPage)
        Sets the field 'displayRecommendedPlanOnServicePlansPage'.
      • setEnforceChoosePlan

        public MerchantPlanRules setEnforceChoosePlan​(Boolean enforceChoosePlan)
        Sets the field 'enforceChoosePlan'.
      • clearEnforcePlanAuthorization

        public void clearEnforcePlanAuthorization()
        Clears the 'enforcePlanAuthorization' field, the 'has' method for this field will now return false
      • clearEnforceAdditionalAppsAuthorization

        public void clearEnforceAdditionalAppsAuthorization()
        Clears the 'enforceAdditionalAppsAuthorization' field, the 'has' method for this field will now return false
      • clearDisplayPlanRestrictionAlert

        public void clearDisplayPlanRestrictionAlert()
        Clears the 'displayPlanRestrictionAlert' field, the 'has' method for this field will now return false
      • clearNotifyPlanRestrictionAlert

        public void clearNotifyPlanRestrictionAlert()
        Clears the 'notifyPlanRestrictionAlert' field, the 'has' method for this field will now return false
      • clearDisplayDetailedPlanSelectionDescription

        public void clearDisplayDetailedPlanSelectionDescription()
        Clears the 'displayDetailedPlanSelectionDescription' field, the 'has' method for this field will now return false
      • clearHighlightModel

        public void clearHighlightModel()
        Clears the 'highlightModel' field, the 'has' method for this field will now return false
      • clearTosBillingModel

        public void clearTosBillingModel()
        Clears the 'tosBillingModel' field, the 'has' method for this field will now return false
      • clearDisplayRecommendedPlanOnServicePlansPage

        public void clearDisplayRecommendedPlanOnServicePlansPage()
        Clears the 'displayRecommendedPlanOnServicePlansPage' field, the 'has' method for this field will now return false
      • clearEnforceChoosePlan

        public void clearEnforceChoosePlan()
        Clears the 'enforceChoosePlan' 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 MerchantPlanRules copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(MerchantPlanRules src)
        Copy all the changed fields from the given source to this instance.