diff --git a/src/Purrse.Api/Services/AccountService.cs b/src/Purrse.Api/Services/AccountService.cs index 09d6bb6..c2c1831 100644 --- a/src/Purrse.Api/Services/AccountService.cs +++ b/src/Purrse.Api/Services/AccountService.cs @@ -60,6 +60,7 @@ public class AccountService : IAccountService ?? throw new KeyNotFoundException("Account not found"); account.Name = request.Name; + account.Type = request.Type; account.Institution = request.Institution; account.AccountNumber = request.AccountNumber; account.CreditLimit = request.CreditLimit; diff --git a/src/Purrse.Core/DTOs/AccountDtos.cs b/src/Purrse.Core/DTOs/AccountDtos.cs index 47f711d..293ebd9 100644 --- a/src/Purrse.Core/DTOs/AccountDtos.cs +++ b/src/Purrse.Core/DTOs/AccountDtos.cs @@ -15,6 +15,7 @@ public record CreateAccountRequest( public record UpdateAccountRequest( string Name, + AccountType Type, string? Institution, string? AccountNumber, decimal? CreditLimit,