Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "b5ed925", "specHash": "99792c6", "version": "0.3.0" }
{ "engineHash": "b5ed925", "specHash": "3dc3f1e", "version": "0.3.0" }
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
package com.box.sdkgen.managers.signrequests;

import java.util.List;

public class GetSignRequestsQueryParams {

public String marker;

public Long limit;

public List<String> senders;

public Boolean sharedRequests;

public GetSignRequestsQueryParams() {}

protected GetSignRequestsQueryParams(GetSignRequestsQueryParamsBuilder builder) {
this.marker = builder.marker;
this.limit = builder.limit;
this.senders = builder.senders;
this.sharedRequests = builder.sharedRequests;
}

public String getMarker() {
Expand All @@ -21,12 +29,24 @@ public Long getLimit() {
return limit;
}

public List<String> getSenders() {
return senders;
}

public Boolean getSharedRequests() {
return sharedRequests;
}

public static class GetSignRequestsQueryParamsBuilder {

protected String marker;

protected Long limit;

protected List<String> senders;

protected Boolean sharedRequests;

public GetSignRequestsQueryParamsBuilder marker(String marker) {
this.marker = marker;
return this;
Expand All @@ -37,6 +57,16 @@ public GetSignRequestsQueryParamsBuilder limit(Long limit) {
return this;
}

public GetSignRequestsQueryParamsBuilder senders(List<String> senders) {
this.senders = senders;
return this;
}

public GetSignRequestsQueryParamsBuilder sharedRequests(Boolean sharedRequests) {
this.sharedRequests = sharedRequests;
return this;
}

public GetSignRequestsQueryParams build() {
return new GetSignRequestsQueryParams(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public SignRequests getSignRequests(
prepareParams(
mapOf(
entryOf("marker", convertToString(queryParams.getMarker())),
entryOf("limit", convertToString(queryParams.getLimit()))));
entryOf("limit", convertToString(queryParams.getLimit())),
entryOf("senders", convertToString(queryParams.getSenders())),
entryOf("shared_requests", convertToString(queryParams.getSharedRequests()))));
Map<String, String> headersMap = prepareParams(mergeMaps(mapOf(), headers.getExtraHeaders()));
FetchResponse response =
this.networkSession
Expand Down
67 changes: 65 additions & 2 deletions src/main/java/com/box/sdkgen/schemas/signrequest/SignRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ public class SignRequest extends SignRequestBase {
@JsonProperty("parent_folder")
protected FolderMini parentFolder;

@JsonProperty("collaborator_level")
protected String collaboratorLevel;

@JsonProperty("sender_email")
protected String senderEmail;

@JsonProperty("sender_id")
protected Long senderId;

public SignRequest() {
super();
}
Expand All @@ -65,6 +74,9 @@ protected SignRequest(SignRequestBuilder builder) {
this.signFiles = builder.signFiles;
this.autoExpireAt = builder.autoExpireAt;
this.parentFolder = builder.parentFolder;
this.collaboratorLevel = builder.collaboratorLevel;
this.senderEmail = builder.senderEmail;
this.senderId = builder.senderId;
}

public EnumWrapper<SignRequestTypeField> getType() {
Expand Down Expand Up @@ -111,6 +123,18 @@ public FolderMini getParentFolder() {
return parentFolder;
}

public String getCollaboratorLevel() {
return collaboratorLevel;
}

public String getSenderEmail() {
return senderEmail;
}

public Long getSenderId() {
return senderId;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down Expand Up @@ -143,7 +167,10 @@ public boolean equals(Object o) {
&& Objects.equals(status, casted.status)
&& Objects.equals(signFiles, casted.signFiles)
&& Objects.equals(autoExpireAt, casted.autoExpireAt)
&& Objects.equals(parentFolder, casted.parentFolder);
&& Objects.equals(parentFolder, casted.parentFolder)
&& Objects.equals(collaboratorLevel, casted.collaboratorLevel)
&& Objects.equals(senderEmail, casted.senderEmail)
&& Objects.equals(senderId, casted.senderId);
}

@Override
Expand Down Expand Up @@ -172,7 +199,10 @@ public int hashCode() {
status,
signFiles,
autoExpireAt,
parentFolder);
parentFolder,
collaboratorLevel,
senderEmail,
senderId);
}

@Override
Expand Down Expand Up @@ -273,6 +303,18 @@ public String toString() {
+ "parentFolder='"
+ parentFolder
+ '\''
+ ", "
+ "collaboratorLevel='"
+ collaboratorLevel
+ '\''
+ ", "
+ "senderEmail='"
+ senderEmail
+ '\''
+ ", "
+ "senderId='"
+ senderId
+ '\''
+ "}";
}

Expand Down Expand Up @@ -300,6 +342,12 @@ public static class SignRequestBuilder extends SignRequestBaseBuilder {

protected FolderMini parentFolder;

protected String collaboratorLevel;

protected String senderEmail;

protected Long senderId;

public SignRequestBuilder type(EnumWrapper<SignRequestTypeField> type) {
this.type = type;
return this;
Expand Down Expand Up @@ -365,6 +413,21 @@ public SignRequestBuilder parentFolder(FolderMini parentFolder) {
return this;
}

public SignRequestBuilder collaboratorLevel(String collaboratorLevel) {
this.collaboratorLevel = collaboratorLevel;
return this;
}

public SignRequestBuilder senderEmail(String senderEmail) {
this.senderEmail = senderEmail;
return this;
}

public SignRequestBuilder senderId(Long senderId) {
this.senderId = senderId;
return this;
}

@Override
public SignRequestBuilder isDocumentPreparationNeeded(Boolean isDocumentPreparationNeeded) {
this.isDocumentPreparationNeeded = isDocumentPreparationNeeded;
Expand Down