public class EntitlementPlanCode extends GenericParcelable implements Validator, JSONifiable
Plan code that will be associated with a particular entitlement.
Modifier and Type | Class and Description |
---|---|
static interface |
EntitlementPlanCode.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<EntitlementPlanCode> |
CREATOR |
static JSONifiable.Creator<EntitlementPlanCode> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
EntitlementPlanCode()
Constructs a new empty instance.
|
protected |
EntitlementPlanCode(boolean noInit)
Constructs a new empty instance.
|
|
EntitlementPlanCode(EntitlementPlanCode src)
Constructs a new instance that is a deep copy of the source instance.
|
|
EntitlementPlanCode(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.
|
|
EntitlementPlanCode(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAlphaId()
Clears the 'alphaId' field, the 'has' method for this field will now return false
|
void |
clearCode()
Clears the 'code' 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 |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearMccCode()
Clears the 'mccCode' field, the 'has' method for this field will now return false
|
void |
clearServiceEntitlementNumber()
Clears the 'serviceEntitlementNumber' field, the 'has' method for this field will now return false
|
void |
clearVerificationValue()
Clears the 'verificationValue' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
EntitlementPlanCode |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAlphaId()
Alpha ID for entitlements.
|
String |
getCode() |
String |
getDescription()
Plan code description
|
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.
|
Integer |
getMccCode()
MCC Code
|
String |
getServiceEntitlementNumber() |
String |
getVerificationValue()
Verification value
|
boolean |
hasAlphaId()
Checks whether the 'alphaId' field has been set, however the value could be null
|
boolean |
hasCode()
Checks whether the 'code' 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 |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasMccCode()
Checks whether the 'mccCode' field has been set, however the value could be null
|
boolean |
hasServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field has been set, however the value could be null
|
boolean |
hasVerificationValue()
Checks whether the 'verificationValue' field has been set, however the value could be null
|
boolean |
isNotNullAlphaId()
Checks whether the 'alphaId' field is set and is not null
|
boolean |
isNotNullCode()
Checks whether the 'code' field is set and is not null
|
boolean |
isNotNullDescription()
Checks whether the 'description' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMccCode()
Checks whether the 'mccCode' field is set and is not null
|
boolean |
isNotNullServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field is set and is not null
|
boolean |
isNotNullVerificationValue()
Checks whether the 'verificationValue' field is set and is not null
|
void |
mergeChanges(EntitlementPlanCode 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.
|
EntitlementPlanCode |
setAlphaId(String alphaId)
Sets the field 'alphaId'.
|
EntitlementPlanCode |
setCode(String code)
Sets the field 'code'.
|
EntitlementPlanCode |
setDescription(String description)
Sets the field 'description'.
|
EntitlementPlanCode |
setId(String id)
Sets the field 'id'.
|
EntitlementPlanCode |
setMccCode(Integer mccCode)
Sets the field 'mccCode'.
|
EntitlementPlanCode |
setServiceEntitlementNumber(String serviceEntitlementNumber)
Sets the field 'serviceEntitlementNumber'.
|
EntitlementPlanCode |
setVerificationValue(String verificationValue)
Sets the field 'verificationValue'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<EntitlementPlanCode> CREATOR
public static final JSONifiable.Creator<EntitlementPlanCode> JSON_CREATOR
public EntitlementPlanCode()
protected EntitlementPlanCode(boolean noInit)
public EntitlementPlanCode(String json) throws IllegalArgumentException
IllegalArgumentException
public EntitlementPlanCode(JSONObject jsonObject)
public EntitlementPlanCode(EntitlementPlanCode src)
public String getId()
public String getCode()
public String getDescription()
public String getServiceEntitlementNumber()
public String getAlphaId()
public String getVerificationValue()
public Integer getMccCode()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCode()
public boolean isNotNullDescription()
public boolean isNotNullServiceEntitlementNumber()
public boolean isNotNullAlphaId()
public boolean isNotNullVerificationValue()
public boolean isNotNullMccCode()
public boolean hasId()
public boolean hasCode()
public boolean hasDescription()
public boolean hasServiceEntitlementNumber()
public boolean hasAlphaId()
public boolean hasVerificationValue()
public boolean hasMccCode()
public EntitlementPlanCode setId(String id)
public EntitlementPlanCode setCode(String code)
public EntitlementPlanCode setDescription(String description)
public EntitlementPlanCode setServiceEntitlementNumber(String serviceEntitlementNumber)
public EntitlementPlanCode setAlphaId(String alphaId)
public EntitlementPlanCode setVerificationValue(String verificationValue)
public EntitlementPlanCode setMccCode(Integer mccCode)
public void clearId()
public void clearCode()
public void clearDescription()
public void clearServiceEntitlementNumber()
public void clearAlphaId()
public void clearVerificationValue()
public void clearMccCode()
public boolean containsChanges()
public void resetChangeLog()
public EntitlementPlanCode copyChanges()
public void mergeChanges(EntitlementPlanCode src)