Class SavingsAccountSummaryDataV1

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

    • SavingsAccountSummaryDataV1

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

      public SavingsAccountSummaryDataV1(CurrencyDataV1 currency, BigDecimal totalDeposits, BigDecimal totalWithdrawals, BigDecimal totalWithdrawalFees, BigDecimal totalAnnualFees, BigDecimal totalInterestEarned, BigDecimal totalInterestPosted, BigDecimal accountBalance, BigDecimal totalFeeCharge, BigDecimal totalPenaltyCharge, BigDecimal totalOverdraftInterestDerived, BigDecimal totalWithholdTax, BigDecimal interestNotPosted, String lastInterestCalculationDate, BigDecimal availableBalance, String interestPostedTillDate, String prevInterestPostedTillDate)
      All-args constructor.
      Parameters:
      currency - The new value for currency
      totalDeposits - The new value for totalDeposits
      totalWithdrawals - The new value for totalWithdrawals
      totalWithdrawalFees - The new value for totalWithdrawalFees
      totalAnnualFees - The new value for totalAnnualFees
      totalInterestEarned - The new value for totalInterestEarned
      totalInterestPosted - The new value for totalInterestPosted
      accountBalance - The new value for accountBalance
      totalFeeCharge - The new value for totalFeeCharge
      totalPenaltyCharge - The new value for totalPenaltyCharge
      totalOverdraftInterestDerived - The new value for totalOverdraftInterestDerived
      totalWithholdTax - The new value for totalWithholdTax
      interestNotPosted - The new value for interestNotPosted
      lastInterestCalculationDate - The new value for lastInterestCalculationDate
      availableBalance - The new value for availableBalance
      interestPostedTillDate - The new value for interestPostedTillDate
      prevInterestPostedTillDate - The new value for prevInterestPostedTillDate
  • Method Details

    • getClassSchema

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

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

      public BigDecimal getTotalDeposits()
      Gets the value of the 'totalDeposits' field.
      Returns:
      The value of the 'totalDeposits' field.
    • setTotalDeposits

      public void setTotalDeposits(BigDecimal value)
      Sets the value of the 'totalDeposits' field.
      Parameters:
      value - the value to set.
    • getTotalWithdrawals

      public BigDecimal getTotalWithdrawals()
      Gets the value of the 'totalWithdrawals' field.
      Returns:
      The value of the 'totalWithdrawals' field.
    • setTotalWithdrawals

      public void setTotalWithdrawals(BigDecimal value)
      Sets the value of the 'totalWithdrawals' field.
      Parameters:
      value - the value to set.
    • getTotalWithdrawalFees

      public BigDecimal getTotalWithdrawalFees()
      Gets the value of the 'totalWithdrawalFees' field.
      Returns:
      The value of the 'totalWithdrawalFees' field.
    • setTotalWithdrawalFees

      public void setTotalWithdrawalFees(BigDecimal value)
      Sets the value of the 'totalWithdrawalFees' field.
      Parameters:
      value - the value to set.
    • getTotalAnnualFees

      public BigDecimal getTotalAnnualFees()
      Gets the value of the 'totalAnnualFees' field.
      Returns:
      The value of the 'totalAnnualFees' field.
    • setTotalAnnualFees

      public void setTotalAnnualFees(BigDecimal value)
      Sets the value of the 'totalAnnualFees' field.
      Parameters:
      value - the value to set.
    • getTotalInterestEarned

      public BigDecimal getTotalInterestEarned()
      Gets the value of the 'totalInterestEarned' field.
      Returns:
      The value of the 'totalInterestEarned' field.
    • setTotalInterestEarned

      public void setTotalInterestEarned(BigDecimal value)
      Sets the value of the 'totalInterestEarned' field.
      Parameters:
      value - the value to set.
    • getTotalInterestPosted

      public BigDecimal getTotalInterestPosted()
      Gets the value of the 'totalInterestPosted' field.
      Returns:
      The value of the 'totalInterestPosted' field.
    • setTotalInterestPosted

      public void setTotalInterestPosted(BigDecimal value)
      Sets the value of the 'totalInterestPosted' field.
      Parameters:
      value - the value to set.
    • getAccountBalance

      public BigDecimal getAccountBalance()
      Gets the value of the 'accountBalance' field.
      Returns:
      The value of the 'accountBalance' field.
    • setAccountBalance

      public void setAccountBalance(BigDecimal value)
      Sets the value of the 'accountBalance' field.
      Parameters:
      value - the value to set.
    • getTotalFeeCharge

      public BigDecimal getTotalFeeCharge()
      Gets the value of the 'totalFeeCharge' field.
      Returns:
      The value of the 'totalFeeCharge' field.
    • setTotalFeeCharge

      public void setTotalFeeCharge(BigDecimal value)
      Sets the value of the 'totalFeeCharge' field.
      Parameters:
      value - the value to set.
    • getTotalPenaltyCharge

      public BigDecimal getTotalPenaltyCharge()
      Gets the value of the 'totalPenaltyCharge' field.
      Returns:
      The value of the 'totalPenaltyCharge' field.
    • setTotalPenaltyCharge

      public void setTotalPenaltyCharge(BigDecimal value)
      Sets the value of the 'totalPenaltyCharge' field.
      Parameters:
      value - the value to set.
    • getTotalOverdraftInterestDerived

      public BigDecimal getTotalOverdraftInterestDerived()
      Gets the value of the 'totalOverdraftInterestDerived' field.
      Returns:
      The value of the 'totalOverdraftInterestDerived' field.
    • setTotalOverdraftInterestDerived

      public void setTotalOverdraftInterestDerived(BigDecimal value)
      Sets the value of the 'totalOverdraftInterestDerived' field.
      Parameters:
      value - the value to set.
    • getTotalWithholdTax

      public BigDecimal getTotalWithholdTax()
      Gets the value of the 'totalWithholdTax' field.
      Returns:
      The value of the 'totalWithholdTax' field.
    • setTotalWithholdTax

      public void setTotalWithholdTax(BigDecimal value)
      Sets the value of the 'totalWithholdTax' field.
      Parameters:
      value - the value to set.
    • getInterestNotPosted

      public BigDecimal getInterestNotPosted()
      Gets the value of the 'interestNotPosted' field.
      Returns:
      The value of the 'interestNotPosted' field.
    • setInterestNotPosted

      public void setInterestNotPosted(BigDecimal value)
      Sets the value of the 'interestNotPosted' field.
      Parameters:
      value - the value to set.
    • getLastInterestCalculationDate

      public String getLastInterestCalculationDate()
      Gets the value of the 'lastInterestCalculationDate' field.
      Returns:
      The value of the 'lastInterestCalculationDate' field.
    • setLastInterestCalculationDate

      public void setLastInterestCalculationDate(String value)
      Sets the value of the 'lastInterestCalculationDate' field.
      Parameters:
      value - the value to set.
    • getAvailableBalance

      public BigDecimal getAvailableBalance()
      Gets the value of the 'availableBalance' field.
      Returns:
      The value of the 'availableBalance' field.
    • setAvailableBalance

      public void setAvailableBalance(BigDecimal value)
      Sets the value of the 'availableBalance' field.
      Parameters:
      value - the value to set.
    • getInterestPostedTillDate

      public String getInterestPostedTillDate()
      Gets the value of the 'interestPostedTillDate' field.
      Returns:
      The value of the 'interestPostedTillDate' field.
    • setInterestPostedTillDate

      public void setInterestPostedTillDate(String value)
      Sets the value of the 'interestPostedTillDate' field.
      Parameters:
      value - the value to set.
    • getPrevInterestPostedTillDate

      public String getPrevInterestPostedTillDate()
      Gets the value of the 'prevInterestPostedTillDate' field.
      Returns:
      The value of the 'prevInterestPostedTillDate' field.
    • setPrevInterestPostedTillDate

      public void setPrevInterestPostedTillDate(String value)
      Sets the value of the 'prevInterestPostedTillDate' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

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