package com.bcxin.tenant.open.domains.services.commands;

import com.bcxin.tenant.open.infrastructures.commands.CommandAbstract;
import com.bcxin.tenant.open.infrastructures.enums.BillType;
import lombok.Getter;

import java.util.Collection;
import java.util.Date;

@Getter
public class GenerateDailyBillCommand extends CommandAbstract {
    private Date date;
    private Collection<BillType> billTypes;
    private GenerateDailyBillCommand(Date date, Collection<BillType> billTypes){
        this.date = date;
        this.billTypes = billTypes;
    }

    public static GenerateDailyBillCommand create(Date date, Collection<BillType> billTypes){
        return new GenerateDailyBillCommand(date,billTypes);
    }
}
