16 lines
379 B
PHP
16 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Api\Invoice;
|
|
|
|
use App\Models\Invoice;
|
|
use App\Models\Order;
|
|
use App\Repositories\BaseRepositoryInterface;
|
|
|
|
interface InvoiceRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
/**
|
|
* Create an invoice (+ invoice_items) from a completed Order.
|
|
*/
|
|
public function createFromOrder(Order $order, ?int $dueDays = null): Invoice;
|
|
}
|