Package com.clover.sdk.v3.entitlements
Class MerchantGatewayEntitlement
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.entitlements.MerchantGatewayEntitlement
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class MerchantGatewayEntitlement extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MerchantGatewayEntitlement.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<MerchantGatewayEntitlement>
CREATOR
static JSONifiable.Creator<MerchantGatewayEntitlement>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description MerchantGatewayEntitlement()
Constructs a new empty instance.protected
MerchantGatewayEntitlement(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAlphaId()
Clears the 'alphaId' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearEntitlementConfigurations()
Clears the 'entitlementConfigurations' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearPlanCodes()
Clears the 'planCodes' field, the 'has' method for this field will now return falsevoid
clearServiceEntitlementNumber()
Clears the 'serviceEntitlementNumber' field, the 'has' method for this field will now return falsevoid
clearServiceType()
Clears the 'serviceType' field, the 'has' method for this field will now return falseboolean
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 identifierJSONObject
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 nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasPlanCodes()
Checks whether the 'planCodes' field has been set, however the value could be nullboolean
hasServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field has been set, however the value could be nullboolean
hasServiceType()
Checks whether the 'serviceType' field has been set, however the value could be nullboolean
isNotEmptyEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not null and is not emptyboolean
isNotEmptyPlanCodes()
Checks whether the 'planCodes' field is set and is not null and is not emptyboolean
isNotNullAlphaId()
Checks whether the 'alphaId' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullPlanCodes()
Checks whether the 'planCodes' field is set and is not nullboolean
isNotNullServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field is set and is not nullboolean
isNotNullServiceType()
Checks whether the 'serviceType' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<MerchantGatewayEntitlement> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<MerchantGatewayEntitlement> JSON_CREATOR
-
-
Constructor Detail
-
MerchantGatewayEntitlement
public MerchantGatewayEntitlement()
Constructs a new empty instance.
-
MerchantGatewayEntitlement
protected MerchantGatewayEntitlement(boolean noInit)
Constructs a new empty instance.
-
MerchantGatewayEntitlement
public MerchantGatewayEntitlement(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
MerchantGatewayEntitlement
public 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
public MerchantGatewayEntitlement(MerchantGatewayEntitlement src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getName
public String getName()
Entitlement name (e.g. MASTERCARD, VISA, etc.)
-
getServiceEntitlementNumber
public String getServiceEntitlementNumber()
-
getServiceType
public String getServiceType()
-
getAlphaId
public String getAlphaId()
AlphaID for entitlements. Supplied by First Data.
-
getModifiedTime
public Long getModifiedTime()
Updated timestamp.
-
getDeletedTime
public Long getDeletedTime()
Deleted timestamp.
-
getPlanCodes
public List<EntitlementPlanCode> getPlanCodes()
-
getEntitlementConfigurations
public List<MerchantGatewayEntitlementConfiguration> getEntitlementConfigurations()
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
isNotNullServiceEntitlementNumber
public boolean isNotNullServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field is set and is not null
-
isNotNullServiceType
public boolean isNotNullServiceType()
Checks whether the 'serviceType' field is set and is not null
-
isNotNullAlphaId
public boolean isNotNullAlphaId()
Checks whether the 'alphaId' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
isNotNullPlanCodes
public boolean isNotNullPlanCodes()
Checks whether the 'planCodes' field is set and is not null
-
isNotEmptyPlanCodes
public boolean isNotEmptyPlanCodes()
Checks whether the 'planCodes' field is set and is not null and is not empty
-
isNotNullEntitlementConfigurations
public boolean isNotNullEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not null
-
isNotEmptyEntitlementConfigurations
public boolean isNotEmptyEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field is set and is not null and is not empty
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
-
hasServiceEntitlementNumber
public boolean hasServiceEntitlementNumber()
Checks whether the 'serviceEntitlementNumber' field has been set, however the value could be null
-
hasServiceType
public boolean hasServiceType()
Checks whether the 'serviceType' field has been set, however the value could be null
-
hasAlphaId
public boolean hasAlphaId()
Checks whether the 'alphaId' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
hasPlanCodes
public boolean hasPlanCodes()
Checks whether the 'planCodes' field has been set, however the value could be null
-
hasEntitlementConfigurations
public boolean hasEntitlementConfigurations()
Checks whether the 'entitlementConfigurations' field has been set, however the value could be null
-
setId
public MerchantGatewayEntitlement setId(String id)
Sets the field 'id'.
-
setName
public MerchantGatewayEntitlement setName(String name)
Sets the field 'name'.
-
setServiceEntitlementNumber
public MerchantGatewayEntitlement setServiceEntitlementNumber(String serviceEntitlementNumber)
Sets the field 'serviceEntitlementNumber'.
-
setServiceType
public MerchantGatewayEntitlement setServiceType(String serviceType)
Sets the field 'serviceType'.
-
setAlphaId
public MerchantGatewayEntitlement setAlphaId(String alphaId)
Sets the field 'alphaId'.
-
setModifiedTime
public MerchantGatewayEntitlement setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setDeletedTime
public MerchantGatewayEntitlement setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
-
setPlanCodes
public MerchantGatewayEntitlement setPlanCodes(List<EntitlementPlanCode> planCodes)
Sets the field 'planCodes'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setEntitlementConfigurations
public MerchantGatewayEntitlement setEntitlementConfigurations(List<MerchantGatewayEntitlementConfiguration> entitlementConfigurations)
Sets the field 'entitlementConfigurations'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearName
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
-
clearServiceEntitlementNumber
public void clearServiceEntitlementNumber()
Clears the 'serviceEntitlementNumber' field, the 'has' method for this field will now return false
-
clearServiceType
public void clearServiceType()
Clears the 'serviceType' field, the 'has' method for this field will now return false
-
clearAlphaId
public void clearAlphaId()
Clears the 'alphaId' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
clearPlanCodes
public void clearPlanCodes()
Clears the 'planCodes' field, the 'has' method for this field will now return false
-
clearEntitlementConfigurations
public void clearEntitlementConfigurations()
Clears the 'entitlementConfigurations' 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 MerchantGatewayEntitlement copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(MerchantGatewayEntitlement src)
Copy all the changed fields from the given source to this instance.
-
-