Skip to content

Commit

Permalink
DDCORE-8810 Поддержка работы с сертом ЮЛ/ИП + МЧД. Изменения в api (#351
Browse files Browse the repository at this point in the history
)

* test

* poa added

rebase master

* generate proto

* fix

* fix

* fix

* fix codestyle

* update version

* fix

---------

Co-authored-by: yatsenko <yatsenko@skbkontur.ru>
  • Loading branch information
lholypeachy and lholypeachy authored Jan 23, 2025
1 parent e01c4b0 commit cc42749
Show file tree
Hide file tree
Showing 3 changed files with 5,565 additions and 222 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ru.kontur.diadoc</groupId>
<artifactId>diadocsdk</artifactId>
<version>3.26.0</version>
<version>3.26.1</version>

<packaging>jar</packaging>

Expand Down
42 changes: 42 additions & 0 deletions proto/PowersOfAttorney/PowerOfAttorney.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message PowerOfAttorney {
repeated PowerOfAttorney DelegationChain = 8;
required PowerOfAttorneyPermissionsInfo PermissionsInfo = 9;
optional PowerOfAttorneyDelegationInfo DelegationInfo = 10;
repeated PowerOfAttorneyRepresentative Representatives = 11;
}

message PowerOfAttorneyIssuer {
Expand Down Expand Up @@ -157,3 +158,44 @@ message PowerOfAttorneyContentV2 {
required bytes Signature = 2;
required PowerOfAttorneyFullId FullId = 3;
}

message PowerOfAttorneyRepresentative {
optional PowerOfAttorneyRepresentativeType Type = 1 [default = UnknownRepresentativeType];
optional PowerOfAttorneyRepresentativeLegalEntity LegalEntity = 2;
optional PowerOfAttorneyRepresentativeIndividualEntity IndividualEntity = 3;
optional PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4;
optional PowerOfAttorneyRepresentativeLegalEntity LegalSubsidiaryEntity = 5;
optional PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity ForeignLegalSubsidiaryEntity = 6;
}

enum PowerOfAttorneyRepresentativeType {
UnknownRepresentativeType = 0;
RepresentativeLegalEntity = 1;
RepresentativeIndividualEntity = 2;
RepresentativePhysicalEntity = 3;
RepresentativeLegalSubsidiaryEntity = 4;
RepresentativeForeignLegalSubsidiaryEntity = 5;
}

message PowerOfAttorneyRepresentativeLegalEntity {
optional string Inn = 1;
required string Kpp = 2;
required string OrganizationName = 3;
repeated PowerOfAttorneyRepresentativePhysicalEntity PhysicalEntity = 4;
}

message PowerOfAttorneyRepresentativeIndividualEntity {
required string Inn = 1;
required string OrganizationName = 2;
}

message PowerOfAttorneyRepresentativePhysicalEntity {
optional string Inn = 1;
required FullName PersonName = 2;
}

message PowerOfAttorneyRepresentativeForeignLegalSubsidiaryEntity {
optional string Inn = 1;
optional string Kpp = 2;
required string OrganizationName = 3;
}
Loading

0 comments on commit cc42749

Please sign in to comment.