import { BillWasCreated } from './bill-was-created.event' ; import { BillPayer } from '../model/bill-payer' ; import { BillDebtor } from '../model/bill-debtor' ; import { BillWasRemoved } from './bill-was-removed.event' ; import { BillCurrencyCodeWasChanged } from './bill-currency-code-was-changed.event' ; import { BillNameWasChanged } from './bill-name-was-changed.event' ; import { BillDateWasChanged } from './bill-date-was-changed.event' ; import { BillPayerWasRemoved } from './bill-payer-was-removed.event' ; import { BillDebtorWasRemoved } from './bill-debtor-was-removed.event' ; import { BillPayerWasAdded } from './bill-payer-was-added.event' ; import { BillDebtorWasAdded } from './bill-debtor-was-added.event' ; import { BillMoneyWasChanged } from './bill-money-was-changed.event' ; export const billEventHandlers = { BillWasCreated : ( id , groupId , name , money , currencyCode , date , payers , debtors , creatorId ) => new BillWasCreated ( id , groupId , name , money , currencyCode , date , payers , debtors , creatorId ) , BillWasRemoved : ( id ) => new BillWasRemoved ( id ) , BillCurrencyCodeWasChanged : ( id , currencyCode ) => new BillCurrencyCodeWasChanged ( id , currencyCode ) , BillMoneyWasChanged : ( id , money ) => new BillMoneyWasChanged ( id , money ) , BillNameWasChanged : ( id , name ) => new BillNameWasChanged ( id , name ) , BillDateWasChanged : ( id , date ) => new BillDateWasChanged ( id , date ) , BillPayerWasRemoved : ( id , payerId ) => new BillPayerWasRemoved ( id , payerId ) , BillDebtorWasRemoved : ( id , debtorId ) => new BillDebtorWasRemoved ( id , debtorId ) , BillPayerWasAdded : ( id , payer ) => new BillPayerWasAdded ( id , payer ) , BillDebtorWasAdded : ( id , debtor ) => new BillDebtorWasAdded ( id , debtor ) , } ;