package de.assecutor.votianlt.repository;

import de.assecutor.votianlt.model.invoices.SystemInvoiceDispatch;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;
import java.util.Optional;

public interface SystemInvoiceDispatchRepository extends MongoRepository<SystemInvoiceDispatch, ObjectId> {

    List<SystemInvoiceDispatch> findByBillingMonth(String billingMonth);

    Optional<SystemInvoiceDispatch> findByInvoiceNumber(String invoiceNumber);
}
