feat(accounts): hesaplar (KMH, kredi kartı, yemek kartı, yalnızca ben)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 02:57:58 +03:00
parent 380ddaf303
commit 8dd5fd42e3
9 changed files with 1805 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
/** Hesap türleri ve yemek kartı sağlayıcıları (Bölüm 6.1). */
export const ACCOUNT_TYPES = ["cash", "bank", "savings", "credit_card", "meal_card"] as const;
export type AccountType = (typeof ACCOUNT_TYPES)[number];
export const MEAL_CARD_PROVIDERS = [
"pluxee",
"multinet",
"edenred",
"setcard",
"metropol",
"other",
] as const;
export type MealCardProvider = (typeof MEAL_CARD_PROVIDERS)[number];
/** Kredi kartı son ödeme kuralı: kesimden N gün sonra | ayın sabit günü. */
export const DUE_RULE_KINDS = ["daysAfter", "fixedDay"] as const;
export type DueRuleKind = (typeof DUE_RULE_KINDS)[number];
/** Borç (negatif bakiye) taşıyan hesap türleri. */
export const isLiabilityType = (type: AccountType) => type === "credit_card";