mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 12:04:02 +00:00
feat(finance): support weighted rent split
This commit is contained in:
@@ -4,6 +4,7 @@ export interface FinanceMemberRecord {
|
||||
id: string
|
||||
telegramUserId: string
|
||||
displayName: string
|
||||
rentShareWeight: number
|
||||
isAdmin: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ export interface HouseholdMemberRecord {
|
||||
displayName: string
|
||||
preferredLocale: SupportedLocale | null
|
||||
householdDefaultLocale: SupportedLocale
|
||||
rentShareWeight: number
|
||||
isAdmin: boolean
|
||||
}
|
||||
|
||||
@@ -128,6 +129,7 @@ export interface HouseholdConfigurationRepository {
|
||||
telegramUserId: string
|
||||
displayName: string
|
||||
preferredLocale?: SupportedLocale | null
|
||||
rentShareWeight?: number
|
||||
isAdmin?: boolean
|
||||
}): Promise<HouseholdMemberRecord>
|
||||
getHouseholdMember(
|
||||
@@ -178,4 +180,9 @@ export interface HouseholdConfigurationRepository {
|
||||
householdId: string,
|
||||
memberId: string
|
||||
): Promise<HouseholdMemberRecord | null>
|
||||
updateHouseholdMemberRentShareWeight(
|
||||
householdId: string,
|
||||
memberId: string,
|
||||
rentShareWeight: number
|
||||
): Promise<HouseholdMemberRecord | null>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user