public class PaymentEmiInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
PaymentEmiInfo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PaymentEmiInfo> |
CREATOR |
static JSONifiable.Creator<PaymentEmiInfo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
PaymentEmiInfo()
Constructs a new empty instance.
|
protected |
PaymentEmiInfo(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAmountPerMonth()
Clears the 'amountPerMonth' field, the 'has' method for this field will now return false
|
void |
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
|
void |
clearIndicator()
Clears the 'indicator' field, the 'has' method for this field will now return false
|
void |
clearInterestAmount()
Clears the 'interestAmount' field, the 'has' method for this field will now return false
|
void |
clearInterestRate()
Clears the 'interestRate' field, the 'has' method for this field will now return false
|
void |
clearMobileNumber()
Clears the 'mobileNumber' field, the 'has' method for this field will now return false
|
void |
clearProcessingFee()
Clears the 'processingFee' field, the 'has' method for this field will now return false
|
void |
clearProductAmount()
Clears the 'productAmount' field, the 'has' method for this field will now return false
|
void |
clearTenure()
Clears the 'tenure' field, the 'has' method for this field will now return false
|
void |
clearTotalAmount()
Clears the 'totalAmount' field, the 'has' method for this field will now return false
|
void |
clearTransactionAmount()
Clears the 'transactionAmount' field, the 'has' method for this field will now return false
|
boolean |
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 month
|
Long |
getDiscountAmount()
Discount offered for the product
|
protected GenericClient |
getGenericClient() |
String |
getIndicator()
EMI Indicator
|
Long |
getInterestAmount()
EMI transaction interest amount
|
Double |
getInterestRate()
EMI transaction interest rate
|
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 |
getMobileNumber()
Customer’s mobile phone number
|
Long |
getProcessingFee()
The processing fee for EMI transaction
|
Long |
getProductAmount()
Full product amount (without discount)
|
Integer |
getTenure()
Tenure in months
|
Long |
getTotalAmount()
Total amount to be paid by a customer, i.e., EMI per month * Tenure
|
Long |
getTransactionAmount()
Transaction Amount, i.e., Product Amount - Discount
|
boolean |
hasAmountPerMonth()
Checks whether the 'amountPerMonth' field has been set, however the value could be null
|
boolean |
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
|
boolean |
hasIndicator()
Checks whether the 'indicator' field has been set, however the value could be null
|
boolean |
hasInterestAmount()
Checks whether the 'interestAmount' field has been set, however the value could be null
|
boolean |
hasInterestRate()
Checks whether the 'interestRate' field has been set, however the value could be null
|
boolean |
hasMobileNumber()
Checks whether the 'mobileNumber' field has been set, however the value could be null
|
boolean |
hasProcessingFee()
Checks whether the 'processingFee' field has been set, however the value could be null
|
boolean |
hasProductAmount()
Checks whether the 'productAmount' field has been set, however the value could be null
|
boolean |
hasTenure()
Checks whether the 'tenure' field has been set, however the value could be null
|
boolean |
hasTotalAmount()
Checks whether the 'totalAmount' field has been set, however the value could be null
|
boolean |
hasTransactionAmount()
Checks whether the 'transactionAmount' field has been set, however the value could be null
|
boolean |
isNotNullAmountPerMonth()
Checks whether the 'amountPerMonth' field is set and is not null
|
boolean |
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
|
boolean |
isNotNullIndicator()
Checks whether the 'indicator' field is set and is not null
|
boolean |
isNotNullInterestAmount()
Checks whether the 'interestAmount' field is set and is not null
|
boolean |
isNotNullInterestRate()
Checks whether the 'interestRate' field is set and is not null
|
boolean |
isNotNullMobileNumber()
Checks whether the 'mobileNumber' field is set and is not null
|
boolean |
isNotNullProcessingFee()
Checks whether the 'processingFee' field is set and is not null
|
boolean |
isNotNullProductAmount()
Checks whether the 'productAmount' field is set and is not null
|
boolean |
isNotNullTenure()
Checks whether the 'tenure' field is set and is not null
|
boolean |
isNotNullTotalAmount()
Checks whether the 'totalAmount' field is set and is not null
|
boolean |
isNotNullTransactionAmount()
Checks whether the 'transactionAmount' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<PaymentEmiInfo> CREATOR
public static final JSONifiable.Creator<PaymentEmiInfo> JSON_CREATOR
public PaymentEmiInfo()
protected PaymentEmiInfo(boolean noInit)
public PaymentEmiInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public PaymentEmiInfo(JSONObject jsonObject)
public PaymentEmiInfo(PaymentEmiInfo src)
public String getMobileNumber()
public String getIndicator()
public Long getTransactionAmount()
public Long getProductAmount()
public Long getDiscountAmount()
public Integer getTenure()
public Double getInterestRate()
public Long getInterestAmount()
public Long getProcessingFee()
public Long getTotalAmount()
public Long getAmountPerMonth()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullMobileNumber()
public boolean isNotNullIndicator()
public boolean isNotNullTransactionAmount()
public boolean isNotNullProductAmount()
public boolean isNotNullDiscountAmount()
public boolean isNotNullTenure()
public boolean isNotNullInterestRate()
public boolean isNotNullInterestAmount()
public boolean isNotNullProcessingFee()
public boolean isNotNullTotalAmount()
public boolean isNotNullAmountPerMonth()
public boolean hasMobileNumber()
public boolean hasIndicator()
public boolean hasTransactionAmount()
public boolean hasProductAmount()
public boolean hasDiscountAmount()
public boolean hasTenure()
public boolean hasInterestRate()
public boolean hasInterestAmount()
public boolean hasProcessingFee()
public boolean hasTotalAmount()
public boolean hasAmountPerMonth()
public PaymentEmiInfo setMobileNumber(String mobileNumber)
public PaymentEmiInfo setIndicator(String indicator)
public PaymentEmiInfo setTransactionAmount(Long transactionAmount)
public PaymentEmiInfo setProductAmount(Long productAmount)
public PaymentEmiInfo setDiscountAmount(Long discountAmount)
public PaymentEmiInfo setTenure(Integer tenure)
public PaymentEmiInfo setInterestRate(Double interestRate)
public PaymentEmiInfo setInterestAmount(Long interestAmount)
public PaymentEmiInfo setProcessingFee(Long processingFee)
public PaymentEmiInfo setTotalAmount(Long totalAmount)
public PaymentEmiInfo setAmountPerMonth(Long amountPerMonth)
public void clearMobileNumber()
public void clearIndicator()
public void clearTransactionAmount()
public void clearProductAmount()
public void clearDiscountAmount()
public void clearTenure()
public void clearInterestRate()
public void clearInterestAmount()
public void clearProcessingFee()
public void clearTotalAmount()
public void clearAmountPerMonth()
public boolean containsChanges()
public void resetChangeLog()
public PaymentEmiInfo copyChanges()
public void mergeChanges(PaymentEmiInfo src)