import type { SupportedCurrencies } from './Contract'; export type VoucherCategory = 'compensation' | 'cancellation' | 'marketing' | 'other'; export type VoucherScopeOfUse = 'all_houses_and_services' | 'all_houses' | 'all_services' | 'only_one_house'; export type VoucherState = 'to_use' | 'used' | 'expired'; export type Voucher = { amount: string; category: VoucherCategory; comment?: string | undefined; contractId?: string | undefined; createdBy: string; currency: SupportedCurrencies; expireDate: string; houseId?: string | undefined; id: string; scopeOfUse: VoucherScopeOfUse; usedAmount: number; userId: string; }; export type VoucherPayload = { voucher: { amount: number; category?: VoucherCategory; comment?: string; contract_id?: string; currency?: SupportedCurrencies; expire_date?: string; scope_of_use?: VoucherScopeOfUse; house_id?: string; user_id?: string; state?: VoucherState; }; };