Package com.clover.sdk.v3.payments
Class EMIDetails
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.EMIDetails
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class EMIDetails 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
EMIDetails.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<EMIDetails>
CREATOR
static JSONifiable.Creator<EMIDetails>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description EMIDetails()
Constructs a new empty instance.protected
EMIDetails(boolean noInit)
Constructs a new empty instance.EMIDetails(EMIDetails src)
Constructs a new instance that is a deep copy of the source instance.EMIDetails(String json)
Constructs a new instance from the given JSON String.EMIDetails(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
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return falsevoid
clearEmiAmount()
Clears the 'emiAmount' field, the 'has' method for this field will now return falsevoid
clearFees()
Clears the 'fees' field, the 'has' method for this field will now return falsevoid
clearInterest()
Clears the 'interest' field, the 'has' method for this field will now return falsevoid
clearInterestRate()
Clears the 'interestRate' field, the 'has' method for this field will now return falsevoid
clearLenderLoanId()
Clears the 'lenderLoanId' field, the 'has' method for this field will now return falsevoid
clearLenderName()
Clears the 'lenderName' field, the 'has' method for this field will now return falsevoid
clearOfferCashback()
Clears the 'offerCashback' field, the 'has' method for this field will now return falsevoid
clearTenure()
Clears the 'tenure' field, the 'has' method for this field will now return falsevoid
clearTotalPayable()
Clears the 'totalPayable' field, the 'has' method for this field will now return falsevoid
clearTranAmount()
Clears the 'tranAmount' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.EMIDetails
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getDiscountAmount()
This field contains discount amount provided for EMIString
getEmiAmount()
This field contains EMI amount per monthString
getFees()
This field contains processing fee charged for EMIprotected GenericClient
getGenericClient()
String
getInterest()
This field contains interest amount charged as part of EMIString
getInterestRate()
This field contains interest rate charged as part of EMIJSONObject
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
getLenderLoanId()
This field contains lender loan id for the EMIString
getLenderName()
This field contains the EMI lender nameString
getOfferCashback()
This field contains offer cashback amount provided for EMIString
getTenure()
This field contains total EMI tenureString
getTotalPayable()
This field contains total payable amount i.e.String
getTranAmount()
This field contains total transaction amountboolean
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be nullboolean
hasEmiAmount()
Checks whether the 'emiAmount' field has been set, however the value could be nullboolean
hasFees()
Checks whether the 'fees' field has been set, however the value could be nullboolean
hasInterest()
Checks whether the 'interest' field has been set, however the value could be nullboolean
hasInterestRate()
Checks whether the 'interestRate' field has been set, however the value could be nullboolean
hasLenderLoanId()
Checks whether the 'lenderLoanId' field has been set, however the value could be nullboolean
hasLenderName()
Checks whether the 'lenderName' field has been set, however the value could be nullboolean
hasOfferCashback()
Checks whether the 'offerCashback' field has been set, however the value could be nullboolean
hasTenure()
Checks whether the 'tenure' field has been set, however the value could be nullboolean
hasTotalPayable()
Checks whether the 'totalPayable' field has been set, however the value could be nullboolean
hasTranAmount()
Checks whether the 'tranAmount' field has been set, however the value could be nullboolean
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not nullboolean
isNotNullEmiAmount()
Checks whether the 'emiAmount' field is set and is not nullboolean
isNotNullFees()
Checks whether the 'fees' field is set and is not nullboolean
isNotNullInterest()
Checks whether the 'interest' field is set and is not nullboolean
isNotNullInterestRate()
Checks whether the 'interestRate' field is set and is not nullboolean
isNotNullLenderLoanId()
Checks whether the 'lenderLoanId' field is set and is not nullboolean
isNotNullLenderName()
Checks whether the 'lenderName' field is set and is not nullboolean
isNotNullOfferCashback()
Checks whether the 'offerCashback' field is set and is not nullboolean
isNotNullTenure()
Checks whether the 'tenure' field is set and is not nullboolean
isNotNullTotalPayable()
Checks whether the 'totalPayable' field is set and is not nullboolean
isNotNullTranAmount()
Checks whether the 'tranAmount' field is set and is not nullvoid
mergeChanges(EMIDetails 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.EMIDetails
setDiscountAmount(String discountAmount)
Sets the field 'discountAmount'.EMIDetails
setEmiAmount(String emiAmount)
Sets the field 'emiAmount'.EMIDetails
setFees(String fees)
Sets the field 'fees'.EMIDetails
setInterest(String interest)
Sets the field 'interest'.EMIDetails
setInterestRate(String interestRate)
Sets the field 'interestRate'.EMIDetails
setLenderLoanId(String lenderLoanId)
Sets the field 'lenderLoanId'.EMIDetails
setLenderName(String lenderName)
Sets the field 'lenderName'.EMIDetails
setOfferCashback(String offerCashback)
Sets the field 'offerCashback'.EMIDetails
setTenure(String tenure)
Sets the field 'tenure'.EMIDetails
setTotalPayable(String totalPayable)
Sets the field 'totalPayable'.EMIDetails
setTranAmount(String tranAmount)
Sets the field 'tranAmount'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<EMIDetails> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<EMIDetails> JSON_CREATOR
-
-
Constructor Detail
-
EMIDetails
public EMIDetails()
Constructs a new empty instance.
-
EMIDetails
protected EMIDetails(boolean noInit)
Constructs a new empty instance.
-
EMIDetails
public EMIDetails(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
EMIDetails
public EMIDetails(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.
-
EMIDetails
public EMIDetails(EMIDetails src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getLenderName
public String getLenderName()
This field contains the EMI lender name
-
getTenure
public String getTenure()
This field contains total EMI tenure
-
getInterestRate
public String getInterestRate()
This field contains interest rate charged as part of EMI
-
getInterest
public String getInterest()
This field contains interest amount charged as part of EMI
-
getEmiAmount
public String getEmiAmount()
This field contains EMI amount per month
-
getLenderLoanId
public String getLenderLoanId()
This field contains lender loan id for the EMI
-
getFees
public String getFees()
This field contains processing fee charged for EMI
-
getDiscountAmount
public String getDiscountAmount()
This field contains discount amount provided for EMI
-
getOfferCashback
public String getOfferCashback()
This field contains offer cashback amount provided for EMI
-
getTranAmount
public String getTranAmount()
This field contains total transaction amount
-
getTotalPayable
public String getTotalPayable()
This field contains total payable amount i.e. total EMI with interest
-
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
-
isNotNullLenderName
public boolean isNotNullLenderName()
Checks whether the 'lenderName' field is set and is not null
-
isNotNullTenure
public boolean isNotNullTenure()
Checks whether the 'tenure' field is set and is not null
-
isNotNullInterestRate
public boolean isNotNullInterestRate()
Checks whether the 'interestRate' field is set and is not null
-
isNotNullInterest
public boolean isNotNullInterest()
Checks whether the 'interest' field is set and is not null
-
isNotNullEmiAmount
public boolean isNotNullEmiAmount()
Checks whether the 'emiAmount' field is set and is not null
-
isNotNullLenderLoanId
public boolean isNotNullLenderLoanId()
Checks whether the 'lenderLoanId' field is set and is not null
-
isNotNullFees
public boolean isNotNullFees()
Checks whether the 'fees' field is set and is not null
-
isNotNullDiscountAmount
public boolean isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
-
isNotNullOfferCashback
public boolean isNotNullOfferCashback()
Checks whether the 'offerCashback' field is set and is not null
-
isNotNullTranAmount
public boolean isNotNullTranAmount()
Checks whether the 'tranAmount' field is set and is not null
-
isNotNullTotalPayable
public boolean isNotNullTotalPayable()
Checks whether the 'totalPayable' field is set and is not null
-
hasLenderName
public boolean hasLenderName()
Checks whether the 'lenderName' field has been set, however the value could be null
-
hasTenure
public boolean hasTenure()
Checks whether the 'tenure' field has been set, however the value could be null
-
hasInterestRate
public boolean hasInterestRate()
Checks whether the 'interestRate' field has been set, however the value could be null
-
hasInterest
public boolean hasInterest()
Checks whether the 'interest' field has been set, however the value could be null
-
hasEmiAmount
public boolean hasEmiAmount()
Checks whether the 'emiAmount' field has been set, however the value could be null
-
hasLenderLoanId
public boolean hasLenderLoanId()
Checks whether the 'lenderLoanId' field has been set, however the value could be null
-
hasFees
public boolean hasFees()
Checks whether the 'fees' field has been set, however the value could be null
-
hasDiscountAmount
public boolean hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
-
hasOfferCashback
public boolean hasOfferCashback()
Checks whether the 'offerCashback' field has been set, however the value could be null
-
hasTranAmount
public boolean hasTranAmount()
Checks whether the 'tranAmount' field has been set, however the value could be null
-
hasTotalPayable
public boolean hasTotalPayable()
Checks whether the 'totalPayable' field has been set, however the value could be null
-
setLenderName
public EMIDetails setLenderName(String lenderName)
Sets the field 'lenderName'.
-
setTenure
public EMIDetails setTenure(String tenure)
Sets the field 'tenure'.
-
setInterestRate
public EMIDetails setInterestRate(String interestRate)
Sets the field 'interestRate'.
-
setInterest
public EMIDetails setInterest(String interest)
Sets the field 'interest'.
-
setEmiAmount
public EMIDetails setEmiAmount(String emiAmount)
Sets the field 'emiAmount'.
-
setLenderLoanId
public EMIDetails setLenderLoanId(String lenderLoanId)
Sets the field 'lenderLoanId'.
-
setFees
public EMIDetails setFees(String fees)
Sets the field 'fees'.
-
setDiscountAmount
public EMIDetails setDiscountAmount(String discountAmount)
Sets the field 'discountAmount'.
-
setOfferCashback
public EMIDetails setOfferCashback(String offerCashback)
Sets the field 'offerCashback'.
-
setTranAmount
public EMIDetails setTranAmount(String tranAmount)
Sets the field 'tranAmount'.
-
setTotalPayable
public EMIDetails setTotalPayable(String totalPayable)
Sets the field 'totalPayable'.
-
clearLenderName
public void clearLenderName()
Clears the 'lenderName' field, the 'has' method for this field will now return false
-
clearTenure
public void clearTenure()
Clears the 'tenure' field, the 'has' method for this field will now return false
-
clearInterestRate
public void clearInterestRate()
Clears the 'interestRate' field, the 'has' method for this field will now return false
-
clearInterest
public void clearInterest()
Clears the 'interest' field, the 'has' method for this field will now return false
-
clearEmiAmount
public void clearEmiAmount()
Clears the 'emiAmount' field, the 'has' method for this field will now return false
-
clearLenderLoanId
public void clearLenderLoanId()
Clears the 'lenderLoanId' field, the 'has' method for this field will now return false
-
clearFees
public void clearFees()
Clears the 'fees' field, the 'has' method for this field will now return false
-
clearDiscountAmount
public void clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
-
clearOfferCashback
public void clearOfferCashback()
Clears the 'offerCashback' field, the 'has' method for this field will now return false
-
clearTranAmount
public void clearTranAmount()
Clears the 'tranAmount' field, the 'has' method for this field will now return false
-
clearTotalPayable
public void clearTotalPayable()
Clears the 'totalPayable' 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 EMIDetails copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(EMIDetails src)
Copy all the changed fields from the given source to this instance.
-
-