From ff86d65eb3b0aa7d7b6b1acb404ca8315445192e Mon Sep 17 00:00:00 2001 From: nfel Date: Mon, 16 Dec 2024 15:29:25 +0330 Subject: [PATCH] wallet: /#14 removed multiple company from user + identity now is source of truth Signed-off-by: nfel --- auth/v1/msg.proto | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/v1/msg.proto b/auth/v1/msg.proto index 37bce62..8f1a330 100644 --- a/auth/v1/msg.proto +++ b/auth/v1/msg.proto @@ -75,8 +75,8 @@ message CheckIAMReq { message InternalIAM { User user = 1; IdentityBasic identity = 2; - repeated Company company = 3; } + message IdReqWithIAM { int64 id = 1; InternalIAM iam = 2; @@ -110,6 +110,7 @@ message Company { bool can_provide_bnpl = 5; } +// Identity is bound to current user's real identity message Identity { string national_id = 1; string national_serial_id = 2; @@ -139,6 +140,7 @@ message Identity { message IdentityBasic { string first_name = 1; string last_name = 2; + optional Company company = 3; } message UserIdentityBasic { @@ -234,7 +236,6 @@ message Recipient { optional string last_name = 3; optional int64 user_id = 4; optional string public_key = 5; - } message LookUpNameReq {