Package org.apache.fineract.avro.loan.v1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for LoanChargeDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<LoanChargeDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static LoanChargeDataV1Deserializes a LoanChargeDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'amount' field.Gets the value of the 'amountAccrued' 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 'amountUnrecognized' 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 'chargeId' field.Gets the value of the 'chargeOptions' field.Gets the value of the 'chargePayable' 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.Gets the value of the 'customData' field.static org.apache.avro.message.BinaryMessageDecoder<LoanChargeDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'dueDate' field.static org.apache.avro.message.BinaryMessageEncoder<LoanChargeDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'externalId' field.Gets the value of the 'externalLoanId' field.Gets the value of the 'externalOwnerId' field.getId()Gets the value of the 'id' field.Gets the value of the 'installmentChargeData' field.Gets the value of the 'loanId' field.Gets the value of the 'maxCap' field.Gets the value of the 'minCap' field.getName()Gets the value of the 'name' field.getPaid()Gets the value of the 'paid' field.Gets the value of the 'penalty' field.Gets the value of the 'percentage' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'submittedOnDate' field.Gets the value of the 'waived' field.static LoanChargeDataV1.BuilderCreates a new LoanChargeDataV1 RecordBuilder.static LoanChargeDataV1.BuildernewBuilder(LoanChargeDataV1 other) Creates a new LoanChargeDataV1 RecordBuilder by copying an existing LoanChargeDataV1 instance.static LoanChargeDataV1.BuilderCreates a new LoanChargeDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAmount(BigDecimal value) Sets the value of the 'amount' field.voidsetAmountAccrued(BigDecimal value) Sets the value of the 'amountAccrued' 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.voidsetAmountUnrecognized(BigDecimal value) Sets the value of the 'amountUnrecognized' 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.voidsetChargeId(Long value) Sets the value of the 'chargeId' field.voidsetChargeOptions(List<ChargeDataV1> value) Sets the value of the 'chargeOptions' field.voidsetChargePayable(Boolean value) Sets the value of the 'chargePayable' 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.voidsetCustomData(Map<String, ByteBuffer> value) Sets the value of the 'customData' field.voidsetDueDate(String value) Sets the value of the 'dueDate' field.voidsetExternalId(String value) Sets the value of the 'externalId' field.voidsetExternalLoanId(String value) Sets the value of the 'externalLoanId' field.voidsetExternalOwnerId(String value) Sets the value of the 'externalOwnerId' field.voidSets the value of the 'id' field.voidSets the value of the 'installmentChargeData' field.voidSets the value of the 'loanId' 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 'paid' field.voidsetPenalty(Boolean value) Sets the value of the 'penalty' field.voidsetPercentage(BigDecimal value) Sets the value of the 'percentage' field.voidsetSubmittedOnDate(String value) Sets the value of the 'submittedOnDate' field.voidSets the value of the 'waived' field.Serializes this LoanChargeDataV1 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
-
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 usenewBuilder(). -
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 idchargeId- The new value for chargeIdname- The new value for namechargeTimeType- The new value for chargeTimeTypedueDate- The new value for dueDatechargeCalculationType- 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 amountOrPercentagechargeOptions- The new value for chargeOptionspenalty- The new value for penaltychargePaymentMode- The new value for chargePaymentModepaid- The new value for paidwaived- The new value for waivedchargePayable- The new value for chargePayableloanId- The new value for loanIdminCap- The new value for minCapmaxCap- The new value for maxCapinstallmentChargeData- The new value for installmentChargeDataamountAccrued- The new value for amountAccruedamountUnrecognized- The new value for amountUnrecognizedexternalId- The new value for externalIdexternalLoanId- The new value for externalLoanIdexternalOwnerId- The new value for externalOwnerIdsubmittedOnDate- The new value for submittedOnDatecustomData- The new value for customData
-
-
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<LoanChargeDataV1> 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 LoanChargeDataV1 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 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:
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.
-
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.
-
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.
-
getChargeOptions
Gets the value of the 'chargeOptions' field.- Returns:
- The value of the 'chargeOptions' field.
-
setChargeOptions
Sets the value of the 'chargeOptions' 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.
-
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.
-
getPaid
Gets the value of the 'paid' field.- Returns:
- The value of the 'paid' field.
-
setPaid
Sets the value of the 'paid' field.- Parameters:
value- the value to set.
-
getWaived
Gets the value of the 'waived' field.- Returns:
- The value of the 'waived' field.
-
setWaived
Sets the value of the 'waived' field.- Parameters:
value- the value to set.
-
getChargePayable
Gets the value of the 'chargePayable' field.- Returns:
- The value of the 'chargePayable' field.
-
setChargePayable
Sets the value of the 'chargePayable' field.- Parameters:
value- the value to set.
-
getLoanId
Gets the value of the 'loanId' field.- Returns:
- The value of the 'loanId' field.
-
setLoanId
Sets the value of the 'loanId' 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.
-
getInstallmentChargeData
Gets the value of the 'installmentChargeData' field.- Returns:
- The value of the 'installmentChargeData' field.
-
setInstallmentChargeData
Sets the value of the 'installmentChargeData' field.- Parameters:
value- the value to set.
-
getAmountAccrued
Gets the value of the 'amountAccrued' field.- Returns:
- The value of the 'amountAccrued' field.
-
setAmountAccrued
Sets the value of the 'amountAccrued' field.- Parameters:
value- the value to set.
-
getAmountUnrecognized
Gets the value of the 'amountUnrecognized' field.- Returns:
- The value of the 'amountUnrecognized' field.
-
setAmountUnrecognized
Sets the value of the 'amountUnrecognized' field.- Parameters:
value- the value to set.
-
getExternalId
Gets the value of the 'externalId' field.- Returns:
- The value of the 'externalId' field.
-
setExternalId
Sets the value of the 'externalId' field.- Parameters:
value- the value to set.
-
getExternalLoanId
Gets the value of the 'externalLoanId' field.- Returns:
- The value of the 'externalLoanId' field.
-
setExternalLoanId
Sets the value of the 'externalLoanId' field.- Parameters:
value- the value to set.
-
getExternalOwnerId
Gets the value of the 'externalOwnerId' field.- Returns:
- The value of the 'externalOwnerId' field.
-
setExternalOwnerId
Sets the value of the 'externalOwnerId' field.- Parameters:
value- the value to set.
-
getSubmittedOnDate
Gets the value of the 'submittedOnDate' field.- Returns:
- The value of the 'submittedOnDate' field.
-
setSubmittedOnDate
Sets the value of the 'submittedOnDate' field.- Parameters:
value- the value to set.
-
getCustomData
Gets the value of the 'customData' field.- Returns:
- The value of the 'customData' field.
-
setCustomData
Sets the value of the 'customData' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new LoanChargeDataV1 RecordBuilder.- Returns:
- A new LoanChargeDataV1 RecordBuilder
-
newBuilder
Creates a new LoanChargeDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new LoanChargeDataV1 RecordBuilder
-
newBuilder
Creates a new LoanChargeDataV1 RecordBuilder by copying an existing LoanChargeDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new LoanChargeDataV1 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
-