Class EMIDetails

    • Constructor Detail

      • EMIDetails

        public EMIDetails()
        Constructs a new empty instance.
      • EMIDetails

        protected EMIDetails​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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'.
      • 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.