Class LoanTransactionDataV1

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.loan.v1.LoanTransactionDataV1
All Implemented Interfaces:
Externalizable, Serializable, Comparable<org.apache.avro.specific.SpecificRecord>, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.GenericRecord, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord, ByteBufferSerializable

public class LoanTransactionDataV1 extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
See Also:
  • Field Details

    • SCHEMA$

      public static final org.apache.avro.Schema SCHEMA$
  • Constructor Details

    • LoanTransactionDataV1

      public LoanTransactionDataV1()
      Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder().
    • LoanTransactionDataV1

      public LoanTransactionDataV1(Long id, Long loanId, String externalLoanId, Long officeId, String officeName, LoanTransactionEnumDataV1 type, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal netDisbursalAmount, BigDecimal principalPortion, BigDecimal interestPortion, BigDecimal feeChargesPortion, BigDecimal penaltyChargesPortion, BigDecimal overpaymentPortion, BigDecimal unrecognizedIncomePortion, String externalId, String externalOwnerId, AccountTransferDataV1 transfer, BigDecimal fixedEmiAmount, BigDecimal outstandingLoanBalance, String submittedOnDate, Boolean manuallyReversed, String possibleNextRepaymentDate, List<LoanChargePaidByDataV1> loanChargePaidByList, List<LoanTransactionRelationDataV1> transactionRelations, List<UnpaidChargeDataV1> unpaidCharges, String reversedOnDate, Map<String,ByteBuffer> customData, Boolean reversed, CodeValueDataV1 classification)
      All-args constructor.
      Parameters:
      id - The new value for id
      loanId - The new value for loanId
      externalLoanId - The new value for externalLoanId
      officeId - The new value for officeId
      officeName - The new value for officeName
      type - The new value for type
      date - The new value for date
      currency - The new value for currency
      paymentDetailData - The new value for paymentDetailData
      amount - The new value for amount
      netDisbursalAmount - The new value for netDisbursalAmount
      principalPortion - The new value for principalPortion
      interestPortion - The new value for interestPortion
      feeChargesPortion - The new value for feeChargesPortion
      penaltyChargesPortion - The new value for penaltyChargesPortion
      overpaymentPortion - The new value for overpaymentPortion
      unrecognizedIncomePortion - The new value for unrecognizedIncomePortion
      externalId - The new value for externalId
      externalOwnerId - The new value for externalOwnerId
      transfer - The new value for transfer
      fixedEmiAmount - The new value for fixedEmiAmount
      outstandingLoanBalance - The new value for outstandingLoanBalance
      submittedOnDate - The new value for submittedOnDate
      manuallyReversed - The new value for manuallyReversed
      possibleNextRepaymentDate - The new value for possibleNextRepaymentDate
      loanChargePaidByList - The new value for loanChargePaidByList
      transactionRelations - The new value for transactionRelations
      unpaidCharges - Only used for Charge-off transaction
      reversedOnDate - The new value for reversedOnDate
      customData - The new value for customData
      reversed - The new value for reversed
      classification - The new value for classification
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getEncoder

      public static org.apache.avro.message.BinaryMessageEncoder<LoanTransactionDataV1> getEncoder()
      Return the BinaryMessageEncoder instance used by this class.
      Returns:
      the message encoder used by this class
    • getDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<LoanTransactionDataV1> getDecoder()
      Return the BinaryMessageDecoder instance used by this class.
      Returns:
      the message decoder used by this class
    • createDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<LoanTransactionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver)
      Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
      Parameters:
      resolver - a SchemaStore used to find schemas by fingerprint
      Returns:
      a BinaryMessageDecoder instance for this class backed by the given SchemaStore
    • toByteBuffer

      public ByteBuffer toByteBuffer() throws IOException
      Serializes this LoanTransactionDataV1 to a ByteBuffer.
      Specified by:
      toByteBuffer in interface ByteBufferSerializable
      Returns:
      a buffer holding the serialized data for this instance
      Throws:
      IOException - if this instance could not be serialized
    • fromByteBuffer

      public static LoanTransactionDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      Deserializes a LoanTransactionDataV1 from a ByteBuffer.
      Parameters:
      b - a byte buffer holding serialized data for an instance of this class
      Returns:
      a LoanTransactionDataV1 instance decoded from the given buffer
      Throws:
      IOException - if the given bytes could not be deserialized into an instance of this class
    • getSpecificData

      public org.apache.avro.specific.SpecificData getSpecificData()
      Overrides:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • getId

      public Long getId()
      Gets the value of the 'id' field.
      Returns:
      The value of the 'id' field.
    • setId

      public void setId(Long value)
      Sets the value of the 'id' field.
      Parameters:
      value - the value to set.
    • getLoanId

      public Long getLoanId()
      Gets the value of the 'loanId' field.
      Returns:
      The value of the 'loanId' field.
    • setLoanId

      public void setLoanId(Long value)
      Sets the value of the 'loanId' field.
      Parameters:
      value - the value to set.
    • getExternalLoanId

      public String getExternalLoanId()
      Gets the value of the 'externalLoanId' field.
      Returns:
      The value of the 'externalLoanId' field.
    • setExternalLoanId

      public void setExternalLoanId(String value)
      Sets the value of the 'externalLoanId' field.
      Parameters:
      value - the value to set.
    • getOfficeId

      public Long getOfficeId()
      Gets the value of the 'officeId' field.
      Returns:
      The value of the 'officeId' field.
    • setOfficeId

      public void setOfficeId(Long value)
      Sets the value of the 'officeId' field.
      Parameters:
      value - the value to set.
    • getOfficeName

      public String getOfficeName()
      Gets the value of the 'officeName' field.
      Returns:
      The value of the 'officeName' field.
    • setOfficeName

      public void setOfficeName(String value)
      Sets the value of the 'officeName' field.
      Parameters:
      value - the value to set.
    • getType

      public LoanTransactionEnumDataV1 getType()
      Gets the value of the 'type' field.
      Returns:
      The value of the 'type' field.
    • setType

      public void setType(LoanTransactionEnumDataV1 value)
      Sets the value of the 'type' field.
      Parameters:
      value - the value to set.
    • getDate

      public String getDate()
      Gets the value of the 'date' field.
      Returns:
      The value of the 'date' field.
    • setDate

      public void setDate(String value)
      Sets the value of the 'date' field.
      Parameters:
      value - the value to set.
    • getCurrency

      public CurrencyDataV1 getCurrency()
      Gets the value of the 'currency' field.
      Returns:
      The value of the 'currency' field.
    • setCurrency

      public void setCurrency(CurrencyDataV1 value)
      Sets the value of the 'currency' field.
      Parameters:
      value - the value to set.
    • getPaymentDetailData

      public PaymentDetailDataV1 getPaymentDetailData()
      Gets the value of the 'paymentDetailData' field.
      Returns:
      The value of the 'paymentDetailData' field.
    • setPaymentDetailData

      public void setPaymentDetailData(PaymentDetailDataV1 value)
      Sets the value of the 'paymentDetailData' field.
      Parameters:
      value - the value to set.
    • getAmount

      public BigDecimal getAmount()
      Gets the value of the 'amount' field.
      Returns:
      The value of the 'amount' field.
    • setAmount

      public void setAmount(BigDecimal value)
      Sets the value of the 'amount' field.
      Parameters:
      value - the value to set.
    • getNetDisbursalAmount

      public BigDecimal getNetDisbursalAmount()
      Gets the value of the 'netDisbursalAmount' field.
      Returns:
      The value of the 'netDisbursalAmount' field.
    • setNetDisbursalAmount

      public void setNetDisbursalAmount(BigDecimal value)
      Sets the value of the 'netDisbursalAmount' field.
      Parameters:
      value - the value to set.
    • getPrincipalPortion

      public BigDecimal getPrincipalPortion()
      Gets the value of the 'principalPortion' field.
      Returns:
      The value of the 'principalPortion' field.
    • setPrincipalPortion

      public void setPrincipalPortion(BigDecimal value)
      Sets the value of the 'principalPortion' field.
      Parameters:
      value - the value to set.
    • getInterestPortion

      public BigDecimal getInterestPortion()
      Gets the value of the 'interestPortion' field.
      Returns:
      The value of the 'interestPortion' field.
    • setInterestPortion

      public void setInterestPortion(BigDecimal value)
      Sets the value of the 'interestPortion' field.
      Parameters:
      value - the value to set.
    • getFeeChargesPortion

      public BigDecimal getFeeChargesPortion()
      Gets the value of the 'feeChargesPortion' field.
      Returns:
      The value of the 'feeChargesPortion' field.
    • setFeeChargesPortion

      public void setFeeChargesPortion(BigDecimal value)
      Sets the value of the 'feeChargesPortion' field.
      Parameters:
      value - the value to set.
    • getPenaltyChargesPortion

      public BigDecimal getPenaltyChargesPortion()
      Gets the value of the 'penaltyChargesPortion' field.
      Returns:
      The value of the 'penaltyChargesPortion' field.
    • setPenaltyChargesPortion

      public void setPenaltyChargesPortion(BigDecimal value)
      Sets the value of the 'penaltyChargesPortion' field.
      Parameters:
      value - the value to set.
    • getOverpaymentPortion

      public BigDecimal getOverpaymentPortion()
      Gets the value of the 'overpaymentPortion' field.
      Returns:
      The value of the 'overpaymentPortion' field.
    • setOverpaymentPortion

      public void setOverpaymentPortion(BigDecimal value)
      Sets the value of the 'overpaymentPortion' field.
      Parameters:
      value - the value to set.
    • getUnrecognizedIncomePortion

      public BigDecimal getUnrecognizedIncomePortion()
      Gets the value of the 'unrecognizedIncomePortion' field.
      Returns:
      The value of the 'unrecognizedIncomePortion' field.
    • setUnrecognizedIncomePortion

      public void setUnrecognizedIncomePortion(BigDecimal value)
      Sets the value of the 'unrecognizedIncomePortion' field.
      Parameters:
      value - the value to set.
    • getExternalId

      public String getExternalId()
      Gets the value of the 'externalId' field.
      Returns:
      The value of the 'externalId' field.
    • setExternalId

      public void setExternalId(String value)
      Sets the value of the 'externalId' field.
      Parameters:
      value - the value to set.
    • getExternalOwnerId

      public String getExternalOwnerId()
      Gets the value of the 'externalOwnerId' field.
      Returns:
      The value of the 'externalOwnerId' field.
    • setExternalOwnerId

      public void setExternalOwnerId(String value)
      Sets the value of the 'externalOwnerId' field.
      Parameters:
      value - the value to set.
    • getTransfer

      public AccountTransferDataV1 getTransfer()
      Gets the value of the 'transfer' field.
      Returns:
      The value of the 'transfer' field.
    • setTransfer

      public void setTransfer(AccountTransferDataV1 value)
      Sets the value of the 'transfer' field.
      Parameters:
      value - the value to set.
    • getFixedEmiAmount

      public BigDecimal getFixedEmiAmount()
      Gets the value of the 'fixedEmiAmount' field.
      Returns:
      The value of the 'fixedEmiAmount' field.
    • setFixedEmiAmount

      public void setFixedEmiAmount(BigDecimal value)
      Sets the value of the 'fixedEmiAmount' field.
      Parameters:
      value - the value to set.
    • getOutstandingLoanBalance

      public BigDecimal getOutstandingLoanBalance()
      Gets the value of the 'outstandingLoanBalance' field.
      Returns:
      The value of the 'outstandingLoanBalance' field.
    • setOutstandingLoanBalance

      public void setOutstandingLoanBalance(BigDecimal value)
      Sets the value of the 'outstandingLoanBalance' field.
      Parameters:
      value - the value to set.
    • getSubmittedOnDate

      public String getSubmittedOnDate()
      Gets the value of the 'submittedOnDate' field.
      Returns:
      The value of the 'submittedOnDate' field.
    • setSubmittedOnDate

      public void setSubmittedOnDate(String value)
      Sets the value of the 'submittedOnDate' field.
      Parameters:
      value - the value to set.
    • getManuallyReversed

      public Boolean getManuallyReversed()
      Gets the value of the 'manuallyReversed' field.
      Returns:
      The value of the 'manuallyReversed' field.
    • setManuallyReversed

      public void setManuallyReversed(Boolean value)
      Sets the value of the 'manuallyReversed' field.
      Parameters:
      value - the value to set.
    • getPossibleNextRepaymentDate

      public String getPossibleNextRepaymentDate()
      Gets the value of the 'possibleNextRepaymentDate' field.
      Returns:
      The value of the 'possibleNextRepaymentDate' field.
    • setPossibleNextRepaymentDate

      public void setPossibleNextRepaymentDate(String value)
      Sets the value of the 'possibleNextRepaymentDate' field.
      Parameters:
      value - the value to set.
    • getLoanChargePaidByList

      public List<LoanChargePaidByDataV1> getLoanChargePaidByList()
      Gets the value of the 'loanChargePaidByList' field.
      Returns:
      The value of the 'loanChargePaidByList' field.
    • setLoanChargePaidByList

      public void setLoanChargePaidByList(List<LoanChargePaidByDataV1> value)
      Sets the value of the 'loanChargePaidByList' field.
      Parameters:
      value - the value to set.
    • getTransactionRelations

      public List<LoanTransactionRelationDataV1> getTransactionRelations()
      Gets the value of the 'transactionRelations' field.
      Returns:
      The value of the 'transactionRelations' field.
    • setTransactionRelations

      public void setTransactionRelations(List<LoanTransactionRelationDataV1> value)
      Sets the value of the 'transactionRelations' field.
      Parameters:
      value - the value to set.
    • getUnpaidCharges

      public List<UnpaidChargeDataV1> getUnpaidCharges()
      Gets the value of the 'unpaidCharges' field.
      Returns:
      Only used for Charge-off transaction
    • setUnpaidCharges

      public void setUnpaidCharges(List<UnpaidChargeDataV1> value)
      Sets the value of the 'unpaidCharges' field. Only used for Charge-off transaction
      Parameters:
      value - the value to set.
    • getReversedOnDate

      public String getReversedOnDate()
      Gets the value of the 'reversedOnDate' field.
      Returns:
      The value of the 'reversedOnDate' field.
    • setReversedOnDate

      public void setReversedOnDate(String value)
      Sets the value of the 'reversedOnDate' field.
      Parameters:
      value - the value to set.
    • getCustomData

      public Map<String,ByteBuffer> getCustomData()
      Gets the value of the 'customData' field.
      Returns:
      The value of the 'customData' field.
    • setCustomData

      public void setCustomData(Map<String,ByteBuffer> value)
      Sets the value of the 'customData' field.
      Parameters:
      value - the value to set.
    • getReversed

      public Boolean getReversed()
      Gets the value of the 'reversed' field.
      Returns:
      The value of the 'reversed' field.
    • setReversed

      public void setReversed(Boolean value)
      Sets the value of the 'reversed' field.
      Parameters:
      value - the value to set.
    • getClassification

      public CodeValueDataV1 getClassification()
      Gets the value of the 'classification' field.
      Returns:
      The value of the 'classification' field.
    • setClassification

      public void setClassification(CodeValueDataV1 value)
      Sets the value of the 'classification' field.
      Parameters:
      value - the value to set.
    • newBuilder

      public static LoanTransactionDataV1.Builder newBuilder()
      Creates a new LoanTransactionDataV1 RecordBuilder.
      Returns:
      A new LoanTransactionDataV1 RecordBuilder
    • newBuilder

      Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing Builder.
      Parameters:
      other - The existing builder to copy.
      Returns:
      A new LoanTransactionDataV1 RecordBuilder
    • newBuilder

      public static LoanTransactionDataV1.Builder newBuilder(LoanTransactionDataV1 other)
      Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing LoanTransactionDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new LoanTransactionDataV1 RecordBuilder
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException