adding citywallet support

This commit is contained in:
Prince
2026-06-11 16:50:41 +02:00
parent 68ed2650e8
commit 0dce7f51dc
6 changed files with 22 additions and 6 deletions

View File

@@ -16,14 +16,13 @@ import java.util.List;
public class AccountController {
private final VelocityAccountService velocityAccountService;
private static final List<String> SUPPORTED_CURRENCIES = List.of("USD", "ZWG");
@GetMapping("/phone/{currencyPhoneConcat}")
@PreAuthorize("hasRole('ACCOUNT_READ')")
public ResponseEntity<VelocityAccountDto> getAccountByPhone(
public ResponseEntity<Object> getAccountByPhone(
@PathVariable String currencyPhoneConcat) {
try {
VelocityAccountDto account = velocityAccountService.getAccountByPhone(currencyPhoneConcat);
Object account = velocityAccountService.getAccountByPhone(currencyPhoneConcat);
return ResponseEntity.ok(account);
} catch (Exception e) {
return ResponseEntity.badRequest().build();