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,356 @@
{
"name": "FixedDepositAccountDataV1",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "accountNo",
"type": [
"null",
"string"
]
},
{
"name": "externalId",
"type": [
"null",
"string"
]
},
{
"name": "groupId",
"type": [
"null",
"int"
]
},
{
"name": "groupName",
"type": [
"null",
"string"
]
},
{
"name": "clientId",
"type": [
"null",
"int"
]
},
{
"name": "clientName",
"type": [
"null",
"string"
]
},
{
"name": "depositProductId",
"type": [
"null",
"int"
]
},
{
"name": "depositProductName",
"type": [
"null",
"string"
]
},
{
"name": "fieldOfficerId",
"type": [
"null",
"int"
]
},
{
"name": "fieldOfficerName",
"type": [
"null",
"string"
]
},
{
"name": "status",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.SavingsAccountStatusEnumDataV1"
]
},
{
"name": "timeline",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.SavingsAccountApplicationTimelineDataV1"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.CurrencyDataV1"
]
},
{
"name": "nominalAnnualInterestRate",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "interestCompoundingPeriodType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "interestPostingPeriodType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "interestCalculationType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "interestCalculationDaysInYearType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "minRequiredOpeningBalance",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "lockinPeriodFrequency",
"type": [
"null",
"int"
]
},
{
"name": "lockinPeriodFrequencyType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "withdrawalFeeForTransfers",
"type": [
"null",
"boolean"
]
},
{
"name": "depositType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "minBalanceForInterestCalculation",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "withHoldTax",
"type": [
"null",
"boolean"
]
},
{
"name": "summary",
"type": [
"null",
"org.apache.fineract.avro.savings.v1.SavingsAccountSummaryDataV1"
]
},
{
"name": "transactions",
"type": [
"null",
{
"type": "array",
"items": "org.apache.fineract.avro.savings.v1.SavingsAccountTransactionDataV1"
}
]
},
{
"name": "charges",
"type": [
"null",
{
"type": "array",
"items": "org.apache.fineract.avro.savings.v1.SavingsAccountChargeDataV1"
}
]
},
{
"name": "preClosurePenalApplicable",
"type": [
"null",
"boolean"
]
},
{
"name": "preClosurePenalInterest",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "preClosurePenalInterestOnType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "minDepositTerm",
"type": [
"null",
"int"
]
},
{
"name": "maxDepositTerm",
"type": [
"null",
"int"
]
},
{
"name": "minDepositTermType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "maxDepositTermType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "inMultiplesOfDepositTerm",
"type": [
"null",
"int"
]
},
{
"name": "inMultiplesOfDepositTermType",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "depositAmount",
"type": [
"null",
"float"
]
},
{
"name": "maturityAmount",
"type": [
"null",
"float"
]
},
{
"name": "maturityDate",
"type": [
"null",
"string"
]
},
{
"name": "depositPeriod",
"type": [
"null",
"int"
]
},
{
"name": "depositPeriodFrequency",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "activationCharge",
"type": [
"null",
"bigdecimal"
]
},
{
"name": "transferToSavingsId",
"type": [
"null",
"long"
]
},
{
"name": "onAccountClosure",
"type": [
"null",
"org.apache.fineract.avro.generic.v1.EnumOptionDataV1"
]
},
{
"name": "linkedAccount",
"type": [
"null",
"org.apache.fineract.avro.portfolio.v1.PortfolioAccountDataV1"
]
},
{
"name": "transferInterestToSavings",
"type": [
"null",
"boolean"
]
},
{
"name": "transferToSavingsAccount",
"type": [
"null",
"org.apache.fineract.avro.portfolio.v1.PortfolioAccountDataV1"
]
}
]
}
@@ -1,189 +0,0 @@
{
"name": "FixedDepositAccountEventV1",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "accountNo",
"type": [
"null",
"string"
]
},
{
"name": "clientId",
"type": [
"null",
"int"
]
},
{
"name": "clientName",
"type": [
"null",
"string"
]
},
{
"name": "savingsProductId",
"type": [
"null",
"int"
]
},
{
"name": "savingsProductName",
"type": [
"null",
"string"
]
},
{
"name": "fieldOfficerId",
"type": [
"null",
"int"
]
},
{
"name": "status",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1Status"
]
},
{
"name": "timeline",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1Timeline"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1Currency"
]
},
{
"name": "interestCompoundingPeriodType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1InterestCompoundingPeriodType"
]
},
{
"name": "interestPostingPeriodType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1InterestPostingPeriodType"
]
},
{
"name": "interestCalculationType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1InterestCalculationType"
]
},
{
"name": "interestCalculationDaysInYearType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1InterestCalculationDaysInYearType"
]
},
{
"name": "summary",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1Summary"
]
},
{
"name": "interestFreePeriodApplicable",
"type": [
"null",
"boolean"
]
},
{
"name": "preClosurePenalApplicable",
"type": [
"null",
"boolean"
]
},
{
"name": "minDepositTerm",
"type": [
"null",
"int"
]
},
{
"name": "maxDepositTerm",
"type": [
"null",
"int"
]
},
{
"name": "minDepositTermType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1MinDepositTermType"
]
},
{
"name": "maxDepositTermType",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1MaxDepositTermType"
]
},
{
"name": "depositAmount",
"type": [
"null",
"float"
]
},
{
"name": "maturityAmount",
"type": [
"null",
"float"
]
},
{
"name": "maturityDate",
"type": [
"null",
"string"
]
},
{
"name": "depositPeriod",
"type": [
"null",
"int"
]
},
{
"name": "depositPeriodFrequency",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1DepositPeriodFrequency"
]
}
]
}
@@ -1,56 +0,0 @@
{
"name": "FixedDepositAccountEventV1Currency",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "name",
"type": [
"null",
"string"
]
},
{
"name": "decimalPlaces",
"type": [
"null",
"int"
]
},
{
"name": "inMultiplesOf",
"type": [
"null",
"int"
]
},
{
"name": "displaySymbol",
"type": [
"null",
"string"
]
},
{
"name": "nameCode",
"type": [
"null",
"string"
]
},
{
"name": "displayLabel",
"type": [
"null",
"string"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1DepositPeriodFrequency",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,21 +0,0 @@
{
"name": "FixedDepositAccountEventV1InterestCalculationDaysInYearType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "accountBalance",
"type": [
"null",
"float"
]
},
{
"name": "currency",
"type": [
"null",
"org.apache.fineract.avro.fixeddeposit.v1.FixedDepositAccountEventV1Currency"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1InterestCalculationType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1InterestCompoundingPeriodType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1InterestPostingPeriodType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1MaxDepositTermType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1MinDepositTermType",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,91 +0,0 @@
{
"name": "FixedDepositAccountEventV1Status",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"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"
]
}
]
}
@@ -1,28 +0,0 @@
{
"name": "FixedDepositAccountEventV1Summary",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
},
{
"name": "code",
"type": [
"null",
"string"
]
},
{
"name": "description",
"type": [
"null",
"string"
]
}
]
}
@@ -1,35 +0,0 @@
{
"name": "FixedDepositAccountEventV1Timeline",
"namespace": "org.apache.fineract.avro.fixeddeposit.v1",
"type": "record",
"fields": [
{
"name": "submittedOnDate",
"type": [
"null",
"string"
]
},
{
"name": "submittedByUsername",
"type": [
"null",
"string"
]
},
{
"name": "submittedByFirstname",
"type": [
"null",
"string"
]
},
{
"name": "submittedByLastname",
"type": [
"null",
"string"
]
}
]
}