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 GenerateMonthlyBillCommand extends CommandAbstract {
    private Date date;
    private Collection<BillType> billTypes;

    private GenerateMonthlyBillCommand(Date date, Collection<BillType> billTypes){
        this.date = date;
        this.billTypes = billTypes;
    }

    public static GenerateMonthlyBillCommand create(Date date,Collection<BillType> billTypes){

        return new GenerateMonthlyBillCommand(date,billTypes);
    }
}
