Package org.apache.fineract.avro.loan.v1
Class LoanTransactionEnumDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.loan.v1.LoanTransactionEnumDataV1
- 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 LoanTransactionEnumDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for LoanTransactionEnumDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.LoanTransactionEnumDataV1(Integer id, String code, String value, Boolean disbursement, Boolean repaymentAtDisbursement, Boolean repayment, Boolean merchantIssuedRefund, Boolean payoutRefund, Boolean goodwillCredit, Boolean chargeRefund, Boolean contra, Boolean waiveInterest, Boolean waiveCharges, Boolean accrual, Boolean writeOff, Boolean recoveryRepayment, Boolean initiateTransfer, Boolean approveTransfer, Boolean withdrawTransfer, Boolean rejectTransfer, Boolean chargePayment, Boolean refund, Boolean refundForActiveLoans, Boolean creditBalanceRefund, Boolean chargeback) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<LoanTransactionEnumDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.voidcustomDecode(org.apache.avro.io.ResolvingDecoder in) voidcustomEncode(org.apache.avro.io.Encoder out) static LoanTransactionEnumDataV1Deserializes a LoanTransactionEnumDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'accrual' field.Gets the value of the 'approveTransfer' field.Gets the value of the 'chargeback' field.Gets the value of the 'chargePayment' field.Gets the value of the 'chargeRefund' field.static org.apache.avro.SchemagetCode()Gets the value of the 'code' field.Gets the value of the 'contra' field.Gets the value of the 'creditBalanceRefund' field.static org.apache.avro.message.BinaryMessageDecoder<LoanTransactionEnumDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'disbursement' field.static org.apache.avro.message.BinaryMessageEncoder<LoanTransactionEnumDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'goodwillCredit' field.getId()Gets the value of the 'id' field.Gets the value of the 'initiateTransfer' field.Gets the value of the 'merchantIssuedRefund' field.Gets the value of the 'payoutRefund' field.Gets the value of the 'recoveryRepayment' field.Gets the value of the 'refund' field.Gets the value of the 'refundForActiveLoans' field.Gets the value of the 'rejectTransfer' field.Gets the value of the 'repayment' field.Gets the value of the 'repaymentAtDisbursement' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDatagetValue()Gets the value of the 'value' field.Gets the value of the 'waiveCharges' field.Gets the value of the 'waiveInterest' field.Gets the value of the 'withdrawTransfer' field.Gets the value of the 'writeOff' field.protected booleanCreates a new LoanTransactionEnumDataV1 RecordBuilder.Creates a new LoanTransactionEnumDataV1 RecordBuilder by copying an existing LoanTransactionEnumDataV1 instance.Creates a new LoanTransactionEnumDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidsetAccrual(Boolean value) Sets the value of the 'accrual' field.voidsetApproveTransfer(Boolean value) Sets the value of the 'approveTransfer' field.voidsetChargeback(Boolean value) Sets the value of the 'chargeback' field.voidsetChargePayment(Boolean value) Sets the value of the 'chargePayment' field.voidsetChargeRefund(Boolean value) Sets the value of the 'chargeRefund' field.voidSets the value of the 'code' field.voidSets the value of the 'contra' field.voidsetCreditBalanceRefund(Boolean value) Sets the value of the 'creditBalanceRefund' field.voidsetDisbursement(Boolean value) Sets the value of the 'disbursement' field.voidsetGoodwillCredit(Boolean value) Sets the value of the 'goodwillCredit' field.voidSets the value of the 'id' field.voidsetInitiateTransfer(Boolean value) Sets the value of the 'initiateTransfer' field.voidsetMerchantIssuedRefund(Boolean value) Sets the value of the 'merchantIssuedRefund' field.voidsetPayoutRefund(Boolean value) Sets the value of the 'payoutRefund' field.voidsetRecoveryRepayment(Boolean value) Sets the value of the 'recoveryRepayment' field.voidSets the value of the 'refund' field.voidsetRefundForActiveLoans(Boolean value) Sets the value of the 'refundForActiveLoans' field.voidsetRejectTransfer(Boolean value) Sets the value of the 'rejectTransfer' field.voidsetRepayment(Boolean value) Sets the value of the 'repayment' field.voidSets the value of the 'repaymentAtDisbursement' field.voidSets the value of the 'value' field.voidsetWaiveCharges(Boolean value) Sets the value of the 'waiveCharges' field.voidsetWaiveInterest(Boolean value) Sets the value of the 'waiveInterest' field.voidsetWithdrawTransfer(Boolean value) Sets the value of the 'withdrawTransfer' field.voidsetWriteOff(Boolean value) Sets the value of the 'writeOff' field.Serializes this LoanTransactionEnumDataV1 to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, get, getConversion, getConversion, 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
-
LoanTransactionEnumDataV1
public LoanTransactionEnumDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
LoanTransactionEnumDataV1
public LoanTransactionEnumDataV1(Integer id, String code, String value, Boolean disbursement, Boolean repaymentAtDisbursement, Boolean repayment, Boolean merchantIssuedRefund, Boolean payoutRefund, Boolean goodwillCredit, Boolean chargeRefund, Boolean contra, Boolean waiveInterest, Boolean waiveCharges, Boolean accrual, Boolean writeOff, Boolean recoveryRepayment, Boolean initiateTransfer, Boolean approveTransfer, Boolean withdrawTransfer, Boolean rejectTransfer, Boolean chargePayment, Boolean refund, Boolean refundForActiveLoans, Boolean creditBalanceRefund, Boolean chargeback) All-args constructor.- Parameters:
id- The new value for idcode- The new value for codevalue- The new value for valuedisbursement- The new value for disbursementrepaymentAtDisbursement- The new value for repaymentAtDisbursementrepayment- The new value for repaymentmerchantIssuedRefund- The new value for merchantIssuedRefundpayoutRefund- The new value for payoutRefundgoodwillCredit- The new value for goodwillCreditchargeRefund- The new value for chargeRefundcontra- The new value for contrawaiveInterest- The new value for waiveInterestwaiveCharges- The new value for waiveChargesaccrual- The new value for accrualwriteOff- The new value for writeOffrecoveryRepayment- The new value for recoveryRepaymentinitiateTransfer- The new value for initiateTransferapproveTransfer- The new value for approveTransferwithdrawTransfer- The new value for withdrawTransferrejectTransfer- The new value for rejectTransferchargePayment- The new value for chargePaymentrefund- The new value for refundrefundForActiveLoans- The new value for refundForActiveLoanscreditBalanceRefund- The new value for creditBalanceRefundchargeback- The new value for chargeback
-
-
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<LoanTransactionEnumDataV1> 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 LoanTransactionEnumDataV1 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 LoanTransactionEnumDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a LoanTransactionEnumDataV1 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.
-
getCode
Gets the value of the 'code' field.- Returns:
- The value of the 'code' field.
-
setCode
Sets the value of the 'code' field.- Parameters:
value- the value to set.
-
getValue
Gets the value of the 'value' field.- Returns:
- The value of the 'value' field.
-
setValue
Sets the value of the 'value' field.- Parameters:
value- the value to set.
-
getDisbursement
Gets the value of the 'disbursement' field.- Returns:
- The value of the 'disbursement' field.
-
setDisbursement
Sets the value of the 'disbursement' field.- Parameters:
value- the value to set.
-
getRepaymentAtDisbursement
Gets the value of the 'repaymentAtDisbursement' field.- Returns:
- The value of the 'repaymentAtDisbursement' field.
-
setRepaymentAtDisbursement
Sets the value of the 'repaymentAtDisbursement' field.- Parameters:
value- the value to set.
-
getRepayment
Gets the value of the 'repayment' field.- Returns:
- The value of the 'repayment' field.
-
setRepayment
Sets the value of the 'repayment' field.- Parameters:
value- the value to set.
-
getMerchantIssuedRefund
Gets the value of the 'merchantIssuedRefund' field.- Returns:
- The value of the 'merchantIssuedRefund' field.
-
setMerchantIssuedRefund
Sets the value of the 'merchantIssuedRefund' field.- Parameters:
value- the value to set.
-
getPayoutRefund
Gets the value of the 'payoutRefund' field.- Returns:
- The value of the 'payoutRefund' field.
-
setPayoutRefund
Sets the value of the 'payoutRefund' field.- Parameters:
value- the value to set.
-
getGoodwillCredit
Gets the value of the 'goodwillCredit' field.- Returns:
- The value of the 'goodwillCredit' field.
-
setGoodwillCredit
Sets the value of the 'goodwillCredit' field.- Parameters:
value- the value to set.
-
getChargeRefund
Gets the value of the 'chargeRefund' field.- Returns:
- The value of the 'chargeRefund' field.
-
setChargeRefund
Sets the value of the 'chargeRefund' field.- Parameters:
value- the value to set.
-
getContra
Gets the value of the 'contra' field.- Returns:
- The value of the 'contra' field.
-
setContra
Sets the value of the 'contra' field.- Parameters:
value- the value to set.
-
getWaiveInterest
Gets the value of the 'waiveInterest' field.- Returns:
- The value of the 'waiveInterest' field.
-
setWaiveInterest
Sets the value of the 'waiveInterest' field.- Parameters:
value- the value to set.
-
getWaiveCharges
Gets the value of the 'waiveCharges' field.- Returns:
- The value of the 'waiveCharges' field.
-
setWaiveCharges
Sets the value of the 'waiveCharges' field.- Parameters:
value- the value to set.
-
getAccrual
Gets the value of the 'accrual' field.- Returns:
- The value of the 'accrual' field.
-
setAccrual
Sets the value of the 'accrual' field.- Parameters:
value- the value to set.
-
getWriteOff
Gets the value of the 'writeOff' field.- Returns:
- The value of the 'writeOff' field.
-
setWriteOff
Sets the value of the 'writeOff' field.- Parameters:
value- the value to set.
-
getRecoveryRepayment
Gets the value of the 'recoveryRepayment' field.- Returns:
- The value of the 'recoveryRepayment' field.
-
setRecoveryRepayment
Sets the value of the 'recoveryRepayment' field.- Parameters:
value- the value to set.
-
getInitiateTransfer
Gets the value of the 'initiateTransfer' field.- Returns:
- The value of the 'initiateTransfer' field.
-
setInitiateTransfer
Sets the value of the 'initiateTransfer' field.- Parameters:
value- the value to set.
-
getApproveTransfer
Gets the value of the 'approveTransfer' field.- Returns:
- The value of the 'approveTransfer' field.
-
setApproveTransfer
Sets the value of the 'approveTransfer' field.- Parameters:
value- the value to set.
-
getWithdrawTransfer
Gets the value of the 'withdrawTransfer' field.- Returns:
- The value of the 'withdrawTransfer' field.
-
setWithdrawTransfer
Sets the value of the 'withdrawTransfer' field.- Parameters:
value- the value to set.
-
getRejectTransfer
Gets the value of the 'rejectTransfer' field.- Returns:
- The value of the 'rejectTransfer' field.
-
setRejectTransfer
Sets the value of the 'rejectTransfer' field.- Parameters:
value- the value to set.
-
getChargePayment
Gets the value of the 'chargePayment' field.- Returns:
- The value of the 'chargePayment' field.
-
setChargePayment
Sets the value of the 'chargePayment' field.- Parameters:
value- the value to set.
-
getRefund
Gets the value of the 'refund' field.- Returns:
- The value of the 'refund' field.
-
setRefund
Sets the value of the 'refund' field.- Parameters:
value- the value to set.
-
getRefundForActiveLoans
Gets the value of the 'refundForActiveLoans' field.- Returns:
- The value of the 'refundForActiveLoans' field.
-
setRefundForActiveLoans
Sets the value of the 'refundForActiveLoans' field.- Parameters:
value- the value to set.
-
getCreditBalanceRefund
Gets the value of the 'creditBalanceRefund' field.- Returns:
- The value of the 'creditBalanceRefund' field.
-
setCreditBalanceRefund
Sets the value of the 'creditBalanceRefund' field.- Parameters:
value- the value to set.
-
getChargeback
Gets the value of the 'chargeback' field.- Returns:
- The value of the 'chargeback' field.
-
setChargeback
Sets the value of the 'chargeback' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new LoanTransactionEnumDataV1 RecordBuilder.- Returns:
- A new LoanTransactionEnumDataV1 RecordBuilder
-
newBuilder
Creates a new LoanTransactionEnumDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new LoanTransactionEnumDataV1 RecordBuilder
-
newBuilder
Creates a new LoanTransactionEnumDataV1 RecordBuilder by copying an existing LoanTransactionEnumDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new LoanTransactionEnumDataV1 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
-
hasCustomCoders
protected boolean hasCustomCoders()- Overrides:
hasCustomCodersin classorg.apache.avro.specific.SpecificRecordBase
-
customEncode
- Overrides:
customEncodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
customDecode
- Overrides:
customDecodein classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-