Skip to content

Commit

Permalink
Merge pull request #1168 from diadoc/DDCORE-8825-add-root-issuer-to-p…
Browse files Browse the repository at this point in the history
…oa-api

DDCORE-8825 added root issuers to poa api proto
  • Loading branch information
majorro authored Jan 9, 2025
2 parents 7f52b2b + 875b722 commit 2d3b0c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions proto/PowersOfAttorney/PowerOfAttorney.proto
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ enum PowerOfAttorneySendingType {
message PowerOfAttorneyDelegationInfo {
required string RootRegistrationNumber = 1;
optional string ParentRegistrationNumber = 2;
repeated PowerOfAttorneyIssuer RootIssuers = 3;
}

message PowerOfAttorneyContent {
Expand Down
6 changes: 6 additions & 0 deletions src/Com/PowersOfAttorney.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
using Diadoc.Api.Com;
Expand Down Expand Up @@ -601,6 +602,7 @@ public interface IPowerOfAttorneyDelegationInfo
{
string RootRegistrationNumber { get; set; }
string ParentRegistrationNumber { get; set; }
ReadonlyList RootIssuersList { get; }
}

[ComVisible(true)]
Expand All @@ -610,6 +612,10 @@ public interface IPowerOfAttorneyDelegationInfo
[ComDefaultInterface(typeof(IPowerOfAttorneyDelegationInfo))]
public partial class PowerOfAttorneyDelegationInfo : SafeComObject, IPowerOfAttorneyDelegationInfo
{
public ReadonlyList RootIssuersList
{
get { return new ReadonlyList(RootIssuers); }
}
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/Proto/PowersOfAttorney/PowerOfAttorney.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,13 @@ public string ParentRegistrationNumber
get { return _ParentRegistrationNumber; }
set { _ParentRegistrationNumber = value; }
}
private readonly global::System.Collections.Generic.List<Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer> _RootIssuers = new global::System.Collections.Generic.List<Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer>();
[global::ProtoBuf.ProtoMember(3, Name=@"RootIssuers", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyIssuer> RootIssuers
{
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); }
Expand Down

0 comments on commit 2d3b0c9

Please sign in to comment.