feat: Reimplement order and invoice management with new service and repository layers, introduce compression middleware, and update database schema.
This commit is contained in:
@@ -2,11 +2,20 @@
|
||||
|
||||
namespace App\Repositories\Api\Invoice;
|
||||
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Order;
|
||||
use App\Repositories\BaseRepositoryInterface;
|
||||
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
||||
|
||||
interface InvoiceRepositoryInterface extends BaseRepositoryInterface
|
||||
{
|
||||
public function getInvoice(int $limit = 10, $customer = null);
|
||||
/**
|
||||
* Paginated invoice list for a customer.
|
||||
*/
|
||||
public function getInvoice(int $limit, int $customerId): LengthAwarePaginator;
|
||||
|
||||
public function createFromOrder($order);
|
||||
/**
|
||||
* Create an invoice (+ invoice_items) from a completed Order.
|
||||
*/
|
||||
public function createFromOrder(Order $order): Invoice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user