Class MerchantGatewayEntitlement

    • Constructor Detail

      • MerchantGatewayEntitlement

        public MerchantGatewayEntitlement()
        Constructs a new empty instance.
      • MerchantGatewayEntitlement

        protected MerchantGatewayEntitlement​(boolean noInit)
        Constructs a new empty instance.
      • 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.
      • 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 interface JSONifiable
      • 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
      • setServiceEntitlementNumber

        public MerchantGatewayEntitlement setServiceEntitlementNumber​(String serviceEntitlementNumber)
        Sets the field 'serviceEntitlementNumber'.
      • 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.
      • 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.