FINERACT-1694: Fixed Deposit event Avro schemas

This commit is contained in:
Arnold Galovics
2022-08-30 14:39:12 +02:00
committed by Aleksandar Vidakovic
parent b327e710f7
commit f620a469e8
46 changed files with 1176 additions and 572 deletions
@@ -0,0 +1,105 @@
{
"name": "AccountTransferDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "reversed",
"type": [
"null",
"boolean"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.CurrencyDataV1"
]
},
{
"name": "transferAmount",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "transferDate",
"type": [
"null",
"string"
]
},
{
"name": "transferDescription",
"type": [
"null",
"string"
]
},
{
"name": "fromOffice",
"type": [
"null",
"org.apache.fineract.avro.office.v1.OfficeDataV1"
]
},
{
"name": "fromClient",
"type": [
"null",
"org.apache.fineract.avro.client.v1.ClientDataV1"
]
},
{
"name": "fromAccountType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "fromAccount",
"type": [
"null",
"org.apache.fineract.avro.portfolio.v1.PortfolioAccountDataV1"
]
},
{
"name": "toOffice",
"type": [
"null",
"org.apache.fineract.avro.office.v1.OfficeDataV1"
]
},
{
"name": "toClient",
"type": [
"null",
"org.apache.fineract.avro.client.v1.ClientDataV1"
]
},
{
"name": "toAccountType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "toAccount",
"type": [
"null",
"org.apache.fineract.avro.portfolio.v1.PortfolioAccountDataV1"
]
}
]
}
@@ -0,0 +1,175 @@
{
"name": "SavingsAccountApplicationTimelineDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "submittedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "submittedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "submittedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "submittedByLastname",
"type": [
"null",
"string"
]
},
{
"name": "rejectedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "rejectedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "rejectedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "rejectedByLastname",
"type": [
"null",
"string"
]
},
{
"name": "withdrawnOnDate",
"type": [
"null",
"string"
]
},
{
"name": "withdrawnByUsername",
"type": [
"null",
"string"
]
},
{
"name": "withdrawnByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "withdrawnByLastname",
"type": [
"null",
"string"
]
},
{
"name": "approvedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "approvedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "approvedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "approvedByLastname",
"type": [
"null",
"string"
]
},
{
"name": "activatedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "activatedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "activatedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "activatedByLastname",
"type": [
"null",
"string"
]
},
{
"name": "closedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "closedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "closedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "closedByLastname",
"type": [
"null",
"string"
]
}
]
}
@@ -0,0 +1,189 @@
{
"name": "SavingsAccountChargeDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"long"
]
},
{
"name": "chargeId",
"type": [
"null",
"long"
]
},
{
"name": "accountId",
"type": [
"null",
"long"
]
},
{
"name": "name",
"type": [
"null",
"string"
]
},
{
"name": "chargeTimeType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "dueDate",
"type": [
"null",
"string"
]
},
{
"name": "feeOnMonthDay",
"type": [
"null",
"string"
]
},
{
"name": "feeInterval",
"type": [
"null",
"int"
]
},
{
"name": "chargeCalculationType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "percentage",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountPercentageAppliedTo",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.CurrencyDataV1"
]
},
{
"name": "amount",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountPaid",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountWaived",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountWrittenOff",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountOutstanding",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "amountOrPercentage",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "penalty",
"type": [
"null",
"boolean"
]
},
{
"name": "isActive",
"type": [
"null",
"boolean"
]
},
{
"name": "isFreeWithdrawal",
"type": [
"null",
"boolean"
]
},
{
"name": "freeWithdrawalChargeFrequency",
"type": [
"null",
"int"
]
},
{
"name": "restartFrequency",
"type": [
"null",
"int"
]
},
{
"name": "restartFrequencyEnum",
"type": [
"null",
"int"
]
},
{
"name": "inactivationDate",
"type": [
"null",
"string"
]
},
{
"name": "chargeData",
"type": [
"null",
"org.apache.fineract.avro.portfolio.v1.ChargeDataV1"
]
}
]
}
@@ -0,0 +1,28 @@
{
"name": "SavingsAccountChargesPaidByDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "chargeId",
"type": [
"null",
"long"
]
},
{
"name": "amount",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "savingsAccountChargeData",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.SavingsAccountChargeDataV1"
]
}
]
}
@@ -0,0 +1,98 @@
{
"name": "SavingsAccountStatusEnumDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "value",
"type": [
"null",
"string"
]
},
{
"name": "submittedAndPendingApproval",
"type": [
"null",
"boolean"
]
},
{
"name": "approved",
"type": [
"null",
"boolean"
]
},
{
"name": "rejected",
"type": [
"null",
"boolean"
]
},
{
"name": "withdrawnByApplicant",
"type": [
"null",
"boolean"
]
},
{
"name": "active",
"type": [
"null",
"boolean"
]
},
{
"name": "closed",
"type": [
"null",
"boolean"
]
},
{
"name": "prematureClosed",
"type": [
"null",
"boolean"
]
},
{
"name": "transferInProgress",
"type": [
"null",
"boolean"
]
},
{
"name": "transferOnHold",
"type": [
"null",
"boolean"
]
},
{
"name": "matured",
"type": [
"null",
"boolean"
]
}
]
}
@@ -0,0 +1,126 @@
{
"name": "SavingsAccountSummaryDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.CurrencyDataV1"
]
},
{
"name": "totalDeposits",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalWithdrawals",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalWithdrawalFees",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalAnnualFees",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalInterestEarned",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalInterestPosted",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "accountBalance",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalFeeCharge",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalPenaltyCharge",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalOverdraftInterestDerived",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "totalWithholdTax",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "interestNotPosted",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "lastInterestCalculationDate",
"type": [
"null",
"string"
]
},
{
"name": "availableBalance",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "interestPostedTillDate",
"type": [
"null",
"string"
]
},
{
"name": "prevInterestPostedTillDate",
"type": [
"null",
"string"
]
}
]
}
@@ -0,0 +1,171 @@
{
"name": "SavingsAccountTransactionDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"long"
]
},
{
"name": "transactionType",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.SavingsAccountTransactionEnumDataV1"
]
},
{
"name": "accountId",
"type": [
"null",
"long"
]
},
{
"name": "accountNo",
"type": [
"null",
"string"
]
},
{
"name": "date",
"type": [
"null",
"string"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.CurrencyDataV1"
]
},
{
"name": "paymentDetailData",
"type": [
"null",
"org.apache.fineract.avro.payment.v1.PaymentDetailDataV1"
]
},
{
"name": "amount",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "outstandingChargeAmount",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "runningBalance",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "reversed",
"type": [
"null",
"boolean"
]
},
{
"name": "transfer",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.AccountTransferDataV1"
]
},
{
"name": "submittedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "interestedPostedAsOn",
"type": [
"null",
"boolean"
]
},
{
"name": "submittedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "note",
"type": [
"null",
"string"
]
},
{
"name": "isManualTransaction",
"type": [
"null",
"boolean"
]
},
{
"name": "isReversal",
"type": [
"null",
"boolean"
]
},
{
"name": "originalTransactionId",
"type": [
"null",
"string"
]
},
{
"name": "lienTransaction",
"type": [
"null",
"boolean"
]
},
{
"name": "releaseTransactionId",
"type": [
"null",
"long"
]
},
{
"name": "reasonForBlock",
"type": [
"null",
"string"
]
},
{
"name": "chargesPaidByData",
"type": [
"null",
{
"type": "array",
"items": "org.apache.fineract.avro.savings.v1.SavingsAccountChargesPaidByDataV1"
}
]
}
]
}
@@ -0,0 +1,140 @@
{
"name": "SavingsAccountTransactionEnumDataV1",
"namespace": "org.apache.fineract.avro.savings.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"long"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "value",
"type": [
"null",
"string"
]
},
{
"name": "deposit",
"type": [
"null",
"boolean"
]
},
{
"name": "dividendPayout",
"type": [
"null",
"boolean"
]
},
{
"name": "withdrawal",
"type": [
"null",
"boolean"
]
},
{
"name": "interestPosting",
"type": [
"null",
"boolean"
]
},
{
"name": "feeDeduction",
"type": [
"null",
"boolean"
]
},
{
"name": "initiateTransfer",
"type": [
"null",
"boolean"
]
},
{
"name": "approveTransfer",
"type": [
"null",
"boolean"
]
},
{
"name": "withdrawTransfer",
"type": [
"null",
"boolean"
]
},
{
"name": "rejectTransfer",
"type": [
"null",
"boolean"
]
},
{
"name": "overdraftInterest",
"type": [
"null",
"boolean"
]
},
{
"name": "writtenoff",
"type": [
"null",
"boolean"
]
},
{
"name": "overdraftFee",
"type": [
"null",
"boolean"
]
},
{
"name": "withholdTax",
"type": [
"null",
"boolean"
]
},
{
"name": "escheat",
"type": [
"null",
"boolean"
]
},
{
"name": "amountHold",
"type": [
"null",
"boolean"
]
},
{
"name": "amountRelease",
"type": [
"null",
"boolean"
]
}
]
}