mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 22:04:03 +00:00
feat(purchase): add per-purchase participant splits
This commit is contained in:
@@ -35,6 +35,13 @@ export interface FinanceParsedPurchaseRecord {
|
||||
currency: CurrencyCode
|
||||
description: string | null
|
||||
occurredAt: Instant | null
|
||||
splitMode?: 'equal' | 'custom_amounts'
|
||||
participants?: readonly {
|
||||
id?: string
|
||||
memberId: string
|
||||
included?: boolean
|
||||
shareAmountMinor: bigint | null
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface FinanceUtilityBillRecord {
|
||||
@@ -170,6 +177,12 @@ export interface FinanceRepository {
|
||||
amountMinor: bigint
|
||||
currency: CurrencyCode
|
||||
description: string | null
|
||||
splitMode?: 'equal' | 'custom_amounts'
|
||||
participants?: readonly {
|
||||
memberId: string
|
||||
included?: boolean
|
||||
shareAmountMinor: bigint | null
|
||||
}[]
|
||||
}): Promise<FinanceParsedPurchaseRecord | null>
|
||||
deleteParsedPurchase(purchaseId: string): Promise<boolean>
|
||||
updateUtilityBill(input: {
|
||||
|
||||
Reference in New Issue
Block a user