multi payment final - finish top up and trsanction history

This commit is contained in:
edmondlang
2023-03-12 23:13:03 +08:00
parent eea8708b76
commit 2353c637d7
9 changed files with 117 additions and 60 deletions
@@ -24,7 +24,7 @@ class FetchWalletByCompanyModuleControllerLogic extends AbstractControllerLogic
protected function notification():array {
return [
'title' => 'Retrieved Wallet',
'message' => 'You have successfully created a wallet'
'message' => 'You have successfully retrieved a wallet'
];
}
@@ -78,7 +78,11 @@ class FetchWalletByCompanyModuleControllerLogic extends AbstractControllerLogic
return $this->resourceResponse(new WalletResource($wallet));
}
$query = $this->fetchesWallet->execute(['owner_id' => $request->route('company_module_id')]);
$filters = $this->fetchesWallet->deserializeFilters($request->input('filters'));
$filters['owner_id'] = $request->route('company_module_id');
$query = $this->fetchesWallet->execute($filters);
return $this->resourceResponse(new WalletResource($query));
}