Class LoanScheduleDataV1

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

    • LoanScheduleDataV1

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

      public LoanScheduleDataV1(CurrencyDataV1 currency, Integer loanTermInDays, BigDecimal totalPrincipalDisbursed, BigDecimal totalPrincipalExpected, BigDecimal totalPrincipalPaid, BigDecimal totalInterestCharged, BigDecimal totalFeeChargesCharged, BigDecimal totalPenaltyChargesCharged, BigDecimal totalWaived, BigDecimal totalWrittenOff, BigDecimal totalRepaymentExpected, BigDecimal totalRepayment, BigDecimal totalPaidInAdvance, BigDecimal totalPaidLate, BigDecimal totalOutstanding, List<LoanSchedulePeriodDataV1> periods, List<LoanSchedulePeriodDataV1> futurePeriods)
      All-args constructor.
      Parameters:
      currency - The new value for currency
      loanTermInDays - The new value for loanTermInDays
      totalPrincipalDisbursed - The new value for totalPrincipalDisbursed
      totalPrincipalExpected - The new value for totalPrincipalExpected
      totalPrincipalPaid - The new value for totalPrincipalPaid
      totalInterestCharged - The new value for totalInterestCharged
      totalFeeChargesCharged - The new value for totalFeeChargesCharged
      totalPenaltyChargesCharged - The new value for totalPenaltyChargesCharged
      totalWaived - The new value for totalWaived
      totalWrittenOff - The new value for totalWrittenOff
      totalRepaymentExpected - The new value for totalRepaymentExpected
      totalRepayment - The new value for totalRepayment
      totalPaidInAdvance - The new value for totalPaidInAdvance
      totalPaidLate - The new value for totalPaidLate
      totalOutstanding - The new value for totalOutstanding
      periods - The new value for periods
      futurePeriods - The new value for futurePeriods
  • Method Details

    • getClassSchema

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

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

      public Integer getLoanTermInDays()
      Gets the value of the 'loanTermInDays' field.
      Returns:
      The value of the 'loanTermInDays' field.
    • setLoanTermInDays

      public void setLoanTermInDays(Integer value)
      Sets the value of the 'loanTermInDays' field.
      Parameters:
      value - the value to set.
    • getTotalPrincipalDisbursed

      public BigDecimal getTotalPrincipalDisbursed()
      Gets the value of the 'totalPrincipalDisbursed' field.
      Returns:
      The value of the 'totalPrincipalDisbursed' field.
    • setTotalPrincipalDisbursed

      public void setTotalPrincipalDisbursed(BigDecimal value)
      Sets the value of the 'totalPrincipalDisbursed' field.
      Parameters:
      value - the value to set.
    • getTotalPrincipalExpected

      public BigDecimal getTotalPrincipalExpected()
      Gets the value of the 'totalPrincipalExpected' field.
      Returns:
      The value of the 'totalPrincipalExpected' field.
    • setTotalPrincipalExpected

      public void setTotalPrincipalExpected(BigDecimal value)
      Sets the value of the 'totalPrincipalExpected' field.
      Parameters:
      value - the value to set.
    • getTotalPrincipalPaid

      public BigDecimal getTotalPrincipalPaid()
      Gets the value of the 'totalPrincipalPaid' field.
      Returns:
      The value of the 'totalPrincipalPaid' field.
    • setTotalPrincipalPaid

      public void setTotalPrincipalPaid(BigDecimal value)
      Sets the value of the 'totalPrincipalPaid' field.
      Parameters:
      value - the value to set.
    • getTotalInterestCharged

      public BigDecimal getTotalInterestCharged()
      Gets the value of the 'totalInterestCharged' field.
      Returns:
      The value of the 'totalInterestCharged' field.
    • setTotalInterestCharged

      public void setTotalInterestCharged(BigDecimal value)
      Sets the value of the 'totalInterestCharged' field.
      Parameters:
      value - the value to set.
    • getTotalFeeChargesCharged

      public BigDecimal getTotalFeeChargesCharged()
      Gets the value of the 'totalFeeChargesCharged' field.
      Returns:
      The value of the 'totalFeeChargesCharged' field.
    • setTotalFeeChargesCharged

      public void setTotalFeeChargesCharged(BigDecimal value)
      Sets the value of the 'totalFeeChargesCharged' field.
      Parameters:
      value - the value to set.
    • getTotalPenaltyChargesCharged

      public BigDecimal getTotalPenaltyChargesCharged()
      Gets the value of the 'totalPenaltyChargesCharged' field.
      Returns:
      The value of the 'totalPenaltyChargesCharged' field.
    • setTotalPenaltyChargesCharged

      public void setTotalPenaltyChargesCharged(BigDecimal value)
      Sets the value of the 'totalPenaltyChargesCharged' field.
      Parameters:
      value - the value to set.
    • getTotalWaived

      public BigDecimal getTotalWaived()
      Gets the value of the 'totalWaived' field.
      Returns:
      The value of the 'totalWaived' field.
    • setTotalWaived

      public void setTotalWaived(BigDecimal value)
      Sets the value of the 'totalWaived' field.
      Parameters:
      value - the value to set.
    • getTotalWrittenOff

      public BigDecimal getTotalWrittenOff()
      Gets the value of the 'totalWrittenOff' field.
      Returns:
      The value of the 'totalWrittenOff' field.
    • setTotalWrittenOff

      public void setTotalWrittenOff(BigDecimal value)
      Sets the value of the 'totalWrittenOff' field.
      Parameters:
      value - the value to set.
    • getTotalRepaymentExpected

      public BigDecimal getTotalRepaymentExpected()
      Gets the value of the 'totalRepaymentExpected' field.
      Returns:
      The value of the 'totalRepaymentExpected' field.
    • setTotalRepaymentExpected

      public void setTotalRepaymentExpected(BigDecimal value)
      Sets the value of the 'totalRepaymentExpected' field.
      Parameters:
      value - the value to set.
    • getTotalRepayment

      public BigDecimal getTotalRepayment()
      Gets the value of the 'totalRepayment' field.
      Returns:
      The value of the 'totalRepayment' field.
    • setTotalRepayment

      public void setTotalRepayment(BigDecimal value)
      Sets the value of the 'totalRepayment' field.
      Parameters:
      value - the value to set.
    • getTotalPaidInAdvance

      public BigDecimal getTotalPaidInAdvance()
      Gets the value of the 'totalPaidInAdvance' field.
      Returns:
      The value of the 'totalPaidInAdvance' field.
    • setTotalPaidInAdvance

      public void setTotalPaidInAdvance(BigDecimal value)
      Sets the value of the 'totalPaidInAdvance' field.
      Parameters:
      value - the value to set.
    • getTotalPaidLate

      public BigDecimal getTotalPaidLate()
      Gets the value of the 'totalPaidLate' field.
      Returns:
      The value of the 'totalPaidLate' field.
    • setTotalPaidLate

      public void setTotalPaidLate(BigDecimal value)
      Sets the value of the 'totalPaidLate' field.
      Parameters:
      value - the value to set.
    • getTotalOutstanding

      public BigDecimal getTotalOutstanding()
      Gets the value of the 'totalOutstanding' field.
      Returns:
      The value of the 'totalOutstanding' field.
    • setTotalOutstanding

      public void setTotalOutstanding(BigDecimal value)
      Sets the value of the 'totalOutstanding' field.
      Parameters:
      value - the value to set.
    • getPeriods

      public List<LoanSchedulePeriodDataV1> getPeriods()
      Gets the value of the 'periods' field.
      Returns:
      The value of the 'periods' field.
    • setPeriods

      public void setPeriods(List<LoanSchedulePeriodDataV1> value)
      Sets the value of the 'periods' field.
      Parameters:
      value - the value to set.
    • getFuturePeriods

      public List<LoanSchedulePeriodDataV1> getFuturePeriods()
      Gets the value of the 'futurePeriods' field.
      Returns:
      The value of the 'futurePeriods' field.
    • setFuturePeriods

      public void setFuturePeriods(List<LoanSchedulePeriodDataV1> value)
      Sets the value of the 'futurePeriods' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

      public static LoanScheduleDataV1.Builder newBuilder(LoanScheduleDataV1 other)
      Creates a new LoanScheduleDataV1 RecordBuilder by copying an existing LoanScheduleDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new LoanScheduleDataV1 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