????Repositories/SupportTicketRepositoryInterface.php000064400000000172150072512400016501 0ustar00'John Doe'] * @param string $model * @param int|string $id * @return bool */ public function add(object $request, string $model, int|string $id): bool; /** * @param object $request * @param string $model * @param int|string $id * @return bool */ public function update(object $request, string $model, int|string $id): bool; /** * @param string $model * @param int|string $id * @return bool */ public function delete(string $model, int|string $id): bool; /** * @param string $model * @param string $id * @param string $lang * @param string $key * @param string $value * @return bool */ public function updateData(string $model, string $id, string $lang, string $key, string $value):bool; } Repositories/DeliveryManRepositoryInterface.php000064400000002362150072512400016103 0ustar00'John Doe'] * @return string|object */ public function add(array $data): string|object; /** * @param array $params Params value must be in key and value pair structure, ex: params = ['name'=>'John Doe'] * @param array $relations Relations value must be a relation name in array structure, ex: relations = ['product','category'] * @return Model|null */ public function getFirstWhere(array $params, array $relations = []): ?Model; /** * @param array $orderBy * @param array $relations * @param int|string $dataLimit If you need all data without pagination, you need to set dataLimit = 'all' * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getList(array $orderBy=[], array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; /** * @param array $orderBy * @param string|null $searchValue * @param array $filters Filters value must be in key and value pair structure, support one level nested array, ex: Filters = ['category'=>[1,2,5,8], 'email'=>['x@x.com','test@test.com']] * @param array $relations * @param int|string $dataLimit If you need all data without pagination, you need to set dataLimit = 'all' * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getListWhere(array $orderBy=[], string $searchValue = null, array $filters = [], array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; /** * @param string $id * @param array $data Data value must be in key and value pair structure, ex: params = ['name'=>'John Doe'] * @return bool */ public function update(string $id, array $data): bool; /** * @param array $params * @return bool */ public function delete(array $params): bool; } Repositories/ContactRepositoryInterface.php000064400000000164150072512400015255 0ustar00[1,2,5,8], 'email'=>['x@x.com','test@test.com']] * @param array $relations * @param int|string $dataLimit If you need all data without pagination, you need to set dataLimit = 'all' * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getDeliveryManOrderListWhere(string $addedBy, string $searchValue = null, array $filters = [] , array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; /** * @param array $params * @param array $data * @return bool */ public function updateWhere(array $params, array $data): bool; /** * @param array $orderBy * @param string|null $searchValue * @param array $filters * @param array $relations * @param array $nullFields * @param array $whereNotIn * @param int|string $dataLimit * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getListWhereNotIn(array $orderBy = [], string $searchValue = null, array $filters = [], array $relations = [], array $nullFields = [], array $whereNotIn = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; /** * @param string|null $searchValue * @param array $filters * @param array $relations * @return int */ public function getListWhereCount(string $searchValue = null, array $filters = [], array $relations = []): int; /** * @param object $request * @param string|int $userId * @param string $userType * @return bool */ public function updateAmountDate(object $request, string|int $userId, string $userType): bool; /** * @param array $filters * @param string|null $dateType * @param array $filterDate * @param array $relations * @param int|string $dataLimit * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getListWhereDate(array $filters = [], string $dateType = null, array $filterDate = [] , array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator ; /** * @param string|int $orderId * @param string $status * @return bool */ public function updateStockOnOrderStatusChange(string|int $orderId, string $status): bool; /** * @param object $order * @param string $receivedBy * @return bool */ public function manageWalletOnOrderStatusChange(object $order, string $receivedBy): bool; /** * @param array $filters * @param array $relations * @param int|string $dataLimit * @param int|null $offset * @return Collection|LengthAwarePaginator */ public function getTopCustomerList(array $filters = [] , array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; public function getListWhereBetween(array $filters = [], string $selectColumn = null, string $whereBetween = null, array $whereBetweenFilters = [], array $relations = [], int|string $dataLimit = DEFAULT_DATA_LIMIT, int $offset = null): Collection|LengthAwarePaginator; } Repositories/AddFundBonusCategoriesRepositoryInterface.php000064400000000203150072512400020176 0ustar00