public class MerchantPlanRules extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantPlanRules.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantPlanRules> |
CREATOR |
static JSONifiable.Creator<MerchantPlanRules> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantPlanRules()
Constructs a new empty instance.
|
protected |
MerchantPlanRules(boolean noInit)
Constructs a new empty instance.
|
|
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(MerchantPlanRules src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantPlanRules(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDisplayDetailedPlanSelectionDescription()
Clears the 'displayDetailedPlanSelectionDescription' field, the 'has' method for this field will now return false
|
void |
clearDisplayPlanRestrictionAlert()
Clears the 'displayPlanRestrictionAlert' field, the 'has' method for this field will now return false
|
void |
clearDisplayRecommendedPlanOnServicePlansPage()
Clears the 'displayRecommendedPlanOnServicePlansPage' field, the 'has' method for this field will now return false
|
void |
clearEnforceAdditionalAppsAuthorization()
Clears the 'enforceAdditionalAppsAuthorization' field, the 'has' method for this field will now return false
|
void |
clearEnforceChoosePlan()
Clears the 'enforceChoosePlan' field, the 'has' method for this field will now return false
|
void |
clearEnforcePlanAuthorization()
Clears the 'enforcePlanAuthorization' field, the 'has' method for this field will now return false
|
void |
clearHighlightModel()
Clears the 'highlightModel' field, the 'has' method for this field will now return false
|
void |
clearNotifyPlanRestrictionAlert()
Clears the 'notifyPlanRestrictionAlert' field, the 'has' method for this field will now return false
|
void |
clearTosBillingModel()
Clears the 'tosBillingModel' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantPlanRules |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getDisplayDetailedPlanSelectionDescription()
Flag for OOBE and Service Plans page whether or not to show detailed plan pricing information for the plan selection screen
|
Boolean |
getDisplayPlanRestrictionAlert()
Flag for OOBE whether or not to show special language about a force plan change based on device restrictions.
|
Boolean |
getDisplayRecommendedPlanOnServicePlansPage()
Deprecated.
|
EnforceAdditionalAppsAuthorization |
getEnforceAdditionalAppsAuthorization()
Flag for OOBE whether or not to show apps authorization.
|
Boolean |
getEnforceChoosePlan()
Deprecated.
|
EnforcePlanAuthorization |
getEnforcePlanAuthorization()
Flag for OOBE whether or not to enforce plan authorization and how often.
|
protected GenericClient |
getGenericClient() |
Map<String,String> |
getHighlightModel()
keys/values specific to this endpoint/type
|
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.
|
Boolean |
getNotifyPlanRestrictionAlert()
Flag to control if notifications (like emails) are sent when a force plan change happens based on device restrictions.
|
String |
getTosBillingModel() |
boolean |
hasDisplayDetailedPlanSelectionDescription()
Checks whether the 'displayDetailedPlanSelectionDescription' field has been set, however the value could be null
|
boolean |
hasDisplayPlanRestrictionAlert()
Checks whether the 'displayPlanRestrictionAlert' field has been set, however the value could be null
|
boolean |
hasDisplayRecommendedPlanOnServicePlansPage()
Checks whether the 'displayRecommendedPlanOnServicePlansPage' field has been set, however the value could be null
|
boolean |
hasEnforceAdditionalAppsAuthorization()
Checks whether the 'enforceAdditionalAppsAuthorization' field has been set, however the value could be null
|
boolean |
hasEnforceChoosePlan()
Checks whether the 'enforceChoosePlan' field has been set, however the value could be null
|
boolean |
hasEnforcePlanAuthorization()
Checks whether the 'enforcePlanAuthorization' field has been set, however the value could be null
|
boolean |
hasHighlightModel()
Checks whether the 'highlightModel' field has been set, however the value could be null
|
boolean |
hasNotifyPlanRestrictionAlert()
Checks whether the 'notifyPlanRestrictionAlert' field has been set, however the value could be null
|
boolean |
hasTosBillingModel()
Checks whether the 'tosBillingModel' field has been set, however the value could be null
|
boolean |
isNotEmptyHighlightModel()
Checks whether the 'highlightModel' field is set and is not null and is not empty
|
boolean |
isNotNullDisplayDetailedPlanSelectionDescription()
Checks whether the 'displayDetailedPlanSelectionDescription' field is set and is not null
|
boolean |
isNotNullDisplayPlanRestrictionAlert()
Checks whether the 'displayPlanRestrictionAlert' field is set and is not null
|
boolean |
isNotNullDisplayRecommendedPlanOnServicePlansPage()
Checks whether the 'displayRecommendedPlanOnServicePlansPage' field is set and is not null
|
boolean |
isNotNullEnforceAdditionalAppsAuthorization()
Checks whether the 'enforceAdditionalAppsAuthorization' field is set and is not null
|
boolean |
isNotNullEnforceChoosePlan()
Checks whether the 'enforceChoosePlan' field is set and is not null
|
boolean |
isNotNullEnforcePlanAuthorization()
Checks whether the 'enforcePlanAuthorization' field is set and is not null
|
boolean |
isNotNullHighlightModel()
Checks whether the 'highlightModel' field is set and is not null
|
boolean |
isNotNullNotifyPlanRestrictionAlert()
Checks whether the 'notifyPlanRestrictionAlert' field is set and is not null
|
boolean |
isNotNullTosBillingModel()
Checks whether the 'tosBillingModel' field is set and is not null
|
void |
mergeChanges(MerchantPlanRules 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.
|
MerchantPlanRules |
setDisplayDetailedPlanSelectionDescription(Boolean displayDetailedPlanSelectionDescription)
Sets the field 'displayDetailedPlanSelectionDescription'.
|
MerchantPlanRules |
setDisplayPlanRestrictionAlert(Boolean displayPlanRestrictionAlert)
Sets the field 'displayPlanRestrictionAlert'.
|
MerchantPlanRules |
setDisplayRecommendedPlanOnServicePlansPage(Boolean displayRecommendedPlanOnServicePlansPage)
Sets the field 'displayRecommendedPlanOnServicePlansPage'.
|
MerchantPlanRules |
setEnforceAdditionalAppsAuthorization(EnforceAdditionalAppsAuthorization enforceAdditionalAppsAuthorization)
Sets the field 'enforceAdditionalAppsAuthorization'.
|
MerchantPlanRules |
setEnforceChoosePlan(Boolean enforceChoosePlan)
Sets the field 'enforceChoosePlan'.
|
MerchantPlanRules |
setEnforcePlanAuthorization(EnforcePlanAuthorization enforcePlanAuthorization)
Sets the field 'enforcePlanAuthorization'.
|
MerchantPlanRules |
setHighlightModel(Map<String,String> highlightModel)
Sets the field 'highlightModel'.
|
MerchantPlanRules |
setNotifyPlanRestrictionAlert(Boolean notifyPlanRestrictionAlert)
Sets the field 'notifyPlanRestrictionAlert'.
|
MerchantPlanRules |
setTosBillingModel(String tosBillingModel)
Sets the field 'tosBillingModel'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantPlanRules> CREATOR
public static final JSONifiable.Creator<MerchantPlanRules> JSON_CREATOR
public MerchantPlanRules()
protected MerchantPlanRules(boolean noInit)
public MerchantPlanRules(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantPlanRules(JSONObject jsonObject)
public MerchantPlanRules(MerchantPlanRules src)
public EnforcePlanAuthorization getEnforcePlanAuthorization()
public EnforceAdditionalAppsAuthorization getEnforceAdditionalAppsAuthorization()
public Boolean getDisplayPlanRestrictionAlert()
public Boolean getNotifyPlanRestrictionAlert()
public Boolean getDisplayDetailedPlanSelectionDescription()
public Map<String,String> getHighlightModel()
public String getTosBillingModel()
@Deprecated public Boolean getDisplayRecommendedPlanOnServicePlansPage()
@Deprecated public Boolean getEnforceChoosePlan()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullEnforcePlanAuthorization()
public boolean isNotNullEnforceAdditionalAppsAuthorization()
public boolean isNotNullDisplayPlanRestrictionAlert()
public boolean isNotNullNotifyPlanRestrictionAlert()
public boolean isNotNullDisplayDetailedPlanSelectionDescription()
public boolean isNotNullHighlightModel()
public boolean isNotEmptyHighlightModel()
public boolean isNotNullTosBillingModel()
public boolean isNotNullDisplayRecommendedPlanOnServicePlansPage()
public boolean isNotNullEnforceChoosePlan()
public boolean hasEnforcePlanAuthorization()
public boolean hasEnforceAdditionalAppsAuthorization()
public boolean hasDisplayPlanRestrictionAlert()
public boolean hasNotifyPlanRestrictionAlert()
public boolean hasDisplayDetailedPlanSelectionDescription()
public boolean hasHighlightModel()
public boolean hasTosBillingModel()
public boolean hasDisplayRecommendedPlanOnServicePlansPage()
public boolean hasEnforceChoosePlan()
public MerchantPlanRules setEnforcePlanAuthorization(EnforcePlanAuthorization enforcePlanAuthorization)
public MerchantPlanRules setEnforceAdditionalAppsAuthorization(EnforceAdditionalAppsAuthorization enforceAdditionalAppsAuthorization)
public MerchantPlanRules setDisplayPlanRestrictionAlert(Boolean displayPlanRestrictionAlert)
public MerchantPlanRules setNotifyPlanRestrictionAlert(Boolean notifyPlanRestrictionAlert)
public MerchantPlanRules setDisplayDetailedPlanSelectionDescription(Boolean displayDetailedPlanSelectionDescription)
public MerchantPlanRules setHighlightModel(Map<String,String> highlightModel)
public MerchantPlanRules setTosBillingModel(String tosBillingModel)
public MerchantPlanRules setDisplayRecommendedPlanOnServicePlansPage(Boolean displayRecommendedPlanOnServicePlansPage)
public MerchantPlanRules setEnforceChoosePlan(Boolean enforceChoosePlan)
public void clearEnforcePlanAuthorization()
public void clearEnforceAdditionalAppsAuthorization()
public void clearDisplayPlanRestrictionAlert()
public void clearNotifyPlanRestrictionAlert()
public void clearDisplayDetailedPlanSelectionDescription()
public void clearHighlightModel()
public void clearTosBillingModel()
public void clearDisplayRecommendedPlanOnServicePlansPage()
public void clearEnforceChoosePlan()
public boolean containsChanges()
public void resetChangeLog()
public MerchantPlanRules copyChanges()
public void mergeChanges(MerchantPlanRules src)