From 4126a7370fba4ccc929fad929f52bef55c458b8b Mon Sep 17 00:00:00 2001 From: mahan Date: Sun, 19 Oct 2025 12:17:33 +0330 Subject: [PATCH] fix: handle nullable UidBank in account number conversion --- .../IContractingPartyBankAccountsApplication.cs | 2 +- .../ContractingPartyBankAccountsApplication.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs b/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs index f4864441..992e9808 100644 --- a/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs +++ b/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs @@ -90,7 +90,7 @@ public class InquiryContractingPartyBankDetailsRequest public string CardNumber { get; set; } public string AccountNumber { get; set; } public string IBan { get; set; } - public UidBanks UidBank { get; set; } + public UidBanks? UidBank { get; set; } } public class ContractingPartyBankInquiryResponse { diff --git a/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs b/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs index e1e1dc0a..c06e5729 100644 --- a/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs +++ b/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs @@ -193,7 +193,7 @@ public class ContractingPartyBankAccountsApplication : IContractingPartyBankAcco } else if (!string.IsNullOrWhiteSpace(accountNumber)) { - var accountNumberRes = await _uidService.AccountToIban(accountNumber, uidBank); + var accountNumberRes = await _uidService.AccountToIban(accountNumber, uidBank.Value); if (accountNumberRes.ResponseContext.Status.Code != 0) { throw new BadRequestException(