public class MerchantGatewayEntitlement extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantGatewayEntitlement.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantGatewayEntitlement> |
CREATOR |
static JSONifiable.Creator<MerchantGatewayEntitlement> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantGatewayEntitlement()
Constructs a new empty instance.
|
protected |
MerchantGatewayEntitlement(boolean noInit)
Constructs a new empty instance.
|
|
MerchantGatewayEntitlement(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.
|
|
MerchantGatewayEntitlement(MerchantGatewayEntitlement src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantGatewayEntitlement(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 |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearEntitlementConfigurations()
Clears the 'entitlementConfigurations' 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 |
clearModifiedTime()
Clears the 'modifiedTime' 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 |
clearPlanCodes()
Clears the 'planCodes' 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 |
clearServiceType()
Clears the 'serviceType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantGatewayEntitlement |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAlphaId()
AlphaID for entitlements.
|
Long |
getDeletedTime()
Deleted timestamp.
|
List<MerchantGatewayEntitlementConfiguration> |
getEntitlementConfigurations() |
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.
|
Long |
getModifiedTime()
Updated timestamp.
|
String |
getName()
Entitlement name (e.g.
|
List<EntitlementPlanCode> |
getPlanCodes() |
String |
getServiceEntitlementNumber() |
String |
getServiceType() |
boolean |
hasAlphaId()
Checks whether the 'alphaId' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' 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 |
hasModifiedTime()
Checks whether the 'modifiedTime' 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 |
hasPlanCodes()
Checks whether the 'planCodes' 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 |
hasServiceType()
Checks whether the 'serviceType' field has been set, however the value could be null
|
boolean |
isNotEmptyEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not null and is not empty
|
boolean |
isNotEmptyPlanCodes()
Checks whether the 'planCodes' field is set and is not null and is not empty
|
boolean |
isNotNullAlphaId()
Checks whether the 'alphaId' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullPlanCodes()
Checks whether the 'planCodes' field is set and is not null
|
boolean |
isNotNullServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field is set and is not null
|
boolean |
isNotNullServiceType()
Checks whether the 'serviceType' field is set and is not null
|
void |
mergeChanges(MerchantGatewayEntitlement 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.
|
MerchantGatewayEntitlement |
setAlphaId(String alphaId)
Sets the field 'alphaId'.
|
MerchantGatewayEntitlement |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
MerchantGatewayEntitlement |
setEntitlementConfigurations(List<MerchantGatewayEntitlementConfiguration> entitlementConfigurations)
Sets the field 'entitlementConfigurations'.
|
MerchantGatewayEntitlement |
setId(String id)
Sets the field 'id'.
|
MerchantGatewayEntitlement |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
MerchantGatewayEntitlement |
setName(String name)
Sets the field 'name'.
|
MerchantGatewayEntitlement |
setPlanCodes(List<EntitlementPlanCode> planCodes)
Sets the field 'planCodes'.
|
MerchantGatewayEntitlement |
setServiceEntitlementNumber(String serviceEntitlementNumber)
Sets the field 'serviceEntitlementNumber'.
|
MerchantGatewayEntitlement |
setServiceType(String serviceType)
Sets the field 'serviceType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantGatewayEntitlement> CREATOR
public static final JSONifiable.Creator<MerchantGatewayEntitlement> JSON_CREATOR
public MerchantGatewayEntitlement()
protected MerchantGatewayEntitlement(boolean noInit)
public MerchantGatewayEntitlement(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantGatewayEntitlement(JSONObject jsonObject)
public MerchantGatewayEntitlement(MerchantGatewayEntitlement src)
public String getId()
public String getName()
public String getServiceEntitlementNumber()
public String getServiceType()
public String getAlphaId()
public Long getModifiedTime()
public Long getDeletedTime()
public List<EntitlementPlanCode> getPlanCodes()
public List<MerchantGatewayEntitlementConfiguration> getEntitlementConfigurations()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullServiceEntitlementNumber()
public boolean isNotNullServiceType()
public boolean isNotNullAlphaId()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean isNotNullPlanCodes()
public boolean isNotEmptyPlanCodes()
public boolean isNotNullEntitlementConfigurations()
public boolean isNotEmptyEntitlementConfigurations()
public boolean hasId()
public boolean hasName()
public boolean hasServiceEntitlementNumber()
public boolean hasServiceType()
public boolean hasAlphaId()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public boolean hasPlanCodes()
public boolean hasEntitlementConfigurations()
public MerchantGatewayEntitlement setId(String id)
public MerchantGatewayEntitlement setName(String name)
public MerchantGatewayEntitlement setServiceEntitlementNumber(String serviceEntitlementNumber)
public MerchantGatewayEntitlement setServiceType(String serviceType)
public MerchantGatewayEntitlement setAlphaId(String alphaId)
public MerchantGatewayEntitlement setModifiedTime(Long modifiedTime)
public MerchantGatewayEntitlement setDeletedTime(Long deletedTime)
public MerchantGatewayEntitlement setPlanCodes(List<EntitlementPlanCode> planCodes)
public MerchantGatewayEntitlement setEntitlementConfigurations(List<MerchantGatewayEntitlementConfiguration> entitlementConfigurations)
public void clearId()
public void clearName()
public void clearServiceEntitlementNumber()
public void clearServiceType()
public void clearAlphaId()
public void clearModifiedTime()
public void clearDeletedTime()
public void clearPlanCodes()
public void clearEntitlementConfigurations()
public boolean containsChanges()
public void resetChangeLog()
public MerchantGatewayEntitlement copyChanges()
public void mergeChanges(MerchantGatewayEntitlement src)