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

import com.bcxin.tenant.open.domains.entities.OrgPurseTransactionEntity;
import com.bcxin.tenant.open.infrastructures.commands.CommandAbstract;
import lombok.Getter;

import java.util.Collection;

@Getter
public class CreateOrgPurseTransactionCommand extends CommandAbstract {
    private final Collection<OrgPurseTransactionEntity> orgPurseTransactions;

    public CreateOrgPurseTransactionCommand(Collection<OrgPurseTransactionEntity> orgPurseTransactions) {
        this.orgPurseTransactions = orgPurseTransactions;
    }

    public static CreateOrgPurseTransactionCommand create(Collection<OrgPurseTransactionEntity> orgPurseTransactions) {
        return new CreateOrgPurseTransactionCommand(orgPurseTransactions);
    }
}
