Class Device

    • Constructor Detail

      • Device

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

        protected Device​(boolean noInit)
        Constructs a new empty instance.
      • Device

        public Device​(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.
      • Device

        public Device​(Device 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()
        Name of the device (if entered)
      • getModel

        public String getModel()
      • getMerchant

        public Reference getMerchant()
      • getOrderPrefix

        public String getOrderPrefix()
        A prefix that will be applied to order numbers. This is useful if the merchant and/or customer needs to track which device an order came from.
      • getTerminalId

        public String getTerminalId()
        The merchant device's terminal Id. FD-IPG sets the merchant_device terminal Id for LATAM devices
      • getTerminalPrefix

        public Integer getTerminalPrefix()
      • getSerial

        public String getSerial()
        The device's serial number.
      • getBuildNumber

        public Long getBuildNumber()
      • getSecureId

        public String getSecureId()
      • getBuildType

        public BuildType getBuildType()
      • getCpuId

        public String getCpuId()
      • getImei

        public String getImei()
        The IMEI of the device
      • getImsi

        public String getImsi()
        The IMSI of the SIM in the device (if present)
      • getSimIccid

        public String getSimIccid()
        The ICCID of the SIM in the device (if present)
      • getDeviceCertificate

        public String getDeviceCertificate()
      • getPedCertificate

        public String getPedCertificate()
      • getDeviceTypeName

        public String getDeviceTypeName()
      • getProductName

        public String getProductName()
      • getPinDisabled

        public Boolean getPinDisabled()
        Whether this device has PIN prompt disabled.
      • getOfflinePayments

        public Boolean getOfflinePayments()
      • getOfflinePaymentsAll

        public Boolean getOfflinePaymentsAll()
      • getOfflinePaymentsLimit

        public Long getOfflinePaymentsLimit()
      • getOfflinePaymentsPromptThreshold

        public Long getOfflinePaymentsPromptThreshold()
      • getOfflinePaymentsTotalPaymentsLimit

        public Long getOfflinePaymentsTotalPaymentsLimit()
      • getOfflinePaymentsLimitDefault

        public Long getOfflinePaymentsLimitDefault()
      • getOfflinePaymentsPromptThresholdDefault

        public Long getOfflinePaymentsPromptThresholdDefault()
      • getOfflinePaymentsTotalPaymentsLimitDefault

        public Long getOfflinePaymentsTotalPaymentsLimitDefault()
      • getOfflinePaymentsMaxLimit

        public Long getOfflinePaymentsMaxLimit()
      • getOfflinePaymentsMaxTotalPaymentsLimit

        public Long getOfflinePaymentsMaxTotalPaymentsLimit()
      • getShowOfflinePayments

        public Boolean getShowOfflinePayments()
      • getMaxOfflineDays

        public Long getMaxOfflineDays()
      • getAllowStoreAndForward

        public Boolean getAllowStoreAndForward()
      • getBundleIndicator

        public String getBundleIndicator()
      • 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
      • isNotNullModel

        public boolean isNotNullModel()
        Checks whether the 'model' field is set and is not null
      • isNotNullMerchant

        public boolean isNotNullMerchant()
        Checks whether the 'merchant' field is set and is not null
      • isNotNullOrderPrefix

        public boolean isNotNullOrderPrefix()
        Checks whether the 'orderPrefix' field is set and is not null
      • isNotNullTerminalId

        public boolean isNotNullTerminalId()
        Checks whether the 'terminalId' field is set and is not null
      • isNotNullTerminalPrefix

        public boolean isNotNullTerminalPrefix()
        Checks whether the 'terminalPrefix' field is set and is not null
      • isNotNullSerial

        public boolean isNotNullSerial()
        Checks whether the 'serial' field is set and is not null
      • isNotNullBuildNumber

        public boolean isNotNullBuildNumber()
        Checks whether the 'buildNumber' field is set and is not null
      • isNotNullSecureId

        public boolean isNotNullSecureId()
        Checks whether the 'secureId' field is set and is not null
      • isNotNullBuildType

        public boolean isNotNullBuildType()
        Checks whether the 'buildType' field is set and is not null
      • isNotNullCpuId

        public boolean isNotNullCpuId()
        Checks whether the 'cpuId' field is set and is not null
      • isNotNullImei

        public boolean isNotNullImei()
        Checks whether the 'imei' field is set and is not null
      • isNotNullImsi

        public boolean isNotNullImsi()
        Checks whether the 'imsi' field is set and is not null
      • isNotNullSimIccid

        public boolean isNotNullSimIccid()
        Checks whether the 'simIccid' field is set and is not null
      • isNotNullDeviceCertificate

        public boolean isNotNullDeviceCertificate()
        Checks whether the 'deviceCertificate' field is set and is not null
      • isNotNullPedCertificate

        public boolean isNotNullPedCertificate()
        Checks whether the 'pedCertificate' field is set and is not null
      • isNotNullDeviceTypeName

        public boolean isNotNullDeviceTypeName()
        Checks whether the 'deviceTypeName' field is set and is not null
      • isNotNullProductName

        public boolean isNotNullProductName()
        Checks whether the 'productName' field is set and is not null
      • isNotNullPinDisabled

        public boolean isNotNullPinDisabled()
        Checks whether the 'pinDisabled' field is set and is not null
      • isNotNullOfflinePayments

        public boolean isNotNullOfflinePayments()
        Checks whether the 'offlinePayments' field is set and is not null
      • isNotNullOfflinePaymentsAll

        public boolean isNotNullOfflinePaymentsAll()
        Checks whether the 'offlinePaymentsAll' field is set and is not null
      • isNotNullOfflinePaymentsLimit

        public boolean isNotNullOfflinePaymentsLimit()
        Checks whether the 'offlinePaymentsLimit' field is set and is not null
      • isNotNullOfflinePaymentsPromptThreshold

        public boolean isNotNullOfflinePaymentsPromptThreshold()
        Checks whether the 'offlinePaymentsPromptThreshold' field is set and is not null
      • isNotNullOfflinePaymentsTotalPaymentsLimit

        public boolean isNotNullOfflinePaymentsTotalPaymentsLimit()
        Checks whether the 'offlinePaymentsTotalPaymentsLimit' field is set and is not null
      • isNotNullOfflinePaymentsLimitDefault

        public boolean isNotNullOfflinePaymentsLimitDefault()
        Checks whether the 'offlinePaymentsLimitDefault' field is set and is not null
      • isNotNullOfflinePaymentsPromptThresholdDefault

        public boolean isNotNullOfflinePaymentsPromptThresholdDefault()
        Checks whether the 'offlinePaymentsPromptThresholdDefault' field is set and is not null
      • isNotNullOfflinePaymentsTotalPaymentsLimitDefault

        public boolean isNotNullOfflinePaymentsTotalPaymentsLimitDefault()
        Checks whether the 'offlinePaymentsTotalPaymentsLimitDefault' field is set and is not null
      • isNotNullOfflinePaymentsMaxLimit

        public boolean isNotNullOfflinePaymentsMaxLimit()
        Checks whether the 'offlinePaymentsMaxLimit' field is set and is not null
      • isNotNullOfflinePaymentsMaxTotalPaymentsLimit

        public boolean isNotNullOfflinePaymentsMaxTotalPaymentsLimit()
        Checks whether the 'offlinePaymentsMaxTotalPaymentsLimit' field is set and is not null
      • isNotNullShowOfflinePayments

        public boolean isNotNullShowOfflinePayments()
        Checks whether the 'showOfflinePayments' field is set and is not null
      • isNotNullMaxOfflineDays

        public boolean isNotNullMaxOfflineDays()
        Checks whether the 'maxOfflineDays' field is set and is not null
      • isNotNullAllowStoreAndForward

        public boolean isNotNullAllowStoreAndForward()
        Checks whether the 'allowStoreAndForward' field is set and is not null
      • isNotNullSecureReports

        public boolean isNotNullSecureReports()
        Checks whether the 'secureReports' field is set and is not null
      • isNotEmptySecureReports

        public boolean isNotEmptySecureReports()
        Checks whether the 'secureReports' field is set and is not null and is not empty
      • isNotNullBundleIndicator

        public boolean isNotNullBundleIndicator()
        Checks whether the 'bundleIndicator' field is set and is not null
      • 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
      • hasModel

        public boolean hasModel()
        Checks whether the 'model' field has been set, however the value could be null
      • hasMerchant

        public boolean hasMerchant()
        Checks whether the 'merchant' field has been set, however the value could be null
      • hasOrderPrefix

        public boolean hasOrderPrefix()
        Checks whether the 'orderPrefix' field has been set, however the value could be null
      • hasTerminalId

        public boolean hasTerminalId()
        Checks whether the 'terminalId' field has been set, however the value could be null
      • hasTerminalPrefix

        public boolean hasTerminalPrefix()
        Checks whether the 'terminalPrefix' field has been set, however the value could be null
      • hasSerial

        public boolean hasSerial()
        Checks whether the 'serial' field has been set, however the value could be null
      • hasBuildNumber

        public boolean hasBuildNumber()
        Checks whether the 'buildNumber' field has been set, however the value could be null
      • hasSecureId

        public boolean hasSecureId()
        Checks whether the 'secureId' field has been set, however the value could be null
      • hasBuildType

        public boolean hasBuildType()
        Checks whether the 'buildType' field has been set, however the value could be null
      • hasCpuId

        public boolean hasCpuId()
        Checks whether the 'cpuId' field has been set, however the value could be null
      • hasImei

        public boolean hasImei()
        Checks whether the 'imei' field has been set, however the value could be null
      • hasImsi

        public boolean hasImsi()
        Checks whether the 'imsi' field has been set, however the value could be null
      • hasSimIccid

        public boolean hasSimIccid()
        Checks whether the 'simIccid' field has been set, however the value could be null
      • hasDeviceCertificate

        public boolean hasDeviceCertificate()
        Checks whether the 'deviceCertificate' field has been set, however the value could be null
      • hasPedCertificate

        public boolean hasPedCertificate()
        Checks whether the 'pedCertificate' field has been set, however the value could be null
      • hasDeviceTypeName

        public boolean hasDeviceTypeName()
        Checks whether the 'deviceTypeName' field has been set, however the value could be null
      • hasProductName

        public boolean hasProductName()
        Checks whether the 'productName' field has been set, however the value could be null
      • hasPinDisabled

        public boolean hasPinDisabled()
        Checks whether the 'pinDisabled' field has been set, however the value could be null
      • hasOfflinePayments

        public boolean hasOfflinePayments()
        Checks whether the 'offlinePayments' field has been set, however the value could be null
      • hasOfflinePaymentsAll

        public boolean hasOfflinePaymentsAll()
        Checks whether the 'offlinePaymentsAll' field has been set, however the value could be null
      • hasOfflinePaymentsLimit

        public boolean hasOfflinePaymentsLimit()
        Checks whether the 'offlinePaymentsLimit' field has been set, however the value could be null
      • hasOfflinePaymentsPromptThreshold

        public boolean hasOfflinePaymentsPromptThreshold()
        Checks whether the 'offlinePaymentsPromptThreshold' field has been set, however the value could be null
      • hasOfflinePaymentsTotalPaymentsLimit

        public boolean hasOfflinePaymentsTotalPaymentsLimit()
        Checks whether the 'offlinePaymentsTotalPaymentsLimit' field has been set, however the value could be null
      • hasOfflinePaymentsLimitDefault

        public boolean hasOfflinePaymentsLimitDefault()
        Checks whether the 'offlinePaymentsLimitDefault' field has been set, however the value could be null
      • hasOfflinePaymentsPromptThresholdDefault

        public boolean hasOfflinePaymentsPromptThresholdDefault()
        Checks whether the 'offlinePaymentsPromptThresholdDefault' field has been set, however the value could be null
      • hasOfflinePaymentsTotalPaymentsLimitDefault

        public boolean hasOfflinePaymentsTotalPaymentsLimitDefault()
        Checks whether the 'offlinePaymentsTotalPaymentsLimitDefault' field has been set, however the value could be null
      • hasOfflinePaymentsMaxLimit

        public boolean hasOfflinePaymentsMaxLimit()
        Checks whether the 'offlinePaymentsMaxLimit' field has been set, however the value could be null
      • hasOfflinePaymentsMaxTotalPaymentsLimit

        public boolean hasOfflinePaymentsMaxTotalPaymentsLimit()
        Checks whether the 'offlinePaymentsMaxTotalPaymentsLimit' field has been set, however the value could be null
      • hasShowOfflinePayments

        public boolean hasShowOfflinePayments()
        Checks whether the 'showOfflinePayments' field has been set, however the value could be null
      • hasMaxOfflineDays

        public boolean hasMaxOfflineDays()
        Checks whether the 'maxOfflineDays' field has been set, however the value could be null
      • hasAllowStoreAndForward

        public boolean hasAllowStoreAndForward()
        Checks whether the 'allowStoreAndForward' field has been set, however the value could be null
      • hasSecureReports

        public boolean hasSecureReports()
        Checks whether the 'secureReports' field has been set, however the value could be null
      • hasBundleIndicator

        public boolean hasBundleIndicator()
        Checks whether the 'bundleIndicator' field has been set, however the value could be null
      • setId

        public Device setId​(String id)
        Sets the field 'id'.
      • setName

        public Device setName​(String name)
        Sets the field 'name'.
      • setModel

        public Device setModel​(String model)
        Sets the field 'model'.
      • setMerchant

        public Device setMerchant​(Reference merchant)
        Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setOrderPrefix

        public Device setOrderPrefix​(String orderPrefix)
        Sets the field 'orderPrefix'.
      • setTerminalId

        public Device setTerminalId​(String terminalId)
        Sets the field 'terminalId'.
      • setTerminalPrefix

        public Device setTerminalPrefix​(Integer terminalPrefix)
        Sets the field 'terminalPrefix'.
      • setSerial

        public Device setSerial​(String serial)
        Sets the field 'serial'.
      • setBuildNumber

        public Device setBuildNumber​(Long buildNumber)
        Sets the field 'buildNumber'.
      • setSecureId

        public Device setSecureId​(String secureId)
        Sets the field 'secureId'.
      • setBuildType

        public Device setBuildType​(BuildType buildType)
        Sets the field 'buildType'.
      • setCpuId

        public Device setCpuId​(String cpuId)
        Sets the field 'cpuId'.
      • setImei

        public Device setImei​(String imei)
        Sets the field 'imei'.
      • setImsi

        public Device setImsi​(String imsi)
        Sets the field 'imsi'.
      • setSimIccid

        public Device setSimIccid​(String simIccid)
        Sets the field 'simIccid'.
      • setDeviceCertificate

        public Device setDeviceCertificate​(String deviceCertificate)
        Sets the field 'deviceCertificate'.
      • setPedCertificate

        public Device setPedCertificate​(String pedCertificate)
        Sets the field 'pedCertificate'.
      • setDeviceTypeName

        public Device setDeviceTypeName​(String deviceTypeName)
        Sets the field 'deviceTypeName'.
      • setProductName

        public Device setProductName​(String productName)
        Sets the field 'productName'.
      • setPinDisabled

        public Device setPinDisabled​(Boolean pinDisabled)
        Sets the field 'pinDisabled'.
      • setOfflinePayments

        public Device setOfflinePayments​(Boolean offlinePayments)
        Sets the field 'offlinePayments'.
      • setOfflinePaymentsAll

        public Device setOfflinePaymentsAll​(Boolean offlinePaymentsAll)
        Sets the field 'offlinePaymentsAll'.
      • setOfflinePaymentsLimit

        public Device setOfflinePaymentsLimit​(Long offlinePaymentsLimit)
        Sets the field 'offlinePaymentsLimit'.
      • setOfflinePaymentsPromptThreshold

        public Device setOfflinePaymentsPromptThreshold​(Long offlinePaymentsPromptThreshold)
        Sets the field 'offlinePaymentsPromptThreshold'.
      • setOfflinePaymentsTotalPaymentsLimit

        public Device setOfflinePaymentsTotalPaymentsLimit​(Long offlinePaymentsTotalPaymentsLimit)
        Sets the field 'offlinePaymentsTotalPaymentsLimit'.
      • setOfflinePaymentsLimitDefault

        public Device setOfflinePaymentsLimitDefault​(Long offlinePaymentsLimitDefault)
        Sets the field 'offlinePaymentsLimitDefault'.
      • setOfflinePaymentsPromptThresholdDefault

        public Device setOfflinePaymentsPromptThresholdDefault​(Long offlinePaymentsPromptThresholdDefault)
        Sets the field 'offlinePaymentsPromptThresholdDefault'.
      • setOfflinePaymentsTotalPaymentsLimitDefault

        public Device setOfflinePaymentsTotalPaymentsLimitDefault​(Long offlinePaymentsTotalPaymentsLimitDefault)
        Sets the field 'offlinePaymentsTotalPaymentsLimitDefault'.
      • setOfflinePaymentsMaxLimit

        public Device setOfflinePaymentsMaxLimit​(Long offlinePaymentsMaxLimit)
        Sets the field 'offlinePaymentsMaxLimit'.
      • setOfflinePaymentsMaxTotalPaymentsLimit

        public Device setOfflinePaymentsMaxTotalPaymentsLimit​(Long offlinePaymentsMaxTotalPaymentsLimit)
        Sets the field 'offlinePaymentsMaxTotalPaymentsLimit'.
      • setShowOfflinePayments

        public Device setShowOfflinePayments​(Boolean showOfflinePayments)
        Sets the field 'showOfflinePayments'.
      • setMaxOfflineDays

        public Device setMaxOfflineDays​(Long maxOfflineDays)
        Sets the field 'maxOfflineDays'.
      • setAllowStoreAndForward

        public Device setAllowStoreAndForward​(Boolean allowStoreAndForward)
        Sets the field 'allowStoreAndForward'.
      • setSecureReports

        public Device setSecureReports​(List<Reference> secureReports)
        Sets the field 'secureReports'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setBundleIndicator

        public Device setBundleIndicator​(String bundleIndicator)
        Sets the field 'bundleIndicator'.
      • 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
      • clearModel

        public void clearModel()
        Clears the 'model' field, the 'has' method for this field will now return false
      • clearMerchant

        public void clearMerchant()
        Clears the 'merchant' field, the 'has' method for this field will now return false
      • clearOrderPrefix

        public void clearOrderPrefix()
        Clears the 'orderPrefix' field, the 'has' method for this field will now return false
      • clearTerminalId

        public void clearTerminalId()
        Clears the 'terminalId' field, the 'has' method for this field will now return false
      • clearTerminalPrefix

        public void clearTerminalPrefix()
        Clears the 'terminalPrefix' field, the 'has' method for this field will now return false
      • clearSerial

        public void clearSerial()
        Clears the 'serial' field, the 'has' method for this field will now return false
      • clearBuildNumber

        public void clearBuildNumber()
        Clears the 'buildNumber' field, the 'has' method for this field will now return false
      • clearSecureId

        public void clearSecureId()
        Clears the 'secureId' field, the 'has' method for this field will now return false
      • clearBuildType

        public void clearBuildType()
        Clears the 'buildType' field, the 'has' method for this field will now return false
      • clearCpuId

        public void clearCpuId()
        Clears the 'cpuId' field, the 'has' method for this field will now return false
      • clearImei

        public void clearImei()
        Clears the 'imei' field, the 'has' method for this field will now return false
      • clearImsi

        public void clearImsi()
        Clears the 'imsi' field, the 'has' method for this field will now return false
      • clearSimIccid

        public void clearSimIccid()
        Clears the 'simIccid' field, the 'has' method for this field will now return false
      • clearDeviceCertificate

        public void clearDeviceCertificate()
        Clears the 'deviceCertificate' field, the 'has' method for this field will now return false
      • clearPedCertificate

        public void clearPedCertificate()
        Clears the 'pedCertificate' field, the 'has' method for this field will now return false
      • clearDeviceTypeName

        public void clearDeviceTypeName()
        Clears the 'deviceTypeName' field, the 'has' method for this field will now return false
      • clearProductName

        public void clearProductName()
        Clears the 'productName' field, the 'has' method for this field will now return false
      • clearPinDisabled

        public void clearPinDisabled()
        Clears the 'pinDisabled' field, the 'has' method for this field will now return false
      • clearOfflinePayments

        public void clearOfflinePayments()
        Clears the 'offlinePayments' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsAll

        public void clearOfflinePaymentsAll()
        Clears the 'offlinePaymentsAll' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsLimit

        public void clearOfflinePaymentsLimit()
        Clears the 'offlinePaymentsLimit' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsPromptThreshold

        public void clearOfflinePaymentsPromptThreshold()
        Clears the 'offlinePaymentsPromptThreshold' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsTotalPaymentsLimit

        public void clearOfflinePaymentsTotalPaymentsLimit()
        Clears the 'offlinePaymentsTotalPaymentsLimit' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsLimitDefault

        public void clearOfflinePaymentsLimitDefault()
        Clears the 'offlinePaymentsLimitDefault' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsPromptThresholdDefault

        public void clearOfflinePaymentsPromptThresholdDefault()
        Clears the 'offlinePaymentsPromptThresholdDefault' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsTotalPaymentsLimitDefault

        public void clearOfflinePaymentsTotalPaymentsLimitDefault()
        Clears the 'offlinePaymentsTotalPaymentsLimitDefault' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsMaxLimit

        public void clearOfflinePaymentsMaxLimit()
        Clears the 'offlinePaymentsMaxLimit' field, the 'has' method for this field will now return false
      • clearOfflinePaymentsMaxTotalPaymentsLimit

        public void clearOfflinePaymentsMaxTotalPaymentsLimit()
        Clears the 'offlinePaymentsMaxTotalPaymentsLimit' field, the 'has' method for this field will now return false
      • clearShowOfflinePayments

        public void clearShowOfflinePayments()
        Clears the 'showOfflinePayments' field, the 'has' method for this field will now return false
      • clearMaxOfflineDays

        public void clearMaxOfflineDays()
        Clears the 'maxOfflineDays' field, the 'has' method for this field will now return false
      • clearAllowStoreAndForward

        public void clearAllowStoreAndForward()
        Clears the 'allowStoreAndForward' field, the 'has' method for this field will now return false
      • clearSecureReports

        public void clearSecureReports()
        Clears the 'secureReports' field, the 'has' method for this field will now return false
      • clearBundleIndicator

        public void clearBundleIndicator()
        Clears the 'bundleIndicator' 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 Device copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Device src)
        Copy all the changed fields from the given source to this instance.