From 12cb7ec60a5278458af282cc1e177f72bce35903 Mon Sep 17 00:00:00 2001 From: "plekhov.a" Date: Wed, 4 Dec 2024 00:39:05 +0300 Subject: [PATCH 1/3] DDCORE-8825 added root issuer to poa api proto --- proto/PowersOfAttorney/PowerOfAttorney.proto | 1 + src/Com/PowersOfAttorney.cs | 1 + src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/proto/PowersOfAttorney/PowerOfAttorney.proto b/proto/PowersOfAttorney/PowerOfAttorney.proto index 05166d4c..eac27418 100644 --- a/proto/PowersOfAttorney/PowerOfAttorney.proto +++ b/proto/PowersOfAttorney/PowerOfAttorney.proto @@ -137,6 +137,7 @@ enum PowerOfAttorneySendingType { message PowerOfAttorneyDelegationInfo { required string RootRegistrationNumber = 1; optional string ParentRegistrationNumber = 2; + required PowerOfAttorneyIssuer RootIssuer = 3; } message PowerOfAttorneyContent { diff --git a/src/Com/PowersOfAttorney.cs b/src/Com/PowersOfAttorney.cs index 0d3e2bcd..9326750d 100644 --- a/src/Com/PowersOfAttorney.cs +++ b/src/Com/PowersOfAttorney.cs @@ -601,6 +601,7 @@ public interface IPowerOfAttorneyDelegationInfo { string RootRegistrationNumber { get; set; } string ParentRegistrationNumber { get; set; } + PowerOfAttorneyIssuer RootIssuer { get; set; } } [ComVisible(true)] diff --git a/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs b/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs index 08bc7258..2bc94ca0 100644 --- a/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs +++ b/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs @@ -689,6 +689,13 @@ public string ParentRegistrationNumber get { return _ParentRegistrationNumber; } set { _ParentRegistrationNumber = value; } } + private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer _RootIssuer; + [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"RootIssuer", DataFormat = global::ProtoBuf.DataFormat.Default)] + public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer RootIssuer + { + get { return _RootIssuer; } + set { _RootIssuer = value; } + } private global::ProtoBuf.IExtension extensionObject; global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } From 36bb61f131bdadb589e69127ed3c132d38bcfb7e Mon Sep 17 00:00:00 2001 From: "plekhov.a" Date: Mon, 9 Dec 2024 16:23:02 +0300 Subject: [PATCH 2/3] DDCORE-8825 full collection of root issuers --- proto/PowersOfAttorney/PowerOfAttorney.proto | 2 +- src/Com/PowersOfAttorney.cs | 3 ++- src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/proto/PowersOfAttorney/PowerOfAttorney.proto b/proto/PowersOfAttorney/PowerOfAttorney.proto index eac27418..6900edef 100644 --- a/proto/PowersOfAttorney/PowerOfAttorney.proto +++ b/proto/PowersOfAttorney/PowerOfAttorney.proto @@ -137,7 +137,7 @@ enum PowerOfAttorneySendingType { message PowerOfAttorneyDelegationInfo { required string RootRegistrationNumber = 1; optional string ParentRegistrationNumber = 2; - required PowerOfAttorneyIssuer RootIssuer = 3; + repeated PowerOfAttorneyIssuer RootIssuers = 3; } message PowerOfAttorneyContent { diff --git a/src/Com/PowersOfAttorney.cs b/src/Com/PowersOfAttorney.cs index 9326750d..57818d87 100644 --- a/src/Com/PowersOfAttorney.cs +++ b/src/Com/PowersOfAttorney.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Runtime.InteropServices; using System.Xml.Serialization; using Diadoc.Api.Com; @@ -601,7 +602,7 @@ public interface IPowerOfAttorneyDelegationInfo { string RootRegistrationNumber { get; set; } string ParentRegistrationNumber { get; set; } - PowerOfAttorneyIssuer RootIssuer { get; set; } + List RootIssuers { get; } } [ComVisible(true)] diff --git a/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs b/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs index 2bc94ca0..0fc73407 100644 --- a/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs +++ b/src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs @@ -689,13 +689,13 @@ public string ParentRegistrationNumber get { return _ParentRegistrationNumber; } set { _ParentRegistrationNumber = value; } } - private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer _RootIssuer; - [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"RootIssuer", DataFormat = global::ProtoBuf.DataFormat.Default)] - public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer RootIssuer + private readonly global::System.Collections.Generic.List _RootIssuers = new global::System.Collections.Generic.List(); + [global::ProtoBuf.ProtoMember(3, Name=@"RootIssuers", DataFormat = global::ProtoBuf.DataFormat.Default)] + public global::System.Collections.Generic.List RootIssuers { - get { return _RootIssuer; } - set { _RootIssuer = value; } + get { return _RootIssuers; } } + private global::ProtoBuf.IExtension extensionObject; global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } From 19e5753f5eed8c72f5824c5b7e201336bdedaa50 Mon Sep 17 00:00:00 2001 From: "plekhov.a" Date: Tue, 10 Dec 2024 18:06:29 +0300 Subject: [PATCH 3/3] DDCORE-8825 use of ReadonlyList in interface --- src/Com/PowersOfAttorney.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Com/PowersOfAttorney.cs b/src/Com/PowersOfAttorney.cs index 57818d87..d2207922 100644 --- a/src/Com/PowersOfAttorney.cs +++ b/src/Com/PowersOfAttorney.cs @@ -602,7 +602,7 @@ public interface IPowerOfAttorneyDelegationInfo { string RootRegistrationNumber { get; set; } string ParentRegistrationNumber { get; set; } - List RootIssuers { get; } + ReadonlyList RootIssuersList { get; } } [ComVisible(true)] @@ -612,6 +612,10 @@ public interface IPowerOfAttorneyDelegationInfo [ComDefaultInterface(typeof(IPowerOfAttorneyDelegationInfo))] public partial class PowerOfAttorneyDelegationInfo : SafeComObject, IPowerOfAttorneyDelegationInfo { + public ReadonlyList RootIssuersList + { + get { return new ReadonlyList(RootIssuers); } + } } }