public class MerchantPlan extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantPlan.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantPlan> |
CREATOR |
static JSONifiable.Creator<MerchantPlan> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantPlan()
Constructs a new empty instance.
|
protected |
MerchantPlan(boolean noInit)
Constructs a new empty instance.
|
|
MerchantPlan(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.
|
|
MerchantPlan(MerchantPlan src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantPlan(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearActivationTime()
Clears the 'activationTime' field, the 'has' method for this field will now return false
|
void |
clearAppBundle()
Clears the 'appBundle' field, the 'has' method for this field will now return false
|
void |
clearBillToMid()
Clears the 'billToMid' field, the 'has' method for this field will now return false
|
void |
clearBogo()
Clears the 'bogo' 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 |
clearDeactivationTime()
Clears the 'deactivationTime' field, the 'has' method for this field will now return false
|
void |
clearDefaultPlan()
Clears the 'defaultPlan' field, the 'has' method for this field will now return false
|
void |
clearDescription()
Clears the 'description' field, the 'has' method for this field will now return false
|
void |
clearFeatures()
Clears the 'features' 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 |
clearMerchantPlanGroup()
Clears the 'merchantPlanGroup' 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
|
void |
clearModules()
Clears the 'modules' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearPlanCode()
Clears the 'planCode' field, the 'has' method for this field will now return false
|
void |
clearPrice()
Clears the 'price' field, the 'has' method for this field will now return false
|
void |
clearPricingDescription()
Clears the 'pricingDescription' field, the 'has' method for this field will now return false
|
void |
clearPricingModel()
Clears the 'pricingModel' field, the 'has' method for this field will now return false
|
void |
clearRecommended()
Clears the 'recommended' field, the 'has' method for this field will now return false
|
void |
clearReseller()
Clears the 'reseller' field, the 'has' method for this field will now return false
|
void |
clearTags()
Clears the 'tags' field, the 'has' method for this field will now return false
|
void |
clearTranslatedFeatures()
Clears the 'translatedFeatures' field, the 'has' method for this field will now return false
|
void |
clearTrialDays()
Clears the 'trialDays' field, the 'has' method for this field will now return false
|
void |
clearTrialExpirationTime()
Clears the 'trialExpirationTime' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
void |
clearWeight()
Clears the 'weight' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantPlan |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getActivationTime()
Date/time when this plan becomes active.
|
AppBundle |
getAppBundle() |
Boolean |
getBillToMid()
If true then billing will charge monthly fee regardless of device status or count.
|
Boolean |
getBogo()
If true then plan offers by one device get one free.
|
Long |
getCreatedTime()
Date/time this plan was created.
|
Long |
getDeactivationTime()
Date/time when this plan becomes inactive.
|
Boolean |
getDefaultPlan()
If true and multiple plans of this code then treat as default plan for reseller.
|
String |
getDescription()
Description of the plan
|
List<String> |
getFeatures()
List of feature keys this plans supports.
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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 |
getMerchantPlanGroup()
Plan Group of this Plan as associated with merchant in context
|
Long |
getModifiedTime()
Date/time this plan was last modified.
|
List<Module> |
getModules() |
String |
getName()
The name of the merchant plan
|
String |
getPlanCode()
First data plan code
|
Long |
getPrice() |
String |
getPricingDescription()
Pricing description of plan.
|
MerchantPlanPricingModel |
getPricingModel()
Pricing model for plan.
|
Boolean |
getRecommended()
True if plan metadata indicates this plan should be recommended in OOBE plan selection.
|
Reseller |
getReseller() |
List<String> |
getTags()
Comma separated list of tags.
|
List<String> |
getTranslatedFeatures()
List of translated feature names this plan supports.
|
Long |
getTrialDays()
Transient field, the free trial period, as defined in this plan's group.
|
Long |
getTrialExpirationTime()
Date/time this plan's trial will expire for the merchant with this plan.
|
MerchantPlanType |
getType()
Type of plan
|
Long |
getWeight()
Represents the importance or value the planCode has.
|
boolean |
hasActivationTime()
Checks whether the 'activationTime' field has been set, however the value could be null
|
boolean |
hasAppBundle()
Checks whether the 'appBundle' field has been set, however the value could be null
|
boolean |
hasBillToMid()
Checks whether the 'billToMid' field has been set, however the value could be null
|
boolean |
hasBogo()
Checks whether the 'bogo' 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 |
hasDeactivationTime()
Checks whether the 'deactivationTime' field has been set, however the value could be null
|
boolean |
hasDefaultPlan()
Checks whether the 'defaultPlan' field has been set, however the value could be null
|
boolean |
hasDescription()
Checks whether the 'description' field has been set, however the value could be null
|
boolean |
hasFeatures()
Checks whether the 'features' 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 |
hasMerchantPlanGroup()
Checks whether the 'merchantPlanGroup' 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 |
hasModules()
Checks whether the 'modules' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasPlanCode()
Checks whether the 'planCode' field has been set, however the value could be null
|
boolean |
hasPrice()
Checks whether the 'price' field has been set, however the value could be null
|
boolean |
hasPricingDescription()
Checks whether the 'pricingDescription' field has been set, however the value could be null
|
boolean |
hasPricingModel()
Checks whether the 'pricingModel' field has been set, however the value could be null
|
boolean |
hasRecommended()
Checks whether the 'recommended' field has been set, however the value could be null
|
boolean |
hasReseller()
Checks whether the 'reseller' field has been set, however the value could be null
|
boolean |
hasTags()
Checks whether the 'tags' field has been set, however the value could be null
|
boolean |
hasTranslatedFeatures()
Checks whether the 'translatedFeatures' field has been set, however the value could be null
|
boolean |
hasTrialDays()
Checks whether the 'trialDays' field has been set, however the value could be null
|
boolean |
hasTrialExpirationTime()
Checks whether the 'trialExpirationTime' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
hasWeight()
Checks whether the 'weight' field has been set, however the value could be null
|
boolean |
isNotEmptyFeatures()
Checks whether the 'features' field is set and is not null and is not empty
|
boolean |
isNotEmptyModules()
Checks whether the 'modules' field is set and is not null and is not empty
|
boolean |
isNotEmptyTags()
Checks whether the 'tags' field is set and is not null and is not empty
|
boolean |
isNotEmptyTranslatedFeatures()
Checks whether the 'translatedFeatures' field is set and is not null and is not empty
|
boolean |
isNotNullActivationTime()
Checks whether the 'activationTime' field is set and is not null
|
boolean |
isNotNullAppBundle()
Checks whether the 'appBundle' field is set and is not null
|
boolean |
isNotNullBillToMid()
Checks whether the 'billToMid' field is set and is not null
|
boolean |
isNotNullBogo()
Checks whether the 'bogo' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeactivationTime()
Checks whether the 'deactivationTime' field is set and is not null
|
boolean |
isNotNullDefaultPlan()
Checks whether the 'defaultPlan' field is set and is not null
|
boolean |
isNotNullDescription()
Checks whether the 'description' field is set and is not null
|
boolean |
isNotNullFeatures()
Checks whether the 'features' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMerchantPlanGroup()
Checks whether the 'merchantPlanGroup' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullModules()
Checks whether the 'modules' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullPlanCode()
Checks whether the 'planCode' field is set and is not null
|
boolean |
isNotNullPrice()
Checks whether the 'price' field is set and is not null
|
boolean |
isNotNullPricingDescription()
Checks whether the 'pricingDescription' field is set and is not null
|
boolean |
isNotNullPricingModel()
Checks whether the 'pricingModel' field is set and is not null
|
boolean |
isNotNullRecommended()
Checks whether the 'recommended' field is set and is not null
|
boolean |
isNotNullReseller()
Checks whether the 'reseller' field is set and is not null
|
boolean |
isNotNullTags()
Checks whether the 'tags' field is set and is not null
|
boolean |
isNotNullTranslatedFeatures()
Checks whether the 'translatedFeatures' field is set and is not null
|
boolean |
isNotNullTrialDays()
Checks whether the 'trialDays' field is set and is not null
|
boolean |
isNotNullTrialExpirationTime()
Checks whether the 'trialExpirationTime' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
boolean |
isNotNullWeight()
Checks whether the 'weight' field is set and is not null
|
void |
mergeChanges(MerchantPlan 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.
|
MerchantPlan |
setActivationTime(Long activationTime)
Sets the field 'activationTime'.
|
MerchantPlan |
setAppBundle(AppBundle appBundle)
Sets the field 'appBundle'.
|
MerchantPlan |
setBillToMid(Boolean billToMid)
Sets the field 'billToMid'.
|
MerchantPlan |
setBogo(Boolean bogo)
Sets the field 'bogo'.
|
MerchantPlan |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
MerchantPlan |
setDeactivationTime(Long deactivationTime)
Sets the field 'deactivationTime'.
|
MerchantPlan |
setDefaultPlan(Boolean defaultPlan)
Sets the field 'defaultPlan'.
|
MerchantPlan |
setDescription(String description)
Sets the field 'description'.
|
MerchantPlan |
setFeatures(List<String> features)
Sets the field 'features'.
|
MerchantPlan |
setId(String id)
Sets the field 'id'.
|
MerchantPlan |
setMerchantPlanGroup(Reference merchantPlanGroup)
Sets the field 'merchantPlanGroup'.
|
MerchantPlan |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
MerchantPlan |
setModules(List<Module> modules)
Sets the field 'modules'.
|
MerchantPlan |
setName(String name)
Sets the field 'name'.
|
MerchantPlan |
setPlanCode(String planCode)
Sets the field 'planCode'.
|
MerchantPlan |
setPrice(Long price)
Sets the field 'price'.
|
MerchantPlan |
setPricingDescription(String pricingDescription)
Sets the field 'pricingDescription'.
|
MerchantPlan |
setPricingModel(MerchantPlanPricingModel pricingModel)
Sets the field 'pricingModel'.
|
MerchantPlan |
setRecommended(Boolean recommended)
Sets the field 'recommended'.
|
MerchantPlan |
setReseller(Reseller reseller)
Sets the field 'reseller'.
|
MerchantPlan |
setTags(List<String> tags)
Sets the field 'tags'.
|
MerchantPlan |
setTranslatedFeatures(List<String> translatedFeatures)
Sets the field 'translatedFeatures'.
|
MerchantPlan |
setTrialDays(Long trialDays)
Sets the field 'trialDays'.
|
MerchantPlan |
setTrialExpirationTime(Long trialExpirationTime)
Sets the field 'trialExpirationTime'.
|
MerchantPlan |
setType(MerchantPlanType type)
Sets the field 'type'.
|
MerchantPlan |
setWeight(Long weight)
Sets the field 'weight'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantPlan> CREATOR
public static final JSONifiable.Creator<MerchantPlan> JSON_CREATOR
public MerchantPlan()
protected MerchantPlan(boolean noInit)
public MerchantPlan(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantPlan(JSONObject jsonObject)
public MerchantPlan(MerchantPlan src)
public String getId()
public String getName()
public String getDescription()
public Long getPrice()
public Long getTrialDays()
public Long getTrialExpirationTime()
public AppBundle getAppBundle()
public Boolean getDefaultPlan()
public Boolean getRecommended()
public MerchantPlanPricingModel getPricingModel()
public String getPricingDescription()
public Boolean getBogo()
public Long getWeight()
public List<String> getFeatures()
public List<String> getTranslatedFeatures()
public Boolean getBillToMid()
public MerchantPlanType getType()
public String getPlanCode()
public Long getActivationTime()
public Long getDeactivationTime()
public Reseller getReseller()
public Reference getMerchantPlanGroup()
public Long getCreatedTime()
public Long getModifiedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullDescription()
public boolean isNotNullPrice()
public boolean isNotNullTrialDays()
public boolean isNotNullTrialExpirationTime()
public boolean isNotNullModules()
public boolean isNotEmptyModules()
public boolean isNotNullAppBundle()
public boolean isNotNullDefaultPlan()
public boolean isNotNullRecommended()
public boolean isNotNullPricingModel()
public boolean isNotEmptyTags()
public boolean isNotNullTags()
public boolean isNotNullPricingDescription()
public boolean isNotNullBogo()
public boolean isNotNullWeight()
public boolean isNotNullFeatures()
public boolean isNotEmptyFeatures()
public boolean isNotNullTranslatedFeatures()
public boolean isNotEmptyTranslatedFeatures()
public boolean isNotNullBillToMid()
public boolean isNotNullType()
public boolean isNotNullPlanCode()
public boolean isNotNullActivationTime()
public boolean isNotNullDeactivationTime()
public boolean isNotNullReseller()
public boolean isNotNullMerchantPlanGroup()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean hasId()
public boolean hasName()
public boolean hasDescription()
public boolean hasPrice()
public boolean hasTrialDays()
public boolean hasTrialExpirationTime()
public boolean hasModules()
public boolean hasAppBundle()
public boolean hasDefaultPlan()
public boolean hasRecommended()
public boolean hasPricingModel()
public boolean hasTags()
public boolean hasPricingDescription()
public boolean hasBogo()
public boolean hasWeight()
public boolean hasFeatures()
public boolean hasTranslatedFeatures()
public boolean hasBillToMid()
public boolean hasType()
public boolean hasPlanCode()
public boolean hasActivationTime()
public boolean hasDeactivationTime()
public boolean hasReseller()
public boolean hasMerchantPlanGroup()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public MerchantPlan setId(String id)
public MerchantPlan setName(String name)
public MerchantPlan setDescription(String description)
public MerchantPlan setPrice(Long price)
public MerchantPlan setTrialDays(Long trialDays)
public MerchantPlan setTrialExpirationTime(Long trialExpirationTime)
public MerchantPlan setModules(List<Module> modules)
public MerchantPlan setAppBundle(AppBundle appBundle)
public MerchantPlan setDefaultPlan(Boolean defaultPlan)
public MerchantPlan setRecommended(Boolean recommended)
public MerchantPlan setPricingModel(MerchantPlanPricingModel pricingModel)
public MerchantPlan setTags(List<String> tags)
public MerchantPlan setPricingDescription(String pricingDescription)
public MerchantPlan setBogo(Boolean bogo)
public MerchantPlan setWeight(Long weight)
public MerchantPlan setFeatures(List<String> features)
public MerchantPlan setTranslatedFeatures(List<String> translatedFeatures)
public MerchantPlan setBillToMid(Boolean billToMid)
public MerchantPlan setType(MerchantPlanType type)
public MerchantPlan setPlanCode(String planCode)
public MerchantPlan setActivationTime(Long activationTime)
public MerchantPlan setDeactivationTime(Long deactivationTime)
public MerchantPlan setReseller(Reseller reseller)
public MerchantPlan setMerchantPlanGroup(Reference merchantPlanGroup)
public MerchantPlan setCreatedTime(Long createdTime)
public MerchantPlan setModifiedTime(Long modifiedTime)
public void clearId()
public void clearName()
public void clearDescription()
public void clearPrice()
public void clearTrialDays()
public void clearTrialExpirationTime()
public void clearModules()
public void clearAppBundle()
public void clearDefaultPlan()
public void clearRecommended()
public void clearPricingModel()
public void clearTags()
public void clearPricingDescription()
public void clearBogo()
public void clearWeight()
public void clearFeatures()
public void clearTranslatedFeatures()
public void clearBillToMid()
public void clearType()
public void clearPlanCode()
public void clearActivationTime()
public void clearDeactivationTime()
public void clearReseller()
public void clearMerchantPlanGroup()
public void clearCreatedTime()
public void clearModifiedTime()
public boolean containsChanges()
public void resetChangeLog()
public MerchantPlan copyChanges()
public void mergeChanges(MerchantPlan src)