From eddd6e8a65397f5fe5a30accb0110186360f17b6 Mon Sep 17 00:00:00 2001 From: Nagarjuna0033 Date: Sun, 12 Jan 2025 19:22:32 +0530 Subject: [PATCH] fix: Added serialization annotation to Data Classes --- .../org/mifos/mobile/core/model/entity/Charge.kt | 2 ++ .../mobile/core/model/entity/ChargeTimeType.kt | 6 ++---- .../org/mifos/mobile/core/model/entity/Currency.kt | 6 ++---- .../org/mifos/mobile/core/model/entity/Timeline.kt | 2 ++ .../mifos/mobile/core/model/entity/Transaction.kt | 7 ++----- .../org/mifos/mobile/core/model/entity/User.kt | 7 +++---- .../model/entity/accounts/loan/AmortizationType.kt | 2 ++ .../core/model/entity/accounts/loan/Currency.kt | 2 ++ .../model/entity/accounts/loan/DaysInMonthType.kt | 2 ++ .../model/entity/accounts/loan/DaysInYearType.kt | 2 ++ .../accounts/loan/InterestCalculationPeriodType.kt | 2 ++ .../accounts/loan/InterestRateFrequencyType.kt | 2 ++ .../loan/InterestRecalculationCompoundingType.kt | 2 ++ .../accounts/loan/InterestRecalculationData.kt | 2 ++ .../core/model/entity/accounts/loan/InterestType.kt | 2 ++ .../core/model/entity/accounts/loan/LoanAccount.kt | 2 ++ .../core/model/entity/accounts/loan/LoanType.kt | 2 ++ .../entity/accounts/loan/LoanWithAssociations.kt | 4 +++- .../core/model/entity/accounts/loan/Periods.kt | 2 ++ .../loan/RecalculationCompoundingFrequencyType.kt | 2 ++ .../accounts/loan/RecalculationRestFrequencyType.kt | 2 ++ .../entity/accounts/loan/RepaymentFrequencyType.kt | 2 ++ .../model/entity/accounts/loan/RepaymentSchedule.kt | 2 ++ .../entity/accounts/loan/RescheduleStrategyType.kt | 2 ++ .../core/model/entity/accounts/loan/Status.kt | 2 ++ .../core/model/entity/accounts/loan/Summary.kt | 2 ++ .../entity/accounts/loan/TermPeriodFrequencyType.kt | 2 ++ .../core/model/entity/accounts/loan/Timeline.kt | 2 ++ .../accounts/loan/calendardata/CalendarData.kt | 2 ++ .../entity/accounts/loan/calendardata/EntityType.kt | 2 ++ .../entity/accounts/loan/calendardata/Frequency.kt | 2 ++ .../loan/calendardata/RepeatsOnNthDayOfMonth.kt | 2 ++ .../model/entity/accounts/loan/calendardata/Type.kt | 2 ++ .../core/model/entity/accounts/savings/Currency.kt | 2 ++ .../entity/accounts/savings/PaymentDetailData.kt | 2 ++ .../model/entity/accounts/savings/PaymentType.kt | 2 ++ .../model/entity/accounts/savings/SavingAccount.kt | 2 ++ .../accounts/savings/SavingsWithAssociations.kt | 2 ++ .../core/model/entity/accounts/savings/Status.kt | 2 ++ .../core/model/entity/accounts/savings/Summary.kt | 2 ++ .../core/model/entity/accounts/savings/TimeLine.kt | 2 ++ .../entity/accounts/savings/TransactionType.kt | 2 ++ .../model/entity/accounts/savings/Transactions.kt | 2 ++ .../model/entity/accounts/share/ShareAccount.kt | 2 ++ .../core/model/entity/accounts/share/Status.kt | 2 ++ .../core/model/entity/accounts/share/Timeline.kt | 2 ++ .../core/model/entity/beneficiary/Beneficiary.kt | 2 ++ .../model/entity/beneficiary/BeneficiaryPayload.kt | 2 ++ .../entity/beneficiary/BeneficiaryUpdatePayload.kt | 5 ++++- .../mifos/mobile/core/model/entity/client/Client.kt | 2 ++ .../core/model/entity/client/ClientAccounts.kt | 3 ++- .../model/entity/client/ClientClassification.kt | 2 ++ .../mobile/core/model/entity/client/ClientType.kt | 2 ++ .../mobile/core/model/entity/client/DepositType.kt | 2 ++ .../mifos/mobile/core/model/entity/client/Gender.kt | 2 ++ .../mifos/mobile/core/model/entity/client/Group.kt | 2 ++ .../mifos/mobile/core/model/entity/client/Status.kt | 2 ++ .../mifos/mobile/core/model/entity/client/Type.kt | 2 ++ .../core/model/entity/guarantor/GuarantorPayload.kt | 6 ++---- .../entity/guarantor/GuarantorTemplatePayload.kt | 5 ++--- .../core/model/entity/guarantor/GuarantorType.kt | 6 ++---- .../entity/notification/NotificationUserDetail.kt | 6 +++--- .../core/model/entity/payload/LoansPayload.kt | 6 ++---- .../core/model/entity/payload/LoginPayload.kt | 3 +++ .../model/entity/templates/account/AccountOption.kt | 6 ++---- .../templates/account/AccountOptionsTemplate.kt | 6 ++---- .../model/entity/templates/account/AccountType.kt | 6 ++---- .../templates/beneficiary/AccountTypeOption.kt | 6 ++---- .../templates/beneficiary/BeneficiaryTemplate.kt | 6 ++---- .../entity/templates/loans/AccountLinkingOptions.kt | 6 ++---- .../model/entity/templates/loans/AccountingRule.kt | 5 ++--- .../templates/loans/AllowAttributeOverrides.kt | 6 ++---- .../templates/loans/AmortizationTypeOptions.kt | 6 ++---- .../model/entity/templates/loans/ChargeAppliesTo.kt | 6 ++---- .../model/entity/templates/loans/ChargeOptions.kt | 6 ++---- .../entity/templates/loans/ChargePaymentMode.kt | 6 ++---- .../core/model/entity/templates/loans/Currency.kt | 6 ++---- .../model/entity/templates/loans/FundOptions.kt | 6 ++---- .../loans/InterestRateFrequencyTypeOptions.kt | 6 ++---- .../entity/templates/loans/InterestTypeOptions.kt | 6 ++---- .../entity/templates/loans/LoanCollateralOptions.kt | 6 ++---- .../entity/templates/loans/LoanOfficerOptions.kt | 6 ++---- .../entity/templates/loans/LoanPurposeOptions.kt | 6 ++---- .../model/entity/templates/loans/LoanTemplate.kt | 8 +++----- .../core/model/entity/templates/loans/Product.kt | 6 ++---- .../model/entity/templates/loans/ProductOptions.kt | 6 ++---- .../RepaymentFrequencyDaysOfWeekTypeOptions.kt | 2 ++ .../loans/RepaymentFrequencyNthDayTypeOptions.kt | 6 ++---- .../loans/RepaymentFrequencyTypeOptions.kt | 6 ++---- .../core/model/entity/templates/loans/TaxGroup.kt | 6 ++---- .../templates/loans/TermFrequencyTypeOptions.kt | 6 ++---- .../core/model/entity/templates/loans/Timeline.kt | 6 ++---- .../loans/TransactionProcessingStrategyOptions.kt | 6 ++---- .../entity/templates/savings/ChargeAppliesTo.kt | 2 ++ .../templates/savings/ChargeCalculationType.kt | 2 ++ .../model/entity/templates/savings/ChargeOptions.kt | 2 ++ .../entity/templates/savings/ChargePaymentMode.kt | 2 ++ .../entity/templates/savings/ChargeTimeType.kt | 2 ++ .../entity/templates/savings/ProductOptions.kt | 6 ++---- .../templates/savings/SavingsAccountTemplate.kt | 6 ++---- .../core/network/services/BeneficiaryService.kt | 5 +++-- .../core/network/services/ClientChargeService.kt | 4 ++-- .../mobile/core/network/services/ClientService.kt | 8 ++++---- .../core/network/services/GuarantorService.kt | 5 +++-- .../network/services/LoanAccountsListService.kt | 13 +++++++------ .../core/network/services/NotificationService.kt | 3 ++- .../network/services/SavingAccountsListService.kt | 13 +++++++------ .../network/services/ThirdPartyTransferService.kt | 3 ++- 108 files changed, 237 insertions(+), 182 deletions(-) diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Charge.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Charge.kt index f894f34b4..6838f3a2d 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Charge.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Charge.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Charge( val clientId: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/ChargeTimeType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/ChargeTimeType.kt index f9619ea59..a7a8aa9b3 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/ChargeTimeType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/ChargeTimeType.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by michaelsosnick on 12/11/16. - */ - +@Serializable @Parcelize data class ChargeTimeType( val id: Int = 0, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Currency.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Currency.kt index 2935c2086..d9ea1ddbc 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Currency.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Currency.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by michaelsosnick on 12/11/16. - */ - +@Serializable @Parcelize data class Currency( val code: String? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Timeline.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Timeline.kt index 207b12407..ce4c4f3ee 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Timeline.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Timeline.kt @@ -9,6 +9,7 @@ */ package org.mifos.mobile.core.model.entity +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize @@ -22,6 +23,7 @@ import org.mifos.mobile.core.model.Parcelize * See https://github.com/openMF/android-client/blob/master/LICENSE.md */ +@Serializable @Parcelize data class Timeline( val submittedOnDate: List = emptyList(), diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Transaction.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Transaction.kt index a572a7710..528a86c6d 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Transaction.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/Transaction.kt @@ -9,15 +9,12 @@ */ package org.mifos.mobile.core.model.entity +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.client.Type -/** - * @author Vishwajeet - * @since 10/8/16. - */ - +@Serializable @Parcelize data class Transaction( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/User.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/User.kt index c29a16dea..313de793c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/User.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/User.kt @@ -10,13 +10,11 @@ package org.mifos.mobile.core.model.entity import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * @author Vishwajeet - * @since 12/06/16 - */ +@Serializable @Parcelize data class User( val userId: Long = 0, @@ -32,6 +30,7 @@ data class User( val isTwoFactorAuthenticationRequired: Boolean = false, ) : Parcelable +@Serializable @Parcelize data class Role( @SerialName("id") diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/AmortizationType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/AmortizationType.kt index 2139e9b04..ac5bf3621 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/AmortizationType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/AmortizationType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class AmortizationType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Currency.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Currency.kt index b75eae4c6..50d95d908 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Currency.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Currency.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Currency( val code: String? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInMonthType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInMonthType.kt index 139947089..ed622042f 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInMonthType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInMonthType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class DaysInMonthType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInYearType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInYearType.kt index c68ed2436..3405250f1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInYearType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/DaysInYearType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class DaysInYearType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestCalculationPeriodType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestCalculationPeriodType.kt index ea2f93a10..7dd7b8bdd 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestCalculationPeriodType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestCalculationPeriodType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class InterestCalculationPeriodType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRateFrequencyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRateFrequencyType.kt index 1e27b6298..aa0ebebaf 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRateFrequencyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRateFrequencyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class InterestRateFrequencyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationCompoundingType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationCompoundingType.kt index 02a854f2b..2c12e3f5b 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationCompoundingType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationCompoundingType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class InterestRecalculationCompoundingType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationData.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationData.kt index 7780813b7..a68325160 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationData.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestRecalculationData.kt @@ -10,10 +10,12 @@ package org.mifos.mobile.core.model.entity.accounts.loan import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.accounts.loan.calendardata.CalendarData +@Serializable @Parcelize data class InterestRecalculationData( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestType.kt index ac26d3226..0d76b37e5 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/InterestType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class InterestType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanAccount.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanAccount.kt index 71bb4da73..ba067dd98 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanAccount.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanAccount.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class LoanAccount( val id: Long = 0, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanType.kt index 82f3d8bb4..4bbc7c41b 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class LoanType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanWithAssociations.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanWithAssociations.kt index 0095f93af..4c02a1fbf 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanWithAssociations.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/LoanWithAssociations.kt @@ -10,10 +10,12 @@ package org.mifos.mobile.core.model.entity.accounts.loan import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.Transaction +@Serializable @Parcelize data class LoanWithAssociations( val id: Int? = null, @@ -72,7 +74,7 @@ data class LoanWithAssociations( val interestCalculationPeriodType: InterestCalculationPeriodType? = null, - val allowPartialPeriodInterestCalcualtion: Boolean? = null, + val allowPartialPeriodInterestCalculation: Boolean? = null, val transactionProcessingStrategyId: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Periods.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Periods.kt index 2492cb5fc..cf44735fb 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Periods.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Periods.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Periods( val period: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationCompoundingFrequencyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationCompoundingFrequencyType.kt index f27a4af46..684b31e2d 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationCompoundingFrequencyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationCompoundingFrequencyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RecalculationCompoundingFrequencyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationRestFrequencyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationRestFrequencyType.kt index 8099288a4..c0244f12c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationRestFrequencyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RecalculationRestFrequencyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RecalculationRestFrequencyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentFrequencyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentFrequencyType.kt index 6b1c869ad..421acf73e 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentFrequencyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentFrequencyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RepaymentFrequencyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentSchedule.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentSchedule.kt index 9801e154f..27e4b5323 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentSchedule.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RepaymentSchedule.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RepaymentSchedule( val currency: Currency? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RescheduleStrategyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RescheduleStrategyType.kt index bf2dd5058..3273429dd 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RescheduleStrategyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/RescheduleStrategyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RescheduleStrategyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Status.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Status.kt index ea6bde820..97f579386 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Status.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Status.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Status( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Summary.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Summary.kt index e3de26c10..26909262c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Summary.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Summary.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Summary( val principalDisbursed: Double = 0.0, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/TermPeriodFrequencyType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/TermPeriodFrequencyType.kt index 81c96e8c7..b7d262e3c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/TermPeriodFrequencyType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/TermPeriodFrequencyType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class TermPeriodFrequencyType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Timeline.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Timeline.kt index 8469bf3fb..994279e36 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Timeline.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/Timeline.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize @Suppress("ktlint:standard:property-naming") +@Serializable @Parcelize data class Timeline( val submittedOnDate: List? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/CalendarData.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/CalendarData.kt index b4b540c28..0f217bdc2 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/CalendarData.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/CalendarData.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan.calendardata +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class CalendarData( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/EntityType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/EntityType.kt index a4430e4ce..b2693f4a3 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/EntityType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/EntityType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan.calendardata +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class EntityType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Frequency.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Frequency.kt index c03da76ad..71f207e08 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Frequency.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Frequency.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan.calendardata +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Frequency( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/RepeatsOnNthDayOfMonth.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/RepeatsOnNthDayOfMonth.kt index b88ebc22c..117c8a126 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/RepeatsOnNthDayOfMonth.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/RepeatsOnNthDayOfMonth.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan.calendardata +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RepeatsOnNthDayOfMonth( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Type.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Type.kt index a2542ec72..8296c48a7 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Type.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/loan/calendardata/Type.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.loan.calendardata +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Type( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Currency.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Currency.kt index 25efb6bbd..12a27fa44 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Currency.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Currency.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Currency( val code: String? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentDetailData.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentDetailData.kt index e26f6e5c0..4e02f979f 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentDetailData.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentDetailData.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class PaymentDetailData( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentType.kt index 3e004c300..fc9b35419 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/PaymentType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class PaymentType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingAccount.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingAccount.kt index 5a052cdb7..012e5ba03 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingAccount.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingAccount.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.client.DepositType +@Serializable @Parcelize data class SavingAccount( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingsWithAssociations.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingsWithAssociations.kt index 73db0e2ba..32cc25681 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingsWithAssociations.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/SavingsWithAssociations.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.client.DepositType +@Serializable @Parcelize data class SavingsWithAssociations( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Status.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Status.kt index 733e33c31..144bae9a9 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Status.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Status.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Status( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Summary.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Summary.kt index 2df5b96fa..d5a79d8b5 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Summary.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Summary.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Summary( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TimeLine.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TimeLine.kt index a54230d44..937358eeb 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TimeLine.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TimeLine.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class TimeLine( val submittedOnDate: List = emptyList(), diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TransactionType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TransactionType.kt index 186db1dac..c0f41339d 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TransactionType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/TransactionType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class TransactionType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Transactions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Transactions.kt index 3aef2261f..0f13cc60f 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Transactions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/savings/Transactions.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Transactions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/ShareAccount.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/ShareAccount.kt index 0cd15bb52..b691fd3c2 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/ShareAccount.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/ShareAccount.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.accounts.share +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.accounts.savings.Currency +@Serializable @Parcelize data class ShareAccount( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Status.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Status.kt index 228345cdc..9d89ba4f9 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Status.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Status.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.share +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Status( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Timeline.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Timeline.kt index 97a06e478..b864cd3bc 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Timeline.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/accounts/share/Timeline.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.accounts.share +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Timeline( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/Beneficiary.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/Beneficiary.kt index 40f3f02a4..9cd5cc383 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/Beneficiary.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/Beneficiary.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.beneficiary +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.templates.account.AccountType +@Serializable @Parcelize data class Beneficiary( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryPayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryPayload.kt index e51e1e971..edb3c669c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryPayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryPayload.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.beneficiary +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class BeneficiaryPayload( internal val locale: String = "en_GB", diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryUpdatePayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryUpdatePayload.kt index ef929f8e0..64bac51ac 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryUpdatePayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/beneficiary/BeneficiaryUpdatePayload.kt @@ -9,7 +9,10 @@ */ package org.mifos.mobile.core.model.entity.beneficiary -data class BeneficiaryUpdatePayload constructor( +import kotlinx.serialization.Serializable + +@Serializable +data class BeneficiaryUpdatePayload( val name: String? = null, val transferLimit: Float = 0f, ) diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Client.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Client.kt index 8ede768e8..a4240d29f 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Client.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Client.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.Timeline +@Serializable @Parcelize data class Client( val id: Int = 0, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientAccounts.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientAccounts.kt index abf3cf5e0..14511c32c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientAccounts.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientAccounts.kt @@ -9,17 +9,18 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.accounts.loan.LoanAccount import org.mifos.mobile.core.model.entity.accounts.savings.SavingAccount import org.mifos.mobile.core.model.entity.accounts.share.ShareAccount +@Serializable @Parcelize data class ClientAccounts( val loanAccounts: List = emptyList(), val savingsAccounts: List? = emptyList(), - val shareAccounts: List = emptyList(), ) : Parcelable { diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientClassification.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientClassification.kt index 338371f12..ff17dc839 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientClassification.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientClassification.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ClientClassification( val id: Int, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientType.kt index de1f86759..0fa1547fb 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/ClientType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ClientType( val id: Int, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/DepositType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/DepositType.kt index cccc66fa9..be9da3104 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/DepositType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/DepositType.kt @@ -9,6 +9,7 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize @@ -16,6 +17,7 @@ import org.mifos.mobile.core.model.Parcelize private const val SAVINGS_ACCOUNTS = "savingsaccounts" private const val RECURRING_ACCOUNTS = "recurringdepositaccounts" +@Serializable @Parcelize data class DepositType( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Gender.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Gender.kt index 1dccf090e..c48cc6fdd 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Gender.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Gender.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Gender( val id: Int, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Group.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Group.kt index b1fc0a5c4..137120aa1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Group.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Group.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Group( val id: Int, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Status.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Status.kt index dea2e2822..8966d7248 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Status.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Status.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Status( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Type.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Type.kt index 0ce9c2b60..cc6ada7bb 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Type.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/client/Type.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.client +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class Type( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorPayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorPayload.kt index ec5976cb6..18aefbb8e 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorPayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorPayload.kt @@ -9,14 +9,12 @@ */ package org.mifos.mobile.core.model.entity.guarantor -/* - * Created by saksham on 24/July/2018 - */ - +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.RawValue +@Serializable @Parcelize data class GuarantorPayload( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorTemplatePayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorTemplatePayload.kt index b62c9ce78..7b83c75b1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorTemplatePayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorTemplatePayload.kt @@ -9,10 +9,9 @@ */ package org.mifos.mobile.core.model.entity.guarantor -/* - * Created by saksham on 23/July/2018 - */ +import kotlinx.serialization.Serializable +@Serializable data class GuarantorTemplatePayload( val guarantorType: GuarantorType? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorType.kt index e2932426d..a5267f2bb 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/guarantor/GuarantorType.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.guarantor +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/* - * Created by saksham on 23/July/2018 - */ - +@Serializable @Parcelize class GuarantorType( val id: Long? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/notification/NotificationUserDetail.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/notification/NotificationUserDetail.kt index 6c3cf5791..749b82eec 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/notification/NotificationUserDetail.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/notification/NotificationUserDetail.kt @@ -9,11 +9,11 @@ */ package org.mifos.mobile.core.model.entity.notification -/** - * Created by dilpreet on 17/12/17. - */ +import kotlinx.serialization.Serializable +@Serializable data class NotificationUserDetail( val id: Int = 0, + ) diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoansPayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoansPayload.kt index ca8f4b68f..75046862e 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoansPayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoansPayload.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.payload +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by nellyk on 2/20/2016. - */ - +@Serializable @Parcelize data class LoansPayload( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoginPayload.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoginPayload.kt index 02be52242..58dc1ad88 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoginPayload.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/payload/LoginPayload.kt @@ -9,6 +9,9 @@ */ package org.mifos.mobile.core.model.entity.payload +import kotlinx.serialization.Serializable + +@Serializable data class LoginPayload( val username: String, val password: String, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOption.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOption.kt index d232c02ff..81bd5220a 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOption.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOption.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.account +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 10/03/17. - */ - +@Serializable @Parcelize data class AccountOption( val accountId: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOptionsTemplate.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOptionsTemplate.kt index ef23ad27e..40630d235 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOptionsTemplate.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountOptionsTemplate.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.account +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 10/03/17. - */ - +@Serializable @Parcelize data class AccountOptionsTemplate( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountType.kt index 92042ff8e..783295ddd 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/account/AccountType.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.account +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 10/03/17. - */ - +@Serializable @Parcelize data class AccountType( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/AccountTypeOption.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/AccountTypeOption.kt index 6788da35a..6590ab21c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/AccountTypeOption.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/AccountTypeOption.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.beneficiary +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by dilpreet on 14/6/17. - */ - +@Serializable @Parcelize data class AccountTypeOption( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/BeneficiaryTemplate.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/BeneficiaryTemplate.kt index cca21f805..1142b1e0c 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/BeneficiaryTemplate.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/beneficiary/BeneficiaryTemplate.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.beneficiary +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by dilpreet on 14/6/17. - */ - +@Serializable @Parcelize data class BeneficiaryTemplate( val accountTypeOptions: List? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountLinkingOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountLinkingOptions.kt index 7ccc16be8..e1c349a6f 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountLinkingOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountLinkingOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Tarun on 12/16/2016. - */ - +@Serializable @Parcelize data class AccountLinkingOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountingRule.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountingRule.kt index 0086f37a8..6e0824d24 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountingRule.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AccountingRule.kt @@ -9,12 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ +@Serializable @Parcelize data class AccountingRule( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AllowAttributeOverrides.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AllowAttributeOverrides.kt index 1db244367..67ee0f0b5 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AllowAttributeOverrides.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AllowAttributeOverrides.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class AllowAttributeOverrides( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AmortizationTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AmortizationTypeOptions.kt index 25252130c..f682226b2 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AmortizationTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/AmortizationTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class AmortizationTypeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeAppliesTo.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeAppliesTo.kt index b78f36e16..ff90d5e11 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeAppliesTo.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeAppliesTo.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class ChargeAppliesTo( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeOptions.kt index 9d10dcd75..00e44f0d7 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargeOptions.kt @@ -9,15 +9,13 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.ChargeCalculationType import org.mifos.mobile.core.model.entity.ChargeTimeType -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class ChargeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargePaymentMode.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargePaymentMode.kt index 6645ce488..90f2818f1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargePaymentMode.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ChargePaymentMode.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class ChargePaymentMode( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Currency.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Currency.kt index 179c0c95f..8a97423e2 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Currency.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Currency.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class Currency( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/FundOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/FundOptions.kt index 0fa27ffe6..184d243fc 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/FundOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/FundOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class FundOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestRateFrequencyTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestRateFrequencyTypeOptions.kt index 138f39e30..588cc9845 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestRateFrequencyTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestRateFrequencyTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class InterestRateFrequencyTypeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestTypeOptions.kt index 49c1ad882..ed3b9a70a 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/InterestTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class InterestTypeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanCollateralOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanCollateralOptions.kt index 7a596dc22..c5dc56e31 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanCollateralOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanCollateralOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class LoanCollateralOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanOfficerOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanOfficerOptions.kt index 4488029f3..b0d29eed2 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanOfficerOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanOfficerOptions.kt @@ -10,13 +10,11 @@ package org.mifos.mobile.core.model.entity.templates.loans import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class LoanOfficerOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanPurposeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanPurposeOptions.kt index b66a5c0eb..f799ff6ef 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanPurposeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanPurposeOptions.kt @@ -10,13 +10,11 @@ package org.mifos.mobile.core.model.entity.templates.loans import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class LoanPurposeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanTemplate.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanTemplate.kt index 10f63d326..ba010b241 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanTemplate.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/LoanTemplate.kt @@ -10,6 +10,7 @@ package org.mifos.mobile.core.model.entity.templates.loans import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.accounts.loan.AmortizationType @@ -21,10 +22,7 @@ import org.mifos.mobile.core.model.entity.accounts.loan.InterestType import org.mifos.mobile.core.model.entity.accounts.loan.RepaymentFrequencyType import org.mifos.mobile.core.model.entity.accounts.loan.TermPeriodFrequencyType -/** - * Created by Rajan Maurya on 15/07/16. - */ - +@Serializable @Parcelize data class LoanTemplate( @@ -78,7 +76,7 @@ data class LoanTemplate( val interestCalculationPeriodType: InterestCalculationPeriodType? = null, - val allowPartialPeriodInterestCalcualtion: Boolean? = null, + val allowPartialPeriodInterestCalculation: Boolean? = null, val transactionProcessingStrategyId: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Product.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Product.kt index 142de75ef..e7827adcf 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Product.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Product.kt @@ -10,6 +10,7 @@ package org.mifos.mobile.core.model.entity.templates.loans import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.accounts.loan.AmortizationType @@ -21,10 +22,7 @@ import org.mifos.mobile.core.model.entity.accounts.loan.InterestRecalculationDat import org.mifos.mobile.core.model.entity.accounts.loan.InterestType import org.mifos.mobile.core.model.entity.accounts.loan.RepaymentFrequencyType -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class Product( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ProductOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ProductOptions.kt index 41af18eba..0b2248d20 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ProductOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/ProductOptions.kt @@ -10,13 +10,11 @@ package org.mifos.mobile.core.model.entity.templates.loans import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class ProductOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyDaysOfWeekTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyDaysOfWeekTypeOptions.kt index 4dd4aa0c1..6efa0b7b8 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyDaysOfWeekTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyDaysOfWeekTypeOptions.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class RepaymentFrequencyDaysOfWeekTypeOptions( diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyNthDayTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyNthDayTypeOptions.kt index 2d25d392a..a354b8df4 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyNthDayTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyNthDayTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class RepaymentFrequencyNthDayTypeOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyTypeOptions.kt index b012b1e15..6598cc786 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/RepaymentFrequencyTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class RepaymentFrequencyTypeOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TaxGroup.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TaxGroup.kt index 46dafa863..6620251f1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TaxGroup.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TaxGroup.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class TaxGroup( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TermFrequencyTypeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TermFrequencyTypeOptions.kt index 99c835dbb..c020fddf9 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TermFrequencyTypeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TermFrequencyTypeOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class TermFrequencyTypeOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Timeline.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Timeline.kt index e875d9417..1703ed685 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Timeline.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/Timeline.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class Timeline( val expectedDisbursementDate: List, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TransactionProcessingStrategyOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TransactionProcessingStrategyOptions.kt index 31ea0d1b8..baad6ce0e 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TransactionProcessingStrategyOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/loans/TransactionProcessingStrategyOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.loans +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/** - * Created by Rajan Maurya on 16/07/16. - */ - +@Serializable @Parcelize data class TransactionProcessingStrategyOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeAppliesTo.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeAppliesTo.kt index 8875e8706..24c25eb7a 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeAppliesTo.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeAppliesTo.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ChargeAppliesTo( val id: Float = 0f, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeCalculationType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeCalculationType.kt index 29d733816..c2e0aefdd 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeCalculationType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeCalculationType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ChargeCalculationType( val id: Float = 0f, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeOptions.kt index 86636e928..31123dae8 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeOptions.kt @@ -9,10 +9,12 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize import org.mifos.mobile.core.model.entity.Currency +@Serializable @Parcelize data class ChargeOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargePaymentMode.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargePaymentMode.kt index 7482f19d4..fa04bf057 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargePaymentMode.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargePaymentMode.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ChargePaymentMode( val id: Float = 0f, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeTimeType.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeTimeType.kt index d269850c2..837cfc8f1 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeTimeType.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ChargeTimeType.kt @@ -9,9 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class ChargeTimeType( val id: Float = 0f, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ProductOptions.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ProductOptions.kt index e4024bcd7..1dc10133e 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ProductOptions.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/ProductOptions.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize -/* - * Created by saksham on 01/July/2018 - */ - +@Serializable @Parcelize data class ProductOptions( val id: Int? = null, diff --git a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/SavingsAccountTemplate.kt b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/SavingsAccountTemplate.kt index 1c2e0ff0b..33f80c869 100644 --- a/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/SavingsAccountTemplate.kt +++ b/core/model/src/commonMain/kotlin/org/mifos/mobile/core/model/entity/templates/savings/SavingsAccountTemplate.kt @@ -9,13 +9,11 @@ */ package org.mifos.mobile.core.model.entity.templates.savings -/* - * Created by saksham on 01/July/2018 - */ - +import kotlinx.serialization.Serializable import org.mifos.mobile.core.model.Parcelable import org.mifos.mobile.core.model.Parcelize +@Serializable @Parcelize data class SavingsAccountTemplate( val clientId: Int = 0, diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/BeneficiaryService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/BeneficiaryService.kt index a64c91e38..f84607b16 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/BeneficiaryService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/BeneficiaryService.kt @@ -16,6 +16,7 @@ import de.jensklingenberg.ktorfit.http.POST import de.jensklingenberg.ktorfit.http.PUT import de.jensklingenberg.ktorfit.http.Path import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.beneficiary.Beneficiary import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryPayload import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryUpdatePayload @@ -24,10 +25,10 @@ import org.mifos.mobile.core.network.utils.ApiEndPoints interface BeneficiaryService { @GET(ApiEndPoints.BENEFICIARIES + "/tpt") - suspend fun beneficiaryList(): List + fun beneficiaryList(): Flow> @GET(ApiEndPoints.BENEFICIARIES + "/tpt/template") - suspend fun beneficiaryTemplate(): BeneficiaryTemplate + fun beneficiaryTemplate(): Flow @POST(ApiEndPoints.BENEFICIARIES + "/tpt") suspend fun createBeneficiary(@Body beneficiaryPayload: BeneficiaryPayload?): HttpResponse diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientChargeService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientChargeService.kt index d65797f96..fa68bcdd3 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientChargeService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientChargeService.kt @@ -22,8 +22,8 @@ interface ClientChargeService { fun getClientChargeList(@Path("clientId") clientId: Long): Flow> @GET(ApiEndPoints.LOANS + "/{loanId}/charges") - suspend fun getLoanAccountChargeList(@Path("loanId") loanId: Long): List + fun getLoanAccountChargeList(@Path("loanId") loanId: Long): Flow> @GET(ApiEndPoints.SAVINGS_ACCOUNTS + "/{savingsId}/charges") - suspend fun getSavingsAccountChargeList(@Path("savingsId") savingsId: Long): List + fun getSavingsAccountChargeList(@Path("savingsId") savingsId: Long): Flow> } diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientService.kt index a503b89ec..902f539a6 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ClientService.kt @@ -25,19 +25,19 @@ interface ClientService { fun clients(): Flow> @GET(ApiEndPoints.CLIENTS + "/{clientId}") - suspend fun getClientForId(@Path(CLIENT_ID) clientId: Long): Client + fun getClientForId(@Path(CLIENT_ID) clientId: Long): Flow @GET(ApiEndPoints.CLIENTS + "/{clientId}/images") - suspend fun getClientImage(@Path(CLIENT_ID) clientId: Long): HttpResponse + fun getClientImage(@Path(CLIENT_ID) clientId: Long): Flow @GET(ApiEndPoints.CLIENTS + "/{clientId}/accounts") fun getClientAccounts(@Path(CLIENT_ID) clientId: Long): Flow @GET(ApiEndPoints.CLIENTS + "/{clientId}/accounts") - suspend fun getAccounts( + fun getAccounts( @Path(CLIENT_ID) clientId: Long, @Query("fields") accountType: String?, - ): ClientAccounts + ): Flow companion object { const val CLIENT_ID = "clientId" diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/GuarantorService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/GuarantorService.kt index b9acccbae..35b6493d3 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/GuarantorService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/GuarantorService.kt @@ -16,16 +16,17 @@ import de.jensklingenberg.ktorfit.http.POST import de.jensklingenberg.ktorfit.http.PUT import de.jensklingenberg.ktorfit.http.Path import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.guarantor.GuarantorApplicationPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorTemplatePayload interface GuarantorService { @GET("loans/{loanId}/guarantors/template") - suspend fun getGuarantorTemplate(@Path("loanId") loanId: Long): GuarantorTemplatePayload + fun getGuarantorTemplate(@Path("loanId") loanId: Long): Flow @GET("loans/{loanId}/guarantors") - suspend fun getGuarantorList(@Path("loanId") loanId: Long): List + fun getGuarantorList(@Path("loanId") loanId: Long): Flow> @POST("loans/{loanId}/guarantors") suspend fun createGuarantor( diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/LoanAccountsListService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/LoanAccountsListService.kt index 67ec830db..fd212f371 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/LoanAccountsListService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/LoanAccountsListService.kt @@ -16,6 +16,7 @@ import de.jensklingenberg.ktorfit.http.PUT import de.jensklingenberg.ktorfit.http.Path import de.jensklingenberg.ktorfit.http.Query import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.accounts.loan.LoanAccount import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithAssociations import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithdraw @@ -25,22 +26,22 @@ import org.mifos.mobile.core.network.utils.ApiEndPoints interface LoanAccountsListService { @GET(ApiEndPoints.LOANS + "/{loanId}/") - suspend fun getLoanAccountsDetail(@Path("loanId") loanId: Long): LoanAccount? + fun getLoanAccountsDetail(@Path("loanId") loanId: Long): Flow? @GET(ApiEndPoints.LOANS + "/{loanId}") - suspend fun getLoanWithAssociations( + fun getLoanWithAssociations( @Path("loanId") loanId: Long, @Query("associations") associationType: String?, - ): LoanWithAssociations + ): Flow @GET(ApiEndPoints.LOANS + "/template?templateType=individual") - suspend fun getLoanTemplate(@Query("clientId") clientId: Long?): LoanTemplate + fun getLoanTemplate(@Query("clientId") clientId: Long?): Flow @GET(ApiEndPoints.LOANS + "/template?templateType=individual") - suspend fun getLoanTemplateByProduct( + fun getLoanTemplateByProduct( @Query("clientId") clientId: Long?, @Query("productId") productId: Int?, - ): LoanTemplate + ): Flow @POST(ApiEndPoints.LOANS) suspend fun createLoansAccount(@Body loansPayload: LoansPayload?): HttpResponse diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/NotificationService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/NotificationService.kt index 3cafded3a..205c4d71f 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/NotificationService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/NotificationService.kt @@ -15,13 +15,14 @@ import de.jensklingenberg.ktorfit.http.POST import de.jensklingenberg.ktorfit.http.PUT import de.jensklingenberg.ktorfit.http.Path import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.notification.NotificationRegisterPayload import org.mifos.mobile.core.model.entity.notification.NotificationUserDetail import org.mifos.mobile.core.network.utils.ApiEndPoints interface NotificationService { @GET(ApiEndPoints.DEVICE + "/registration/client/{clientId}") - suspend fun getUserNotificationId(@Path("clientId") clientId: Long): NotificationUserDetail + fun getUserNotificationId(@Path("clientId") clientId: Long): Flow @POST(ApiEndPoints.DEVICE + "/registration") suspend fun registerNotification(@Body payload: NotificationRegisterPayload?): HttpResponse diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/SavingAccountsListService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/SavingAccountsListService.kt index a27d1b03b..926b18b75 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/SavingAccountsListService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/SavingAccountsListService.kt @@ -16,6 +16,7 @@ import de.jensklingenberg.ktorfit.http.PUT import de.jensklingenberg.ktorfit.http.Path import de.jensklingenberg.ktorfit.http.Query import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountApplicationPayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountUpdatePayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountWithdrawPayload @@ -27,24 +28,24 @@ import org.mifos.mobile.core.network.utils.ApiEndPoints interface SavingAccountsListService { @GET(ApiEndPoints.SAVINGS_ACCOUNTS + "/{accountId}") - suspend fun getSavingsWithAssociations( + fun getSavingsWithAssociations( @Path("accountId") accountId: Long, @Query("associations") associationType: String?, - ): SavingsWithAssociations + ): Flow @GET(ApiEndPoints.ACCOUNT_TRANSFER + "/template") - suspend fun accountTransferTemplate( + fun accountTransferTemplate( @Query("fromAccountId") accountId: Long?, @Query("fromAccountType") accountType: Long?, - ): AccountOptionsTemplate + ): Flow @POST(ApiEndPoints.ACCOUNT_TRANSFER) suspend fun makeTransfer(@Body transferPayload: TransferPayload?): HttpResponse @GET(ApiEndPoints.SAVINGS_ACCOUNTS + "/template") - suspend fun getSavingsAccountApplicationTemplate( + fun getSavingsAccountApplicationTemplate( @Query("clientId") clientId: Long?, - ): SavingsAccountTemplate + ): Flow @POST(ApiEndPoints.SAVINGS_ACCOUNTS) suspend fun submitSavingAccountApplication( diff --git a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ThirdPartyTransferService.kt b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ThirdPartyTransferService.kt index fa2dadb15..8d0a477cc 100644 --- a/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ThirdPartyTransferService.kt +++ b/core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/services/ThirdPartyTransferService.kt @@ -13,13 +13,14 @@ import de.jensklingenberg.ktorfit.http.Body import de.jensklingenberg.ktorfit.http.GET import de.jensklingenberg.ktorfit.http.POST import io.ktor.client.statement.HttpResponse +import kotlinx.coroutines.flow.Flow import org.mifos.mobile.core.model.entity.payload.TransferPayload import org.mifos.mobile.core.model.entity.templates.account.AccountOptionsTemplate import org.mifos.mobile.core.network.utils.ApiEndPoints interface ThirdPartyTransferService { @GET(ApiEndPoints.ACCOUNT_TRANSFER + "/template?type=tpt") - suspend fun accountTransferTemplate(): AccountOptionsTemplate + fun accountTransferTemplate(): Flow @POST(ApiEndPoints.ACCOUNT_TRANSFER + "?type=tpt") suspend fun makeTransfer(@Body transferPayload: TransferPayload?): HttpResponse