Skip to content

Commit 0579a26

Browse files
itsPronayniyajali
andauthored
fix: failed to create savings account (#2412)
Co-authored-by: Sk Niyaj Ali <niyaj639@gmail.com>
1 parent 22906ab commit 0579a26

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

  • core
    • database/src/commonMain/kotlin/com/mifos/room/entities/client
    • model/src/commonMain/kotlin/com/mifos/core/model/objects/payloads

core/database/src/commonMain/kotlin/com/mifos/room/entities/client/Savings.kt

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,15 @@
99
*/
1010
package com.mifos.room.entities.client
1111

12-
import com.mifos.room.entities.accounts.savings.SavingAccountDepositTypeEntity
12+
import kotlinx.serialization.Serializable
1313

1414
/**
1515
* Created by nellyk on 2/19/2016.
1616
*/
17+
@Serializable
1718
data class Savings(
18-
val id: Int? = null,
19-
20-
val accountNo: String? = null,
21-
22-
val productId: Int? = null,
23-
24-
val productName: String? = null,
25-
26-
val status: ClientStatusEntity? = null,
27-
28-
val currency: ClientChargeCurrencyEntity? = null,
29-
30-
val accountBalance: Double? = null,
31-
32-
val additionalProperties: Map<String, Any> = emptyMap(),
33-
34-
val depositType: SavingAccountDepositTypeEntity? = null,
19+
val clientId: Int? = null,
20+
val officeId: Int? = null,
21+
val resourceId: Int? = null,
22+
val savingsId: Int? = null,
3523
)

core/model/src/commonMain/kotlin/com/mifos/core/model/objects/payloads/SavingsPayload.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
*/
1010
package com.mifos.core.model.objects.payloads
1111

12+
import kotlinx.serialization.Serializable
13+
1214
/**
1315
* Created by nellyk on 2/10/2016.
1416
*/
17+
@Serializable
1518
class SavingsPayload {
1619
var productId: Int? = null
1720
var clientId: Int? = null

0 commit comments

Comments
 (0)