Class SavingsAccountChargeDataV1

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

    • SavingsAccountChargeDataV1

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

      public SavingsAccountChargeDataV1(Long id, Long chargeId, Long accountId, String name, EnumOptionDataV1 chargeTimeType, String dueDate, String feeOnMonthDay, Integer feeInterval, EnumOptionDataV1 chargeCalculationType, BigDecimal percentage, BigDecimal amountPercentageAppliedTo, CurrencyDataV1 currency, BigDecimal amount, BigDecimal amountPaid, BigDecimal amountWaived, BigDecimal amountWrittenOff, BigDecimal amountOutstanding, BigDecimal amountOrPercentage, Boolean penalty, Boolean isActive, Boolean isFreeWithdrawal, Integer freeWithdrawalChargeFrequency, Integer restartFrequency, Integer restartFrequencyEnum, String inactivationDate, ChargeDataV1 chargeData)
      All-args constructor.
      Parameters:
      id - The new value for id
      chargeId - The new value for chargeId
      accountId - The new value for accountId
      name - The new value for name
      chargeTimeType - The new value for chargeTimeType
      dueDate - The new value for dueDate
      feeOnMonthDay - The new value for feeOnMonthDay
      feeInterval - The new value for feeInterval
      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
      penalty - The new value for penalty
      isActive - The new value for isActive
      isFreeWithdrawal - The new value for isFreeWithdrawal
      freeWithdrawalChargeFrequency - The new value for freeWithdrawalChargeFrequency
      restartFrequency - The new value for restartFrequency
      restartFrequencyEnum - The new value for restartFrequencyEnum
      inactivationDate - The new value for inactivationDate
      chargeData - The new value for chargeData
  • Method Details

    • getClassSchema

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

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

      public String getFeeOnMonthDay()
      Gets the value of the 'feeOnMonthDay' field.
      Returns:
      The value of the 'feeOnMonthDay' field.
    • setFeeOnMonthDay

      public void setFeeOnMonthDay(String value)
      Sets the value of the 'feeOnMonthDay' field.
      Parameters:
      value - the value to set.
    • getFeeInterval

      public Integer getFeeInterval()
      Gets the value of the 'feeInterval' field.
      Returns:
      The value of the 'feeInterval' field.
    • setFeeInterval

      public void setFeeInterval(Integer value)
      Sets the value of the 'feeInterval' 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.
    • 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.
    • getIsActive

      public Boolean getIsActive()
      Gets the value of the 'isActive' field.
      Returns:
      The value of the 'isActive' field.
    • setIsActive

      public void setIsActive(Boolean value)
      Sets the value of the 'isActive' field.
      Parameters:
      value - the value to set.
    • getIsFreeWithdrawal

      public Boolean getIsFreeWithdrawal()
      Gets the value of the 'isFreeWithdrawal' field.
      Returns:
      The value of the 'isFreeWithdrawal' field.
    • setIsFreeWithdrawal

      public void setIsFreeWithdrawal(Boolean value)
      Sets the value of the 'isFreeWithdrawal' field.
      Parameters:
      value - the value to set.
    • getFreeWithdrawalChargeFrequency

      public Integer getFreeWithdrawalChargeFrequency()
      Gets the value of the 'freeWithdrawalChargeFrequency' field.
      Returns:
      The value of the 'freeWithdrawalChargeFrequency' field.
    • setFreeWithdrawalChargeFrequency

      public void setFreeWithdrawalChargeFrequency(Integer value)
      Sets the value of the 'freeWithdrawalChargeFrequency' field.
      Parameters:
      value - the value to set.
    • getRestartFrequency

      public Integer getRestartFrequency()
      Gets the value of the 'restartFrequency' field.
      Returns:
      The value of the 'restartFrequency' field.
    • setRestartFrequency

      public void setRestartFrequency(Integer value)
      Sets the value of the 'restartFrequency' field.
      Parameters:
      value - the value to set.
    • getRestartFrequencyEnum

      public Integer getRestartFrequencyEnum()
      Gets the value of the 'restartFrequencyEnum' field.
      Returns:
      The value of the 'restartFrequencyEnum' field.
    • setRestartFrequencyEnum

      public void setRestartFrequencyEnum(Integer value)
      Sets the value of the 'restartFrequencyEnum' field.
      Parameters:
      value - the value to set.
    • getInactivationDate

      public String getInactivationDate()
      Gets the value of the 'inactivationDate' field.
      Returns:
      The value of the 'inactivationDate' field.
    • setInactivationDate

      public void setInactivationDate(String value)
      Sets the value of the 'inactivationDate' field.
      Parameters:
      value - the value to set.
    • getChargeData

      public ChargeDataV1 getChargeData()
      Gets the value of the 'chargeData' field.
      Returns:
      The value of the 'chargeData' field.
    • setChargeData

      public void setChargeData(ChargeDataV1 value)
      Sets the value of the 'chargeData' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

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