Class ChargeDataV1

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

    • ChargeDataV1

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

      public ChargeDataV1(Long id, String name, Boolean active, Boolean penalty, Boolean freeWithdrawal, Integer freeWithdrawalChargeFrequency, Integer restartFrequency, Integer restartFrequencyEnum, Boolean isPaymentType, PaymentTypeDataV1 paymentTypeOptions, CurrencyDataV1 currency, BigDecimal amount, EnumOptionDataV1 chargeTimeType, EnumOptionDataV1 chargeAppliesTo, EnumOptionDataV1 chargeCalculationType, EnumOptionDataV1 chargePaymentMode, String feeOnMonthDay, Integer feeInterval, BigDecimal minCap, BigDecimal maxCap, EnumOptionDataV1 feeFrequency, GLAccountDataV1 incomeOrLiabilityAccount)
      All-args constructor.
      Parameters:
      id - The new value for id
      name - The new value for name
      active - The new value for active
      penalty - The new value for penalty
      freeWithdrawal - The new value for freeWithdrawal
      freeWithdrawalChargeFrequency - The new value for freeWithdrawalChargeFrequency
      restartFrequency - The new value for restartFrequency
      restartFrequencyEnum - The new value for restartFrequencyEnum
      isPaymentType - The new value for isPaymentType
      paymentTypeOptions - The new value for paymentTypeOptions
      currency - The new value for currency
      amount - The new value for amount
      chargeTimeType - The new value for chargeTimeType
      chargeAppliesTo - The new value for chargeAppliesTo
      chargeCalculationType - The new value for chargeCalculationType
      chargePaymentMode - The new value for chargePaymentMode
      feeOnMonthDay - The new value for feeOnMonthDay
      feeInterval - The new value for feeInterval
      minCap - The new value for minCap
      maxCap - The new value for maxCap
      feeFrequency - The new value for feeFrequency
      incomeOrLiabilityAccount - The new value for incomeOrLiabilityAccount
  • Method Details

    • getClassSchema

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

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

      public Boolean getActive()
      Gets the value of the 'active' field.
      Returns:
      The value of the 'active' field.
    • setActive

      public void setActive(Boolean value)
      Sets the value of the 'active' 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.
    • getFreeWithdrawal

      public Boolean getFreeWithdrawal()
      Gets the value of the 'freeWithdrawal' field.
      Returns:
      The value of the 'freeWithdrawal' field.
    • setFreeWithdrawal

      public void setFreeWithdrawal(Boolean value)
      Sets the value of the 'freeWithdrawal' 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.
    • getIsPaymentType

      public Boolean getIsPaymentType()
      Gets the value of the 'isPaymentType' field.
      Returns:
      The value of the 'isPaymentType' field.
    • setIsPaymentType

      public void setIsPaymentType(Boolean value)
      Sets the value of the 'isPaymentType' field.
      Parameters:
      value - the value to set.
    • getPaymentTypeOptions

      public PaymentTypeDataV1 getPaymentTypeOptions()
      Gets the value of the 'paymentTypeOptions' field.
      Returns:
      The value of the 'paymentTypeOptions' field.
    • setPaymentTypeOptions

      public void setPaymentTypeOptions(PaymentTypeDataV1 value)
      Sets the value of the 'paymentTypeOptions' 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.
    • 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.
    • getChargeAppliesTo

      public EnumOptionDataV1 getChargeAppliesTo()
      Gets the value of the 'chargeAppliesTo' field.
      Returns:
      The value of the 'chargeAppliesTo' field.
    • setChargeAppliesTo

      public void setChargeAppliesTo(EnumOptionDataV1 value)
      Sets the value of the 'chargeAppliesTo' 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.
    • 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.
    • 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.
    • 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.
    • getFeeFrequency

      public EnumOptionDataV1 getFeeFrequency()
      Gets the value of the 'feeFrequency' field.
      Returns:
      The value of the 'feeFrequency' field.
    • setFeeFrequency

      public void setFeeFrequency(EnumOptionDataV1 value)
      Sets the value of the 'feeFrequency' field.
      Parameters:
      value - the value to set.
    • getIncomeOrLiabilityAccount

      public GLAccountDataV1 getIncomeOrLiabilityAccount()
      Gets the value of the 'incomeOrLiabilityAccount' field.
      Returns:
      The value of the 'incomeOrLiabilityAccount' field.
    • setIncomeOrLiabilityAccount

      public void setIncomeOrLiabilityAccount(GLAccountDataV1 value)
      Sets the value of the 'incomeOrLiabilityAccount' field.
      Parameters:
      value - the value to set.
    • newBuilder

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

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

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