Class SavingsAccountTransactionDataV1

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.savings.v1.SavingsAccountTransactionDataV1
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 SavingsAccountTransactionDataV1 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

    • SavingsAccountTransactionDataV1

      public SavingsAccountTransactionDataV1()
      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().
    • SavingsAccountTransactionDataV1

      public SavingsAccountTransactionDataV1(Long id, SavingsAccountTransactionEnumDataV1 transactionType, Long accountId, String accountNo, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal outstandingChargeAmount, BigDecimal runningBalance, Boolean reversed, AccountTransferDataV1 transfer, String submittedOnDate, Boolean interestedPostedAsOn, String submittedByUsername, String note, Boolean isManualTransaction, Boolean isReversal, String originalTransactionId, Boolean lienTransaction, Long releaseTransactionId, String reasonForBlock, List<SavingsAccountChargesPaidByDataV1> chargesPaidByData)
      All-args constructor.
      Parameters:
      id - The new value for id
      transactionType - The new value for transactionType
      accountId - The new value for accountId
      accountNo - The new value for accountNo
      date - The new value for date
      currency - The new value for currency
      paymentDetailData - The new value for paymentDetailData
      amount - The new value for amount
      outstandingChargeAmount - The new value for outstandingChargeAmount
      runningBalance - The new value for runningBalance
      reversed - The new value for reversed
      transfer - The new value for transfer
      submittedOnDate - The new value for submittedOnDate
      interestedPostedAsOn - The new value for interestedPostedAsOn
      submittedByUsername - The new value for submittedByUsername
      note - The new value for note
      isManualTransaction - The new value for isManualTransaction
      isReversal - The new value for isReversal
      originalTransactionId - The new value for originalTransactionId
      lienTransaction - The new value for lienTransaction
      releaseTransactionId - The new value for releaseTransactionId
      reasonForBlock - The new value for reasonForBlock
      chargesPaidByData - The new value for chargesPaidByData
  • Method Details

    • getClassSchema

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

      public static org.apache.avro.message.BinaryMessageEncoder<SavingsAccountTransactionDataV1> 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<SavingsAccountTransactionDataV1> 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<SavingsAccountTransactionDataV1> 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 SavingsAccountTransactionDataV1 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 SavingsAccountTransactionDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      Deserializes a SavingsAccountTransactionDataV1 from a ByteBuffer.
      Parameters:
      b - a byte buffer holding serialized data for an instance of this class
      Returns:
      a SavingsAccountTransactionDataV1 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.
    • getTransactionType

      public SavingsAccountTransactionEnumDataV1 getTransactionType()
      Gets the value of the 'transactionType' field.
      Returns:
      The value of the 'transactionType' field.
    • setTransactionType

      public void setTransactionType(SavingsAccountTransactionEnumDataV1 value)
      Sets the value of the 'transactionType' field.
      Parameters:
      value - the value to set.
    • getAccountId

      public Long getAccountId()
      Gets the value of the 'accountId' field.
      Returns:
      The value of the 'accountId' field.
    • setAccountId

      public void setAccountId(Long value)
      Sets the value of the 'accountId' field.
      Parameters:
      value - the value to set.
    • getAccountNo

      public String getAccountNo()
      Gets the value of the 'accountNo' field.
      Returns:
      The value of the 'accountNo' field.
    • setAccountNo

      public void setAccountNo(String value)
      Sets the value of the 'accountNo' 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.
    • getOutstandingChargeAmount

      public BigDecimal getOutstandingChargeAmount()
      Gets the value of the 'outstandingChargeAmount' field.
      Returns:
      The value of the 'outstandingChargeAmount' field.
    • setOutstandingChargeAmount

      public void setOutstandingChargeAmount(BigDecimal value)
      Sets the value of the 'outstandingChargeAmount' field.
      Parameters:
      value - the value to set.
    • getRunningBalance

      public BigDecimal getRunningBalance()
      Gets the value of the 'runningBalance' field.
      Returns:
      The value of the 'runningBalance' field.
    • setRunningBalance

      public void setRunningBalance(BigDecimal value)
      Sets the value of the 'runningBalance' 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.
    • 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.
    • 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.
    • getInterestedPostedAsOn

      public Boolean getInterestedPostedAsOn()
      Gets the value of the 'interestedPostedAsOn' field.
      Returns:
      The value of the 'interestedPostedAsOn' field.
    • setInterestedPostedAsOn

      public void setInterestedPostedAsOn(Boolean value)
      Sets the value of the 'interestedPostedAsOn' field.
      Parameters:
      value - the value to set.
    • getSubmittedByUsername

      public String getSubmittedByUsername()
      Gets the value of the 'submittedByUsername' field.
      Returns:
      The value of the 'submittedByUsername' field.
    • setSubmittedByUsername

      public void setSubmittedByUsername(String value)
      Sets the value of the 'submittedByUsername' field.
      Parameters:
      value - the value to set.
    • getNote

      public String getNote()
      Gets the value of the 'note' field.
      Returns:
      The value of the 'note' field.
    • setNote

      public void setNote(String value)
      Sets the value of the 'note' field.
      Parameters:
      value - the value to set.
    • getIsManualTransaction

      public Boolean getIsManualTransaction()
      Gets the value of the 'isManualTransaction' field.
      Returns:
      The value of the 'isManualTransaction' field.
    • setIsManualTransaction

      public void setIsManualTransaction(Boolean value)
      Sets the value of the 'isManualTransaction' field.
      Parameters:
      value - the value to set.
    • getIsReversal

      public Boolean getIsReversal()
      Gets the value of the 'isReversal' field.
      Returns:
      The value of the 'isReversal' field.
    • setIsReversal

      public void setIsReversal(Boolean value)
      Sets the value of the 'isReversal' field.
      Parameters:
      value - the value to set.
    • getOriginalTransactionId

      public String getOriginalTransactionId()
      Gets the value of the 'originalTransactionId' field.
      Returns:
      The value of the 'originalTransactionId' field.
    • setOriginalTransactionId

      public void setOriginalTransactionId(String value)
      Sets the value of the 'originalTransactionId' field.
      Parameters:
      value - the value to set.
    • getLienTransaction

      public Boolean getLienTransaction()
      Gets the value of the 'lienTransaction' field.
      Returns:
      The value of the 'lienTransaction' field.
    • setLienTransaction

      public void setLienTransaction(Boolean value)
      Sets the value of the 'lienTransaction' field.
      Parameters:
      value - the value to set.
    • getReleaseTransactionId

      public Long getReleaseTransactionId()
      Gets the value of the 'releaseTransactionId' field.
      Returns:
      The value of the 'releaseTransactionId' field.
    • setReleaseTransactionId

      public void setReleaseTransactionId(Long value)
      Sets the value of the 'releaseTransactionId' field.
      Parameters:
      value - the value to set.
    • getReasonForBlock

      public String getReasonForBlock()
      Gets the value of the 'reasonForBlock' field.
      Returns:
      The value of the 'reasonForBlock' field.
    • setReasonForBlock

      public void setReasonForBlock(String value)
      Sets the value of the 'reasonForBlock' field.
      Parameters:
      value - the value to set.
    • getChargesPaidByData

      public List<SavingsAccountChargesPaidByDataV1> getChargesPaidByData()
      Gets the value of the 'chargesPaidByData' field.
      Returns:
      The value of the 'chargesPaidByData' field.
    • setChargesPaidByData

      public void setChargesPaidByData(List<SavingsAccountChargesPaidByDataV1> value)
      Sets the value of the 'chargesPaidByData' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

      Creates a new SavingsAccountTransactionDataV1 RecordBuilder by copying an existing SavingsAccountTransactionDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new SavingsAccountTransactionDataV1 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