Class DCCInfo

    • Constructor Detail

      • DCCInfo

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

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

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

        public DCCInfo​(DCCInfo src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getInquiryRateId

        public Long getInquiryRateId()
        Inquiry Rate ID (IPG)
      • getDccApplied

        public Boolean getDccApplied()
        Flag indicating whether DCC was applied on this txn
      • getForeignCurrencyCode

        public String getForeignCurrencyCode()
        Foreign currency code
      • getForeignAmount

        public Long getForeignAmount()
        Foreign (transaction) amount
      • getExchangeRate

        public Double getExchangeRate()
        Exchange Rate
      • getMarginRatePercentage

        public String getMarginRatePercentage()
        Margin Rate Percentage
      • getExchangeRateSourceName

        public String getExchangeRateSourceName()
        Exchange Rate Source Name
      • getExchangeRateSourceTimeStamp

        public String getExchangeRateSourceTimeStamp()
        Exchange Rate Source Timestamp
      • getDccEligible

        public Boolean getDccEligible()
        Flag indicating whether DCC was offered on this txn
      • getExchangeRateId

        public String getExchangeRateId()
        Exchange rate from the rate request
      • getRateRequestId

        public String getRateRequestId()
        Rate request id from the rate request
      • getBaseAmount

        public Long getBaseAmount()
        Amount sent for exchange in rate request
      • getBaseCurrencyCode

        public String getBaseCurrencyCode()
        Alpha currency code for foreign currency
      • 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
      • isNotNullInquiryRateId

        public boolean isNotNullInquiryRateId()
        Checks whether the 'inquiryRateId' field is set and is not null
      • isNotNullDccApplied

        public boolean isNotNullDccApplied()
        Checks whether the 'dccApplied' field is set and is not null
      • isNotNullForeignCurrencyCode

        public boolean isNotNullForeignCurrencyCode()
        Checks whether the 'foreignCurrencyCode' field is set and is not null
      • isNotNullForeignAmount

        public boolean isNotNullForeignAmount()
        Checks whether the 'foreignAmount' field is set and is not null
      • isNotNullExchangeRate

        public boolean isNotNullExchangeRate()
        Checks whether the 'exchangeRate' field is set and is not null
      • isNotNullMarginRatePercentage

        public boolean isNotNullMarginRatePercentage()
        Checks whether the 'marginRatePercentage' field is set and is not null
      • isNotNullExchangeRateSourceName

        public boolean isNotNullExchangeRateSourceName()
        Checks whether the 'exchangeRateSourceName' field is set and is not null
      • isNotNullExchangeRateSourceTimeStamp

        public boolean isNotNullExchangeRateSourceTimeStamp()
        Checks whether the 'exchangeRateSourceTimeStamp' field is set and is not null
      • isNotNullDccEligible

        public boolean isNotNullDccEligible()
        Checks whether the 'dccEligible' field is set and is not null
      • isNotNullExchangeRateId

        public boolean isNotNullExchangeRateId()
        Checks whether the 'exchangeRateId' field is set and is not null
      • isNotNullRateRequestId

        public boolean isNotNullRateRequestId()
        Checks whether the 'rateRequestId' field is set and is not null
      • isNotNullBaseAmount

        public boolean isNotNullBaseAmount()
        Checks whether the 'baseAmount' field is set and is not null
      • isNotNullBaseCurrencyCode

        public boolean isNotNullBaseCurrencyCode()
        Checks whether the 'baseCurrencyCode' field is set and is not null
      • hasInquiryRateId

        public boolean hasInquiryRateId()
        Checks whether the 'inquiryRateId' field has been set, however the value could be null
      • hasDccApplied

        public boolean hasDccApplied()
        Checks whether the 'dccApplied' field has been set, however the value could be null
      • hasForeignCurrencyCode

        public boolean hasForeignCurrencyCode()
        Checks whether the 'foreignCurrencyCode' field has been set, however the value could be null
      • hasForeignAmount

        public boolean hasForeignAmount()
        Checks whether the 'foreignAmount' field has been set, however the value could be null
      • hasExchangeRate

        public boolean hasExchangeRate()
        Checks whether the 'exchangeRate' field has been set, however the value could be null
      • hasMarginRatePercentage

        public boolean hasMarginRatePercentage()
        Checks whether the 'marginRatePercentage' field has been set, however the value could be null
      • hasExchangeRateSourceName

        public boolean hasExchangeRateSourceName()
        Checks whether the 'exchangeRateSourceName' field has been set, however the value could be null
      • hasExchangeRateSourceTimeStamp

        public boolean hasExchangeRateSourceTimeStamp()
        Checks whether the 'exchangeRateSourceTimeStamp' field has been set, however the value could be null
      • hasDccEligible

        public boolean hasDccEligible()
        Checks whether the 'dccEligible' field has been set, however the value could be null
      • hasExchangeRateId

        public boolean hasExchangeRateId()
        Checks whether the 'exchangeRateId' field has been set, however the value could be null
      • hasRateRequestId

        public boolean hasRateRequestId()
        Checks whether the 'rateRequestId' field has been set, however the value could be null
      • hasBaseAmount

        public boolean hasBaseAmount()
        Checks whether the 'baseAmount' field has been set, however the value could be null
      • hasBaseCurrencyCode

        public boolean hasBaseCurrencyCode()
        Checks whether the 'baseCurrencyCode' field has been set, however the value could be null
      • setInquiryRateId

        public DCCInfo setInquiryRateId​(Long inquiryRateId)
        Sets the field 'inquiryRateId'.
      • setDccApplied

        public DCCInfo setDccApplied​(Boolean dccApplied)
        Sets the field 'dccApplied'.
      • setForeignCurrencyCode

        public DCCInfo setForeignCurrencyCode​(String foreignCurrencyCode)
        Sets the field 'foreignCurrencyCode'.
      • setForeignAmount

        public DCCInfo setForeignAmount​(Long foreignAmount)
        Sets the field 'foreignAmount'.
      • setExchangeRate

        public DCCInfo setExchangeRate​(Double exchangeRate)
        Sets the field 'exchangeRate'.
      • setMarginRatePercentage

        public DCCInfo setMarginRatePercentage​(String marginRatePercentage)
        Sets the field 'marginRatePercentage'.
      • setExchangeRateSourceName

        public DCCInfo setExchangeRateSourceName​(String exchangeRateSourceName)
        Sets the field 'exchangeRateSourceName'.
      • setExchangeRateSourceTimeStamp

        public DCCInfo setExchangeRateSourceTimeStamp​(String exchangeRateSourceTimeStamp)
        Sets the field 'exchangeRateSourceTimeStamp'.
      • setDccEligible

        public DCCInfo setDccEligible​(Boolean dccEligible)
        Sets the field 'dccEligible'.
      • setExchangeRateId

        public DCCInfo setExchangeRateId​(String exchangeRateId)
        Sets the field 'exchangeRateId'.
      • setRateRequestId

        public DCCInfo setRateRequestId​(String rateRequestId)
        Sets the field 'rateRequestId'.
      • setBaseAmount

        public DCCInfo setBaseAmount​(Long baseAmount)
        Sets the field 'baseAmount'.
      • setBaseCurrencyCode

        public DCCInfo setBaseCurrencyCode​(String baseCurrencyCode)
        Sets the field 'baseCurrencyCode'.
      • clearInquiryRateId

        public void clearInquiryRateId()
        Clears the 'inquiryRateId' field, the 'has' method for this field will now return false
      • clearDccApplied

        public void clearDccApplied()
        Clears the 'dccApplied' field, the 'has' method for this field will now return false
      • clearForeignCurrencyCode

        public void clearForeignCurrencyCode()
        Clears the 'foreignCurrencyCode' field, the 'has' method for this field will now return false
      • clearForeignAmount

        public void clearForeignAmount()
        Clears the 'foreignAmount' field, the 'has' method for this field will now return false
      • clearExchangeRate

        public void clearExchangeRate()
        Clears the 'exchangeRate' field, the 'has' method for this field will now return false
      • clearMarginRatePercentage

        public void clearMarginRatePercentage()
        Clears the 'marginRatePercentage' field, the 'has' method for this field will now return false
      • clearExchangeRateSourceName

        public void clearExchangeRateSourceName()
        Clears the 'exchangeRateSourceName' field, the 'has' method for this field will now return false
      • clearExchangeRateSourceTimeStamp

        public void clearExchangeRateSourceTimeStamp()
        Clears the 'exchangeRateSourceTimeStamp' field, the 'has' method for this field will now return false
      • clearDccEligible

        public void clearDccEligible()
        Clears the 'dccEligible' field, the 'has' method for this field will now return false
      • clearExchangeRateId

        public void clearExchangeRateId()
        Clears the 'exchangeRateId' field, the 'has' method for this field will now return false
      • clearRateRequestId

        public void clearRateRequestId()
        Clears the 'rateRequestId' field, the 'has' method for this field will now return false
      • clearBaseAmount

        public void clearBaseAmount()
        Clears the 'baseAmount' field, the 'has' method for this field will now return false
      • clearBaseCurrencyCode

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

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