Package com.clover.sdk.v3.payments
Class DCCInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.DCCInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DCCInfo 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
DCCInfo.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<DCCInfo>
CREATOR
static JSONifiable.Creator<DCCInfo>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description DCCInfo()
Constructs a new empty instance.protected
DCCInfo(boolean noInit)
Constructs a new empty instance.DCCInfo(DCCInfo src)
Constructs a new instance that is a deep copy of the source instance.DCCInfo(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBaseAmount()
Clears the 'baseAmount' field, the 'has' method for this field will now return falsevoid
clearBaseCurrencyCode()
Clears the 'baseCurrencyCode' field, the 'has' method for this field will now return falsevoid
clearDccApplied()
Clears the 'dccApplied' field, the 'has' method for this field will now return falsevoid
clearDccEligible()
Clears the 'dccEligible' field, the 'has' method for this field will now return falsevoid
clearExchangeRate()
Clears the 'exchangeRate' field, the 'has' method for this field will now return falsevoid
clearExchangeRateId()
Clears the 'exchangeRateId' field, the 'has' method for this field will now return falsevoid
clearExchangeRateSourceName()
Clears the 'exchangeRateSourceName' field, the 'has' method for this field will now return falsevoid
clearExchangeRateSourceTimeStamp()
Clears the 'exchangeRateSourceTimeStamp' field, the 'has' method for this field will now return falsevoid
clearForeignAmount()
Clears the 'foreignAmount' field, the 'has' method for this field will now return falsevoid
clearForeignCurrencyCode()
Clears the 'foreignCurrencyCode' field, the 'has' method for this field will now return falsevoid
clearInquiryRateId()
Clears the 'inquiryRateId' field, the 'has' method for this field will now return falsevoid
clearMarginRatePercentage()
Clears the 'marginRatePercentage' field, the 'has' method for this field will now return falsevoid
clearRateRequestId()
Clears the 'rateRequestId' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.DCCInfo
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getBaseAmount()
Amount sent for exchange in rate requestString
getBaseCurrencyCode()
Alpha currency code for foreign currencyBoolean
getDccApplied()
Flag indicating whether DCC was applied on this txnBoolean
getDccEligible()
Flag indicating whether DCC was offered on this txnDouble
getExchangeRate()
Exchange RateString
getExchangeRateId()
Exchange rate from the rate requestString
getExchangeRateSourceName()
Exchange Rate Source NameString
getExchangeRateSourceTimeStamp()
Exchange Rate Source TimestampLong
getForeignAmount()
Foreign (transaction) amountString
getForeignCurrencyCode()
Foreign currency codeprotected GenericClient
getGenericClient()
Long
getInquiryRateId()
Inquiry Rate ID (IPG)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.String
getMarginRatePercentage()
Margin Rate PercentageString
getRateRequestId()
Rate request id from the rate requestboolean
hasBaseAmount()
Checks whether the 'baseAmount' field has been set, however the value could be nullboolean
hasBaseCurrencyCode()
Checks whether the 'baseCurrencyCode' field has been set, however the value could be nullboolean
hasDccApplied()
Checks whether the 'dccApplied' field has been set, however the value could be nullboolean
hasDccEligible()
Checks whether the 'dccEligible' field has been set, however the value could be nullboolean
hasExchangeRate()
Checks whether the 'exchangeRate' field has been set, however the value could be nullboolean
hasExchangeRateId()
Checks whether the 'exchangeRateId' field has been set, however the value could be nullboolean
hasExchangeRateSourceName()
Checks whether the 'exchangeRateSourceName' field has been set, however the value could be nullboolean
hasExchangeRateSourceTimeStamp()
Checks whether the 'exchangeRateSourceTimeStamp' field has been set, however the value could be nullboolean
hasForeignAmount()
Checks whether the 'foreignAmount' field has been set, however the value could be nullboolean
hasForeignCurrencyCode()
Checks whether the 'foreignCurrencyCode' field has been set, however the value could be nullboolean
hasInquiryRateId()
Checks whether the 'inquiryRateId' field has been set, however the value could be nullboolean
hasMarginRatePercentage()
Checks whether the 'marginRatePercentage' field has been set, however the value could be nullboolean
hasRateRequestId()
Checks whether the 'rateRequestId' field has been set, however the value could be nullboolean
isNotNullBaseAmount()
Checks whether the 'baseAmount' field is set and is not nullboolean
isNotNullBaseCurrencyCode()
Checks whether the 'baseCurrencyCode' field is set and is not nullboolean
isNotNullDccApplied()
Checks whether the 'dccApplied' field is set and is not nullboolean
isNotNullDccEligible()
Checks whether the 'dccEligible' field is set and is not nullboolean
isNotNullExchangeRate()
Checks whether the 'exchangeRate' field is set and is not nullboolean
isNotNullExchangeRateId()
Checks whether the 'exchangeRateId' field is set and is not nullboolean
isNotNullExchangeRateSourceName()
Checks whether the 'exchangeRateSourceName' field is set and is not nullboolean
isNotNullExchangeRateSourceTimeStamp()
Checks whether the 'exchangeRateSourceTimeStamp' field is set and is not nullboolean
isNotNullForeignAmount()
Checks whether the 'foreignAmount' field is set and is not nullboolean
isNotNullForeignCurrencyCode()
Checks whether the 'foreignCurrencyCode' field is set and is not nullboolean
isNotNullInquiryRateId()
Checks whether the 'inquiryRateId' field is set and is not nullboolean
isNotNullMarginRatePercentage()
Checks whether the 'marginRatePercentage' field is set and is not nullboolean
isNotNullRateRequestId()
Checks whether the 'rateRequestId' field is set and is not nullvoid
mergeChanges(DCCInfo 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.DCCInfo
setBaseAmount(Long baseAmount)
Sets the field 'baseAmount'.DCCInfo
setBaseCurrencyCode(String baseCurrencyCode)
Sets the field 'baseCurrencyCode'.DCCInfo
setDccApplied(Boolean dccApplied)
Sets the field 'dccApplied'.DCCInfo
setDccEligible(Boolean dccEligible)
Sets the field 'dccEligible'.DCCInfo
setExchangeRate(Double exchangeRate)
Sets the field 'exchangeRate'.DCCInfo
setExchangeRateId(String exchangeRateId)
Sets the field 'exchangeRateId'.DCCInfo
setExchangeRateSourceName(String exchangeRateSourceName)
Sets the field 'exchangeRateSourceName'.DCCInfo
setExchangeRateSourceTimeStamp(String exchangeRateSourceTimeStamp)
Sets the field 'exchangeRateSourceTimeStamp'.DCCInfo
setForeignAmount(Long foreignAmount)
Sets the field 'foreignAmount'.DCCInfo
setForeignCurrencyCode(String foreignCurrencyCode)
Sets the field 'foreignCurrencyCode'.DCCInfo
setInquiryRateId(Long inquiryRateId)
Sets the field 'inquiryRateId'.DCCInfo
setMarginRatePercentage(String marginRatePercentage)
Sets the field 'marginRatePercentage'.DCCInfo
setRateRequestId(String rateRequestId)
Sets the field 'rateRequestId'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DCCInfo> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<DCCInfo> JSON_CREATOR
-
-
Constructor Detail
-
DCCInfo
public DCCInfo()
Constructs a new empty instance.
-
DCCInfo
protected DCCInfo(boolean noInit)
Constructs a new empty instance.
-
DCCInfo
public DCCInfo(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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
-
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
-
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'.
-
setForeignCurrencyCode
public DCCInfo setForeignCurrencyCode(String foreignCurrencyCode)
Sets the field 'foreignCurrencyCode'.
-
setForeignAmount
public DCCInfo setForeignAmount(Long foreignAmount)
Sets the field 'foreignAmount'.
-
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'.
-
setExchangeRateId
public DCCInfo setExchangeRateId(String exchangeRateId)
Sets the field 'exchangeRateId'.
-
setRateRequestId
public DCCInfo setRateRequestId(String rateRequestId)
Sets the field 'rateRequestId'.
-
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.
-
-