class VoucherSubTypeService {

    public Pagination<VoucherSubType> search(VoucherSubTypeSearch voucherSubTypeSearch) {

        Assert.notNull(voucherSubTypeSearch.getTenantId(), "tenantId is mandatory for voucher search");

        return voucherSubTypeRepository.search(voucherSubTypeSearch);
    }

    @Autowired public  VoucherSubTypeService(
            VoucherSubTypeRepository voucherSubTypeRepository,
            SmartValidator validator);

}