mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 13:54:02 +00:00
feat(finance): add billing correction APIs and cycle rollover
This commit is contained in:
@@ -165,6 +165,13 @@ export interface FinanceRepository {
|
||||
currency: CurrencyCode
|
||||
createdByMemberId: string
|
||||
}): Promise<void>
|
||||
updateParsedPurchase(input: {
|
||||
purchaseId: string
|
||||
amountMinor: bigint
|
||||
currency: CurrencyCode
|
||||
description: string | null
|
||||
}): Promise<FinanceParsedPurchaseRecord | null>
|
||||
deleteParsedPurchase(purchaseId: string): Promise<boolean>
|
||||
updateUtilityBill(input: {
|
||||
billId: string
|
||||
billName: string
|
||||
@@ -172,6 +179,22 @@ export interface FinanceRepository {
|
||||
currency: CurrencyCode
|
||||
}): Promise<FinanceUtilityBillRecord | null>
|
||||
deleteUtilityBill(billId: string): Promise<boolean>
|
||||
addPaymentRecord(input: {
|
||||
cycleId: string
|
||||
memberId: string
|
||||
kind: FinancePaymentKind
|
||||
amountMinor: bigint
|
||||
currency: CurrencyCode
|
||||
recordedAt: Instant
|
||||
}): Promise<FinancePaymentRecord>
|
||||
updatePaymentRecord(input: {
|
||||
paymentId: string
|
||||
memberId: string
|
||||
kind: FinancePaymentKind
|
||||
amountMinor: bigint
|
||||
currency: CurrencyCode
|
||||
}): Promise<FinancePaymentRecord | null>
|
||||
deletePaymentRecord(paymentId: string): Promise<boolean>
|
||||
getRentRuleForPeriod(period: string): Promise<FinanceRentRuleRecord | null>
|
||||
getUtilityTotalForCycle(cycleId: string): Promise<bigint>
|
||||
listUtilityBillsForCycle(cycleId: string): Promise<readonly FinanceUtilityBillRecord[]>
|
||||
|
||||
Reference in New Issue
Block a user