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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for SavingsAccountChargeDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<SavingsAccountChargeDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static SavingsAccountChargeDataV1Deserializes a SavingsAccountChargeDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'accountId' field.Gets the value of the 'amount' field.Gets the value of the 'amountOrPercentage' field.Gets the value of the 'amountOutstanding' field.Gets the value of the 'amountPaid' field.Gets the value of the 'amountPercentageAppliedTo' field.Gets the value of the 'amountWaived' field.Gets the value of the 'amountWrittenOff' field.Gets the value of the 'chargeCalculationType' field.Gets the value of the 'chargeData' field.Gets the value of the 'chargeId' 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<SavingsAccountChargeDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'dueDate' field.static org.apache.avro.message.BinaryMessageEncoder<SavingsAccountChargeDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'feeInterval' field.Gets the value of the 'feeOnMonthDay' field.Gets the value of the 'freeWithdrawalChargeFrequency' field.getId()Gets the value of the 'id' field.Gets the value of the 'inactivationDate' field.Gets the value of the 'isActive' field.Gets the value of the 'isFreeWithdrawal' field.getName()Gets the value of the 'name' field.Gets the value of the 'penalty' field.Gets the value of the 'percentage' field.Gets the value of the 'restartFrequency' field.Gets the value of the 'restartFrequencyEnum' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataCreates a new SavingsAccountChargeDataV1 RecordBuilder.Creates a new SavingsAccountChargeDataV1 RecordBuilder by copying an existing SavingsAccountChargeDataV1 instance.Creates a new SavingsAccountChargeDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAccountId(Long value) Sets the value of the 'accountId' field.voidsetAmount(BigDecimal value) Sets the value of the 'amount' field.voidsetAmountOrPercentage(BigDecimal value) Sets the value of the 'amountOrPercentage' field.voidsetAmountOutstanding(BigDecimal value) Sets the value of the 'amountOutstanding' field.voidsetAmountPaid(BigDecimal value) Sets the value of the 'amountPaid' field.voidSets the value of the 'amountPercentageAppliedTo' field.voidsetAmountWaived(BigDecimal value) Sets the value of the 'amountWaived' field.voidsetAmountWrittenOff(BigDecimal value) Sets the value of the 'amountWrittenOff' field.voidSets the value of the 'chargeCalculationType' field.voidsetChargeData(ChargeDataV1 value) Sets the value of the 'chargeData' field.voidsetChargeId(Long value) Sets the value of the 'chargeId' field.voidSets the value of the 'chargeTimeType' field.voidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidsetDueDate(String value) Sets the value of the 'dueDate' field.voidsetFeeInterval(Integer value) Sets the value of the 'feeInterval' field.voidsetFeeOnMonthDay(String value) Sets the value of the 'feeOnMonthDay' field.voidSets the value of the 'freeWithdrawalChargeFrequency' field.voidSets the value of the 'id' field.voidsetInactivationDate(String value) Sets the value of the 'inactivationDate' field.voidsetIsActive(Boolean value) Sets the value of the 'isActive' field.voidsetIsFreeWithdrawal(Boolean value) Sets the value of the 'isFreeWithdrawal' field.voidSets the value of the 'name' field.voidsetPenalty(Boolean value) Sets the value of the 'penalty' field.voidsetPercentage(BigDecimal value) Sets the value of the 'percentage' field.voidsetRestartFrequency(Integer value) Sets the value of the 'restartFrequency' field.voidsetRestartFrequencyEnum(Integer value) Sets the value of the 'restartFrequencyEnum' field.Serializes this SavingsAccountChargeDataV1 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
-
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 usenewBuilder(). -
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 idchargeId- The new value for chargeIdaccountId- The new value for accountIdname- The new value for namechargeTimeType- The new value for chargeTimeTypedueDate- The new value for dueDatefeeOnMonthDay- The new value for feeOnMonthDayfeeInterval- The new value for feeIntervalchargeCalculationType- The new value for chargeCalculationTypepercentage- The new value for percentageamountPercentageAppliedTo- The new value for amountPercentageAppliedTocurrency- The new value for currencyamount- The new value for amountamountPaid- The new value for amountPaidamountWaived- The new value for amountWaivedamountWrittenOff- The new value for amountWrittenOffamountOutstanding- The new value for amountOutstandingamountOrPercentage- The new value for amountOrPercentagepenalty- The new value for penaltyisActive- The new value for isActiveisFreeWithdrawal- The new value for isFreeWithdrawalfreeWithdrawalChargeFrequency- The new value for freeWithdrawalChargeFrequencyrestartFrequency- The new value for restartFrequencyrestartFrequencyEnum- The new value for restartFrequencyEnuminactivationDate- The new value for inactivationDatechargeData- The new value for chargeData
-
-
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<SavingsAccountChargeDataV1> 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 SavingsAccountChargeDataV1 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 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:
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.
-
getChargeId
Gets the value of the 'chargeId' field.- Returns:
- The value of the 'chargeId' field.
-
setChargeId
Sets the value of the 'chargeId' field.- Parameters:
value- the value to set.
-
getAccountId
Gets the value of the 'accountId' field.- Returns:
- The value of the 'accountId' field.
-
setAccountId
Sets the value of the 'accountId' 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.
-
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.
-
getDueDate
Gets the value of the 'dueDate' field.- Returns:
- The value of the 'dueDate' field.
-
setDueDate
Sets the value of the 'dueDate' 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.
-
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.
-
getPercentage
Gets the value of the 'percentage' field.- Returns:
- The value of the 'percentage' field.
-
setPercentage
Sets the value of the 'percentage' field.- Parameters:
value- the value to set.
-
getAmountPercentageAppliedTo
Gets the value of the 'amountPercentageAppliedTo' field.- Returns:
- The value of the 'amountPercentageAppliedTo' field.
-
setAmountPercentageAppliedTo
Sets the value of the 'amountPercentageAppliedTo' 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.
-
getAmountPaid
Gets the value of the 'amountPaid' field.- Returns:
- The value of the 'amountPaid' field.
-
setAmountPaid
Sets the value of the 'amountPaid' field.- Parameters:
value- the value to set.
-
getAmountWaived
Gets the value of the 'amountWaived' field.- Returns:
- The value of the 'amountWaived' field.
-
setAmountWaived
Sets the value of the 'amountWaived' field.- Parameters:
value- the value to set.
-
getAmountWrittenOff
Gets the value of the 'amountWrittenOff' field.- Returns:
- The value of the 'amountWrittenOff' field.
-
setAmountWrittenOff
Sets the value of the 'amountWrittenOff' field.- Parameters:
value- the value to set.
-
getAmountOutstanding
Gets the value of the 'amountOutstanding' field.- Returns:
- The value of the 'amountOutstanding' field.
-
setAmountOutstanding
Sets the value of the 'amountOutstanding' field.- Parameters:
value- the value to set.
-
getAmountOrPercentage
Gets the value of the 'amountOrPercentage' field.- Returns:
- The value of the 'amountOrPercentage' field.
-
setAmountOrPercentage
Sets the value of the 'amountOrPercentage' 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.
-
getIsActive
Gets the value of the 'isActive' field.- Returns:
- The value of the 'isActive' field.
-
setIsActive
Sets the value of the 'isActive' field.- Parameters:
value- the value to set.
-
getIsFreeWithdrawal
Gets the value of the 'isFreeWithdrawal' field.- Returns:
- The value of the 'isFreeWithdrawal' field.
-
setIsFreeWithdrawal
Sets the value of the 'isFreeWithdrawal' 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.
-
getInactivationDate
Gets the value of the 'inactivationDate' field.- Returns:
- The value of the 'inactivationDate' field.
-
setInactivationDate
Sets the value of the 'inactivationDate' field.- Parameters:
value- the value to set.
-
getChargeData
Gets the value of the 'chargeData' field.- Returns:
- The value of the 'chargeData' field.
-
setChargeData
Sets the value of the 'chargeData' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new SavingsAccountChargeDataV1 RecordBuilder.- Returns:
- A new SavingsAccountChargeDataV1 RecordBuilder
-
newBuilder
public static SavingsAccountChargeDataV1.Builder newBuilder(SavingsAccountChargeDataV1.Builder other) 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
- 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
-