Class CollectionDataV1

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

    • CollectionDataV1

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

      public CollectionDataV1(BigDecimal availableDisbursementAmount, BigDecimal availableDisbursementAmountWithOverApplied, Integer pastDueDays, String nextPaymentDueDate, BigDecimal nextPaymentAmount, Integer delinquentDays, String delinquentDate, BigDecimal delinquentAmount, String lastPaymentDate, BigDecimal lastPaymentAmount, String lastRepaymentDate, BigDecimal lastRepaymentAmount, List<DelinquencyPausePeriodV1> delinquencyPausePeriods, List<LoanInstallmentDelinquencyBucketDataV1> installmentDelinquencyBuckets, BigDecimal delinquentPrincipal, BigDecimal delinquentInterest, BigDecimal delinquentFee, BigDecimal delinquentPenalty)
      All-args constructor.
      Parameters:
      availableDisbursementAmount - The new value for availableDisbursementAmount
      availableDisbursementAmountWithOverApplied - The new value for availableDisbursementAmountWithOverApplied
      pastDueDays - The new value for pastDueDays
      nextPaymentDueDate - The new value for nextPaymentDueDate
      nextPaymentAmount - The new value for nextPaymentAmount
      delinquentDays - The new value for delinquentDays
      delinquentDate - The new value for delinquentDate
      delinquentAmount - The new value for delinquentAmount
      lastPaymentDate - The new value for lastPaymentDate
      lastPaymentAmount - The new value for lastPaymentAmount
      lastRepaymentDate - The new value for lastRepaymentDate
      lastRepaymentAmount - The new value for lastRepaymentAmount
      delinquencyPausePeriods - The new value for delinquencyPausePeriods
      installmentDelinquencyBuckets - The new value for installmentDelinquencyBuckets
      delinquentPrincipal - The new value for delinquentPrincipal
      delinquentInterest - The new value for delinquentInterest
      delinquentFee - The new value for delinquentFee
      delinquentPenalty - The new value for delinquentPenalty
  • Method Details

    • getClassSchema

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

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

      public BigDecimal getAvailableDisbursementAmount()
      Gets the value of the 'availableDisbursementAmount' field.
      Returns:
      The value of the 'availableDisbursementAmount' field.
    • setAvailableDisbursementAmount

      public void setAvailableDisbursementAmount(BigDecimal value)
      Sets the value of the 'availableDisbursementAmount' field.
      Parameters:
      value - the value to set.
    • getAvailableDisbursementAmountWithOverApplied

      public BigDecimal getAvailableDisbursementAmountWithOverApplied()
      Gets the value of the 'availableDisbursementAmountWithOverApplied' field.
      Returns:
      The value of the 'availableDisbursementAmountWithOverApplied' field.
    • setAvailableDisbursementAmountWithOverApplied

      public void setAvailableDisbursementAmountWithOverApplied(BigDecimal value)
      Sets the value of the 'availableDisbursementAmountWithOverApplied' field.
      Parameters:
      value - the value to set.
    • getPastDueDays

      public Integer getPastDueDays()
      Gets the value of the 'pastDueDays' field.
      Returns:
      The value of the 'pastDueDays' field.
    • setPastDueDays

      public void setPastDueDays(Integer value)
      Sets the value of the 'pastDueDays' field.
      Parameters:
      value - the value to set.
    • getNextPaymentDueDate

      public String getNextPaymentDueDate()
      Gets the value of the 'nextPaymentDueDate' field.
      Returns:
      The value of the 'nextPaymentDueDate' field.
    • setNextPaymentDueDate

      public void setNextPaymentDueDate(String value)
      Sets the value of the 'nextPaymentDueDate' field.
      Parameters:
      value - the value to set.
    • getNextPaymentAmount

      public BigDecimal getNextPaymentAmount()
      Gets the value of the 'nextPaymentAmount' field.
      Returns:
      The value of the 'nextPaymentAmount' field.
    • setNextPaymentAmount

      public void setNextPaymentAmount(BigDecimal value)
      Sets the value of the 'nextPaymentAmount' field.
      Parameters:
      value - the value to set.
    • getDelinquentDays

      public Integer getDelinquentDays()
      Gets the value of the 'delinquentDays' field.
      Returns:
      The value of the 'delinquentDays' field.
    • setDelinquentDays

      public void setDelinquentDays(Integer value)
      Sets the value of the 'delinquentDays' field.
      Parameters:
      value - the value to set.
    • getDelinquentDate

      public String getDelinquentDate()
      Gets the value of the 'delinquentDate' field.
      Returns:
      The value of the 'delinquentDate' field.
    • setDelinquentDate

      public void setDelinquentDate(String value)
      Sets the value of the 'delinquentDate' field.
      Parameters:
      value - the value to set.
    • getDelinquentAmount

      public BigDecimal getDelinquentAmount()
      Gets the value of the 'delinquentAmount' field.
      Returns:
      The value of the 'delinquentAmount' field.
    • setDelinquentAmount

      public void setDelinquentAmount(BigDecimal value)
      Sets the value of the 'delinquentAmount' field.
      Parameters:
      value - the value to set.
    • getLastPaymentDate

      public String getLastPaymentDate()
      Gets the value of the 'lastPaymentDate' field.
      Returns:
      The value of the 'lastPaymentDate' field.
    • setLastPaymentDate

      public void setLastPaymentDate(String value)
      Sets the value of the 'lastPaymentDate' field.
      Parameters:
      value - the value to set.
    • getLastPaymentAmount

      public BigDecimal getLastPaymentAmount()
      Gets the value of the 'lastPaymentAmount' field.
      Returns:
      The value of the 'lastPaymentAmount' field.
    • setLastPaymentAmount

      public void setLastPaymentAmount(BigDecimal value)
      Sets the value of the 'lastPaymentAmount' field.
      Parameters:
      value - the value to set.
    • getLastRepaymentDate

      public String getLastRepaymentDate()
      Gets the value of the 'lastRepaymentDate' field.
      Returns:
      The value of the 'lastRepaymentDate' field.
    • setLastRepaymentDate

      public void setLastRepaymentDate(String value)
      Sets the value of the 'lastRepaymentDate' field.
      Parameters:
      value - the value to set.
    • getLastRepaymentAmount

      public BigDecimal getLastRepaymentAmount()
      Gets the value of the 'lastRepaymentAmount' field.
      Returns:
      The value of the 'lastRepaymentAmount' field.
    • setLastRepaymentAmount

      public void setLastRepaymentAmount(BigDecimal value)
      Sets the value of the 'lastRepaymentAmount' field.
      Parameters:
      value - the value to set.
    • getDelinquencyPausePeriods

      public List<DelinquencyPausePeriodV1> getDelinquencyPausePeriods()
      Gets the value of the 'delinquencyPausePeriods' field.
      Returns:
      The value of the 'delinquencyPausePeriods' field.
    • setDelinquencyPausePeriods

      public void setDelinquencyPausePeriods(List<DelinquencyPausePeriodV1> value)
      Sets the value of the 'delinquencyPausePeriods' field.
      Parameters:
      value - the value to set.
    • getInstallmentDelinquencyBuckets

      public List<LoanInstallmentDelinquencyBucketDataV1> getInstallmentDelinquencyBuckets()
      Gets the value of the 'installmentDelinquencyBuckets' field.
      Returns:
      The value of the 'installmentDelinquencyBuckets' field.
    • setInstallmentDelinquencyBuckets

      public void setInstallmentDelinquencyBuckets(List<LoanInstallmentDelinquencyBucketDataV1> value)
      Sets the value of the 'installmentDelinquencyBuckets' field.
      Parameters:
      value - the value to set.
    • getDelinquentPrincipal

      public BigDecimal getDelinquentPrincipal()
      Gets the value of the 'delinquentPrincipal' field.
      Returns:
      The value of the 'delinquentPrincipal' field.
    • setDelinquentPrincipal

      public void setDelinquentPrincipal(BigDecimal value)
      Sets the value of the 'delinquentPrincipal' field.
      Parameters:
      value - the value to set.
    • getDelinquentInterest

      public BigDecimal getDelinquentInterest()
      Gets the value of the 'delinquentInterest' field.
      Returns:
      The value of the 'delinquentInterest' field.
    • setDelinquentInterest

      public void setDelinquentInterest(BigDecimal value)
      Sets the value of the 'delinquentInterest' field.
      Parameters:
      value - the value to set.
    • getDelinquentFee

      public BigDecimal getDelinquentFee()
      Gets the value of the 'delinquentFee' field.
      Returns:
      The value of the 'delinquentFee' field.
    • setDelinquentFee

      public void setDelinquentFee(BigDecimal value)
      Sets the value of the 'delinquentFee' field.
      Parameters:
      value - the value to set.
    • getDelinquentPenalty

      public BigDecimal getDelinquentPenalty()
      Gets the value of the 'delinquentPenalty' field.
      Returns:
      The value of the 'delinquentPenalty' field.
    • setDelinquentPenalty

      public void setDelinquentPenalty(BigDecimal value)
      Sets the value of the 'delinquentPenalty' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

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