Class PaymentEmiInfo

    • Constructor Detail

      • PaymentEmiInfo

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

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