class TallyMessageBuilder {

    public final TallyMessage build() throws TallyMessageBuilderException {
        if (voucherDate == null) {
            throw new TallyMessageBuilderException("Voucher date is required before building");
        }
        return new TallyMessage(voucherType, voucherDate, allLedgers);
    }

    public  TallyMessageBuilder(VoucherType voucherType, String branchName);

}