8dd5fd42e3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
765 B
TypeScript
21 lines
765 B
TypeScript
/** 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";
|