Package com.clover.sdk.v3.payments
Class PaymentEmiInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.PaymentEmiInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PaymentEmiInfo 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
PaymentEmiInfo.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<PaymentEmiInfo>
CREATOR
static JSONifiable.Creator<PaymentEmiInfo>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PaymentEmiInfo()
Constructs a new empty instance.protected
PaymentEmiInfo(boolean noInit)
Constructs a new empty instance.PaymentEmiInfo(PaymentEmiInfo src)
Constructs a new instance that is a deep copy of the source instance.PaymentEmiInfo(String json)
Constructs a new instance from the given JSON String.PaymentEmiInfo(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
clearAmountPerMonth()
Clears the 'amountPerMonth' field, the 'has' method for this field will now return falsevoid
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return falsevoid
clearIndicator()
Clears the 'indicator' field, the 'has' method for this field will now return falsevoid
clearInterestAmount()
Clears the 'interestAmount' 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
clearMobileNumber()
Clears the 'mobileNumber' field, the 'has' method for this field will now return falsevoid
clearProcessingFee()
Clears the 'processingFee' field, the 'has' method for this field will now return falsevoid
clearProductAmount()
Clears the 'productAmount' 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
clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return falsevoid
clearTransactionAmount()
Clears the 'transactionAmount' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.PaymentEmiInfo
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getAmountPerMonth()
Transaction amount per monthLong
getDiscountAmount()
Discount offered for the productprotected GenericClient
getGenericClient()
String
getIndicator()
EMI IndicatorLong
getInterestAmount()
EMI transaction interest amountDouble
getInterestRate()
EMI transaction interest rateJSONObject
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
getMobileNumber()
Customer’s mobile phone numberLong
getProcessingFee()
The processing fee for EMI transactionLong
getProductAmount()
Full product amount (without discount)Integer
getTenure()
Tenure in monthsLong
getTotalAmount()
Total amount to be paid by a customer, i.e., EMI per month * TenureLong
getTransactionAmount()
Transaction Amount, i.e., Product Amount - Discountboolean
hasAmountPerMonth()
Checks whether the 'amountPerMonth' field has been set, however the value could be nullboolean
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be nullboolean
hasIndicator()
Checks whether the 'indicator' field has been set, however the value could be nullboolean
hasInterestAmount()
Checks whether the 'interestAmount' 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
hasMobileNumber()
Checks whether the 'mobileNumber' field has been set, however the value could be nullboolean
hasProcessingFee()
Checks whether the 'processingFee' field has been set, however the value could be nullboolean
hasProductAmount()
Checks whether the 'productAmount' 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
hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be nullboolean
hasTransactionAmount()
Checks whether the 'transactionAmount' field has been set, however the value could be nullboolean
isNotNullAmountPerMonth()
Checks whether the 'amountPerMonth' field is set and is not nullboolean
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not nullboolean
isNotNullIndicator()
Checks whether the 'indicator' field is set and is not nullboolean
isNotNullInterestAmount()
Checks whether the 'interestAmount' field is set and is not nullboolean
isNotNullInterestRate()
Checks whether the 'interestRate' field is set and is not nullboolean
isNotNullMobileNumber()
Checks whether the 'mobileNumber' field is set and is not nullboolean
isNotNullProcessingFee()
Checks whether the 'processingFee' field is set and is not nullboolean
isNotNullProductAmount()
Checks whether the 'productAmount' field is set and is not nullboolean
isNotNullTenure()
Checks whether the 'tenure' field is set and is not nullboolean
isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not nullboolean
isNotNullTransactionAmount()
Checks whether the 'transactionAmount' field is set and is not nullvoid
mergeChanges(PaymentEmiInfo 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.PaymentEmiInfo
setAmountPerMonth(Long amountPerMonth)
Sets the field 'amountPerMonth'.PaymentEmiInfo
setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.PaymentEmiInfo
setIndicator(String indicator)
Sets the field 'indicator'.PaymentEmiInfo
setInterestAmount(Long interestAmount)
Sets the field 'interestAmount'.PaymentEmiInfo
setInterestRate(Double interestRate)
Sets the field 'interestRate'.PaymentEmiInfo
setMobileNumber(String mobileNumber)
Sets the field 'mobileNumber'.PaymentEmiInfo
setProcessingFee(Long processingFee)
Sets the field 'processingFee'.PaymentEmiInfo
setProductAmount(Long productAmount)
Sets the field 'productAmount'.PaymentEmiInfo
setTenure(Integer tenure)
Sets the field 'tenure'.PaymentEmiInfo
setTotalAmount(Long totalAmount)
Sets the field 'totalAmount'.PaymentEmiInfo
setTransactionAmount(Long transactionAmount)
Sets the field 'transactionAmount'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PaymentEmiInfo> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PaymentEmiInfo> JSON_CREATOR
-
-
Constructor Detail
-
PaymentEmiInfo
public PaymentEmiInfo()
Constructs a new empty instance.
-
PaymentEmiInfo
protected PaymentEmiInfo(boolean noInit)
Constructs a new empty instance.
-
PaymentEmiInfo
public PaymentEmiInfo(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PaymentEmiInfo
public PaymentEmiInfo(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.
-
PaymentEmiInfo
public PaymentEmiInfo(PaymentEmiInfo src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getMobileNumber
public String getMobileNumber()
Customer’s mobile phone number
-
getIndicator
public String getIndicator()
EMI Indicator
-
getTransactionAmount
public Long getTransactionAmount()
Transaction Amount, i.e., Product Amount - Discount
-
getProductAmount
public Long getProductAmount()
Full product amount (without discount)
-
getDiscountAmount
public Long getDiscountAmount()
Discount offered for the product
-
getTenure
public Integer getTenure()
Tenure in months
-
getInterestRate
public Double getInterestRate()
EMI transaction interest rate
-
getInterestAmount
public Long getInterestAmount()
EMI transaction interest amount
-
getProcessingFee
public Long getProcessingFee()
The processing fee for EMI transaction
-
getTotalAmount
public Long getTotalAmount()
Total amount to be paid by a customer, i.e., EMI per month * Tenure
-
getAmountPerMonth
public Long getAmountPerMonth()
Transaction amount per month
-
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
-
isNotNullMobileNumber
public boolean isNotNullMobileNumber()
Checks whether the 'mobileNumber' field is set and is not null
-
isNotNullIndicator
public boolean isNotNullIndicator()
Checks whether the 'indicator' field is set and is not null
-
isNotNullTransactionAmount
public boolean isNotNullTransactionAmount()
Checks whether the 'transactionAmount' field is set and is not null
-
isNotNullProductAmount
public boolean isNotNullProductAmount()
Checks whether the 'productAmount' field is set and is not null
-
isNotNullDiscountAmount
public boolean isNotNullDiscountAmount()
Checks whether the 'discountAmount' 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
-
isNotNullInterestAmount
public boolean isNotNullInterestAmount()
Checks whether the 'interestAmount' field is set and is not null
-
isNotNullProcessingFee
public boolean isNotNullProcessingFee()
Checks whether the 'processingFee' field is set and is not null
-
isNotNullTotalAmount
public boolean isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not null
-
isNotNullAmountPerMonth
public boolean isNotNullAmountPerMonth()
Checks whether the 'amountPerMonth' field is set and is not null
-
hasMobileNumber
public boolean hasMobileNumber()
Checks whether the 'mobileNumber' field has been set, however the value could be null
-
hasIndicator
public boolean hasIndicator()
Checks whether the 'indicator' field has been set, however the value could be null
-
hasTransactionAmount
public boolean hasTransactionAmount()
Checks whether the 'transactionAmount' field has been set, however the value could be null
-
hasProductAmount
public boolean hasProductAmount()
Checks whether the 'productAmount' 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
-
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
-
hasInterestAmount
public boolean hasInterestAmount()
Checks whether the 'interestAmount' field has been set, however the value could be null
-
hasProcessingFee
public boolean hasProcessingFee()
Checks whether the 'processingFee' field has been set, however the value could be null
-
hasTotalAmount
public boolean hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be null
-
hasAmountPerMonth
public boolean hasAmountPerMonth()
Checks whether the 'amountPerMonth' field has been set, however the value could be null
-
setMobileNumber
public PaymentEmiInfo setMobileNumber(String mobileNumber)
Sets the field 'mobileNumber'.
-
setIndicator
public PaymentEmiInfo setIndicator(String indicator)
Sets the field 'indicator'.
-
setTransactionAmount
public PaymentEmiInfo setTransactionAmount(Long transactionAmount)
Sets the field 'transactionAmount'.
-
setProductAmount
public PaymentEmiInfo setProductAmount(Long productAmount)
Sets the field 'productAmount'.
-
setDiscountAmount
public PaymentEmiInfo setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.
-
setTenure
public PaymentEmiInfo setTenure(Integer tenure)
Sets the field 'tenure'.
-
setInterestRate
public PaymentEmiInfo setInterestRate(Double interestRate)
Sets the field 'interestRate'.
-
setInterestAmount
public PaymentEmiInfo setInterestAmount(Long interestAmount)
Sets the field 'interestAmount'.
-
setProcessingFee
public PaymentEmiInfo setProcessingFee(Long processingFee)
Sets the field 'processingFee'.
-
setTotalAmount
public PaymentEmiInfo setTotalAmount(Long totalAmount)
Sets the field 'totalAmount'.
-
setAmountPerMonth
public PaymentEmiInfo setAmountPerMonth(Long amountPerMonth)
Sets the field 'amountPerMonth'.
-
clearMobileNumber
public void clearMobileNumber()
Clears the 'mobileNumber' field, the 'has' method for this field will now return false
-
clearIndicator
public void clearIndicator()
Clears the 'indicator' field, the 'has' method for this field will now return false
-
clearTransactionAmount
public void clearTransactionAmount()
Clears the 'transactionAmount' field, the 'has' method for this field will now return false
-
clearProductAmount
public void clearProductAmount()
Clears the 'productAmount' 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
-
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
-
clearInterestAmount
public void clearInterestAmount()
Clears the 'interestAmount' field, the 'has' method for this field will now return false
-
clearProcessingFee
public void clearProcessingFee()
Clears the 'processingFee' field, the 'has' method for this field will now return false
-
clearTotalAmount
public void clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return false
-
clearAmountPerMonth
public void clearAmountPerMonth()
Clears the 'amountPerMonth' 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 PaymentEmiInfo copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PaymentEmiInfo src)
Copy all the changed fields from the given source to this instance.
-
-