Skip to content

Commit

Permalink
Merge pull request #534 from DMokhnatkin/invitation-document
Browse files Browse the repository at this point in the history
Add DocumentId into invitations
  • Loading branch information
Dmitriy Mokhnatkin authored Sep 6, 2019
2 parents a4e1c02 + 2460ca0 commit e2bc70a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
8 changes: 5 additions & 3 deletions proto/AcquireCounteragent.proto
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import "Events/DiadocMessage-PostApi.proto";
import "DocumentId.proto";

package Diadoc.Api.Proto;

message AcquireCounteragentRequest {
optional string OrgId = 1;
optional string Inn = 2;
optional string MessageToCounteragent = 3;
optional string OrgId = 1;
optional string Inn = 2;
optional string MessageToCounteragent = 3;
optional InvitationDocument InvitationDocument = 4;
}

Expand All @@ -18,4 +19,5 @@ message InvitationDocument {

message AcquireCounteragentResult {
required string OrgId = 1;
optional DocumentId InvitationDocumentId = 2;
}
2 changes: 2 additions & 0 deletions proto/Counteragent.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "Organization.proto";
import "DocumentId.proto";

package Diadoc.Api.Proto;

Expand All @@ -14,6 +15,7 @@ message Counteragent {
required sfixed64 LastEventTimestampTicks = 4;
optional string MessageFromCounteragent = 6;
optional string MessageToCounteragent = 7;
optional DocumentId InvitationDocumentId = 8;
}

enum CounteragentStatus {
Expand Down
1 change: 1 addition & 0 deletions src/Com/ComWrappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,7 @@ public partial class InvitationDocument : SafeComObject, IInvitationDocument
public interface IAcquireCounteragentResult
{
string OrgId { get; set; }
DocumentId InvitationDocumentId { get; set; }
}

[ComVisible(true)]
Expand Down
10 changes: 10 additions & 0 deletions src/Proto/AcquireCounteragent.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// Generated from: AcquireCounteragent.proto
// Note: requires additional types generated from: Events/DiadocMessage-PostApi.proto
// Note: requires additional types generated from: DocumentId.proto
namespace Diadoc.Api.Proto
{
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AcquireCounteragentRequest")]
Expand Down Expand Up @@ -111,6 +112,15 @@ public string OrgId
get { return _OrgId; }
set { _OrgId = value; }
}

private Diadoc.Api.Proto.DocumentId _InvitationDocumentId = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"InvitationDocumentId", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public Diadoc.Api.Proto.DocumentId InvitationDocumentId
{
get { return _InvitationDocumentId; }
set { _InvitationDocumentId = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
Expand Down
1 change: 1 addition & 0 deletions src/Proto/Counteragent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public interface ICounteragent
string MessageFromCounteragent { get; }
string MessageToCounteragent { get; }
Com.CounteragentStatus CurrentCounteragentStatus { get; }
DocumentId InvitationDocumentId { get; }
}

[ComVisible(true)]
Expand Down
10 changes: 10 additions & 0 deletions src/Proto/Counteragent.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// Generated from: Counteragent.proto
// Note: requires additional types generated from: Organization.proto
// Note: requires additional types generated from: DocumentId.proto
namespace Diadoc.Api.Proto
{
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CounteragentList")]
Expand Down Expand Up @@ -90,6 +91,15 @@ public string MessageToCounteragent
get { return _MessageToCounteragent; }
set { _MessageToCounteragent = value; }
}

private Diadoc.Api.Proto.DocumentId _InvitationDocumentId = null;
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"InvitationDocumentId", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public Diadoc.Api.Proto.DocumentId InvitationDocumentId
{
get { return _InvitationDocumentId; }
set { _InvitationDocumentId = value; }
}
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 e2bc70a

Please sign in to comment.