From 417ff37ba98f10eaa03049290919b5ba1bf9c463 Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Tue, 27 Oct 2020 17:11:17 +1100 Subject: [PATCH] Fix missing ParticipantSetInfo.id Signed-off-by: Frederick Zhang --- docs/ParticipantSetInfo.md | 1 + .../model/agreements/ParticipantSetInfo.java | 26 +++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/ParticipantSetInfo.md b/docs/ParticipantSetInfo.md index 85d9d6f..f441881 100755 --- a/docs/ParticipantSetInfo.md +++ b/docs/ParticipantSetInfo.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **String** | The unique identifier of the participant. This will be ignored as part of POST or PUT calls. The Id might be null in draft state. | [optional] **label** | **String** | The unique label of a participant set.<br>For custom workflows, label specified in the participation set should map it to the participation step in the custom workflow. | [optional] **memberInfos** | [**List<ParticipantSetMemberInfo>**](ParticipantSetMemberInfo.md) | Array of ParticipantInfo objects, containing participant-specific data (e.g. email). All participants in the array belong to the same set | [optional] **name** | **String** | Name of the participant set (it can be empty, but needs not to be unique in a single agreement). Maximum no of characters in participant set name is restricted to 255 | [optional] diff --git a/src/main/java/io/swagger/client/model/agreements/ParticipantSetInfo.java b/src/main/java/io/swagger/client/model/agreements/ParticipantSetInfo.java index bd88617..50a9c71 100755 --- a/src/main/java/io/swagger/client/model/agreements/ParticipantSetInfo.java +++ b/src/main/java/io/swagger/client/model/agreements/ParticipantSetInfo.java @@ -46,6 +46,9 @@ */ @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-03-11T15:48:52.659+05:30") public class ParticipantSetInfo { + @SerializedName("id") + private String id = null; + @SerializedName("label") private String label = null; @@ -132,6 +135,23 @@ public RoleEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("visiblePages") private List visiblePages = null; + public ParticipantSetInfo id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of the participant. This will be ignored as part of POST or PUT calls. The Id might be null in draft state. + **/ + @ApiModelProperty(value = "The unique identifier of the participant. This will be ignored as part of POST or PUT calls. The Id might be null in draft state.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + public ParticipantSetInfo label(String label) { this.label = label; return this; @@ -284,7 +304,8 @@ public boolean equals(java.lang.Object o) { return false; } ParticipantSetInfo participantSetInfo = (ParticipantSetInfo) o; - return Objects.equals(this.label, participantSetInfo.label) && + return Objects.equals(this.id, participantSetInfo.id) && + Objects.equals(this.label, participantSetInfo.label) && Objects.equals(this.memberInfos, participantSetInfo.memberInfos) && Objects.equals(this.name, participantSetInfo.name) && Objects.equals(this.order, participantSetInfo.order) && @@ -295,7 +316,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(label, memberInfos, name, order, privateMessage, role, visiblePages); + return Objects.hash(id, label, memberInfos, name, order, privateMessage, role, visiblePages); } @@ -304,6 +325,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ParticipantSetInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" memberInfos: ").append(toIndentedString(memberInfos)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n");