import { ValueObject } from '../../../core/domain' ; import { MemberId } from '../../../member/domain/model/member-id' ; import { BillCurrencyUnit } from './bill-currency-unit' ; interface Props { memberId : MemberId ; amount : BillCurrencyUnit ; } export class BillPayer extends ValueObject < Props > { static withMemberIdAndAmount ( memberId , amount ) { return new BillPayer ( { memberId , amount } ) ; } get memberId ( ) : MemberId { return this . props . memberId ; } get amount ( ) : BillCurrencyUnit { return this . props . amount ; } }