public class DCCInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DCCInfo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DCCInfo> |
CREATOR |
static JSONifiable.Creator<DCCInfo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and 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(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(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBaseAmount()
Clears the 'baseAmount' field, the 'has' method for this field will now return false
|
void |
clearBaseCurrencyCode()
Clears the 'baseCurrencyCode' field, the 'has' method for this field will now return false
|
void |
clearDccApplied()
Clears the 'dccApplied' field, the 'has' method for this field will now return false
|
void |
clearDccEligible()
Clears the 'dccEligible' field, the 'has' method for this field will now return false
|
void |
clearExchangeRate()
Clears the 'exchangeRate' field, the 'has' method for this field will now return false
|
void |
clearExchangeRateId()
Clears the 'exchangeRateId' field, the 'has' method for this field will now return false
|
void |
clearExchangeRateSourceName()
Clears the 'exchangeRateSourceName' field, the 'has' method for this field will now return false
|
void |
clearExchangeRateSourceTimeStamp()
Clears the 'exchangeRateSourceTimeStamp' field, the 'has' method for this field will now return false
|
void |
clearForeignAmount()
Clears the 'foreignAmount' field, the 'has' method for this field will now return false
|
void |
clearForeignCurrencyCode()
Clears the 'foreignCurrencyCode' field, the 'has' method for this field will now return false
|
void |
clearInquiryRateId()
Clears the 'inquiryRateId' field, the 'has' method for this field will now return false
|
void |
clearMarginRatePercentage()
Clears the 'marginRatePercentage' field, the 'has' method for this field will now return false
|
void |
clearRateRequestId()
Clears the 'rateRequestId' field, the 'has' method for this field will now return false
|
boolean |
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 request
|
String |
getBaseCurrencyCode()
Alpha currency code for foreign currency
|
Boolean |
getDccApplied()
Flag indicating whether DCC was applied on this txn
|
Boolean |
getDccEligible()
Flag indicating whether DCC was offered on this txn
|
Double |
getExchangeRate()
Exchange Rate
|
String |
getExchangeRateId()
Exchange rate from the rate request
|
String |
getExchangeRateSourceName()
Exchange Rate Source Name
|
String |
getExchangeRateSourceTimeStamp()
Exchange Rate Source Timestamp
|
Long |
getForeignAmount()
Foreign (transaction) amount
|
String |
getForeignCurrencyCode()
Foreign currency code
|
protected 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 Percentage
|
String |
getRateRequestId()
Rate request id from the rate request
|
boolean |
hasBaseAmount()
Checks whether the 'baseAmount' field has been set, however the value could be null
|
boolean |
hasBaseCurrencyCode()
Checks whether the 'baseCurrencyCode' field has been set, however the value could be null
|
boolean |
hasDccApplied()
Checks whether the 'dccApplied' field has been set, however the value could be null
|
boolean |
hasDccEligible()
Checks whether the 'dccEligible' field has been set, however the value could be null
|
boolean |
hasExchangeRate()
Checks whether the 'exchangeRate' field has been set, however the value could be null
|
boolean |
hasExchangeRateId()
Checks whether the 'exchangeRateId' field has been set, however the value could be null
|
boolean |
hasExchangeRateSourceName()
Checks whether the 'exchangeRateSourceName' field has been set, however the value could be null
|
boolean |
hasExchangeRateSourceTimeStamp()
Checks whether the 'exchangeRateSourceTimeStamp' field has been set, however the value could be null
|
boolean |
hasForeignAmount()
Checks whether the 'foreignAmount' field has been set, however the value could be null
|
boolean |
hasForeignCurrencyCode()
Checks whether the 'foreignCurrencyCode' field has been set, however the value could be null
|
boolean |
hasInquiryRateId()
Checks whether the 'inquiryRateId' field has been set, however the value could be null
|
boolean |
hasMarginRatePercentage()
Checks whether the 'marginRatePercentage' field has been set, however the value could be null
|
boolean |
hasRateRequestId()
Checks whether the 'rateRequestId' field has been set, however the value could be null
|
boolean |
isNotNullBaseAmount()
Checks whether the 'baseAmount' field is set and is not null
|
boolean |
isNotNullBaseCurrencyCode()
Checks whether the 'baseCurrencyCode' field is set and is not null
|
boolean |
isNotNullDccApplied()
Checks whether the 'dccApplied' field is set and is not null
|
boolean |
isNotNullDccEligible()
Checks whether the 'dccEligible' field is set and is not null
|
boolean |
isNotNullExchangeRate()
Checks whether the 'exchangeRate' field is set and is not null
|
boolean |
isNotNullExchangeRateId()
Checks whether the 'exchangeRateId' field is set and is not null
|
boolean |
isNotNullExchangeRateSourceName()
Checks whether the 'exchangeRateSourceName' field is set and is not null
|
boolean |
isNotNullExchangeRateSourceTimeStamp()
Checks whether the 'exchangeRateSourceTimeStamp' field is set and is not null
|
boolean |
isNotNullForeignAmount()
Checks whether the 'foreignAmount' field is set and is not null
|
boolean |
isNotNullForeignCurrencyCode()
Checks whether the 'foreignCurrencyCode' field is set and is not null
|
boolean |
isNotNullInquiryRateId()
Checks whether the 'inquiryRateId' field is set and is not null
|
boolean |
isNotNullMarginRatePercentage()
Checks whether the 'marginRatePercentage' field is set and is not null
|
boolean |
isNotNullRateRequestId()
Checks whether the 'rateRequestId' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DCCInfo> CREATOR
public static final JSONifiable.Creator<DCCInfo> JSON_CREATOR
public DCCInfo()
protected DCCInfo(boolean noInit)
public DCCInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public DCCInfo(JSONObject jsonObject)
public DCCInfo(DCCInfo src)
public Long getInquiryRateId()
public Boolean getDccApplied()
public String getForeignCurrencyCode()
public Long getForeignAmount()
public Double getExchangeRate()
public String getMarginRatePercentage()
public String getExchangeRateSourceName()
public String getExchangeRateSourceTimeStamp()
public Boolean getDccEligible()
public String getExchangeRateId()
public String getRateRequestId()
public Long getBaseAmount()
public String getBaseCurrencyCode()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullInquiryRateId()
public boolean isNotNullDccApplied()
public boolean isNotNullForeignCurrencyCode()
public boolean isNotNullForeignAmount()
public boolean isNotNullExchangeRate()
public boolean isNotNullMarginRatePercentage()
public boolean isNotNullExchangeRateSourceName()
public boolean isNotNullExchangeRateSourceTimeStamp()
public boolean isNotNullDccEligible()
public boolean isNotNullExchangeRateId()
public boolean isNotNullRateRequestId()
public boolean isNotNullBaseAmount()
public boolean isNotNullBaseCurrencyCode()
public boolean hasInquiryRateId()
public boolean hasDccApplied()
public boolean hasForeignCurrencyCode()
public boolean hasForeignAmount()
public boolean hasExchangeRate()
public boolean hasMarginRatePercentage()
public boolean hasExchangeRateSourceName()
public boolean hasExchangeRateSourceTimeStamp()
public boolean hasDccEligible()
public boolean hasExchangeRateId()
public boolean hasRateRequestId()
public boolean hasBaseAmount()
public boolean hasBaseCurrencyCode()
public DCCInfo setInquiryRateId(Long inquiryRateId)
public DCCInfo setForeignCurrencyCode(String foreignCurrencyCode)
public DCCInfo setForeignAmount(Long foreignAmount)
public DCCInfo setMarginRatePercentage(String marginRatePercentage)
public DCCInfo setExchangeRateSourceName(String exchangeRateSourceName)
public DCCInfo setExchangeRateSourceTimeStamp(String exchangeRateSourceTimeStamp)
public DCCInfo setExchangeRateId(String exchangeRateId)
public DCCInfo setRateRequestId(String rateRequestId)
public DCCInfo setBaseCurrencyCode(String baseCurrencyCode)
public void clearInquiryRateId()
public void clearDccApplied()
public void clearForeignCurrencyCode()
public void clearForeignAmount()
public void clearExchangeRate()
public void clearMarginRatePercentage()
public void clearExchangeRateSourceName()
public void clearExchangeRateSourceTimeStamp()
public void clearDccEligible()
public void clearExchangeRateId()
public void clearRateRequestId()
public void clearBaseAmount()
public void clearBaseCurrencyCode()
public boolean containsChanges()
public void resetChangeLog()
public DCCInfo copyChanges()
public void mergeChanges(DCCInfo src)