wallet: /#14 removed multiple company from user + identity now is source of truth

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-12-16 15:29:25 +03:30
parent f23d1251b5
commit ff86d65eb3
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F

View File

@ -75,8 +75,8 @@ message CheckIAMReq {
message InternalIAM { message InternalIAM {
User user = 1; User user = 1;
IdentityBasic identity = 2; IdentityBasic identity = 2;
repeated Company company = 3;
} }
message IdReqWithIAM { message IdReqWithIAM {
int64 id = 1; int64 id = 1;
InternalIAM iam = 2; InternalIAM iam = 2;
@ -110,6 +110,7 @@ message Company {
bool can_provide_bnpl = 5; bool can_provide_bnpl = 5;
} }
// Identity is bound to current user's real identity
message Identity { message Identity {
string national_id = 1; string national_id = 1;
string national_serial_id = 2; string national_serial_id = 2;
@ -139,6 +140,7 @@ message Identity {
message IdentityBasic { message IdentityBasic {
string first_name = 1; string first_name = 1;
string last_name = 2; string last_name = 2;
optional Company company = 3;
} }
message UserIdentityBasic { message UserIdentityBasic {
@ -234,7 +236,6 @@ message Recipient {
optional string last_name = 3; optional string last_name = 3;
optional int64 user_id = 4; optional int64 user_id = 4;
optional string public_key = 5; optional string public_key = 5;
} }
message LookUpNameReq { message LookUpNameReq {