Class LoanChargeDataV1

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

    • LoanChargeDataV1

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

      public LoanChargeDataV1(Long id, Long chargeId, String name, EnumOptionDataV1 chargeTimeType, String dueDate, EnumOptionDataV1 chargeCalculationType, BigDecimal percentage, BigDecimal amountPercentageAppliedTo, CurrencyDataV1 currency, BigDecimal amount, BigDecimal amountPaid, BigDecimal amountWaived, BigDecimal amountWrittenOff, BigDecimal amountOutstanding, BigDecimal amountOrPercentage, List<ChargeDataV1> chargeOptions, Boolean penalty, EnumOptionDataV1 chargePaymentMode, Boolean paid, Boolean waived, Boolean chargePayable, Long loanId, BigDecimal minCap, BigDecimal maxCap, List<LoanInstallmentChargeDataV1> installmentChargeData, BigDecimal amountAccrued, BigDecimal amountUnrecognized, String externalId, String externalLoanId, String externalOwnerId, String submittedOnDate, Map<String,ByteBuffer> customData)
      All-args constructor.
      Parameters:
      id - The new value for id
      chargeId - The new value for chargeId
      name - The new value for name
      chargeTimeType - The new value for chargeTimeType
      dueDate - The new value for dueDate
      chargeCalculationType - The new value for chargeCalculationType
      percentage - The new value for percentage
      amountPercentageAppliedTo - The new value for amountPercentageAppliedTo
      currency - The new value for currency
      amount - The new value for amount
      amountPaid - The new value for amountPaid
      amountWaived - The new value for amountWaived
      amountWrittenOff - The new value for amountWrittenOff
      amountOutstanding - The new value for amountOutstanding
      amountOrPercentage - The new value for amountOrPercentage
      chargeOptions - The new value for chargeOptions
      penalty - The new value for penalty
      chargePaymentMode - The new value for chargePaymentMode
      paid - The new value for paid
      waived - The new value for waived
      chargePayable - The new value for chargePayable
      loanId - The new value for loanId
      minCap - The new value for minCap
      maxCap - The new value for maxCap
      installmentChargeData - The new value for installmentChargeData
      amountAccrued - The new value for amountAccrued
      amountUnrecognized - The new value for amountUnrecognized
      externalId - The new value for externalId
      externalLoanId - The new value for externalLoanId
      externalOwnerId - The new value for externalOwnerId
      submittedOnDate - The new value for submittedOnDate
      customData - The new value for customData
  • Method Details

    • getClassSchema

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

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

      public Long getChargeId()
      Gets the value of the 'chargeId' field.
      Returns:
      The value of the 'chargeId' field.
    • setChargeId

      public void setChargeId(Long value)
      Sets the value of the 'chargeId' field.
      Parameters:
      value - the value to set.
    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value of the 'name' field.
    • setName

      public void setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - the value to set.
    • getChargeTimeType

      public EnumOptionDataV1 getChargeTimeType()
      Gets the value of the 'chargeTimeType' field.
      Returns:
      The value of the 'chargeTimeType' field.
    • setChargeTimeType

      public void setChargeTimeType(EnumOptionDataV1 value)
      Sets the value of the 'chargeTimeType' field.
      Parameters:
      value - the value to set.
    • getDueDate

      public String getDueDate()
      Gets the value of the 'dueDate' field.
      Returns:
      The value of the 'dueDate' field.
    • setDueDate

      public void setDueDate(String value)
      Sets the value of the 'dueDate' field.
      Parameters:
      value - the value to set.
    • getChargeCalculationType

      public EnumOptionDataV1 getChargeCalculationType()
      Gets the value of the 'chargeCalculationType' field.
      Returns:
      The value of the 'chargeCalculationType' field.
    • setChargeCalculationType

      public void setChargeCalculationType(EnumOptionDataV1 value)
      Sets the value of the 'chargeCalculationType' field.
      Parameters:
      value - the value to set.
    • getPercentage

      public BigDecimal getPercentage()
      Gets the value of the 'percentage' field.
      Returns:
      The value of the 'percentage' field.
    • setPercentage

      public void setPercentage(BigDecimal value)
      Sets the value of the 'percentage' field.
      Parameters:
      value - the value to set.
    • getAmountPercentageAppliedTo

      public BigDecimal getAmountPercentageAppliedTo()
      Gets the value of the 'amountPercentageAppliedTo' field.
      Returns:
      The value of the 'amountPercentageAppliedTo' field.
    • setAmountPercentageAppliedTo

      public void setAmountPercentageAppliedTo(BigDecimal value)
      Sets the value of the 'amountPercentageAppliedTo' 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.
    • 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.
    • getAmountPaid

      public BigDecimal getAmountPaid()
      Gets the value of the 'amountPaid' field.
      Returns:
      The value of the 'amountPaid' field.
    • setAmountPaid

      public void setAmountPaid(BigDecimal value)
      Sets the value of the 'amountPaid' field.
      Parameters:
      value - the value to set.
    • getAmountWaived

      public BigDecimal getAmountWaived()
      Gets the value of the 'amountWaived' field.
      Returns:
      The value of the 'amountWaived' field.
    • setAmountWaived

      public void setAmountWaived(BigDecimal value)
      Sets the value of the 'amountWaived' field.
      Parameters:
      value - the value to set.
    • getAmountWrittenOff

      public BigDecimal getAmountWrittenOff()
      Gets the value of the 'amountWrittenOff' field.
      Returns:
      The value of the 'amountWrittenOff' field.
    • setAmountWrittenOff

      public void setAmountWrittenOff(BigDecimal value)
      Sets the value of the 'amountWrittenOff' field.
      Parameters:
      value - the value to set.
    • getAmountOutstanding

      public BigDecimal getAmountOutstanding()
      Gets the value of the 'amountOutstanding' field.
      Returns:
      The value of the 'amountOutstanding' field.
    • setAmountOutstanding

      public void setAmountOutstanding(BigDecimal value)
      Sets the value of the 'amountOutstanding' field.
      Parameters:
      value - the value to set.
    • getAmountOrPercentage

      public BigDecimal getAmountOrPercentage()
      Gets the value of the 'amountOrPercentage' field.
      Returns:
      The value of the 'amountOrPercentage' field.
    • setAmountOrPercentage

      public void setAmountOrPercentage(BigDecimal value)
      Sets the value of the 'amountOrPercentage' field.
      Parameters:
      value - the value to set.
    • getChargeOptions

      public List<ChargeDataV1> getChargeOptions()
      Gets the value of the 'chargeOptions' field.
      Returns:
      The value of the 'chargeOptions' field.
    • setChargeOptions

      public void setChargeOptions(List<ChargeDataV1> value)
      Sets the value of the 'chargeOptions' field.
      Parameters:
      value - the value to set.
    • getPenalty

      public Boolean getPenalty()
      Gets the value of the 'penalty' field.
      Returns:
      The value of the 'penalty' field.
    • setPenalty

      public void setPenalty(Boolean value)
      Sets the value of the 'penalty' field.
      Parameters:
      value - the value to set.
    • getChargePaymentMode

      public EnumOptionDataV1 getChargePaymentMode()
      Gets the value of the 'chargePaymentMode' field.
      Returns:
      The value of the 'chargePaymentMode' field.
    • setChargePaymentMode

      public void setChargePaymentMode(EnumOptionDataV1 value)
      Sets the value of the 'chargePaymentMode' field.
      Parameters:
      value - the value to set.
    • getPaid

      public Boolean getPaid()
      Gets the value of the 'paid' field.
      Returns:
      The value of the 'paid' field.
    • setPaid

      public void setPaid(Boolean value)
      Sets the value of the 'paid' field.
      Parameters:
      value - the value to set.
    • getWaived

      public Boolean getWaived()
      Gets the value of the 'waived' field.
      Returns:
      The value of the 'waived' field.
    • setWaived

      public void setWaived(Boolean value)
      Sets the value of the 'waived' field.
      Parameters:
      value - the value to set.
    • getChargePayable

      public Boolean getChargePayable()
      Gets the value of the 'chargePayable' field.
      Returns:
      The value of the 'chargePayable' field.
    • setChargePayable

      public void setChargePayable(Boolean value)
      Sets the value of the 'chargePayable' 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.
    • getMinCap

      public BigDecimal getMinCap()
      Gets the value of the 'minCap' field.
      Returns:
      The value of the 'minCap' field.
    • setMinCap

      public void setMinCap(BigDecimal value)
      Sets the value of the 'minCap' field.
      Parameters:
      value - the value to set.
    • getMaxCap

      public BigDecimal getMaxCap()
      Gets the value of the 'maxCap' field.
      Returns:
      The value of the 'maxCap' field.
    • setMaxCap

      public void setMaxCap(BigDecimal value)
      Sets the value of the 'maxCap' field.
      Parameters:
      value - the value to set.
    • getInstallmentChargeData

      public List<LoanInstallmentChargeDataV1> getInstallmentChargeData()
      Gets the value of the 'installmentChargeData' field.
      Returns:
      The value of the 'installmentChargeData' field.
    • setInstallmentChargeData

      public void setInstallmentChargeData(List<LoanInstallmentChargeDataV1> value)
      Sets the value of the 'installmentChargeData' field.
      Parameters:
      value - the value to set.
    • getAmountAccrued

      public BigDecimal getAmountAccrued()
      Gets the value of the 'amountAccrued' field.
      Returns:
      The value of the 'amountAccrued' field.
    • setAmountAccrued

      public void setAmountAccrued(BigDecimal value)
      Sets the value of the 'amountAccrued' field.
      Parameters:
      value - the value to set.
    • getAmountUnrecognized

      public BigDecimal getAmountUnrecognized()
      Gets the value of the 'amountUnrecognized' field.
      Returns:
      The value of the 'amountUnrecognized' field.
    • setAmountUnrecognized

      public void setAmountUnrecognized(BigDecimal value)
      Sets the value of the 'amountUnrecognized' 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • newBuilder

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

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

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