Package org.apache.fineract.avro.loan.v1
Class LoanTransactionDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.loan.v1.LoanTransactionDataV1
- 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 LoanTransactionDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for LoanTransactionDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.LoanTransactionDataV1(Long id, Long loanId, String externalLoanId, Long officeId, String officeName, LoanTransactionEnumDataV1 type, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal netDisbursalAmount, BigDecimal principalPortion, BigDecimal interestPortion, BigDecimal feeChargesPortion, BigDecimal penaltyChargesPortion, BigDecimal overpaymentPortion, BigDecimal unrecognizedIncomePortion, String externalId, String externalOwnerId, AccountTransferDataV1 transfer, BigDecimal fixedEmiAmount, BigDecimal outstandingLoanBalance, String submittedOnDate, Boolean manuallyReversed, String possibleNextRepaymentDate, List<LoanChargePaidByDataV1> loanChargePaidByList, List<LoanTransactionRelationDataV1> transactionRelations, List<UnpaidChargeDataV1> unpaidCharges, String reversedOnDate, Map<String, ByteBuffer> customData, Boolean reversed) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<LoanTransactionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static LoanTransactionDataV1Deserializes a LoanTransactionDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'amount' field.static org.apache.avro.SchemaGets the value of the 'currency' field.Gets the value of the 'customData' field.getDate()Gets the value of the 'date' field.static org.apache.avro.message.BinaryMessageDecoder<LoanTransactionDataV1> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<LoanTransactionDataV1> 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.Gets the value of the 'feeChargesPortion' field.Gets the value of the 'fixedEmiAmount' field.getId()Gets the value of the 'id' field.Gets the value of the 'interestPortion' field.Gets the value of the 'loanChargePaidByList' field.Gets the value of the 'loanId' field.Gets the value of the 'manuallyReversed' field.Gets the value of the 'netDisbursalAmount' field.Gets the value of the 'officeId' field.Gets the value of the 'officeName' field.Gets the value of the 'outstandingLoanBalance' field.Gets the value of the 'overpaymentPortion' field.Gets the value of the 'paymentDetailData' field.Gets the value of the 'penaltyChargesPortion' field.Gets the value of the 'possibleNextRepaymentDate' field.Gets the value of the 'principalPortion' field.Gets the value of the 'reversed' field.Gets the value of the 'reversedOnDate' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'submittedOnDate' field.Gets the value of the 'transactionRelations' field.Gets the value of the 'transfer' field.getType()Gets the value of the 'type' field.Gets the value of the 'unpaidCharges' field.Gets the value of the 'unrecognizedIncomePortion' field.Creates a new LoanTransactionDataV1 RecordBuilder.newBuilder(LoanTransactionDataV1 other) Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing LoanTransactionDataV1 instance.Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAmount(BigDecimal value) Sets the value of the 'amount' field.voidsetCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.voidsetCustomData(Map<String, ByteBuffer> value) Sets the value of the 'customData' field.voidSets the value of the 'date' 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.voidsetFeeChargesPortion(BigDecimal value) Sets the value of the 'feeChargesPortion' field.voidsetFixedEmiAmount(BigDecimal value) Sets the value of the 'fixedEmiAmount' field.voidSets the value of the 'id' field.voidsetInterestPortion(BigDecimal value) Sets the value of the 'interestPortion' field.voidSets the value of the 'loanChargePaidByList' field.voidSets the value of the 'loanId' field.voidsetManuallyReversed(Boolean value) Sets the value of the 'manuallyReversed' field.voidsetNetDisbursalAmount(BigDecimal value) Sets the value of the 'netDisbursalAmount' field.voidsetOfficeId(Long value) Sets the value of the 'officeId' field.voidsetOfficeName(String value) Sets the value of the 'officeName' field.voidSets the value of the 'outstandingLoanBalance' field.voidsetOverpaymentPortion(BigDecimal value) Sets the value of the 'overpaymentPortion' field.voidSets the value of the 'paymentDetailData' field.voidSets the value of the 'penaltyChargesPortion' field.voidSets the value of the 'possibleNextRepaymentDate' field.voidsetPrincipalPortion(BigDecimal value) Sets the value of the 'principalPortion' field.voidsetReversed(Boolean value) Sets the value of the 'reversed' field.voidsetReversedOnDate(String value) Sets the value of the 'reversedOnDate' field.voidsetSubmittedOnDate(String value) Sets the value of the 'submittedOnDate' field.voidSets the value of the 'transactionRelations' field.voidsetTransfer(AccountTransferDataV1 value) Sets the value of the 'transfer' field.voidsetType(LoanTransactionEnumDataV1 value) Sets the value of the 'type' field.voidsetUnpaidCharges(List<UnpaidChargeDataV1> value) Sets the value of the 'unpaidCharges' field.voidSets the value of the 'unrecognizedIncomePortion' field.Serializes this LoanTransactionDataV1 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
-
LoanTransactionDataV1
public LoanTransactionDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
LoanTransactionDataV1
public LoanTransactionDataV1(Long id, Long loanId, String externalLoanId, Long officeId, String officeName, LoanTransactionEnumDataV1 type, String date, CurrencyDataV1 currency, PaymentDetailDataV1 paymentDetailData, BigDecimal amount, BigDecimal netDisbursalAmount, BigDecimal principalPortion, BigDecimal interestPortion, BigDecimal feeChargesPortion, BigDecimal penaltyChargesPortion, BigDecimal overpaymentPortion, BigDecimal unrecognizedIncomePortion, String externalId, String externalOwnerId, AccountTransferDataV1 transfer, BigDecimal fixedEmiAmount, BigDecimal outstandingLoanBalance, String submittedOnDate, Boolean manuallyReversed, String possibleNextRepaymentDate, List<LoanChargePaidByDataV1> loanChargePaidByList, List<LoanTransactionRelationDataV1> transactionRelations, List<UnpaidChargeDataV1> unpaidCharges, String reversedOnDate, Map<String, ByteBuffer> customData, Boolean reversed) All-args constructor.- Parameters:
id- The new value for idloanId- The new value for loanIdexternalLoanId- The new value for externalLoanIdofficeId- The new value for officeIdofficeName- The new value for officeNametype- The new value for typedate- The new value for datecurrency- The new value for currencypaymentDetailData- The new value for paymentDetailDataamount- The new value for amountnetDisbursalAmount- The new value for netDisbursalAmountprincipalPortion- The new value for principalPortioninterestPortion- The new value for interestPortionfeeChargesPortion- The new value for feeChargesPortionpenaltyChargesPortion- The new value for penaltyChargesPortionoverpaymentPortion- The new value for overpaymentPortionunrecognizedIncomePortion- The new value for unrecognizedIncomePortionexternalId- The new value for externalIdexternalOwnerId- The new value for externalOwnerIdtransfer- The new value for transferfixedEmiAmount- The new value for fixedEmiAmountoutstandingLoanBalance- The new value for outstandingLoanBalancesubmittedOnDate- The new value for submittedOnDatemanuallyReversed- The new value for manuallyReversedpossibleNextRepaymentDate- The new value for possibleNextRepaymentDateloanChargePaidByList- The new value for loanChargePaidByListtransactionRelations- The new value for transactionRelationsunpaidCharges- Only used for Charge-off transactionreversedOnDate- The new value for reversedOnDatecustomData- The new value for customDatareversed- The new value for reversed
-
-
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<LoanTransactionDataV1> 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 LoanTransactionDataV1 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 LoanTransactionDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a LoanTransactionDataV1 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.
-
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.
-
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.
-
getOfficeId
Gets the value of the 'officeId' field.- Returns:
- The value of the 'officeId' field.
-
setOfficeId
Sets the value of the 'officeId' field.- Parameters:
value- the value to set.
-
getOfficeName
Gets the value of the 'officeName' field.- Returns:
- The value of the 'officeName' field.
-
setOfficeName
Sets the value of the 'officeName' field.- Parameters:
value- the value to set.
-
getType
Gets the value of the 'type' field.- Returns:
- The value of the 'type' field.
-
setType
Sets the value of the 'type' field.- Parameters:
value- the value to set.
-
getDate
Gets the value of the 'date' field.- Returns:
- The value of the 'date' field.
-
setDate
Sets the value of the 'date' 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.
-
getPaymentDetailData
Gets the value of the 'paymentDetailData' field.- Returns:
- The value of the 'paymentDetailData' field.
-
setPaymentDetailData
Sets the value of the 'paymentDetailData' 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.
-
getNetDisbursalAmount
Gets the value of the 'netDisbursalAmount' field.- Returns:
- The value of the 'netDisbursalAmount' field.
-
setNetDisbursalAmount
Sets the value of the 'netDisbursalAmount' field.- Parameters:
value- the value to set.
-
getPrincipalPortion
Gets the value of the 'principalPortion' field.- Returns:
- The value of the 'principalPortion' field.
-
setPrincipalPortion
Sets the value of the 'principalPortion' field.- Parameters:
value- the value to set.
-
getInterestPortion
Gets the value of the 'interestPortion' field.- Returns:
- The value of the 'interestPortion' field.
-
setInterestPortion
Sets the value of the 'interestPortion' field.- Parameters:
value- the value to set.
-
getFeeChargesPortion
Gets the value of the 'feeChargesPortion' field.- Returns:
- The value of the 'feeChargesPortion' field.
-
setFeeChargesPortion
Sets the value of the 'feeChargesPortion' field.- Parameters:
value- the value to set.
-
getPenaltyChargesPortion
Gets the value of the 'penaltyChargesPortion' field.- Returns:
- The value of the 'penaltyChargesPortion' field.
-
setPenaltyChargesPortion
Sets the value of the 'penaltyChargesPortion' field.- Parameters:
value- the value to set.
-
getOverpaymentPortion
Gets the value of the 'overpaymentPortion' field.- Returns:
- The value of the 'overpaymentPortion' field.
-
setOverpaymentPortion
Sets the value of the 'overpaymentPortion' field.- Parameters:
value- the value to set.
-
getUnrecognizedIncomePortion
Gets the value of the 'unrecognizedIncomePortion' field.- Returns:
- The value of the 'unrecognizedIncomePortion' field.
-
setUnrecognizedIncomePortion
Sets the value of the 'unrecognizedIncomePortion' 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.
-
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.
-
getTransfer
Gets the value of the 'transfer' field.- Returns:
- The value of the 'transfer' field.
-
setTransfer
Sets the value of the 'transfer' field.- Parameters:
value- the value to set.
-
getFixedEmiAmount
Gets the value of the 'fixedEmiAmount' field.- Returns:
- The value of the 'fixedEmiAmount' field.
-
setFixedEmiAmount
Sets the value of the 'fixedEmiAmount' field.- Parameters:
value- the value to set.
-
getOutstandingLoanBalance
Gets the value of the 'outstandingLoanBalance' field.- Returns:
- The value of the 'outstandingLoanBalance' field.
-
setOutstandingLoanBalance
Sets the value of the 'outstandingLoanBalance' 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.
-
getManuallyReversed
Gets the value of the 'manuallyReversed' field.- Returns:
- The value of the 'manuallyReversed' field.
-
setManuallyReversed
Sets the value of the 'manuallyReversed' field.- Parameters:
value- the value to set.
-
getPossibleNextRepaymentDate
Gets the value of the 'possibleNextRepaymentDate' field.- Returns:
- The value of the 'possibleNextRepaymentDate' field.
-
setPossibleNextRepaymentDate
Sets the value of the 'possibleNextRepaymentDate' field.- Parameters:
value- the value to set.
-
getLoanChargePaidByList
Gets the value of the 'loanChargePaidByList' field.- Returns:
- The value of the 'loanChargePaidByList' field.
-
setLoanChargePaidByList
Sets the value of the 'loanChargePaidByList' field.- Parameters:
value- the value to set.
-
getTransactionRelations
Gets the value of the 'transactionRelations' field.- Returns:
- The value of the 'transactionRelations' field.
-
setTransactionRelations
Sets the value of the 'transactionRelations' field.- Parameters:
value- the value to set.
-
getUnpaidCharges
Gets the value of the 'unpaidCharges' field.- Returns:
- Only used for Charge-off transaction
-
setUnpaidCharges
Sets the value of the 'unpaidCharges' field. Only used for Charge-off transaction- Parameters:
value- the value to set.
-
getReversedOnDate
Gets the value of the 'reversedOnDate' field.- Returns:
- The value of the 'reversedOnDate' field.
-
setReversedOnDate
Sets the value of the 'reversedOnDate' 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.
-
getReversed
Gets the value of the 'reversed' field.- Returns:
- The value of the 'reversed' field.
-
setReversed
Sets the value of the 'reversed' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new LoanTransactionDataV1 RecordBuilder.- Returns:
- A new LoanTransactionDataV1 RecordBuilder
-
newBuilder
Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new LoanTransactionDataV1 RecordBuilder
-
newBuilder
Creates a new LoanTransactionDataV1 RecordBuilder by copying an existing LoanTransactionDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new LoanTransactionDataV1 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
-