Skip to content

Commit

Permalink
LP-179 2 Remit API LISTs response same, need to adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed Feb 20, 2024
1 parent 8fc354c commit a4081c5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Http/Requests/IndexBankTransferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function rules(): array
'sort' => ['string', 'nullable', 'min:2', 'max:255'],
'dir' => ['string', 'min:3', 'max:4'],
'trashed' => ['boolean', 'nullable'],
'service_id' => ['integer', 'nullable'],
'service_slug' => ['string', 'nullable'],
];
}

Expand Down
2 changes: 2 additions & 0 deletions src/Http/Requests/IndexCashPickupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function rules(): array
'sort' => ['string', 'nullable', 'min:2', 'max:255'],
'dir' => ['string', 'min:3', 'max:4'],
'trashed' => ['boolean', 'nullable'],
'service_id' => ['integer', 'nullable'],
'service_slug' => ['string', 'nullable'],
];
}

Expand Down
2 changes: 2 additions & 0 deletions src/Http/Requests/IndexWalletTransferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function rules(): array
'sort' => ['string', 'nullable', 'min:2', 'max:255'],
'dir' => ['string', 'min:3', 'max:4'],
'trashed' => ['boolean', 'nullable'],
'service_id' => ['integer', 'nullable'],
'service_slug' => ['string', 'nullable'],
];
}

Expand Down
17 changes: 17 additions & 0 deletions src/Repositories/Eloquent/BankTransferRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Fintech\Remit\Interfaces\BankTransferRepository as InterfacesBankTransferRepository;
use Fintech\Transaction\Repositories\Eloquent\OrderRepository;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use InvalidArgumentException;

Expand All @@ -22,4 +25,18 @@ public function __construct()

$this->model = $model;
}

/**
* return a list or pagination of items from
* filtered options
*
* @return Paginator|Collection
*
* @throws BindingResolutionException
*/
public function list(array $filters = [])
{
return parent::list($filters);

}
}

0 comments on commit a4081c5

Please sign in to comment.