Skip to content

Commit 132c200

Browse files
updated error code
1 parent d3cbf54 commit 132c200

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Service.AddressBook.Grpc/Models/OperationResponse.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ public enum GlobalSendErrorCode
2222
ContactNotFound,
2323
InvalidIban,
2424
InvalidNickname,
25-
IbanNotReachable
25+
IbanNotReachable,
26+
InvalidBic,
2627
}

src/Service.AddressBook/Services/AddressBookService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public async Task<OperationResponse> CreateWithIbanAsync(AddIbanRequest request)
313313
return new OperationResponse()
314314
{
315315
IsSuccess = false,
316-
ErrorCode = GlobalSendErrorCode.InvalidIban
316+
ErrorCode = GlobalSendErrorCode.InvalidBic
317317
};
318318
}
319319

@@ -449,7 +449,7 @@ public async Task<OperationResponse> UpdateContactAsync(UpdateContactRequest req
449449
return new OperationResponse()
450450
{
451451
IsSuccess = false,
452-
ErrorCode = GlobalSendErrorCode.InvalidIban
452+
ErrorCode = GlobalSendErrorCode.InvalidBic
453453
};
454454
}
455455
record.Bic = request.Bic;

0 commit comments

Comments
 (0)