updates to wallet functionality

This commit is contained in:
Prince
2026-06-11 23:52:20 +02:00
parent 0dce7f51dc
commit 8a9d58fe05
13 changed files with 17 additions and 101 deletions

View File

@@ -8,8 +8,6 @@ import zw.qantra.tm.domain.dtos.erp.VelocityAccountDto;
import zw.qantra.tm.domain.dtos.erp.VelocityStatementDto;
import zw.qantra.tm.domain.services.VelocityAccountService;
import java.util.List;
@RestController
@RequestMapping("/accounts")
@RequiredArgsConstructor
@@ -19,10 +17,10 @@ public class AccountController {
@GetMapping("/phone/{currencyPhoneConcat}")
@PreAuthorize("hasRole('ACCOUNT_READ')")
public ResponseEntity<Object> getAccountByPhone(
public ResponseEntity<VelocityAccountDto> getAccountByPhone(
@PathVariable String currencyPhoneConcat) {
try {
Object account = velocityAccountService.getAccountByPhone(currencyPhoneConcat);
VelocityAccountDto account = velocityAccountService.getAccountByPhone(currencyPhoneConcat);
return ResponseEntity.ok(account);
} catch (Exception e) {
return ResponseEntity.badRequest().build();