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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for ChargeDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<ChargeDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static ChargeDataV1Deserializes a ChargeDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'active' field.Gets the value of the 'amount' field.Gets the value of the 'chargeAppliesTo' field.Gets the value of the 'chargeCalculationType' field.Gets the value of the 'chargePaymentMode' field.Gets the value of the 'chargeTimeType' field.static org.apache.avro.SchemaGets the value of the 'currency' field.static org.apache.avro.message.BinaryMessageDecoder<ChargeDataV1> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<ChargeDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'feeFrequency' field.Gets the value of the 'feeInterval' field.Gets the value of the 'feeOnMonthDay' field.Gets the value of the 'freeWithdrawal' field.Gets the value of the 'freeWithdrawalChargeFrequency' field.getId()Gets the value of the 'id' field.Gets the value of the 'incomeOrLiabilityAccount' field.Gets the value of the 'isPaymentType' field.Gets the value of the 'maxCap' field.Gets the value of the 'minCap' field.getName()Gets the value of the 'name' field.Gets the value of the 'paymentTypeOptions' field.Gets the value of the 'penalty' field.Gets the value of the 'restartFrequency' field.Gets the value of the 'restartFrequencyEnum' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDatastatic ChargeDataV1.BuilderCreates a new ChargeDataV1 RecordBuilder.static ChargeDataV1.BuildernewBuilder(ChargeDataV1 other) Creates a new ChargeDataV1 RecordBuilder by copying an existing ChargeDataV1 instance.static ChargeDataV1.BuildernewBuilder(ChargeDataV1.Builder other) Creates a new ChargeDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidSets the value of the 'active' field.voidsetAmount(BigDecimal value) Sets the value of the 'amount' field.voidSets the value of the 'chargeAppliesTo' field.voidSets the value of the 'chargeCalculationType' field.voidSets the value of the 'chargePaymentMode' field.voidSets the value of the 'chargeTimeType' field.voidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidsetFeeFrequency(EnumOptionDataV1 value) Sets the value of the 'feeFrequency' field.voidsetFeeInterval(Integer value) Sets the value of the 'feeInterval' field.voidsetFeeOnMonthDay(String value) Sets the value of the 'feeOnMonthDay' field.voidsetFreeWithdrawal(Boolean value) Sets the value of the 'freeWithdrawal' field.voidSets the value of the 'freeWithdrawalChargeFrequency' field.voidSets the value of the 'id' field.voidSets the value of the 'incomeOrLiabilityAccount' field.voidsetIsPaymentType(Boolean value) Sets the value of the 'isPaymentType' field.voidsetMaxCap(BigDecimal value) Sets the value of the 'maxCap' field.voidsetMinCap(BigDecimal value) Sets the value of the 'minCap' field.voidSets the value of the 'name' field.voidSets the value of the 'paymentTypeOptions' field.voidsetPenalty(Boolean value) Sets the value of the 'penalty' field.voidsetRestartFrequency(Integer value) Sets the value of the 'restartFrequency' field.voidsetRestartFrequencyEnum(Integer value) Sets the value of the 'restartFrequencyEnum' field.Serializes this ChargeDataV1 to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
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 usenewBuilder(). -
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 idname- The new value for nameactive- The new value for activepenalty- The new value for penaltyfreeWithdrawal- The new value for freeWithdrawalfreeWithdrawalChargeFrequency- The new value for freeWithdrawalChargeFrequencyrestartFrequency- The new value for restartFrequencyrestartFrequencyEnum- The new value for restartFrequencyEnumisPaymentType- The new value for isPaymentTypepaymentTypeOptions- The new value for paymentTypeOptionscurrency- The new value for currencyamount- The new value for amountchargeTimeType- The new value for chargeTimeTypechargeAppliesTo- The new value for chargeAppliesTochargeCalculationType- The new value for chargeCalculationTypechargePaymentMode- The new value for chargePaymentModefeeOnMonthDay- The new value for feeOnMonthDayfeeInterval- The new value for feeIntervalminCap- The new value for minCapmaxCap- The new value for maxCapfeeFrequency- The new value for feeFrequencyincomeOrLiabilityAccount- The new value for incomeOrLiabilityAccount
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
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 specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this ChargeDataV1 to a ByteBuffer.- Specified by:
toByteBufferin interfaceByteBufferSerializable- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
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:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getId
Gets the value of the 'id' field.- Returns:
- The value of the 'id' field.
-
setId
Sets the value of the 'id' field.- Parameters:
value- the value to set.
-
getName
Gets the value of the 'name' field.- Returns:
- The value of the 'name' field.
-
setName
Sets the value of the 'name' field.- Parameters:
value- the value to set.
-
getActive
Gets the value of the 'active' field.- Returns:
- The value of the 'active' field.
-
setActive
Sets the value of the 'active' field.- Parameters:
value- the value to set.
-
getPenalty
Gets the value of the 'penalty' field.- Returns:
- The value of the 'penalty' field.
-
setPenalty
Sets the value of the 'penalty' field.- Parameters:
value- the value to set.
-
getFreeWithdrawal
Gets the value of the 'freeWithdrawal' field.- Returns:
- The value of the 'freeWithdrawal' field.
-
setFreeWithdrawal
Sets the value of the 'freeWithdrawal' field.- Parameters:
value- the value to set.
-
getFreeWithdrawalChargeFrequency
Gets the value of the 'freeWithdrawalChargeFrequency' field.- Returns:
- The value of the 'freeWithdrawalChargeFrequency' field.
-
setFreeWithdrawalChargeFrequency
Sets the value of the 'freeWithdrawalChargeFrequency' field.- Parameters:
value- the value to set.
-
getRestartFrequency
Gets the value of the 'restartFrequency' field.- Returns:
- The value of the 'restartFrequency' field.
-
setRestartFrequency
Sets the value of the 'restartFrequency' field.- Parameters:
value- the value to set.
-
getRestartFrequencyEnum
Gets the value of the 'restartFrequencyEnum' field.- Returns:
- The value of the 'restartFrequencyEnum' field.
-
setRestartFrequencyEnum
Sets the value of the 'restartFrequencyEnum' field.- Parameters:
value- the value to set.
-
getIsPaymentType
Gets the value of the 'isPaymentType' field.- Returns:
- The value of the 'isPaymentType' field.
-
setIsPaymentType
Sets the value of the 'isPaymentType' field.- Parameters:
value- the value to set.
-
getPaymentTypeOptions
Gets the value of the 'paymentTypeOptions' field.- Returns:
- The value of the 'paymentTypeOptions' field.
-
setPaymentTypeOptions
Sets the value of the 'paymentTypeOptions' field.- Parameters:
value- the value to set.
-
getCurrency
Gets the value of the 'currency' field.- Returns:
- The value of the 'currency' field.
-
setCurrency
Sets the value of the 'currency' field.- Parameters:
value- the value to set.
-
getAmount
Gets the value of the 'amount' field.- Returns:
- The value of the 'amount' field.
-
setAmount
Sets the value of the 'amount' field.- Parameters:
value- the value to set.
-
getChargeTimeType
Gets the value of the 'chargeTimeType' field.- Returns:
- The value of the 'chargeTimeType' field.
-
setChargeTimeType
Sets the value of the 'chargeTimeType' field.- Parameters:
value- the value to set.
-
getChargeAppliesTo
Gets the value of the 'chargeAppliesTo' field.- Returns:
- The value of the 'chargeAppliesTo' field.
-
setChargeAppliesTo
Sets the value of the 'chargeAppliesTo' field.- Parameters:
value- the value to set.
-
getChargeCalculationType
Gets the value of the 'chargeCalculationType' field.- Returns:
- The value of the 'chargeCalculationType' field.
-
setChargeCalculationType
Sets the value of the 'chargeCalculationType' field.- Parameters:
value- the value to set.
-
getChargePaymentMode
Gets the value of the 'chargePaymentMode' field.- Returns:
- The value of the 'chargePaymentMode' field.
-
setChargePaymentMode
Sets the value of the 'chargePaymentMode' field.- Parameters:
value- the value to set.
-
getFeeOnMonthDay
Gets the value of the 'feeOnMonthDay' field.- Returns:
- The value of the 'feeOnMonthDay' field.
-
setFeeOnMonthDay
Sets the value of the 'feeOnMonthDay' field.- Parameters:
value- the value to set.
-
getFeeInterval
Gets the value of the 'feeInterval' field.- Returns:
- The value of the 'feeInterval' field.
-
setFeeInterval
Sets the value of the 'feeInterval' field.- Parameters:
value- the value to set.
-
getMinCap
Gets the value of the 'minCap' field.- Returns:
- The value of the 'minCap' field.
-
setMinCap
Sets the value of the 'minCap' field.- Parameters:
value- the value to set.
-
getMaxCap
Gets the value of the 'maxCap' field.- Returns:
- The value of the 'maxCap' field.
-
setMaxCap
Sets the value of the 'maxCap' field.- Parameters:
value- the value to set.
-
getFeeFrequency
Gets the value of the 'feeFrequency' field.- Returns:
- The value of the 'feeFrequency' field.
-
setFeeFrequency
Sets the value of the 'feeFrequency' field.- Parameters:
value- the value to set.
-
getIncomeOrLiabilityAccount
Gets the value of the 'incomeOrLiabilityAccount' field.- Returns:
- The value of the 'incomeOrLiabilityAccount' field.
-
setIncomeOrLiabilityAccount
Sets the value of the 'incomeOrLiabilityAccount' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new ChargeDataV1 RecordBuilder.- Returns:
- A new ChargeDataV1 RecordBuilder
-
newBuilder
Creates a new ChargeDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new ChargeDataV1 RecordBuilder
-
newBuilder
Creates a new ChargeDataV1 RecordBuilder by copying an existing ChargeDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new ChargeDataV1 RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-