├── .swagger-codegen └── VERSION ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── docusign │ └── maestro │ ├── client │ ├── auth │ │ ├── AccessTokenListener.java │ │ ├── OAuthFlow.java │ │ ├── Authentication.java │ │ ├── HttpBasicAuth.java │ │ └── ApiKeyAuth.java │ ├── RFC3339DateFormat.java │ ├── Configuration.java │ ├── Pair.java │ ├── ApiResponse.java │ ├── StringUtil.java │ ├── JSON.java │ └── ApiException.java │ └── model │ ├── DeployStatus.java │ ├── DSWorkflowStepTypesLoop.java │ ├── DSWorkflowStepTypesDSIdv.java │ ├── DSWorkflowStepTypesDSSign.java │ ├── DSWorkflowStepTypesDoUntil.java │ ├── DSWorkflowStepTypesDSDocGen.java │ ├── DSWorkflowStepTypesDSIfElse.java │ ├── DSWorkflowStepTypesParallel.java │ ├── HttpTypes.java │ ├── DSWorkflowStepTypesDSWebForms.java │ ├── ParticipantKeys.java │ ├── DSWorkflowLogicalOperatorTypes.java │ ├── DSWorkflowVariableSourceTypesStep.java │ ├── DSWorkflowDocGenDocOutputFormat.java │ ├── DSWorkflowTriggerTypes.java │ ├── ESignDocumentTypesFromDSTemplate.java │ ├── DSWorkflowVariableSourceTypesParticipant.java │ ├── ESignDocumentTypesFromPreviousStep.java │ ├── DSWorkflowVariableSourceTypesVariable.java │ ├── DSWorkflowStepTypesDSTransformation.java │ ├── AccessTokenTokenTypes.java │ ├── DSWorkflowExpressionTypesBooleanExpression.java │ ├── DSWorkflowExpressionTypesParallelExpression.java │ ├── DSWorkflowExpressionTypesComparisonExpression.java │ ├── WorkflowStepHistoryState.java │ ├── WorkflowInstanceState.java │ ├── DSWorkflowTransformationExpressionTypesConcatExpression.java │ ├── WorkflowMetadataStatus.java │ ├── DSWorkflowTransformationExpressionTypesIndexOfExpression.java │ ├── DSWorkflowTransformationExpressionTypesReplaceExpression.java │ ├── DSWorkflowTransformationExpressionTypesToLowerExpression.java │ ├── DSWorkflowTransformationExpressionTypesToUpperExpression.java │ ├── DSWorkflowTransformationExpressionTypesSubstringExpression.java │ ├── DSWorkflowTransformationExpressionTypesLastIndexOfExpression.java │ ├── TemplateId.java │ ├── DeploymentStatus.java │ ├── RecordToNever.java │ ├── DSWorkflowComparisonOperatorTypes.java │ ├── ErrorCodes.java │ ├── DSWorkflowVariable.java │ ├── ESignLocalePolicy.java │ ├── RecordStringBoolean.java │ ├── WorkflowInstanceMap.java │ ├── ReplicationStatus.java │ ├── DSWorkflowLanesRecord.java │ ├── EventTypes.java │ ├── DSWorkflowVariableRecord.java │ ├── DSWorkflowVariableFromParticipant.java │ ├── DSWorkflowParticipantRecord.java │ ├── NumberOrVariable.java │ ├── WorkflowInstancesList.java │ ├── WorkflowStepHistoryList.java │ ├── ESignDocuments.java │ ├── RecordStringOrVariableOrTransformation.java │ ├── DSServiceStep.java │ ├── DSWorkflowStep.java │ ├── StringOrVariableOrTransformation.java │ ├── DSWorkflowTransformationExpression.java │ ├── DSWebFormsStepConfig.java │ ├── SuccessMessageResponse.java │ ├── DeployRequest.java │ ├── CreateOrUpdateWorkflowDefinitionRequestBody.java │ ├── CancelResponse.java │ ├── ValidationErrors.java │ ├── WorkflowStepErrorError.java │ ├── ErrorResponse.java │ ├── WorkflowDeleteResponse.java │ ├── GetConfigurationInstancesResponseConfigInstances.java │ ├── TriggerWorkflowViaPostResponse.java │ ├── InvalidWorkflowResponse.java │ ├── DSWorkflowLane.java │ ├── DSWorkflowToLowerExpression.java │ ├── DSWorkflowToUpperExpression.java │ ├── WorkflowDefinitionList.java │ ├── DSWorkflowParallelExpression.java │ ├── AccessTokenResponse.java │ ├── DSWorkflowConcatExpression.java │ ├── GetConfigurationInstanceResponse.java │ ├── DeployResponse.java │ ├── ProgressInstance.java │ ├── TriggerPayload.java │ ├── DSWorkflowVariableFromStep.java │ ├── DSWorkflowVariableFromVariable.java │ └── DSWorkflowBooleanExpression.java ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── .swagger-codegen-ignore └── stylesheets └── github-light.css /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.21 -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "docusign-maestro-java" -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-maestro-java-client/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/auth/AccessTokenListener.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.client.auth; 2 | 3 | import com.docusign.maestro.client.auth.OAuth.OAuthToken; 4 | 5 | public interface AccessTokenListener { 6 | void notify(OAuthToken token); 7 | } -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/auth/OAuthFlow.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client.auth; 4 | 5 | /** 6 | * enum. 7 | * 8 | */ 9 | 10 | public enum OAuthFlow { 11 | accessCode, implicit, password, application, jwt 12 | } 13 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue May 17 23:08:05 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip 7 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client.auth; 4 | 5 | import com.docusign.maestro.client.Pair; 6 | 7 | import java.util.Map; 8 | import java.util.List; 9 | 10 | public interface Authentication { 11 | /** 12 | * Apply authentication settings to header and query params. 13 | * 14 | * @param queryParams List of query parameters 15 | * @param headerParams Map of header parameters 16 | */ 17 | void applyToParams(List queryParams, Map headerParams); 18 | } 19 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | dist: trusty 3 | install: true 4 | 5 | branches: 6 | only: 7 | - master 8 | 9 | language: java 10 | 11 | notifications: 12 | email: 13 | recipients: 14 | - devcenter@docusign.com 15 | on_success: never 16 | on_failure: change 17 | 18 | jdk: 19 | - oraclejdk11 20 | - oraclejdk12 21 | - oraclejdk13 22 | 23 | script: mvn -X clean test 24 | 25 | after_failure: "cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/TEST-SdkUnitTests.xml" 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/RFC3339DateFormat.java: -------------------------------------------------------------------------------- 1 | 2 | package com.docusign.maestro.client; 3 | 4 | import com.fasterxml.jackson.databind.util.ISO8601DateFormat; 5 | import com.fasterxml.jackson.databind.util.ISO8601Utils; 6 | 7 | import java.text.FieldPosition; 8 | import java.util.Date; 9 | 10 | /** 11 | * RFC3339DateFormat class. 12 | * 13 | **/ 14 | public class RFC3339DateFormat extends ISO8601DateFormat { 15 | 16 | // Same as ISO8601DateFormat but serializing milliseconds. 17 | @Override 18 | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { 19 | String value = ISO8601Utils.format(date, true); 20 | toAppendTo.append(value); 21 | return toAppendTo; 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/Configuration.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client; 4 | 5 | 6 | /** 7 | * Configuration class. 8 | * 9 | **/ 10 | public class Configuration { 11 | private static ApiClient defaultApiClient = new ApiClient(); 12 | 13 | /** 14 | * Get the default API client, which would be used when creating API 15 | * instances without providing an API client. 16 | * 17 | * @return Default API client 18 | */ 19 | public static ApiClient getDefaultApiClient() { 20 | return defaultApiClient; 21 | } 22 | 23 | /** 24 | * Set the default API client, which would be used when creating API 25 | * instances without providing an API client. 26 | * 27 | * @param apiClient API client 28 | */ 29 | public static void setDefaultApiClient(ApiClient apiClient) { 30 | defaultApiClient = apiClient; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DeployStatus.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DeployStatus 12 | */ 13 | public enum DeployStatus { 14 | 15 | PUBLISH("Publish"), 16 | 17 | UNPUBLISH("UnPublish"), 18 | 19 | DISABLE("Disable"); 20 | 21 | private String value; 22 | 23 | DeployStatus(String value) { 24 | this.value = value; 25 | } 26 | 27 | @JsonValue 28 | public String getValue() { 29 | return value; 30 | } 31 | 32 | @Override 33 | public String toString() { 34 | return String.valueOf(value); 35 | } 36 | 37 | @JsonCreator 38 | public static DeployStatus fromValue(String value) { 39 | for (DeployStatus b : DeployStatus.values()) { 40 | if (b.value.equals(value)) { 41 | return b; 42 | } 43 | } 44 | return null; 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesLoop.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.Loop 12 | */ 13 | public enum DSWorkflowStepTypesLoop { 14 | 15 | DS_LOOP("DS-Loop"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesLoop(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesLoop fromValue(String value) { 35 | for (DSWorkflowStepTypesLoop b : DSWorkflowStepTypesLoop.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSIdv.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSIdv 12 | */ 13 | public enum DSWorkflowStepTypesDSIdv { 14 | 15 | DS_IDV("DS-IDV"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSIdv(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSIdv fromValue(String value) { 35 | for (DSWorkflowStepTypesDSIdv b : DSWorkflowStepTypesDSIdv.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSSign.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSSign 12 | */ 13 | public enum DSWorkflowStepTypesDSSign { 14 | 15 | DS_SIGN("DS-Sign"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSSign(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSSign fromValue(String value) { 35 | for (DSWorkflowStepTypesDSSign b : DSWorkflowStepTypesDSSign.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDoUntil.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DoUntil 12 | */ 13 | public enum DSWorkflowStepTypesDoUntil { 14 | 15 | DS_DOUNTIL("DS-DoUntil"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDoUntil(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDoUntil fromValue(String value) { 35 | for (DSWorkflowStepTypesDoUntil b : DSWorkflowStepTypesDoUntil.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSDocGen.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSDocGen 12 | */ 13 | public enum DSWorkflowStepTypesDSDocGen { 14 | 15 | DS_DOCGEN("DS-DocGen"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSDocGen(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSDocGen fromValue(String value) { 35 | for (DSWorkflowStepTypesDSDocGen b : DSWorkflowStepTypesDSDocGen.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSIfElse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSIfElse 12 | */ 13 | public enum DSWorkflowStepTypesDSIfElse { 14 | 15 | DS_IFELSE("DS-IfElse"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSIfElse(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSIfElse fromValue(String value) { 35 | for (DSWorkflowStepTypesDSIfElse b : DSWorkflowStepTypesDSIfElse.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesParallel.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.Parallel 12 | */ 13 | public enum DSWorkflowStepTypesParallel { 14 | 15 | DS_PARALLEL("DS-Parallel"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesParallel(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesParallel fromValue(String value) { 35 | for (DSWorkflowStepTypesParallel b : DSWorkflowStepTypesParallel.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/HttpTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * The Trigger Http types 13 | */ 14 | public enum HttpTypes { 15 | 16 | GET("Get"), 17 | 18 | POST("Post"), 19 | 20 | PUT("Put"), 21 | 22 | DELETE("Delete"); 23 | 24 | private String value; 25 | 26 | HttpTypes(String value) { 27 | this.value = value; 28 | } 29 | 30 | @JsonValue 31 | public String getValue() { 32 | return value; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return String.valueOf(value); 38 | } 39 | 40 | @JsonCreator 41 | public static HttpTypes fromValue(String value) { 42 | for (HttpTypes b : HttpTypes.values()) { 43 | if (b.value.equals(value)) { 44 | return b; 45 | } 46 | } 47 | return null; 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSWebForms.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSWebForms 12 | */ 13 | public enum DSWorkflowStepTypesDSWebForms { 14 | 15 | DS_WEBFORMS("DS-WebForms"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSWebForms(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSWebForms fromValue(String value) { 35 | for (DSWorkflowStepTypesDSWebForms b : DSWorkflowStepTypesDSWebForms.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ParticipantKeys.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | 9 | /** 10 | * Gets or Sets ParticipantKeys 11 | */ 12 | public enum ParticipantKeys { 13 | 14 | PARTICIPANTEMAIL("participantEmail"), 15 | 16 | PARTICIPANTFIRSTNAME("participantFirstName"), 17 | 18 | PARTICIPANTLASTNAME("participantLastName"); 19 | 20 | private String value; 21 | 22 | ParticipantKeys(String value) { 23 | this.value = value; 24 | } 25 | 26 | @JsonValue 27 | public String getValue() { 28 | return value; 29 | } 30 | 31 | @Override 32 | public String toString() { 33 | return String.valueOf(value); 34 | } 35 | 36 | @JsonCreator 37 | public static ParticipantKeys fromValue(String value) { 38 | for (ParticipantKeys b : ParticipantKeys.values()) { 39 | if (b.value.equals(value)) { 40 | return b; 41 | } 42 | } 43 | return null; 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowLogicalOperatorTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowLogicalOperatorTypes 12 | */ 13 | public enum DSWorkflowLogicalOperatorTypes { 14 | 15 | AND("And"), 16 | 17 | OR("Or"); 18 | 19 | private String value; 20 | 21 | DSWorkflowLogicalOperatorTypes(String value) { 22 | this.value = value; 23 | } 24 | 25 | @JsonValue 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | @Override 31 | public String toString() { 32 | return String.valueOf(value); 33 | } 34 | 35 | @JsonCreator 36 | public static DSWorkflowLogicalOperatorTypes fromValue(String value) { 37 | for (DSWorkflowLogicalOperatorTypes b : DSWorkflowLogicalOperatorTypes.values()) { 38 | if (b.value.equals(value)) { 39 | return b; 40 | } 41 | } 42 | return null; 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableSourceTypesStep.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowVariableSourceTypes.Step 12 | */ 13 | public enum DSWorkflowVariableSourceTypesStep { 14 | 15 | STEP("step"); 16 | 17 | private String value; 18 | 19 | DSWorkflowVariableSourceTypesStep(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowVariableSourceTypesStep fromValue(String value) { 35 | for (DSWorkflowVariableSourceTypesStep b : DSWorkflowVariableSourceTypesStep.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowDocGenDocOutputFormat.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowDocGenDocOutputFormat 12 | */ 13 | public enum DSWorkflowDocGenDocOutputFormat { 14 | 15 | PDF("pdf"), 16 | 17 | DOCX("docx"); 18 | 19 | private String value; 20 | 21 | DSWorkflowDocGenDocOutputFormat(String value) { 22 | this.value = value; 23 | } 24 | 25 | @JsonValue 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | @Override 31 | public String toString() { 32 | return String.valueOf(value); 33 | } 34 | 35 | @JsonCreator 36 | public static DSWorkflowDocGenDocOutputFormat fromValue(String value) { 37 | for (DSWorkflowDocGenDocOutputFormat b : DSWorkflowDocGenDocOutputFormat.values()) { 38 | if (b.value.equals(value)) { 39 | return b; 40 | } 41 | } 42 | return null; 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTriggerTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * The DS Workflow Trigger types 13 | */ 14 | public enum DSWorkflowTriggerTypes { 15 | 16 | HTTP("Http"), 17 | 18 | HTTP_API("Http-API"); 19 | 20 | private String value; 21 | 22 | DSWorkflowTriggerTypes(String value) { 23 | this.value = value; 24 | } 25 | 26 | @JsonValue 27 | public String getValue() { 28 | return value; 29 | } 30 | 31 | @Override 32 | public String toString() { 33 | return String.valueOf(value); 34 | } 35 | 36 | @JsonCreator 37 | public static DSWorkflowTriggerTypes fromValue(String value) { 38 | for (DSWorkflowTriggerTypes b : DSWorkflowTriggerTypes.values()) { 39 | if (b.value.equals(value)) { 40 | return b; 41 | } 42 | } 43 | return null; 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ESignDocumentTypesFromDSTemplate.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets ESignDocumentTypes.FromDSTemplate 12 | */ 13 | public enum ESignDocumentTypesFromDSTemplate { 14 | 15 | FROMDSTEMPLATE("FromDSTemplate"); 16 | 17 | private String value; 18 | 19 | ESignDocumentTypesFromDSTemplate(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static ESignDocumentTypesFromDSTemplate fromValue(String value) { 35 | for (ESignDocumentTypesFromDSTemplate b : ESignDocumentTypesFromDSTemplate.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableSourceTypesParticipant.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | 9 | /** 10 | * Gets or Sets DSWorkflowVariableSourceTypes.Participant 11 | */ 12 | public enum DSWorkflowVariableSourceTypesParticipant { 13 | 14 | PARTICIPANT("participant"); 15 | 16 | private String value; 17 | 18 | DSWorkflowVariableSourceTypesParticipant(String value) { 19 | this.value = value; 20 | } 21 | 22 | @JsonValue 23 | public String getValue() { 24 | return value; 25 | } 26 | 27 | @Override 28 | public String toString() { 29 | return String.valueOf(value); 30 | } 31 | 32 | @JsonCreator 33 | public static DSWorkflowVariableSourceTypesParticipant fromValue(String value) { 34 | for (DSWorkflowVariableSourceTypesParticipant b : DSWorkflowVariableSourceTypesParticipant.values()) { 35 | if (b.value.equals(value)) { 36 | return b; 37 | } 38 | } 39 | return null; 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ESignDocumentTypesFromPreviousStep.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets ESignDocumentTypes.FromPreviousStep 12 | */ 13 | public enum ESignDocumentTypesFromPreviousStep { 14 | 15 | FROMPREVIOUSSTEP("FromPreviousStep"); 16 | 17 | private String value; 18 | 19 | ESignDocumentTypesFromPreviousStep(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static ESignDocumentTypesFromPreviousStep fromValue(String value) { 35 | for (ESignDocumentTypesFromPreviousStep b : ESignDocumentTypesFromPreviousStep.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableSourceTypesVariable.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowVariableSourceTypes.Variable 12 | */ 13 | public enum DSWorkflowVariableSourceTypesVariable { 14 | 15 | VARIABLE("variable"); 16 | 17 | private String value; 18 | 19 | DSWorkflowVariableSourceTypesVariable(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowVariableSourceTypesVariable fromValue(String value) { 35 | for (DSWorkflowVariableSourceTypesVariable b : DSWorkflowVariableSourceTypesVariable.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStepTypesDSTransformation.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowStepTypes.DSTransformation 12 | */ 13 | public enum DSWorkflowStepTypesDSTransformation { 14 | 15 | DS_TRANSFORMATION("DS-Transformation"); 16 | 17 | private String value; 18 | 19 | DSWorkflowStepTypesDSTransformation(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowStepTypesDSTransformation fromValue(String value) { 35 | for (DSWorkflowStepTypesDSTransformation b : DSWorkflowStepTypesDSTransformation.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [v3.0.0] - Maestro API v1.0.0-1.0.5 - 2025-05-22 2 | **DEPRECATED:** This SDK is no longer maintained. 3 | ## [v2.0.0] - Maestro API v1.0.0-1.0.5 - 2024-07-30 4 | ### Breaking Changes 5 | - Deprecation of OLTU library: The OLTU library for handling OAuth is no longer used. 6 | ### Changed 7 | - Upgradation of OWASP for vulnerability check of dependencies. 8 | - Added support for version v1.0.0-1.0.5 of the DocuSign Maestro API. 9 | - Updated the SDK release version. 10 | 11 | ## [v2.0.0-RC1] - Maestro API v1.0.0-1.0.5 - 2024-06-07 12 | ### Changed 13 | - Added support for version v1.0.0-1.0.5 of the DocuSign Maestro API. 14 | - Updated the SDK release version. 15 | 16 | ## [v1.0.0] - Maestro API v1.0.0-1.0.4 - 2024-04-22 17 | ## Version 1.0.0 (Initial Release) 18 | - Announcing the SDK built on the OpenAPI specification for DocuSign Maestro APIs. 19 | - This release signifies the initial launch of the SDK, offering developers the essential tools for seamless interaction with DocuSign Maestro APIs. 20 | 21 | ## [v1.0.1-RC1] - Maestro API v1.0.0-1.0.1 - 2024-01-29 22 | - Announcing the Release Candidate SDK built on the OpenAPI specification for DocuSign Maestro APIs. 23 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/AccessTokenTokenTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * Access Token token Types 13 | */ 14 | public enum AccessTokenTokenTypes { 15 | 16 | BEARER("Bearer"), 17 | 18 | APPLICATION("Application"), 19 | 20 | RESOURCE("Resource"); 21 | 22 | private String value; 23 | 24 | AccessTokenTokenTypes(String value) { 25 | this.value = value; 26 | } 27 | 28 | @JsonValue 29 | public String getValue() { 30 | return value; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return String.valueOf(value); 36 | } 37 | 38 | @JsonCreator 39 | public static AccessTokenTokenTypes fromValue(String value) { 40 | for (AccessTokenTokenTypes b : AccessTokenTokenTypes.values()) { 41 | if (b.value.equals(value)) { 42 | return b; 43 | } 44 | } 45 | return null; 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2023- DocuSign, Inc. (https://www.docusign.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | 3 | # Use this file to prevent files from being overwritten by the generator. 4 | # The patterns follow closely to .gitignore or .dockerignore. 5 | 6 | # As an example, the C# client generator defines ApiClient.cs. 7 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 8 | #ApiClient.cs 9 | 10 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 11 | #foo/*/qux 12 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 13 | 14 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 15 | #foo/**/qux 16 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 17 | 18 | # You can also negate patterns with an exclamation (!). 19 | # For example, you can ignore all files in a docs folder with the file extension .md: 20 | #docs/*.md 21 | # Then explicitly reverse the ignore rule for a single file: 22 | #!docs/README.md 23 | 24 | # Swagger and Git files 25 | .swagger-codegen-ignore 26 | git_push.sh 27 | 28 | # Project files 29 | LICENSE 30 | gradle* 31 | build.sbt 32 | .travis.yml 33 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowExpressionTypesBooleanExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowExpressionTypes.BooleanExpression 12 | */ 13 | public enum DSWorkflowExpressionTypesBooleanExpression { 14 | 15 | BOOLEANEXPRESSION("BooleanExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowExpressionTypesBooleanExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowExpressionTypesBooleanExpression fromValue(String value) { 35 | for (DSWorkflowExpressionTypesBooleanExpression b : DSWorkflowExpressionTypesBooleanExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowExpressionTypesParallelExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowExpressionTypes.ParallelExpression 12 | */ 13 | public enum DSWorkflowExpressionTypesParallelExpression { 14 | 15 | PARALLELEXPRESSION("ParallelExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowExpressionTypesParallelExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowExpressionTypesParallelExpression fromValue(String value) { 35 | for (DSWorkflowExpressionTypesParallelExpression b : DSWorkflowExpressionTypesParallelExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowExpressionTypesComparisonExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowExpressionTypes.ComparisonExpression 12 | */ 13 | public enum DSWorkflowExpressionTypesComparisonExpression { 14 | 15 | COMPARISONEXPRESSION("ComparisonExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowExpressionTypesComparisonExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowExpressionTypesComparisonExpression fromValue(String value) { 35 | for (DSWorkflowExpressionTypesComparisonExpression b : DSWorkflowExpressionTypesComparisonExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowStepHistoryState.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * Workflow Step History state (completed, failed, In-progress) 13 | */ 14 | public enum WorkflowStepHistoryState { 15 | 16 | IN_PROGRESS("In Progress"), 17 | 18 | COMPLETED("Completed"), 19 | 20 | FAILED("Failed"), 21 | 22 | CANCELED("Canceled"); 23 | 24 | private String value; 25 | 26 | WorkflowStepHistoryState(String value) { 27 | this.value = value; 28 | } 29 | 30 | @JsonValue 31 | public String getValue() { 32 | return value; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return String.valueOf(value); 38 | } 39 | 40 | @JsonCreator 41 | public static WorkflowStepHistoryState fromValue(String value) { 42 | for (WorkflowStepHistoryState b : WorkflowStepHistoryState.values()) { 43 | if (b.value.equals(value)) { 44 | return b; 45 | } 46 | } 47 | return null; 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowInstanceState.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * Current Workflow Instance state (completed, failed, In-progress) 13 | */ 14 | public enum WorkflowInstanceState { 15 | 16 | CREATED("Created"), 17 | 18 | IN_PROGRESS("In Progress"), 19 | 20 | COMPLETED("Completed"), 21 | 22 | FAILED("Failed"), 23 | 24 | CANCELED("Canceled"); 25 | 26 | private String value; 27 | 28 | WorkflowInstanceState(String value) { 29 | this.value = value; 30 | } 31 | 32 | @JsonValue 33 | public String getValue() { 34 | return value; 35 | } 36 | 37 | @Override 38 | public String toString() { 39 | return String.valueOf(value); 40 | } 41 | 42 | @JsonCreator 43 | public static WorkflowInstanceState fromValue(String value) { 44 | for (WorkflowInstanceState b : WorkflowInstanceState.values()) { 45 | if (b.value.equals(value)) { 46 | return b; 47 | } 48 | } 49 | return null; 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesConcatExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.ConcatExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesConcatExpression { 14 | 15 | CONCATEXPRESSION("ConcatExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesConcatExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesConcatExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesConcatExpression b : DSWorkflowTransformationExpressionTypesConcatExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowMetadataStatus.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * Workflow Definition Metadata Status 13 | */ 14 | public enum WorkflowMetadataStatus { 15 | 16 | ACTIVE("active"), 17 | 18 | INACTIVE("inactive"), 19 | 20 | PUBLISHING("publishing"), 21 | 22 | UNPUBLISHING("unpublishing"), 23 | 24 | ARCHIVED("archived"), 25 | 26 | ARCHIVING("archiving"); 27 | 28 | private String value; 29 | 30 | WorkflowMetadataStatus(String value) { 31 | this.value = value; 32 | } 33 | 34 | @JsonValue 35 | public String getValue() { 36 | return value; 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return String.valueOf(value); 42 | } 43 | 44 | @JsonCreator 45 | public static WorkflowMetadataStatus fromValue(String value) { 46 | for (WorkflowMetadataStatus b : WorkflowMetadataStatus.values()) { 47 | if (b.value.equals(value)) { 48 | return b; 49 | } 50 | } 51 | return null; 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesIndexOfExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.IndexOfExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesIndexOfExpression { 14 | 15 | INDEXOFEXPRESSION("IndexOfExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesIndexOfExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesIndexOfExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesIndexOfExpression b : DSWorkflowTransformationExpressionTypesIndexOfExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesReplaceExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.ReplaceExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesReplaceExpression { 14 | 15 | REPLACEEXPRESSION("ReplaceExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesReplaceExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesReplaceExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesReplaceExpression b : DSWorkflowTransformationExpressionTypesReplaceExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesToLowerExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.ToLowerExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesToLowerExpression { 14 | 15 | TOLOWEREXPRESSION("ToLowerExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesToLowerExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesToLowerExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesToLowerExpression b : DSWorkflowTransformationExpressionTypesToLowerExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesToUpperExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.ToUpperExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesToUpperExpression { 14 | 15 | TOUPPEREXPRESSION("ToUpperExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesToUpperExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesToUpperExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesToUpperExpression b : DSWorkflowTransformationExpressionTypesToUpperExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesSubstringExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.SubstringExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesSubstringExpression { 14 | 15 | SUBSTRINGEXPRESSION("SubstringExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesSubstringExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesSubstringExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesSubstringExpression b : DSWorkflowTransformationExpressionTypesSubstringExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpressionTypesLastIndexOfExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowTransformationExpressionTypes.LastIndexOfExpression 12 | */ 13 | public enum DSWorkflowTransformationExpressionTypesLastIndexOfExpression { 14 | 15 | LASTINDEXOFEXPRESSION("LastIndexOfExpression"); 16 | 17 | private String value; 18 | 19 | DSWorkflowTransformationExpressionTypesLastIndexOfExpression(String value) { 20 | this.value = value; 21 | } 22 | 23 | @JsonValue 24 | public String getValue() { 25 | return value; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return String.valueOf(value); 31 | } 32 | 33 | @JsonCreator 34 | public static DSWorkflowTransformationExpressionTypesLastIndexOfExpression fromValue(String value) { 35 | for (DSWorkflowTransformationExpressionTypesLastIndexOfExpression b : DSWorkflowTransformationExpressionTypesLastIndexOfExpression.values()) { 36 | if (b.value.equals(value)) { 37 | return b; 38 | } 39 | } 40 | return null; 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/TemplateId.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | 6 | /** 7 | * TemplateId. 8 | * 9 | */ 10 | 11 | public class TemplateId { 12 | 13 | /** 14 | * Compares objects. 15 | * 16 | * @return true or false depending on comparison result. 17 | */ 18 | @Override 19 | public boolean equals(java.lang.Object o) { 20 | if (this == o) { 21 | return true; 22 | } 23 | if (o == null || getClass() != o.getClass()) { 24 | return false; 25 | } 26 | return true; 27 | } 28 | 29 | /** 30 | * Returns the HashCode. 31 | */ 32 | @Override 33 | public int hashCode() { 34 | return Objects.hash(); 35 | } 36 | 37 | 38 | /** 39 | * Converts the given object to string. 40 | */ 41 | @Override 42 | public String toString() { 43 | StringBuilder sb = new StringBuilder(); 44 | sb.append("class TemplateId {\n"); 45 | 46 | sb.append("}"); 47 | return sb.toString(); 48 | } 49 | 50 | /** 51 | * Convert the given object to string with each line indented by 4 spaces 52 | * (except the first line). 53 | */ 54 | private String toIndentedString(java.lang.Object o) { 55 | if (o == null) { 56 | return "null"; 57 | } 58 | return o.toString().replace("\n", "\n "); 59 | } 60 | 61 | } 62 | 63 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DeploymentStatus.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * The workflow deployment status 13 | */ 14 | public enum DeploymentStatus { 15 | 16 | DEPLOYMENT_IN_PROGRESS("Deployment In Progress"), 17 | 18 | DEPLOYED("Deployed"), 19 | 20 | FAILED("Failed"), 21 | 22 | DELETE_IN_PROGRESS("Delete in Progress"), 23 | 24 | DELETED("Deleted"), 25 | 26 | NOT_DEPLOYED("Not Deployed"), 27 | 28 | UNPUBLISH_IN_PROGRESS("Unpublish in Progress"), 29 | 30 | UNPUBLISHED("Unpublished"); 31 | 32 | private String value; 33 | 34 | DeploymentStatus(String value) { 35 | this.value = value; 36 | } 37 | 38 | @JsonValue 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | @JsonCreator 49 | public static DeploymentStatus fromValue(String value) { 50 | for (DeploymentStatus b : DeploymentStatus.values()) { 51 | if (b.value.equals(value)) { 52 | return b; 53 | } 54 | } 55 | return null; 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/Pair.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client; 4 | 5 | 6 | 7 | /** 8 | * Pair class. 9 | */ 10 | public class Pair { 11 | private String name = ""; 12 | private String value = ""; 13 | 14 | /** 15 | * Pair constructor. 16 | * 17 | * @param name The pair name 18 | * @param value The pair value 19 | */ 20 | public Pair (String name, String value) { 21 | setName(name); 22 | setValue(value); 23 | } 24 | 25 | private void setName(String name) { 26 | if (!isValidString(name)) { 27 | return; 28 | } 29 | 30 | this.name = name; 31 | } 32 | 33 | private void setValue(String value) { 34 | if (!isValidString(value)) { 35 | return; 36 | } 37 | 38 | this.value = value; 39 | } 40 | 41 | /** 42 | * getName method. 43 | * 44 | * @return String 45 | */ 46 | public String getName() { 47 | return this.name; 48 | } 49 | 50 | /** 51 | * getValue method. 52 | * 53 | * @return String 54 | */ 55 | public String getValue() { 56 | return this.value; 57 | } 58 | 59 | private boolean isValidString(String arg) { 60 | if (arg == null) { 61 | return false; 62 | } 63 | 64 | if (arg.trim().isEmpty()) { 65 | return false; 66 | } 67 | 68 | return true; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/ApiResponse.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | /** 9 | * API response returned by API call. 10 | * 11 | * @param The type of data that is deserialized from response body 12 | */ 13 | public class ApiResponse { 14 | private final int statusCode; 15 | private final Map> headers; 16 | private final T data; 17 | 18 | /** 19 | * ApiResponse method. 20 | * 21 | * @param statusCode The status code of HTTP response 22 | * @param headers The headers of HTTP response 23 | */ 24 | public ApiResponse(int statusCode, Map> headers) { 25 | this(statusCode, headers, null); 26 | } 27 | 28 | /** 29 | * ApiResponse method. 30 | * 31 | * @param statusCode The status code of HTTP response 32 | * @param headers The headers of HTTP response 33 | * @param data The object deserialized from response bod 34 | */ 35 | public ApiResponse(int statusCode, Map> headers, T data) { 36 | this.statusCode = statusCode; 37 | this.headers = headers; 38 | this.data = data; 39 | } 40 | 41 | public int getStatusCode() { 42 | return statusCode; 43 | } 44 | 45 | public Map> getHeaders() { 46 | return headers; 47 | } 48 | 49 | public T getData() { 50 | return data; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/RecordToNever.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | /** 8 | * RecordToNever. 9 | * 10 | */ 11 | 12 | public class RecordToNever implements Serializable { 13 | private static final long serialVersionUID = 1L; 14 | 15 | 16 | /** 17 | * Compares objects. 18 | * 19 | * @return true or false depending on comparison result. 20 | */ 21 | @Override 22 | public boolean equals(java.lang.Object o) { 23 | if (this == o) { 24 | return true; 25 | } 26 | if (o == null || getClass() != o.getClass()) { 27 | return false; 28 | } 29 | return true; 30 | } 31 | 32 | /** 33 | * Returns the HashCode. 34 | */ 35 | @Override 36 | public int hashCode() { 37 | return Objects.hash(); 38 | } 39 | 40 | 41 | /** 42 | * Converts the given object to string. 43 | */ 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class RecordToNever {\n"); 48 | 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/StringUtil.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client; 4 | 5 | 6 | /** 7 | * StringUtil class. 8 | * 9 | **/ 10 | public class StringUtil { 11 | /** 12 | * Check if the given array contains the given value (with case-insensitive comparison). 13 | * 14 | * @param array The array 15 | * @param value The value to search 16 | * @return true if the array contains the value 17 | */ 18 | public static boolean containsIgnoreCase(String[] array, String value) { 19 | for (String str : array) { 20 | if (value == null && str == null) { 21 | return true; 22 | } 23 | 24 | if (value != null && value.equalsIgnoreCase(str)) { 25 | return true; 26 | } 27 | } 28 | return false; 29 | } 30 | 31 | /** 32 | * Join an array of strings with the given separator. 33 | *

34 | * Note: This might be replaced by utility method from commons-lang or guava someday 35 | * if one of those libraries is added as dependency. 36 | *

37 | * 38 | * @param array The array of strings 39 | * @param separator The separator 40 | * @return the resulting string 41 | */ 42 | public static String join(String[] array, String separator) { 43 | int len = array.length; 44 | if (len == 0) { 45 | return ""; 46 | } 47 | 48 | StringBuilder out = new StringBuilder(); 49 | out.append(array[0]); 50 | for (int i = 1; i < len; i++) { 51 | out.append(separator).append(array[i]); 52 | } 53 | return out.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowComparisonOperatorTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Gets or Sets DSWorkflowComparisonOperatorTypes 12 | */ 13 | public enum DSWorkflowComparisonOperatorTypes { 14 | 15 | CONTAINS("Contains"), 16 | 17 | NOTCONTAINS("NotContains"), 18 | 19 | EQUAL("Equal"), 20 | 21 | NOTEQUAL("NotEqual"), 22 | 23 | GREATERTHAN("GreaterThan"), 24 | 25 | GREATERTHANOREQUAL("GreaterThanOrEqual"), 26 | 27 | LESSTHAN("LessThan"), 28 | 29 | LESSTHANOREQUAL("LessThanOrEqual"), 30 | 31 | STARTSWITH("StartsWith"), 32 | 33 | NOTSTARTSWITH("NotStartsWith"), 34 | 35 | ENDSWITH("EndsWith"), 36 | 37 | NOTENDSWITH("NotEndsWith"); 38 | 39 | private String value; 40 | 41 | DSWorkflowComparisonOperatorTypes(String value) { 42 | this.value = value; 43 | } 44 | 45 | @JsonValue 46 | public String getValue() { 47 | return value; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return String.valueOf(value); 53 | } 54 | 55 | @JsonCreator 56 | public static DSWorkflowComparisonOperatorTypes fromValue(String value) { 57 | for (DSWorkflowComparisonOperatorTypes b : DSWorkflowComparisonOperatorTypes.values()) { 58 | if (b.value.equals(value)) { 59 | return b; 60 | } 61 | } 62 | return null; 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ErrorCodes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * Internal Error Codes 13 | */ 14 | public enum ErrorCodes { 15 | 16 | _10001("ERR_10001"), 17 | 18 | _10002("ERR_10002"), 19 | 20 | _10003("ERR_10003"), 21 | 22 | _10004("ERR_10004"), 23 | 24 | _10005("ERR_10005"), 25 | 26 | _10006("ERR_10006"), 27 | 28 | _10007("ERR_10007"), 29 | 30 | _10008("ERR_10008"), 31 | 32 | _10009("ERR_10009"), 33 | 34 | _10101("ERR_10101"), 35 | 36 | _10201("ERR_10201"), 37 | 38 | _10202("ERR_10202"), 39 | 40 | _10301("ERR_10301"), 41 | 42 | _10302("ERR_10302"), 43 | 44 | _10401("ERR_10401"), 45 | 46 | _10801("ERR_10801"), 47 | 48 | _10802("ERR_10802"), 49 | 50 | _10999("ERR_10999"); 51 | 52 | private String value; 53 | 54 | ErrorCodes(String value) { 55 | this.value = value; 56 | } 57 | 58 | @JsonValue 59 | public String getValue() { 60 | return value; 61 | } 62 | 63 | @Override 64 | public String toString() { 65 | return String.valueOf(value); 66 | } 67 | 68 | @JsonCreator 69 | public static ErrorCodes fromValue(String value) { 70 | for (ErrorCodes b : ErrorCodes.values()) { 71 | if (b.value.equals(value)) { 72 | return b; 73 | } 74 | } 75 | return null; 76 | } 77 | } 78 | 79 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariable.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * DS Workflow Variables. 10 | * 11 | */ 12 | @Schema(description = "DS Workflow Variables") 13 | 14 | public class DSWorkflowVariable implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSWorkflowVariable {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ESignLocalePolicy.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | /** 8 | * ESignLocalePolicy. 9 | * 10 | */ 11 | 12 | public class ESignLocalePolicy extends java.util.HashMap implements Serializable { 13 | private static final long serialVersionUID = 1L; 14 | 15 | 16 | /** 17 | * Compares objects. 18 | * 19 | * @return true or false depending on comparison result. 20 | */ 21 | @Override 22 | public boolean equals(java.lang.Object o) { 23 | if (this == o) { 24 | return true; 25 | } 26 | if (o == null || getClass() != o.getClass()) { 27 | return false; 28 | } 29 | return super.equals(o); 30 | } 31 | 32 | /** 33 | * Returns the HashCode. 34 | */ 35 | @Override 36 | public int hashCode() { 37 | return Objects.hash(super.hashCode()); 38 | } 39 | 40 | 41 | /** 42 | * Converts the given object to string. 43 | */ 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class ESignLocalePolicy {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/RecordStringBoolean.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | /** 8 | * RecordStringBoolean. 9 | * 10 | */ 11 | 12 | public class RecordStringBoolean extends java.util.HashMap implements Serializable { 13 | private static final long serialVersionUID = 1L; 14 | 15 | 16 | /** 17 | * Compares objects. 18 | * 19 | * @return true or false depending on comparison result. 20 | */ 21 | @Override 22 | public boolean equals(java.lang.Object o) { 23 | if (this == o) { 24 | return true; 25 | } 26 | if (o == null || getClass() != o.getClass()) { 27 | return false; 28 | } 29 | return super.equals(o); 30 | } 31 | 32 | /** 33 | * Returns the HashCode. 34 | */ 35 | @Override 36 | public int hashCode() { 37 | return Objects.hash(super.hashCode()); 38 | } 39 | 40 | 41 | /** 42 | * Converts the given object to string. 43 | */ 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class RecordStringBoolean {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowInstanceMap.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import java.io.Serializable; 6 | 7 | /** 8 | * WorkflowInstanceMap. 9 | * 10 | */ 11 | 12 | public class WorkflowInstanceMap extends java.util.HashMap implements Serializable { 13 | private static final long serialVersionUID = 1L; 14 | 15 | 16 | /** 17 | * Compares objects. 18 | * 19 | * @return true or false depending on comparison result. 20 | */ 21 | @Override 22 | public boolean equals(java.lang.Object o) { 23 | if (this == o) { 24 | return true; 25 | } 26 | if (o == null || getClass() != o.getClass()) { 27 | return false; 28 | } 29 | return super.equals(o); 30 | } 31 | 32 | /** 33 | * Returns the HashCode. 34 | */ 35 | @Override 36 | public int hashCode() { 37 | return Objects.hash(super.hashCode()); 38 | } 39 | 40 | 41 | /** 42 | * Converts the given object to string. 43 | */ 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class WorkflowInstanceMap {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ReplicationStatus.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * The workflow replication status 13 | */ 14 | public enum ReplicationStatus { 15 | 16 | DEPLOY_REPLICATION_IN_PROGRESS("Deploy Replication In Progress"), 17 | 18 | DEPLOY_REPLICATED("Deploy Replicated"), 19 | 20 | DEPLOY_REPLICATION_FAILED("Deploy Replication Failed"), 21 | 22 | NOT_REPLICATED("Not Replicated"), 23 | 24 | DELETE_REPLICATION_IN_PROGRESS("Delete Replication in Progress"), 25 | 26 | DELETE_REPLICATED("Delete Replicated"), 27 | 28 | DELETE_REPLICATION_FAILED("Delete Replication Failed"), 29 | 30 | UNPUBLISH_REPLICATION_IN_PROGRESS("Unpublish replication in Progress"), 31 | 32 | UNPUBLISH_REPLICATED("Unpublish Replicated"), 33 | 34 | UNPUBLISH_REPLICATION_FAILED("Unpublish Replication Failed"); 35 | 36 | private String value; 37 | 38 | ReplicationStatus(String value) { 39 | this.value = value; 40 | } 41 | 42 | @JsonValue 43 | public String getValue() { 44 | return value; 45 | } 46 | 47 | @Override 48 | public String toString() { 49 | return String.valueOf(value); 50 | } 51 | 52 | @JsonCreator 53 | public static ReplicationStatus fromValue(String value) { 54 | for (ReplicationStatus b : ReplicationStatus.values()) { 55 | if (b.value.equals(value)) { 56 | return b; 57 | } 58 | } 59 | return null; 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowLanesRecord.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowLane; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * DSWorkflowLanesRecord. 10 | * 11 | */ 12 | 13 | public class DSWorkflowLanesRecord extends java.util.HashMap implements Serializable { 14 | private static final long serialVersionUID = 1L; 15 | 16 | 17 | /** 18 | * Compares objects. 19 | * 20 | * @return true or false depending on comparison result. 21 | */ 22 | @Override 23 | public boolean equals(java.lang.Object o) { 24 | if (this == o) { 25 | return true; 26 | } 27 | if (o == null || getClass() != o.getClass()) { 28 | return false; 29 | } 30 | return super.equals(o); 31 | } 32 | 33 | /** 34 | * Returns the HashCode. 35 | */ 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | /** 43 | * Converts the given object to string. 44 | */ 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class DSWorkflowLanesRecord {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(java.lang.Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client.auth; 4 | 5 | import com.docusign.maestro.client.Pair; 6 | 7 | import java.util.Base64; 8 | import java.nio.charset.StandardCharsets; 9 | 10 | import java.util.Map; 11 | import java.util.List; 12 | 13 | 14 | 15 | 16 | /** 17 | * HttpBasicAuth class. 18 | * 19 | */ 20 | public class HttpBasicAuth implements Authentication { 21 | private String username; 22 | private String password; 23 | 24 | /** 25 | * getUsername method. 26 | * 27 | * @return String 28 | */ 29 | public String getUsername() { 30 | return username; 31 | } 32 | 33 | /** 34 | * setUsername method. 35 | * 36 | * @param username Sets username 37 | */ 38 | public void setUsername(String username) { 39 | this.username = username; 40 | } 41 | 42 | /** 43 | * getPassword method. 44 | * 45 | * @return String 46 | */ 47 | public String getPassword() { 48 | return password; 49 | } 50 | 51 | /** 52 | * setPassword method. 53 | * 54 | * @param password Sets password 55 | */ 56 | public void setPassword(String password) { 57 | this.password = password; 58 | } 59 | 60 | /** 61 | * applyToParams method. 62 | * 63 | * @param queryParams The query params 64 | * @param headerParams The header params 65 | */ 66 | @Override 67 | public void applyToParams(List queryParams, Map headerParams) { 68 | if (username == null && password == null) { 69 | return; 70 | } 71 | String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); 72 | headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8))); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/EventTypes.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * The Trigger Event types 13 | */ 14 | public enum EventTypes { 15 | 16 | ENVELOPE_SENT("envelope-sent"), 17 | 18 | ENVELOPE_DELIVERED("envelope-delivered"), 19 | 20 | ENVELOPE_COMPLETED("envelope-completed"), 21 | 22 | ENVELOPE_DECLINED("envelope-declined"), 23 | 24 | ENVELOPE_VOIDED("envelope-voided"), 25 | 26 | ENVELOPE_CREATED("envelope-created"), 27 | 28 | ENVELOPE_RESENT("envelope-resent"), 29 | 30 | ENVELOPE_CORRECTED("envelope-corrected"), 31 | 32 | ENVELOPE_PURGE("envelope-purge"), 33 | 34 | ENVELOPE_DELETED("envelope-deleted"), 35 | 36 | ENVELOPE_DISCARD("envelope-discard"), 37 | 38 | DELIVERY_FAILED("Delivery Failed"), 39 | 40 | AUTHENTICATION_FAILED("Authentication Failed"), 41 | 42 | SENT("Sent"), 43 | 44 | DELIVERED("Delivered"), 45 | 46 | SIGNED("Signed"), 47 | 48 | COMPLETED("Completed"); 49 | 50 | private String value; 51 | 52 | EventTypes(String value) { 53 | this.value = value; 54 | } 55 | 56 | @JsonValue 57 | public String getValue() { 58 | return value; 59 | } 60 | 61 | @Override 62 | public String toString() { 63 | return String.valueOf(value); 64 | } 65 | 66 | @JsonCreator 67 | public static EventTypes fromValue(String value) { 68 | for (EventTypes b : EventTypes.values()) { 69 | if (b.value.equals(value)) { 70 | return b; 71 | } 72 | } 73 | return null; 74 | } 75 | } 76 | 77 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableRecord.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * A DS Workflow variable record. 10 | * 11 | */ 12 | @Schema(description = "A DS Workflow variable record") 13 | 14 | public class DSWorkflowVariableRecord extends java.util.HashMap implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return super.equals(o); 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(super.hashCode()); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSWorkflowVariableRecord {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableFromParticipant.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * DS Workflow Variable from a Participant object. The definition is flexible based on the workflow definition.. 10 | * 11 | */ 12 | @Schema(description = "DS Workflow Variable from a Participant object. The definition is flexible based on the workflow definition.") 13 | 14 | public class DSWorkflowVariableFromParticipant implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSWorkflowVariableFromParticipant {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowParticipantRecord.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.Participant; 6 | import io.swagger.v3.oas.annotations.media.Schema; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * A DS Workflow participant record. 11 | * 12 | */ 13 | @Schema(description = "A DS Workflow participant record") 14 | 15 | public class DSWorkflowParticipantRecord extends java.util.HashMap implements Serializable { 16 | private static final long serialVersionUID = 1L; 17 | 18 | 19 | /** 20 | * Compares objects. 21 | * 22 | * @return true or false depending on comparison result. 23 | */ 24 | @Override 25 | public boolean equals(java.lang.Object o) { 26 | if (this == o) { 27 | return true; 28 | } 29 | if (o == null || getClass() != o.getClass()) { 30 | return false; 31 | } 32 | return super.equals(o); 33 | } 34 | 35 | /** 36 | * Returns the HashCode. 37 | */ 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | /** 45 | * Converts the given object to string. 46 | */ 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class DSWorkflowParticipantRecord {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/NumberOrVariable.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * Object stands for a number or a Variable. This object should be any of the following object models or types: [number, #/definitions/DSWorkflowVariable]. 10 | * 11 | */ 12 | @Schema(description = "Object stands for a number or a Variable. This object should be any of the following object models or types: [number, #/definitions/DSWorkflowVariable]") 13 | 14 | public class NumberOrVariable implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class NumberOrVariable {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowInstancesList.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.WorkflowInstance; 6 | import io.swagger.v3.oas.annotations.media.Schema; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * A list of workflow instances (0 or more).. 11 | * 12 | */ 13 | @Schema(description = "A list of workflow instances (0 or more).") 14 | 15 | public class WorkflowInstancesList extends java.util.ArrayList implements Serializable { 16 | private static final long serialVersionUID = 1L; 17 | 18 | 19 | /** 20 | * Compares objects. 21 | * 22 | * @return true or false depending on comparison result. 23 | */ 24 | @Override 25 | public boolean equals(java.lang.Object o) { 26 | if (this == o) { 27 | return true; 28 | } 29 | if (o == null || getClass() != o.getClass()) { 30 | return false; 31 | } 32 | return super.equals(o); 33 | } 34 | 35 | /** 36 | * Returns the HashCode. 37 | */ 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | /** 45 | * Converts the given object to string. 46 | */ 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class WorkflowInstancesList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowStepHistoryList.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.WorkflowStepHistory; 6 | import io.swagger.v3.oas.annotations.media.Schema; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * Returns Array of Workflow Step History.. 11 | * 12 | */ 13 | @Schema(description = "Returns Array of Workflow Step History.") 14 | 15 | public class WorkflowStepHistoryList extends java.util.ArrayList implements Serializable { 16 | private static final long serialVersionUID = 1L; 17 | 18 | 19 | /** 20 | * Compares objects. 21 | * 22 | * @return true or false depending on comparison result. 23 | */ 24 | @Override 25 | public boolean equals(java.lang.Object o) { 26 | if (this == o) { 27 | return true; 28 | } 29 | if (o == null || getClass() != o.getClass()) { 30 | return false; 31 | } 32 | return super.equals(o); 33 | } 34 | 35 | /** 36 | * Returns the HashCode. 37 | */ 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | /** 45 | * Converts the given object to string. 46 | */ 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class WorkflowStepHistoryList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ESignDocuments.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * ESignDocument Object. This object should be any of the following object models: [#/definitions/ESignDocumentFromPreviousStep, #/definitions/ESignDocumentFromESignTemplate]. 10 | * 11 | */ 12 | @Schema(description = "ESignDocument Object. This object should be any of the following object models: [#/definitions/ESignDocumentFromPreviousStep, #/definitions/ESignDocumentFromESignTemplate]") 13 | 14 | public class ESignDocuments implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ESignDocuments {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/RecordStringOrVariableOrTransformation.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * A Record of strings to Strings, Variables, or Transformation Expressions. 10 | * 11 | */ 12 | @Schema(description = "A Record of strings to Strings, Variables, or Transformation Expressions") 13 | 14 | public class RecordStringOrVariableOrTransformation extends java.util.HashMap implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return super.equals(o); 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(super.hashCode()); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class RecordStringOrVariableOrTransformation {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSServiceStep.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * A DS Workflow Service Step. This object should be any of the following object models: [#/definitions/DSWebFormsStep, #/definitions/DSIdvStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]. 10 | * 11 | */ 12 | @Schema(description = "A DS Workflow Service Step. This object should be any of the following object models: [#/definitions/DSWebFormsStep, #/definitions/DSIdvStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]") 13 | 14 | public class DSServiceStep implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSServiceStep {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowStep.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * A DS Workflow Step. This object should be any of the following object models: [#/definitions/DSServiceStep, #/definitions/DSTransformationStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]. 10 | * 11 | */ 12 | @Schema(description = "A DS Workflow Step. This object should be any of the following object models: [#/definitions/DSServiceStep, #/definitions/DSTransformationStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]") 13 | 14 | public class DSWorkflowStep implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSWorkflowStep {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/JSON.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.client; 2 | 3 | import com.fasterxml.jackson.annotation.*; 4 | import com.fasterxml.jackson.databind.*; 5 | 6 | import java.text.DateFormat; 7 | 8 | import jakarta.ws.rs.ext.ContextResolver; 9 | 10 | 11 | 12 | /** 13 | * JSON Class. 14 | * 15 | **/ 16 | 17 | public class JSON implements ContextResolver { 18 | private ObjectMapper mapper; 19 | 20 | /** 21 | * JSON Class constructor doc. 22 | * 23 | **/ 24 | public JSON() { 25 | mapper = new ObjectMapper(); 26 | mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); 27 | mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); 28 | mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); 29 | mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); 30 | mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); 31 | mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); 32 | mapper.setDateFormat(new RFC3339DateFormat()); 33 | } 34 | 35 | /** 36 | * Returns the current object mapper used for JSON serialization/deserialization. 37 | *

38 | * Note: If you make changes to the object mapper, remember to set it back via 39 | * setObjectMapper in order to trigger HTTP client rebuilding. 40 | *

41 | * @return Object mapper 42 | */ 43 | public ObjectMapper getObjectMapper() { 44 | return mapper; 45 | } 46 | 47 | public JSON setObjectMapper(ObjectMapper mapper) { 48 | this.mapper = mapper; 49 | return this; 50 | } 51 | 52 | /** 53 | * Set the date format for JSON (de)serialization with Date properties. 54 | * @param dateFormat Date format 55 | */ 56 | public void setDateFormat(DateFormat dateFormat) { 57 | mapper.setDateFormat(dateFormat); 58 | } 59 | 60 | @Override 61 | public ObjectMapper getContext(Class type) { 62 | return mapper; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/StringOrVariableOrTransformation.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]. 10 | * 11 | */ 12 | @Schema(description = "Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]") 13 | 14 | public class StringOrVariableOrTransformation implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class StringOrVariableOrTransformation {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowTransformationExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * Transformation Expression object. This object should be any of the following object models: [#/definitions/DSWorkflowReplaceExpression, #/definitions/DSWorkflowToLowerExpression, #/definitions/DSWorkflowToUpperExpression, #/components/schemas/DSWorkflowLastIndexOfExpression, #/components/schemas/DSWorkflowIndexOfExpression, #/components/schemas/DSWorkflowSubstringExpression, #/components/schemas/DSWorkflowConcatExpression]. 10 | * 11 | */ 12 | @Schema(description = "Transformation Expression object. This object should be any of the following object models: [#/definitions/DSWorkflowReplaceExpression, #/definitions/DSWorkflowToLowerExpression, #/definitions/DSWorkflowToUpperExpression, #/components/schemas/DSWorkflowLastIndexOfExpression, #/components/schemas/DSWorkflowIndexOfExpression, #/components/schemas/DSWorkflowSubstringExpression, #/components/schemas/DSWorkflowConcatExpression]") 13 | 14 | public class DSWorkflowTransformationExpression implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | /** 19 | * Compares objects. 20 | * 21 | * @return true or false depending on comparison result. 22 | */ 23 | @Override 24 | public boolean equals(java.lang.Object o) { 25 | if (this == o) { 26 | return true; 27 | } 28 | if (o == null || getClass() != o.getClass()) { 29 | return false; 30 | } 31 | return true; 32 | } 33 | 34 | /** 35 | * Returns the HashCode. 36 | */ 37 | @Override 38 | public int hashCode() { 39 | return Objects.hash(); 40 | } 41 | 42 | 43 | /** 44 | * Converts the given object to string. 45 | */ 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class DSWorkflowTransformationExpression {\n"); 50 | 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client.auth; 4 | 5 | import com.docusign.maestro.client.Pair; 6 | 7 | import java.util.Map; 8 | import java.util.List; 9 | 10 | 11 | /** 12 | * ApiKeyAuth class. 13 | * 14 | */ 15 | public class ApiKeyAuth implements Authentication { 16 | private final String location; 17 | private final String paramName; 18 | 19 | private String apiKey; 20 | private String apiKeyPrefix; 21 | 22 | /** 23 | * ApiKeyAuth constructor. 24 | * 25 | * @param location Sets location 26 | * @param paramName Sets paramName 27 | */ 28 | public ApiKeyAuth(String location, String paramName) { 29 | this.location = location; 30 | this.paramName = paramName; 31 | } 32 | 33 | /** 34 | * getLocation method. 35 | * 36 | * @return String 37 | */ 38 | public String getLocation() { 39 | return location; 40 | } 41 | 42 | /** 43 | * getParamName method. 44 | * 45 | * @return String 46 | */ 47 | public String getParamName() { 48 | return paramName; 49 | } 50 | 51 | /** 52 | * getApiKey method. 53 | * 54 | * @return String 55 | */ 56 | public String getApiKey() { 57 | return apiKey; 58 | } 59 | 60 | /** 61 | * setApiKey method. 62 | * 63 | * @param apiKey The apiKey 64 | */ 65 | public void setApiKey(String apiKey) { 66 | this.apiKey = apiKey; 67 | } 68 | 69 | /** 70 | * getApiKeyPrefix method. 71 | * 72 | * @return String 73 | */ 74 | public String getApiKeyPrefix() { 75 | return apiKeyPrefix; 76 | } 77 | 78 | /** 79 | * setApiKeyPrefix method. 80 | * 81 | * @param apiKeyPrefix The apiKeyPrefix 82 | */ 83 | public void setApiKeyPrefix(String apiKeyPrefix) { 84 | this.apiKeyPrefix = apiKeyPrefix; 85 | } 86 | 87 | /** 88 | * applyToParams method. 89 | * 90 | * @param queryParams The query params 91 | * @param headerParams The header params 92 | */ 93 | @Override 94 | public void applyToParams(List queryParams, Map headerParams) { 95 | if (apiKey == null) { 96 | return; 97 | } 98 | String value; 99 | if (apiKeyPrefix != null) { 100 | value = apiKeyPrefix + " " + apiKey; 101 | } else { 102 | value = apiKey; 103 | } 104 | if ("query".equals(location)) { 105 | queryParams.add(new Pair(paramName, value)); 106 | } else if ("header".equals(location)) { 107 | headerParams.put(paramName, value); 108 | } 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWebFormsStepConfig.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * DSWebFormsStepConfig. 13 | * 14 | */ 15 | 16 | public class DSWebFormsStepConfig implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("pageUrl") 20 | private String pageUrl = null; 21 | 22 | 23 | /** 24 | * pageUrl. 25 | * 26 | * @return DSWebFormsStepConfig 27 | **/ 28 | public DSWebFormsStepConfig pageUrl(String pageUrl) { 29 | this.pageUrl = pageUrl; 30 | return this; 31 | } 32 | 33 | /** 34 | * Get pageUrl. 35 | * @return pageUrl 36 | **/ 37 | @Schema(required = true, description = "") 38 | public String getPageUrl() { 39 | return pageUrl; 40 | } 41 | 42 | /** 43 | * setPageUrl. 44 | **/ 45 | public void setPageUrl(String pageUrl) { 46 | this.pageUrl = pageUrl; 47 | } 48 | 49 | 50 | /** 51 | * Compares objects. 52 | * 53 | * @return true or false depending on comparison result. 54 | */ 55 | @Override 56 | public boolean equals(java.lang.Object o) { 57 | if (this == o) { 58 | return true; 59 | } 60 | if (o == null || getClass() != o.getClass()) { 61 | return false; 62 | } 63 | DSWebFormsStepConfig dsWebFormsStepConfig = (DSWebFormsStepConfig) o; 64 | return Objects.equals(this.pageUrl, dsWebFormsStepConfig.pageUrl); 65 | } 66 | 67 | /** 68 | * Returns the HashCode. 69 | */ 70 | @Override 71 | public int hashCode() { 72 | return Objects.hash(pageUrl); 73 | } 74 | 75 | 76 | /** 77 | * Converts the given object to string. 78 | */ 79 | @Override 80 | public String toString() { 81 | StringBuilder sb = new StringBuilder(); 82 | sb.append("class DSWebFormsStepConfig {\n"); 83 | 84 | sb.append(" pageUrl: ").append(toIndentedString(pageUrl)).append("\n"); 85 | sb.append("}"); 86 | return sb.toString(); 87 | } 88 | 89 | /** 90 | * Convert the given object to string with each line indented by 4 spaces 91 | * (except the first line). 92 | */ 93 | private String toIndentedString(java.lang.Object o) { 94 | if (o == null) { 95 | return "null"; 96 | } 97 | return o.toString().replace("\n", "\n "); 98 | } 99 | 100 | } 101 | 102 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/SuccessMessageResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * Returns success with a status message. 13 | * 14 | */ 15 | @Schema(description = "Returns success with a status message") 16 | 17 | public class SuccessMessageResponse implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("message") 21 | private String message = null; 22 | 23 | 24 | /** 25 | * message. 26 | * 27 | * @return SuccessMessageResponse 28 | **/ 29 | public SuccessMessageResponse message(String message) { 30 | this.message = message; 31 | return this; 32 | } 33 | 34 | /** 35 | * Get message. 36 | * @return message 37 | **/ 38 | @Schema(description = "") 39 | public String getMessage() { 40 | return message; 41 | } 42 | 43 | /** 44 | * setMessage. 45 | **/ 46 | public void setMessage(String message) { 47 | this.message = message; 48 | } 49 | 50 | 51 | /** 52 | * Compares objects. 53 | * 54 | * @return true or false depending on comparison result. 55 | */ 56 | @Override 57 | public boolean equals(java.lang.Object o) { 58 | if (this == o) { 59 | return true; 60 | } 61 | if (o == null || getClass() != o.getClass()) { 62 | return false; 63 | } 64 | SuccessMessageResponse successMessageResponse = (SuccessMessageResponse) o; 65 | return Objects.equals(this.message, successMessageResponse.message); 66 | } 67 | 68 | /** 69 | * Returns the HashCode. 70 | */ 71 | @Override 72 | public int hashCode() { 73 | return Objects.hash(message); 74 | } 75 | 76 | 77 | /** 78 | * Converts the given object to string. 79 | */ 80 | @Override 81 | public String toString() { 82 | StringBuilder sb = new StringBuilder(); 83 | sb.append("class SuccessMessageResponse {\n"); 84 | 85 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 86 | sb.append("}"); 87 | return sb.toString(); 88 | } 89 | 90 | /** 91 | * Convert the given object to string with each line indented by 4 spaces 92 | * (except the first line). 93 | */ 94 | private String toIndentedString(java.lang.Object o) { 95 | if (o == null) { 96 | return "null"; 97 | } 98 | return o.toString().replace("\n", "\n "); 99 | } 100 | 101 | } 102 | 103 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DeployRequest.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DeployStatus; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DeployRequest. 14 | * 15 | */ 16 | 17 | public class DeployRequest implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("deploymentStatus") 21 | private DeployStatus deploymentStatus = null; 22 | 23 | 24 | /** 25 | * deploymentStatus. 26 | * 27 | * @return DeployRequest 28 | **/ 29 | public DeployRequest deploymentStatus(DeployStatus deploymentStatus) { 30 | this.deploymentStatus = deploymentStatus; 31 | return this; 32 | } 33 | 34 | /** 35 | * Get deploymentStatus. 36 | * @return deploymentStatus 37 | **/ 38 | @Schema(required = true, description = "") 39 | public DeployStatus getDeploymentStatus() { 40 | return deploymentStatus; 41 | } 42 | 43 | /** 44 | * setDeploymentStatus. 45 | **/ 46 | public void setDeploymentStatus(DeployStatus deploymentStatus) { 47 | this.deploymentStatus = deploymentStatus; 48 | } 49 | 50 | 51 | /** 52 | * Compares objects. 53 | * 54 | * @return true or false depending on comparison result. 55 | */ 56 | @Override 57 | public boolean equals(java.lang.Object o) { 58 | if (this == o) { 59 | return true; 60 | } 61 | if (o == null || getClass() != o.getClass()) { 62 | return false; 63 | } 64 | DeployRequest deployRequest = (DeployRequest) o; 65 | return Objects.equals(this.deploymentStatus, deployRequest.deploymentStatus); 66 | } 67 | 68 | /** 69 | * Returns the HashCode. 70 | */ 71 | @Override 72 | public int hashCode() { 73 | return Objects.hash(deploymentStatus); 74 | } 75 | 76 | 77 | /** 78 | * Converts the given object to string. 79 | */ 80 | @Override 81 | public String toString() { 82 | StringBuilder sb = new StringBuilder(); 83 | sb.append("class DeployRequest {\n"); 84 | 85 | sb.append(" deploymentStatus: ").append(toIndentedString(deploymentStatus)).append("\n"); 86 | sb.append("}"); 87 | return sb.toString(); 88 | } 89 | 90 | /** 91 | * Convert the given object to string with each line indented by 4 spaces 92 | * (except the first line). 93 | */ 94 | private String toIndentedString(java.lang.Object o) { 95 | if (o == null) { 96 | return "null"; 97 | } 98 | return o.toString().replace("\n", "\n "); 99 | } 100 | 101 | } 102 | 103 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/CreateOrUpdateWorkflowDefinitionRequestBody.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.WorkflowDefinition; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * A request body that used for create or update workflow definition. 14 | * 15 | */ 16 | @Schema(description = "A request body that used for create or update workflow definition") 17 | 18 | public class CreateOrUpdateWorkflowDefinitionRequestBody implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("workflowDefinition") 22 | private WorkflowDefinition workflowDefinition = null; 23 | 24 | 25 | /** 26 | * workflowDefinition. 27 | * 28 | * @return CreateOrUpdateWorkflowDefinitionRequestBody 29 | **/ 30 | public CreateOrUpdateWorkflowDefinitionRequestBody workflowDefinition(WorkflowDefinition workflowDefinition) { 31 | this.workflowDefinition = workflowDefinition; 32 | return this; 33 | } 34 | 35 | /** 36 | * Get workflowDefinition. 37 | * @return workflowDefinition 38 | **/ 39 | @Schema(description = "") 40 | public WorkflowDefinition getWorkflowDefinition() { 41 | return workflowDefinition; 42 | } 43 | 44 | /** 45 | * setWorkflowDefinition. 46 | **/ 47 | public void setWorkflowDefinition(WorkflowDefinition workflowDefinition) { 48 | this.workflowDefinition = workflowDefinition; 49 | } 50 | 51 | 52 | /** 53 | * Compares objects. 54 | * 55 | * @return true or false depending on comparison result. 56 | */ 57 | @Override 58 | public boolean equals(java.lang.Object o) { 59 | if (this == o) { 60 | return true; 61 | } 62 | if (o == null || getClass() != o.getClass()) { 63 | return false; 64 | } 65 | CreateOrUpdateWorkflowDefinitionRequestBody createOrUpdateWorkflowDefinitionRequestBody = (CreateOrUpdateWorkflowDefinitionRequestBody) o; 66 | return Objects.equals(this.workflowDefinition, createOrUpdateWorkflowDefinitionRequestBody.workflowDefinition); 67 | } 68 | 69 | /** 70 | * Returns the HashCode. 71 | */ 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(workflowDefinition); 75 | } 76 | 77 | 78 | /** 79 | * Converts the given object to string. 80 | */ 81 | @Override 82 | public String toString() { 83 | StringBuilder sb = new StringBuilder(); 84 | sb.append("class CreateOrUpdateWorkflowDefinitionRequestBody {\n"); 85 | 86 | sb.append(" workflowDefinition: ").append(toIndentedString(workflowDefinition)).append("\n"); 87 | sb.append("}"); 88 | return sb.toString(); 89 | } 90 | 91 | /** 92 | * Convert the given object to string with each line indented by 4 spaces 93 | * (except the first line). 94 | */ 95 | private String toIndentedString(java.lang.Object o) { 96 | if (o == null) { 97 | return "null"; 98 | } 99 | return o.toString().replace("\n", "\n "); 100 | } 101 | 102 | } 103 | 104 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/CancelResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * CancelResponse. 13 | * 14 | */ 15 | 16 | public class CancelResponse implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("code") 20 | private String code = null; 21 | 22 | @JsonProperty("message") 23 | private String message = null; 24 | 25 | 26 | /** 27 | * code. 28 | * 29 | * @return CancelResponse 30 | **/ 31 | public CancelResponse code(String code) { 32 | this.code = code; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get code. 38 | * @return code 39 | **/ 40 | @Schema(description = "") 41 | public String getCode() { 42 | return code; 43 | } 44 | 45 | /** 46 | * setCode. 47 | **/ 48 | public void setCode(String code) { 49 | this.code = code; 50 | } 51 | 52 | 53 | /** 54 | * message. 55 | * 56 | * @return CancelResponse 57 | **/ 58 | public CancelResponse message(String message) { 59 | this.message = message; 60 | return this; 61 | } 62 | 63 | /** 64 | * Get message. 65 | * @return message 66 | **/ 67 | @Schema(required = true, description = "") 68 | public String getMessage() { 69 | return message; 70 | } 71 | 72 | /** 73 | * setMessage. 74 | **/ 75 | public void setMessage(String message) { 76 | this.message = message; 77 | } 78 | 79 | 80 | /** 81 | * Compares objects. 82 | * 83 | * @return true or false depending on comparison result. 84 | */ 85 | @Override 86 | public boolean equals(java.lang.Object o) { 87 | if (this == o) { 88 | return true; 89 | } 90 | if (o == null || getClass() != o.getClass()) { 91 | return false; 92 | } 93 | CancelResponse cancelResponse = (CancelResponse) o; 94 | return Objects.equals(this.code, cancelResponse.code) && 95 | Objects.equals(this.message, cancelResponse.message); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(code, message); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class CancelResponse {\n"); 114 | 115 | sb.append(" code: ").append(toIndentedString(code)).append("\n"); 116 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 117 | sb.append("}"); 118 | return sb.toString(); 119 | } 120 | 121 | /** 122 | * Convert the given object to string with each line indented by 4 spaces 123 | * (except the first line). 124 | */ 125 | private String toIndentedString(java.lang.Object o) { 126 | if (o == null) { 127 | return "null"; 128 | } 129 | return o.toString().replace("\n", "\n "); 130 | } 131 | 132 | } 133 | 134 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ValidationErrors.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * ValidationErrors. 13 | * 14 | */ 15 | 16 | public class ValidationErrors implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("code") 20 | private String code = null; 21 | 22 | @JsonProperty("message") 23 | private String message = null; 24 | 25 | 26 | /** 27 | * code. 28 | * 29 | * @return ValidationErrors 30 | **/ 31 | public ValidationErrors code(String code) { 32 | this.code = code; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get code. 38 | * @return code 39 | **/ 40 | @Schema(required = true, description = "") 41 | public String getCode() { 42 | return code; 43 | } 44 | 45 | /** 46 | * setCode. 47 | **/ 48 | public void setCode(String code) { 49 | this.code = code; 50 | } 51 | 52 | 53 | /** 54 | * message. 55 | * 56 | * @return ValidationErrors 57 | **/ 58 | public ValidationErrors message(String message) { 59 | this.message = message; 60 | return this; 61 | } 62 | 63 | /** 64 | * Get message. 65 | * @return message 66 | **/ 67 | @Schema(required = true, description = "") 68 | public String getMessage() { 69 | return message; 70 | } 71 | 72 | /** 73 | * setMessage. 74 | **/ 75 | public void setMessage(String message) { 76 | this.message = message; 77 | } 78 | 79 | 80 | /** 81 | * Compares objects. 82 | * 83 | * @return true or false depending on comparison result. 84 | */ 85 | @Override 86 | public boolean equals(java.lang.Object o) { 87 | if (this == o) { 88 | return true; 89 | } 90 | if (o == null || getClass() != o.getClass()) { 91 | return false; 92 | } 93 | ValidationErrors validationErrors = (ValidationErrors) o; 94 | return Objects.equals(this.code, validationErrors.code) && 95 | Objects.equals(this.message, validationErrors.message); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(code, message); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class ValidationErrors {\n"); 114 | 115 | sb.append(" code: ").append(toIndentedString(code)).append("\n"); 116 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 117 | sb.append("}"); 118 | return sb.toString(); 119 | } 120 | 121 | /** 122 | * Convert the given object to string with each line indented by 4 spaces 123 | * (except the first line). 124 | */ 125 | private String toIndentedString(java.lang.Object o) { 126 | if (o == null) { 127 | return "null"; 128 | } 129 | return o.toString().replace("\n", "\n "); 130 | } 131 | 132 | } 133 | 134 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowStepErrorError.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * WorkflowStepErrorError. 13 | * 14 | */ 15 | 16 | public class WorkflowStepErrorError implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("code") 20 | private String code = null; 21 | 22 | @JsonProperty("message") 23 | private String message = null; 24 | 25 | 26 | /** 27 | * code. 28 | * 29 | * @return WorkflowStepErrorError 30 | **/ 31 | public WorkflowStepErrorError code(String code) { 32 | this.code = code; 33 | return this; 34 | } 35 | 36 | /** 37 | * The Error Code Message. 38 | * @return code 39 | **/ 40 | @Schema(description = "The Error Code Message") 41 | public String getCode() { 42 | return code; 43 | } 44 | 45 | /** 46 | * setCode. 47 | **/ 48 | public void setCode(String code) { 49 | this.code = code; 50 | } 51 | 52 | 53 | /** 54 | * message. 55 | * 56 | * @return WorkflowStepErrorError 57 | **/ 58 | public WorkflowStepErrorError message(String message) { 59 | this.message = message; 60 | return this; 61 | } 62 | 63 | /** 64 | * Error Message which shares more details. 65 | * @return message 66 | **/ 67 | @Schema(description = "Error Message which shares more details") 68 | public String getMessage() { 69 | return message; 70 | } 71 | 72 | /** 73 | * setMessage. 74 | **/ 75 | public void setMessage(String message) { 76 | this.message = message; 77 | } 78 | 79 | 80 | /** 81 | * Compares objects. 82 | * 83 | * @return true or false depending on comparison result. 84 | */ 85 | @Override 86 | public boolean equals(java.lang.Object o) { 87 | if (this == o) { 88 | return true; 89 | } 90 | if (o == null || getClass() != o.getClass()) { 91 | return false; 92 | } 93 | WorkflowStepErrorError workflowStepErrorError = (WorkflowStepErrorError) o; 94 | return Objects.equals(this.code, workflowStepErrorError.code) && 95 | Objects.equals(this.message, workflowStepErrorError.message); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(code, message); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class WorkflowStepErrorError {\n"); 114 | 115 | sb.append(" code: ").append(toIndentedString(code)).append("\n"); 116 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 117 | sb.append("}"); 118 | return sb.toString(); 119 | } 120 | 121 | /** 122 | * Convert the given object to string with each line indented by 4 spaces 123 | * (except the first line). 124 | */ 125 | private String toIndentedString(java.lang.Object o) { 126 | if (o == null) { 127 | return "null"; 128 | } 129 | return o.toString().replace("\n", "\n "); 130 | } 131 | 132 | } 133 | 134 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ErrorResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.ErrorCodes; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * Returns error with a status message. 14 | * 15 | */ 16 | @Schema(description = "Returns error with a status message") 17 | 18 | public class ErrorResponse implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("errorCode") 22 | private ErrorCodes errorCode = null; 23 | 24 | @JsonProperty("message") 25 | private String message = null; 26 | 27 | 28 | /** 29 | * errorCode. 30 | * 31 | * @return ErrorResponse 32 | **/ 33 | public ErrorResponse errorCode(ErrorCodes errorCode) { 34 | this.errorCode = errorCode; 35 | return this; 36 | } 37 | 38 | /** 39 | * Get errorCode. 40 | * @return errorCode 41 | **/ 42 | @Schema(description = "") 43 | public ErrorCodes getErrorCode() { 44 | return errorCode; 45 | } 46 | 47 | /** 48 | * setErrorCode. 49 | **/ 50 | public void setErrorCode(ErrorCodes errorCode) { 51 | this.errorCode = errorCode; 52 | } 53 | 54 | 55 | /** 56 | * message. 57 | * 58 | * @return ErrorResponse 59 | **/ 60 | public ErrorResponse message(String message) { 61 | this.message = message; 62 | return this; 63 | } 64 | 65 | /** 66 | * Get message. 67 | * @return message 68 | **/ 69 | @Schema(description = "") 70 | public String getMessage() { 71 | return message; 72 | } 73 | 74 | /** 75 | * setMessage. 76 | **/ 77 | public void setMessage(String message) { 78 | this.message = message; 79 | } 80 | 81 | 82 | /** 83 | * Compares objects. 84 | * 85 | * @return true or false depending on comparison result. 86 | */ 87 | @Override 88 | public boolean equals(java.lang.Object o) { 89 | if (this == o) { 90 | return true; 91 | } 92 | if (o == null || getClass() != o.getClass()) { 93 | return false; 94 | } 95 | ErrorResponse errorResponse = (ErrorResponse) o; 96 | return Objects.equals(this.errorCode, errorResponse.errorCode) && 97 | Objects.equals(this.message, errorResponse.message); 98 | } 99 | 100 | /** 101 | * Returns the HashCode. 102 | */ 103 | @Override 104 | public int hashCode() { 105 | return Objects.hash(errorCode, message); 106 | } 107 | 108 | 109 | /** 110 | * Converts the given object to string. 111 | */ 112 | @Override 113 | public String toString() { 114 | StringBuilder sb = new StringBuilder(); 115 | sb.append("class ErrorResponse {\n"); 116 | 117 | sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); 118 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 119 | sb.append("}"); 120 | return sb.toString(); 121 | } 122 | 123 | /** 124 | * Convert the given object to string with each line indented by 4 spaces 125 | * (except the first line). 126 | */ 127 | private String toIndentedString(java.lang.Object o) { 128 | if (o == null) { 129 | return "null"; 130 | } 131 | return o.toString().replace("\n", "\n "); 132 | } 133 | 134 | } 135 | 136 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * WorkflowDeleteResponse. 13 | * 14 | */ 15 | 16 | public class WorkflowDeleteResponse implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("pollUrl") 20 | private String pollUrl = null; 21 | 22 | @JsonProperty("workflowDefinitionId") 23 | private String workflowDefinitionId = null; 24 | 25 | 26 | /** 27 | * pollUrl. 28 | * 29 | * @return WorkflowDeleteResponse 30 | **/ 31 | public WorkflowDeleteResponse pollUrl(String pollUrl) { 32 | this.pollUrl = pollUrl; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get pollUrl. 38 | * @return pollUrl 39 | **/ 40 | @Schema(required = true, description = "") 41 | public String getPollUrl() { 42 | return pollUrl; 43 | } 44 | 45 | /** 46 | * setPollUrl. 47 | **/ 48 | public void setPollUrl(String pollUrl) { 49 | this.pollUrl = pollUrl; 50 | } 51 | 52 | 53 | /** 54 | * workflowDefinitionId. 55 | * 56 | * @return WorkflowDeleteResponse 57 | **/ 58 | public WorkflowDeleteResponse workflowDefinitionId(String workflowDefinitionId) { 59 | this.workflowDefinitionId = workflowDefinitionId; 60 | return this; 61 | } 62 | 63 | /** 64 | * Get workflowDefinitionId. 65 | * @return workflowDefinitionId 66 | **/ 67 | @Schema(required = true, description = "") 68 | public String getWorkflowDefinitionId() { 69 | return workflowDefinitionId; 70 | } 71 | 72 | /** 73 | * setWorkflowDefinitionId. 74 | **/ 75 | public void setWorkflowDefinitionId(String workflowDefinitionId) { 76 | this.workflowDefinitionId = workflowDefinitionId; 77 | } 78 | 79 | 80 | /** 81 | * Compares objects. 82 | * 83 | * @return true or false depending on comparison result. 84 | */ 85 | @Override 86 | public boolean equals(java.lang.Object o) { 87 | if (this == o) { 88 | return true; 89 | } 90 | if (o == null || getClass() != o.getClass()) { 91 | return false; 92 | } 93 | WorkflowDeleteResponse workflowDeleteResponse = (WorkflowDeleteResponse) o; 94 | return Objects.equals(this.pollUrl, workflowDeleteResponse.pollUrl) && 95 | Objects.equals(this.workflowDefinitionId, workflowDeleteResponse.workflowDefinitionId); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(pollUrl, workflowDefinitionId); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class WorkflowDeleteResponse {\n"); 114 | 115 | sb.append(" pollUrl: ").append(toIndentedString(pollUrl)).append("\n"); 116 | sb.append(" workflowDefinitionId: ").append(toIndentedString(workflowDefinitionId)).append("\n"); 117 | sb.append("}"); 118 | return sb.toString(); 119 | } 120 | 121 | /** 122 | * Convert the given object to string with each line indented by 4 spaces 123 | * (except the first line). 124 | */ 125 | private String toIndentedString(java.lang.Object o) { 126 | if (o == null) { 127 | return "null"; 128 | } 129 | return o.toString().replace("\n", "\n "); 130 | } 131 | 132 | } 133 | 134 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/GetConfigurationInstancesResponseConfigInstances.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * GetConfigurationInstancesResponseConfigInstances. 13 | * 14 | */ 15 | 16 | public class GetConfigurationInstancesResponseConfigInstances implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("savedValues") 20 | private Object savedValues = null; 21 | 22 | @JsonProperty("stepId") 23 | private String stepId = null; 24 | 25 | 26 | /** 27 | * savedValues. 28 | * 29 | * @return GetConfigurationInstancesResponseConfigInstances 30 | **/ 31 | public GetConfigurationInstancesResponseConfigInstances savedValues(Object savedValues) { 32 | this.savedValues = savedValues; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get savedValues. 38 | * @return savedValues 39 | **/ 40 | @Schema(description = "") 41 | public Object getSavedValues() { 42 | return savedValues; 43 | } 44 | 45 | /** 46 | * setSavedValues. 47 | **/ 48 | public void setSavedValues(Object savedValues) { 49 | this.savedValues = savedValues; 50 | } 51 | 52 | 53 | /** 54 | * stepId. 55 | * 56 | * @return GetConfigurationInstancesResponseConfigInstances 57 | **/ 58 | public GetConfigurationInstancesResponseConfigInstances stepId(String stepId) { 59 | this.stepId = stepId; 60 | return this; 61 | } 62 | 63 | /** 64 | * Get stepId. 65 | * @return stepId 66 | **/ 67 | @Schema(description = "") 68 | public String getStepId() { 69 | return stepId; 70 | } 71 | 72 | /** 73 | * setStepId. 74 | **/ 75 | public void setStepId(String stepId) { 76 | this.stepId = stepId; 77 | } 78 | 79 | 80 | /** 81 | * Compares objects. 82 | * 83 | * @return true or false depending on comparison result. 84 | */ 85 | @Override 86 | public boolean equals(java.lang.Object o) { 87 | if (this == o) { 88 | return true; 89 | } 90 | if (o == null || getClass() != o.getClass()) { 91 | return false; 92 | } 93 | GetConfigurationInstancesResponseConfigInstances getConfigurationInstancesResponseConfigInstances = (GetConfigurationInstancesResponseConfigInstances) o; 94 | return Objects.equals(this.savedValues, getConfigurationInstancesResponseConfigInstances.savedValues) && 95 | Objects.equals(this.stepId, getConfigurationInstancesResponseConfigInstances.stepId); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(savedValues, stepId); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class GetConfigurationInstancesResponseConfigInstances {\n"); 114 | 115 | sb.append(" savedValues: ").append(toIndentedString(savedValues)).append("\n"); 116 | sb.append(" stepId: ").append(toIndentedString(stepId)).append("\n"); 117 | sb.append("}"); 118 | return sb.toString(); 119 | } 120 | 121 | /** 122 | * Convert the given object to string with each line indented by 4 spaces 123 | * (except the first line). 124 | */ 125 | private String toIndentedString(java.lang.Object o) { 126 | if (o == null) { 127 | return "null"; 128 | } 129 | return o.toString().replace("\n", "\n "); 130 | } 131 | 132 | } 133 | 134 | -------------------------------------------------------------------------------- /stylesheets/github-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016 GitHub, Inc. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | */ 25 | 26 | .pl-c /* comment */ { 27 | color: #969896; 28 | } 29 | 30 | .pl-c1 /* constant, variable.other.constant, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header */, 31 | .pl-s .pl-v /* string variable */ { 32 | color: #0086b3; 33 | } 34 | 35 | .pl-e /* entity */, 36 | .pl-en /* entity.name */ { 37 | color: #795da3; 38 | } 39 | 40 | .pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */, 41 | .pl-s .pl-s1 /* string source */ { 42 | color: #333; 43 | } 44 | 45 | .pl-ent /* entity.name.tag */ { 46 | color: #63a35c; 47 | } 48 | 49 | .pl-k /* keyword, storage, storage.type */ { 50 | color: #a71d5d; 51 | } 52 | 53 | .pl-s /* string */, 54 | .pl-pds /* punctuation.definition.string, string.regexp.character-class */, 55 | .pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, 56 | .pl-sr /* string.regexp */, 57 | .pl-sr .pl-cce /* string.regexp constant.character.escape */, 58 | .pl-sr .pl-sre /* string.regexp source.ruby.embedded */, 59 | .pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ { 60 | color: #183691; 61 | } 62 | 63 | .pl-v /* variable */ { 64 | color: #ed6a43; 65 | } 66 | 67 | .pl-id /* invalid.deprecated */ { 68 | color: #b52a1d; 69 | } 70 | 71 | .pl-ii /* invalid.illegal */ { 72 | color: #f8f8f8; 73 | background-color: #b52a1d; 74 | } 75 | 76 | .pl-sr .pl-cce /* string.regexp constant.character.escape */ { 77 | font-weight: bold; 78 | color: #63a35c; 79 | } 80 | 81 | .pl-ml /* markup.list */ { 82 | color: #693a17; 83 | } 84 | 85 | .pl-mh /* markup.heading */, 86 | .pl-mh .pl-en /* markup.heading entity.name */, 87 | .pl-ms /* meta.separator */ { 88 | font-weight: bold; 89 | color: #1d3e81; 90 | } 91 | 92 | .pl-mq /* markup.quote */ { 93 | color: #008080; 94 | } 95 | 96 | .pl-mi /* markup.italic */ { 97 | font-style: italic; 98 | color: #333; 99 | } 100 | 101 | .pl-mb /* markup.bold */ { 102 | font-weight: bold; 103 | color: #333; 104 | } 105 | 106 | .pl-md /* markup.deleted, meta.diff.header.from-file */ { 107 | color: #bd2c00; 108 | background-color: #ffecec; 109 | } 110 | 111 | .pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { 112 | color: #55a532; 113 | background-color: #eaffea; 114 | } 115 | 116 | .pl-mdr /* meta.diff.range */ { 117 | font-weight: bold; 118 | color: #795da3; 119 | } 120 | 121 | .pl-mo /* meta.output */ { 122 | color: #1d3e81; 123 | } 124 | 125 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/TriggerWorkflowViaPostResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * Trigger workflow via POST response details. 13 | * 14 | */ 15 | @Schema(description = "Trigger workflow via POST response details") 16 | 17 | public class TriggerWorkflowViaPostResponse implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("instanceId") 21 | private String instanceId = null; 22 | 23 | @JsonProperty("workflowInstanceUrl") 24 | private String workflowInstanceUrl = null; 25 | 26 | 27 | /** 28 | * instanceId. 29 | * 30 | * @return TriggerWorkflowViaPostResponse 31 | **/ 32 | public TriggerWorkflowViaPostResponse instanceId(String instanceId) { 33 | this.instanceId = instanceId; 34 | return this; 35 | } 36 | 37 | /** 38 | * Get instanceId. 39 | * @return instanceId 40 | **/ 41 | @Schema(description = "") 42 | public String getInstanceId() { 43 | return instanceId; 44 | } 45 | 46 | /** 47 | * setInstanceId. 48 | **/ 49 | public void setInstanceId(String instanceId) { 50 | this.instanceId = instanceId; 51 | } 52 | 53 | 54 | /** 55 | * workflowInstanceUrl. 56 | * 57 | * @return TriggerWorkflowViaPostResponse 58 | **/ 59 | public TriggerWorkflowViaPostResponse workflowInstanceUrl(String workflowInstanceUrl) { 60 | this.workflowInstanceUrl = workflowInstanceUrl; 61 | return this; 62 | } 63 | 64 | /** 65 | * Instance specific url that can be used to be redirected to a workflow instance. 66 | * @return workflowInstanceUrl 67 | **/ 68 | @Schema(description = "Instance specific url that can be used to be redirected to a workflow instance") 69 | public String getWorkflowInstanceUrl() { 70 | return workflowInstanceUrl; 71 | } 72 | 73 | /** 74 | * setWorkflowInstanceUrl. 75 | **/ 76 | public void setWorkflowInstanceUrl(String workflowInstanceUrl) { 77 | this.workflowInstanceUrl = workflowInstanceUrl; 78 | } 79 | 80 | 81 | /** 82 | * Compares objects. 83 | * 84 | * @return true or false depending on comparison result. 85 | */ 86 | @Override 87 | public boolean equals(java.lang.Object o) { 88 | if (this == o) { 89 | return true; 90 | } 91 | if (o == null || getClass() != o.getClass()) { 92 | return false; 93 | } 94 | TriggerWorkflowViaPostResponse triggerWorkflowViaPostResponse = (TriggerWorkflowViaPostResponse) o; 95 | return Objects.equals(this.instanceId, triggerWorkflowViaPostResponse.instanceId) && 96 | Objects.equals(this.workflowInstanceUrl, triggerWorkflowViaPostResponse.workflowInstanceUrl); 97 | } 98 | 99 | /** 100 | * Returns the HashCode. 101 | */ 102 | @Override 103 | public int hashCode() { 104 | return Objects.hash(instanceId, workflowInstanceUrl); 105 | } 106 | 107 | 108 | /** 109 | * Converts the given object to string. 110 | */ 111 | @Override 112 | public String toString() { 113 | StringBuilder sb = new StringBuilder(); 114 | sb.append("class TriggerWorkflowViaPostResponse {\n"); 115 | 116 | sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); 117 | sb.append(" workflowInstanceUrl: ").append(toIndentedString(workflowInstanceUrl)).append("\n"); 118 | sb.append("}"); 119 | return sb.toString(); 120 | } 121 | 122 | /** 123 | * Convert the given object to string with each line indented by 4 spaces 124 | * (except the first line). 125 | */ 126 | private String toIndentedString(java.lang.Object o) { 127 | if (o == null) { 128 | return "null"; 129 | } 130 | return o.toString().replace("\n", "\n "); 131 | } 132 | 133 | } 134 | 135 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/InvalidWorkflowResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.ValidationErrors; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * InvalidWorkflowResponse. 14 | * 15 | */ 16 | 17 | public class InvalidWorkflowResponse implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("message") 21 | private String message = null; 22 | 23 | @JsonProperty("validationErrors") 24 | private java.util.List validationErrors = new java.util.ArrayList<>(); 25 | 26 | 27 | /** 28 | * message. 29 | * 30 | * @return InvalidWorkflowResponse 31 | **/ 32 | public InvalidWorkflowResponse message(String message) { 33 | this.message = message; 34 | return this; 35 | } 36 | 37 | /** 38 | * Get message. 39 | * @return message 40 | **/ 41 | @Schema(required = true, description = "") 42 | public String getMessage() { 43 | return message; 44 | } 45 | 46 | /** 47 | * setMessage. 48 | **/ 49 | public void setMessage(String message) { 50 | this.message = message; 51 | } 52 | 53 | 54 | /** 55 | * validationErrors. 56 | * 57 | * @return InvalidWorkflowResponse 58 | **/ 59 | public InvalidWorkflowResponse validationErrors(java.util.List validationErrors) { 60 | this.validationErrors = validationErrors; 61 | return this; 62 | } 63 | 64 | /** 65 | * addValidationErrorsItem. 66 | * 67 | * @return InvalidWorkflowResponse 68 | **/ 69 | public InvalidWorkflowResponse addValidationErrorsItem(ValidationErrors validationErrorsItem) { 70 | this.validationErrors.add(validationErrorsItem); 71 | return this; 72 | } 73 | 74 | /** 75 | * Get validationErrors. 76 | * @return validationErrors 77 | **/ 78 | @Schema(required = true, description = "") 79 | public java.util.List getValidationErrors() { 80 | return validationErrors; 81 | } 82 | 83 | /** 84 | * setValidationErrors. 85 | **/ 86 | public void setValidationErrors(java.util.List validationErrors) { 87 | this.validationErrors = validationErrors; 88 | } 89 | 90 | 91 | /** 92 | * Compares objects. 93 | * 94 | * @return true or false depending on comparison result. 95 | */ 96 | @Override 97 | public boolean equals(java.lang.Object o) { 98 | if (this == o) { 99 | return true; 100 | } 101 | if (o == null || getClass() != o.getClass()) { 102 | return false; 103 | } 104 | InvalidWorkflowResponse invalidWorkflowResponse = (InvalidWorkflowResponse) o; 105 | return Objects.equals(this.message, invalidWorkflowResponse.message) && 106 | Objects.equals(this.validationErrors, invalidWorkflowResponse.validationErrors); 107 | } 108 | 109 | /** 110 | * Returns the HashCode. 111 | */ 112 | @Override 113 | public int hashCode() { 114 | return Objects.hash(message, validationErrors); 115 | } 116 | 117 | 118 | /** 119 | * Converts the given object to string. 120 | */ 121 | @Override 122 | public String toString() { 123 | StringBuilder sb = new StringBuilder(); 124 | sb.append("class InvalidWorkflowResponse {\n"); 125 | 126 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 127 | sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n"); 128 | sb.append("}"); 129 | return sb.toString(); 130 | } 131 | 132 | /** 133 | * Convert the given object to string with each line indented by 4 spaces 134 | * (except the first line). 135 | */ 136 | private String toIndentedString(java.lang.Object o) { 137 | if (o == null) { 138 | return "null"; 139 | } 140 | return o.toString().replace("\n", "\n "); 141 | } 142 | 143 | } 144 | 145 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowLane.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * DSWorkflowLane. 13 | * 14 | */ 15 | 16 | public class DSWorkflowLane implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("laneId") 20 | private String laneId = null; 21 | 22 | @JsonProperty("laneSteps") 23 | private java.util.List laneSteps = new java.util.ArrayList<>(); 24 | 25 | 26 | /** 27 | * laneId. 28 | * 29 | * @return DSWorkflowLane 30 | **/ 31 | public DSWorkflowLane laneId(String laneId) { 32 | this.laneId = laneId; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get laneId. 38 | * @return laneId 39 | **/ 40 | @Schema(required = true, description = "") 41 | public String getLaneId() { 42 | return laneId; 43 | } 44 | 45 | /** 46 | * setLaneId. 47 | **/ 48 | public void setLaneId(String laneId) { 49 | this.laneId = laneId; 50 | } 51 | 52 | 53 | /** 54 | * laneSteps. 55 | * 56 | * @return DSWorkflowLane 57 | **/ 58 | public DSWorkflowLane laneSteps(java.util.List laneSteps) { 59 | this.laneSteps = laneSteps; 60 | return this; 61 | } 62 | 63 | /** 64 | * addLaneStepsItem. 65 | * 66 | * @return DSWorkflowLane 67 | **/ 68 | public DSWorkflowLane addLaneStepsItem(Object laneStepsItem) { 69 | this.laneSteps.add(laneStepsItem); 70 | return this; 71 | } 72 | 73 | /** 74 | * A list of #/definitions/DSWorkflowStep. Each element is: A DS Workflow Step. This object should be any of the following object models: [#/definitions/DSServiceStep, #/definitions/DSTransformationStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]. 75 | * @return laneSteps 76 | **/ 77 | @Schema(required = true, description = "A list of #/definitions/DSWorkflowStep. Each element is: A DS Workflow Step. This object should be any of the following object models: [#/definitions/DSServiceStep, #/definitions/DSTransformationStep, #/definitions/DSDocGenStep, #/definitions/DSSignStep]") 78 | public java.util.List getLaneSteps() { 79 | return laneSteps; 80 | } 81 | 82 | /** 83 | * setLaneSteps. 84 | **/ 85 | public void setLaneSteps(java.util.List laneSteps) { 86 | this.laneSteps = laneSteps; 87 | } 88 | 89 | 90 | /** 91 | * Compares objects. 92 | * 93 | * @return true or false depending on comparison result. 94 | */ 95 | @Override 96 | public boolean equals(java.lang.Object o) { 97 | if (this == o) { 98 | return true; 99 | } 100 | if (o == null || getClass() != o.getClass()) { 101 | return false; 102 | } 103 | DSWorkflowLane dsWorkflowLane = (DSWorkflowLane) o; 104 | return Objects.equals(this.laneId, dsWorkflowLane.laneId) && 105 | Objects.equals(this.laneSteps, dsWorkflowLane.laneSteps); 106 | } 107 | 108 | /** 109 | * Returns the HashCode. 110 | */ 111 | @Override 112 | public int hashCode() { 113 | return Objects.hash(laneId, laneSteps); 114 | } 115 | 116 | 117 | /** 118 | * Converts the given object to string. 119 | */ 120 | @Override 121 | public String toString() { 122 | StringBuilder sb = new StringBuilder(); 123 | sb.append("class DSWorkflowLane {\n"); 124 | 125 | sb.append(" laneId: ").append(toIndentedString(laneId)).append("\n"); 126 | sb.append(" laneSteps: ").append(toIndentedString(laneSteps)).append("\n"); 127 | sb.append("}"); 128 | return sb.toString(); 129 | } 130 | 131 | /** 132 | * Convert the given object to string with each line indented by 4 spaces 133 | * (except the first line). 134 | */ 135 | private String toIndentedString(java.lang.Object o) { 136 | if (o == null) { 137 | return "null"; 138 | } 139 | return o.toString().replace("\n", "\n "); 140 | } 141 | 142 | } 143 | 144 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowToLowerExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowTransformationExpressionTypesToLowerExpression; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DSWorkflowToLowerExpression. 14 | * 15 | */ 16 | 17 | public class DSWorkflowToLowerExpression implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("text") 21 | private Object text = null; 22 | 23 | @JsonProperty("type") 24 | private DSWorkflowTransformationExpressionTypesToLowerExpression type = null; 25 | 26 | 27 | /** 28 | * text. 29 | * 30 | * @return DSWorkflowToLowerExpression 31 | **/ 32 | public DSWorkflowToLowerExpression text(Object text) { 33 | this.text = text; 34 | return this; 35 | } 36 | 37 | /** 38 | * Reference of #/definitions/StringOrVariableOrTransformation. Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]. 39 | * @return text 40 | **/ 41 | @Schema(required = true, description = "Reference of #/definitions/StringOrVariableOrTransformation. Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]") 42 | public Object getText() { 43 | return text; 44 | } 45 | 46 | /** 47 | * setText. 48 | **/ 49 | public void setText(Object text) { 50 | this.text = text; 51 | } 52 | 53 | 54 | /** 55 | * type. 56 | * 57 | * @return DSWorkflowToLowerExpression 58 | **/ 59 | public DSWorkflowToLowerExpression type(DSWorkflowTransformationExpressionTypesToLowerExpression type) { 60 | this.type = type; 61 | return this; 62 | } 63 | 64 | /** 65 | * Get type. 66 | * @return type 67 | **/ 68 | @Schema(required = true, description = "") 69 | public DSWorkflowTransformationExpressionTypesToLowerExpression getType() { 70 | return type; 71 | } 72 | 73 | /** 74 | * setType. 75 | **/ 76 | public void setType(DSWorkflowTransformationExpressionTypesToLowerExpression type) { 77 | this.type = type; 78 | } 79 | 80 | 81 | /** 82 | * Compares objects. 83 | * 84 | * @return true or false depending on comparison result. 85 | */ 86 | @Override 87 | public boolean equals(java.lang.Object o) { 88 | if (this == o) { 89 | return true; 90 | } 91 | if (o == null || getClass() != o.getClass()) { 92 | return false; 93 | } 94 | DSWorkflowToLowerExpression dsWorkflowToLowerExpression = (DSWorkflowToLowerExpression) o; 95 | return Objects.equals(this.text, dsWorkflowToLowerExpression.text) && 96 | Objects.equals(this.type, dsWorkflowToLowerExpression.type); 97 | } 98 | 99 | /** 100 | * Returns the HashCode. 101 | */ 102 | @Override 103 | public int hashCode() { 104 | return Objects.hash(text, type); 105 | } 106 | 107 | 108 | /** 109 | * Converts the given object to string. 110 | */ 111 | @Override 112 | public String toString() { 113 | StringBuilder sb = new StringBuilder(); 114 | sb.append("class DSWorkflowToLowerExpression {\n"); 115 | 116 | sb.append(" text: ").append(toIndentedString(text)).append("\n"); 117 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 118 | sb.append("}"); 119 | return sb.toString(); 120 | } 121 | 122 | /** 123 | * Convert the given object to string with each line indented by 4 spaces 124 | * (except the first line). 125 | */ 126 | private String toIndentedString(java.lang.Object o) { 127 | if (o == null) { 128 | return "null"; 129 | } 130 | return o.toString().replace("\n", "\n "); 131 | } 132 | 133 | } 134 | 135 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowToUpperExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowTransformationExpressionTypesToUpperExpression; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DSWorkflowToUpperExpression. 14 | * 15 | */ 16 | 17 | public class DSWorkflowToUpperExpression implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("text") 21 | private Object text = null; 22 | 23 | @JsonProperty("type") 24 | private DSWorkflowTransformationExpressionTypesToUpperExpression type = null; 25 | 26 | 27 | /** 28 | * text. 29 | * 30 | * @return DSWorkflowToUpperExpression 31 | **/ 32 | public DSWorkflowToUpperExpression text(Object text) { 33 | this.text = text; 34 | return this; 35 | } 36 | 37 | /** 38 | * Reference of #/definitions/StringOrVariableOrTransformation. Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]. 39 | * @return text 40 | **/ 41 | @Schema(required = true, description = "Reference of #/definitions/StringOrVariableOrTransformation. Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]") 42 | public Object getText() { 43 | return text; 44 | } 45 | 46 | /** 47 | * setText. 48 | **/ 49 | public void setText(Object text) { 50 | this.text = text; 51 | } 52 | 53 | 54 | /** 55 | * type. 56 | * 57 | * @return DSWorkflowToUpperExpression 58 | **/ 59 | public DSWorkflowToUpperExpression type(DSWorkflowTransformationExpressionTypesToUpperExpression type) { 60 | this.type = type; 61 | return this; 62 | } 63 | 64 | /** 65 | * Get type. 66 | * @return type 67 | **/ 68 | @Schema(required = true, description = "") 69 | public DSWorkflowTransformationExpressionTypesToUpperExpression getType() { 70 | return type; 71 | } 72 | 73 | /** 74 | * setType. 75 | **/ 76 | public void setType(DSWorkflowTransformationExpressionTypesToUpperExpression type) { 77 | this.type = type; 78 | } 79 | 80 | 81 | /** 82 | * Compares objects. 83 | * 84 | * @return true or false depending on comparison result. 85 | */ 86 | @Override 87 | public boolean equals(java.lang.Object o) { 88 | if (this == o) { 89 | return true; 90 | } 91 | if (o == null || getClass() != o.getClass()) { 92 | return false; 93 | } 94 | DSWorkflowToUpperExpression dsWorkflowToUpperExpression = (DSWorkflowToUpperExpression) o; 95 | return Objects.equals(this.text, dsWorkflowToUpperExpression.text) && 96 | Objects.equals(this.type, dsWorkflowToUpperExpression.type); 97 | } 98 | 99 | /** 100 | * Returns the HashCode. 101 | */ 102 | @Override 103 | public int hashCode() { 104 | return Objects.hash(text, type); 105 | } 106 | 107 | 108 | /** 109 | * Converts the given object to string. 110 | */ 111 | @Override 112 | public String toString() { 113 | StringBuilder sb = new StringBuilder(); 114 | sb.append("class DSWorkflowToUpperExpression {\n"); 115 | 116 | sb.append(" text: ").append(toIndentedString(text)).append("\n"); 117 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 118 | sb.append("}"); 119 | return sb.toString(); 120 | } 121 | 122 | /** 123 | * Convert the given object to string with each line indented by 4 spaces 124 | * (except the first line). 125 | */ 126 | private String toIndentedString(java.lang.Object o) { 127 | if (o == null) { 128 | return "null"; 129 | } 130 | return o.toString().replace("\n", "\n "); 131 | } 132 | 133 | } 134 | 135 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/WorkflowDefinitionList.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.WorkflowDefinitionMetadata; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.math.BigDecimal; 11 | import java.io.Serializable; 12 | 13 | /** 14 | * Returns a list of workflow definitions' metadata (0 or more).. 15 | * 16 | */ 17 | @Schema(description = "Returns a list of workflow definitions' metadata (0 or more).") 18 | 19 | public class WorkflowDefinitionList implements Serializable { 20 | private static final long serialVersionUID = 1L; 21 | 22 | @JsonProperty("count") 23 | private BigDecimal count = null; 24 | 25 | @JsonProperty("value") 26 | private java.util.List value = null; 27 | 28 | 29 | /** 30 | * count. 31 | * 32 | * @return WorkflowDefinitionList 33 | **/ 34 | public WorkflowDefinitionList count(BigDecimal count) { 35 | this.count = count; 36 | return this; 37 | } 38 | 39 | /** 40 | * Total number of definitions returned. 41 | * @return count 42 | **/ 43 | @Schema(example = "1.0", description = "Total number of definitions returned") 44 | public BigDecimal getCount() { 45 | return count; 46 | } 47 | 48 | /** 49 | * setCount. 50 | **/ 51 | public void setCount(BigDecimal count) { 52 | this.count = count; 53 | } 54 | 55 | 56 | /** 57 | * value. 58 | * 59 | * @return WorkflowDefinitionList 60 | **/ 61 | public WorkflowDefinitionList value(java.util.List value) { 62 | this.value = value; 63 | return this; 64 | } 65 | 66 | /** 67 | * addValueItem. 68 | * 69 | * @return WorkflowDefinitionList 70 | **/ 71 | public WorkflowDefinitionList addValueItem(WorkflowDefinitionMetadata valueItem) { 72 | if (this.value == null) { 73 | this.value = new java.util.ArrayList<>(); 74 | } 75 | this.value.add(valueItem); 76 | return this; 77 | } 78 | 79 | /** 80 | * Array of workflow definition metadata. 81 | * @return value 82 | **/ 83 | @Schema(description = "Array of workflow definition metadata") 84 | public java.util.List getValue() { 85 | return value; 86 | } 87 | 88 | /** 89 | * setValue. 90 | **/ 91 | public void setValue(java.util.List value) { 92 | this.value = value; 93 | } 94 | 95 | 96 | /** 97 | * Compares objects. 98 | * 99 | * @return true or false depending on comparison result. 100 | */ 101 | @Override 102 | public boolean equals(java.lang.Object o) { 103 | if (this == o) { 104 | return true; 105 | } 106 | if (o == null || getClass() != o.getClass()) { 107 | return false; 108 | } 109 | WorkflowDefinitionList workflowDefinitionList = (WorkflowDefinitionList) o; 110 | return Objects.equals(this.count, workflowDefinitionList.count) && 111 | Objects.equals(this.value, workflowDefinitionList.value); 112 | } 113 | 114 | /** 115 | * Returns the HashCode. 116 | */ 117 | @Override 118 | public int hashCode() { 119 | return Objects.hash(count, value); 120 | } 121 | 122 | 123 | /** 124 | * Converts the given object to string. 125 | */ 126 | @Override 127 | public String toString() { 128 | StringBuilder sb = new StringBuilder(); 129 | sb.append("class WorkflowDefinitionList {\n"); 130 | 131 | sb.append(" count: ").append(toIndentedString(count)).append("\n"); 132 | sb.append(" value: ").append(toIndentedString(value)).append("\n"); 133 | sb.append("}"); 134 | return sb.toString(); 135 | } 136 | 137 | /** 138 | * Convert the given object to string with each line indented by 4 spaces 139 | * (except the first line). 140 | */ 141 | private String toIndentedString(java.lang.Object o) { 142 | if (o == null) { 143 | return "null"; 144 | } 145 | return o.toString().replace("\n", "\n "); 146 | } 147 | 148 | } 149 | 150 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/client/ApiException.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.maestro.client; 4 | 5 | import java.util.Map; 6 | import java.util.List; 7 | 8 | 9 | 10 | /** 11 | * ApiException class. 12 | */ 13 | public class ApiException extends Exception { 14 | private int code = 0; 15 | private Map> responseHeaders = null; 16 | private String responseBody = null; 17 | 18 | /** 19 | * ApiException constructor. 20 | */ 21 | public ApiException() {} 22 | 23 | /** 24 | * ApiException constructor. 25 | * 26 | * @param throwable The Throwable type 27 | */ 28 | public ApiException(Throwable throwable) { 29 | super(throwable); 30 | } 31 | 32 | /** 33 | * ApiException constructor. 34 | * 35 | * @param message The string message 36 | */ 37 | public ApiException(String message) { 38 | super(message); 39 | } 40 | 41 | /** 42 | * ApiException constructor. 43 | * 44 | * @param message The string message 45 | * @param throwable The Throwable type 46 | * @param code The error code 47 | * @param responseHeaders The response headers 48 | * @param responseBody The body of response 49 | */ 50 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { 51 | super(message, throwable); 52 | this.code = code; 53 | this.responseHeaders = responseHeaders; 54 | this.responseBody = responseBody; 55 | } 56 | 57 | /** 58 | * ApiException constructor. 59 | * 60 | * @param message The string message 61 | * @param code The error code 62 | * @param responseHeaders The response headers 63 | * @param responseBody The body of response 64 | */ 65 | public ApiException(String message, int code, Map> responseHeaders, String responseBody) { 66 | this(message, (Throwable) null, code, responseHeaders, responseBody); 67 | } 68 | 69 | /** 70 | * ApiException constructor. 71 | * 72 | * @param message The string message 73 | * @param throwable The Throwable type 74 | * @param code The error code 75 | * @param responseHeaders The response headers 76 | */ 77 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { 78 | this(message, throwable, code, responseHeaders, null); 79 | } 80 | 81 | /** 82 | * ApiException constructor. 83 | * 84 | * @param code The error code 85 | * @param responseHeaders The response headers 86 | * @param responseBody The body of response 87 | */ 88 | public ApiException(int code, Map> responseHeaders, String responseBody) { 89 | this((String) null, (Throwable) null, code, responseHeaders, responseBody); 90 | } 91 | 92 | /** 93 | * ApiException constructor. 94 | * 95 | * @param code The error code 96 | * @param message The string message 97 | */ 98 | public ApiException(int code, String message) { 99 | super(message); 100 | this.code = code; 101 | } 102 | 103 | /** 104 | * ApiException constructor. 105 | * 106 | * @param code The error code 107 | * @param message The string message 108 | * @param responseHeaders The response headers 109 | * @param responseBody The body of response 110 | */ 111 | public ApiException(int code, String message, Map> responseHeaders, String responseBody) { 112 | this(code, message); 113 | this.responseHeaders = responseHeaders; 114 | this.responseBody = responseBody; 115 | } 116 | 117 | /** 118 | * Get the HTTP status code. 119 | * 120 | * @return HTTP status code 121 | */ 122 | public int getCode() { 123 | return code; 124 | } 125 | 126 | /** 127 | * Get the HTTP response headers. 128 | * 129 | * @return A map of list of string 130 | */ 131 | public Map> getResponseHeaders() { 132 | return responseHeaders; 133 | } 134 | 135 | /** 136 | * Get the HTTP response body. 137 | * 138 | * @return Response body in the form of string 139 | */ 140 | public String getResponseBody() { 141 | return responseBody; 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowParallelExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowExpressionTypesParallelExpression; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DSWorkflowParallelExpression. 14 | * 15 | */ 16 | 17 | public class DSWorkflowParallelExpression implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("parallelCompletionSettings") 21 | private java.util.Map parallelCompletionSettings = new java.util.HashMap<>(); 22 | 23 | @JsonProperty("type") 24 | private DSWorkflowExpressionTypesParallelExpression type = null; 25 | 26 | 27 | /** 28 | * parallelCompletionSettings. 29 | * 30 | * @return DSWorkflowParallelExpression 31 | **/ 32 | public DSWorkflowParallelExpression parallelCompletionSettings(java.util.Map parallelCompletionSettings) { 33 | this.parallelCompletionSettings = parallelCompletionSettings; 34 | return this; 35 | } 36 | 37 | /** 38 | * putParallelCompletionSettingsItem. 39 | * 40 | * @return DSWorkflowParallelExpression 41 | **/ 42 | public DSWorkflowParallelExpression putParallelCompletionSettingsItem(String key, Boolean parallelCompletionSettingsItem) { 43 | this.parallelCompletionSettings.put(key, parallelCompletionSettingsItem); 44 | return this; 45 | } 46 | 47 | /** 48 | * Get parallelCompletionSettings. 49 | * @return parallelCompletionSettings 50 | **/ 51 | @Schema(required = true, description = "") 52 | public java.util.Map getParallelCompletionSettings() { 53 | return parallelCompletionSettings; 54 | } 55 | 56 | /** 57 | * setParallelCompletionSettings. 58 | **/ 59 | public void setParallelCompletionSettings(java.util.Map parallelCompletionSettings) { 60 | this.parallelCompletionSettings = parallelCompletionSettings; 61 | } 62 | 63 | 64 | /** 65 | * type. 66 | * 67 | * @return DSWorkflowParallelExpression 68 | **/ 69 | public DSWorkflowParallelExpression type(DSWorkflowExpressionTypesParallelExpression type) { 70 | this.type = type; 71 | return this; 72 | } 73 | 74 | /** 75 | * Get type. 76 | * @return type 77 | **/ 78 | @Schema(required = true, description = "") 79 | public DSWorkflowExpressionTypesParallelExpression getType() { 80 | return type; 81 | } 82 | 83 | /** 84 | * setType. 85 | **/ 86 | public void setType(DSWorkflowExpressionTypesParallelExpression type) { 87 | this.type = type; 88 | } 89 | 90 | 91 | /** 92 | * Compares objects. 93 | * 94 | * @return true or false depending on comparison result. 95 | */ 96 | @Override 97 | public boolean equals(java.lang.Object o) { 98 | if (this == o) { 99 | return true; 100 | } 101 | if (o == null || getClass() != o.getClass()) { 102 | return false; 103 | } 104 | DSWorkflowParallelExpression dsWorkflowParallelExpression = (DSWorkflowParallelExpression) o; 105 | return Objects.equals(this.parallelCompletionSettings, dsWorkflowParallelExpression.parallelCompletionSettings) && 106 | Objects.equals(this.type, dsWorkflowParallelExpression.type); 107 | } 108 | 109 | /** 110 | * Returns the HashCode. 111 | */ 112 | @Override 113 | public int hashCode() { 114 | return Objects.hash(parallelCompletionSettings, type); 115 | } 116 | 117 | 118 | /** 119 | * Converts the given object to string. 120 | */ 121 | @Override 122 | public String toString() { 123 | StringBuilder sb = new StringBuilder(); 124 | sb.append("class DSWorkflowParallelExpression {\n"); 125 | 126 | sb.append(" parallelCompletionSettings: ").append(toIndentedString(parallelCompletionSettings)).append("\n"); 127 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 128 | sb.append("}"); 129 | return sb.toString(); 130 | } 131 | 132 | /** 133 | * Convert the given object to string with each line indented by 4 spaces 134 | * (except the first line). 135 | */ 136 | private String toIndentedString(java.lang.Object o) { 137 | if (o == null) { 138 | return "null"; 139 | } 140 | return o.toString().replace("\n", "\n "); 141 | } 142 | 143 | } 144 | 145 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/AccessTokenResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.AccessTokenTokenTypes; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.math.BigDecimal; 11 | import java.io.Serializable; 12 | 13 | /** 14 | * Access Token response details. 15 | * 16 | */ 17 | @Schema(description = "Access Token response details") 18 | 19 | public class AccessTokenResponse implements Serializable { 20 | private static final long serialVersionUID = 1L; 21 | 22 | @JsonProperty("access_token") 23 | private String accessToken = null; 24 | 25 | @JsonProperty("expires_in") 26 | private BigDecimal expiresIn = null; 27 | 28 | @JsonProperty("token_type") 29 | private AccessTokenTokenTypes tokenType = null; 30 | 31 | 32 | /** 33 | * accessToken. 34 | * 35 | * @return AccessTokenResponse 36 | **/ 37 | public AccessTokenResponse accessToken(String accessToken) { 38 | this.accessToken = accessToken; 39 | return this; 40 | } 41 | 42 | /** 43 | * JWT access token. 44 | * @return accessToken 45 | **/ 46 | @Schema(description = "JWT access token") 47 | public String getAccessToken() { 48 | return accessToken; 49 | } 50 | 51 | /** 52 | * setAccessToken. 53 | **/ 54 | public void setAccessToken(String accessToken) { 55 | this.accessToken = accessToken; 56 | } 57 | 58 | 59 | /** 60 | * expiresIn. 61 | * 62 | * @return AccessTokenResponse 63 | **/ 64 | public AccessTokenResponse expiresIn(BigDecimal expiresIn) { 65 | this.expiresIn = expiresIn; 66 | return this; 67 | } 68 | 69 | /** 70 | * Expires in seconds. 71 | * @return expiresIn 72 | **/ 73 | @Schema(description = "Expires in seconds") 74 | public BigDecimal getExpiresIn() { 75 | return expiresIn; 76 | } 77 | 78 | /** 79 | * setExpiresIn. 80 | **/ 81 | public void setExpiresIn(BigDecimal expiresIn) { 82 | this.expiresIn = expiresIn; 83 | } 84 | 85 | 86 | /** 87 | * tokenType. 88 | * 89 | * @return AccessTokenResponse 90 | **/ 91 | public AccessTokenResponse tokenType(AccessTokenTokenTypes tokenType) { 92 | this.tokenType = tokenType; 93 | return this; 94 | } 95 | 96 | /** 97 | * Get tokenType. 98 | * @return tokenType 99 | **/ 100 | @Schema(description = "") 101 | public AccessTokenTokenTypes getTokenType() { 102 | return tokenType; 103 | } 104 | 105 | /** 106 | * setTokenType. 107 | **/ 108 | public void setTokenType(AccessTokenTokenTypes tokenType) { 109 | this.tokenType = tokenType; 110 | } 111 | 112 | 113 | /** 114 | * Compares objects. 115 | * 116 | * @return true or false depending on comparison result. 117 | */ 118 | @Override 119 | public boolean equals(java.lang.Object o) { 120 | if (this == o) { 121 | return true; 122 | } 123 | if (o == null || getClass() != o.getClass()) { 124 | return false; 125 | } 126 | AccessTokenResponse accessTokenResponse = (AccessTokenResponse) o; 127 | return Objects.equals(this.accessToken, accessTokenResponse.accessToken) && 128 | Objects.equals(this.expiresIn, accessTokenResponse.expiresIn) && 129 | Objects.equals(this.tokenType, accessTokenResponse.tokenType); 130 | } 131 | 132 | /** 133 | * Returns the HashCode. 134 | */ 135 | @Override 136 | public int hashCode() { 137 | return Objects.hash(accessToken, expiresIn, tokenType); 138 | } 139 | 140 | 141 | /** 142 | * Converts the given object to string. 143 | */ 144 | @Override 145 | public String toString() { 146 | StringBuilder sb = new StringBuilder(); 147 | sb.append("class AccessTokenResponse {\n"); 148 | 149 | sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); 150 | sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n"); 151 | sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n"); 152 | sb.append("}"); 153 | return sb.toString(); 154 | } 155 | 156 | /** 157 | * Convert the given object to string with each line indented by 4 spaces 158 | * (except the first line). 159 | */ 160 | private String toIndentedString(java.lang.Object o) { 161 | if (o == null) { 162 | return "null"; 163 | } 164 | return o.toString().replace("\n", "\n "); 165 | } 166 | 167 | } 168 | 169 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowConcatExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowTransformationExpressionTypesConcatExpression; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DSWorkflowConcatExpression. 14 | * 15 | */ 16 | 17 | public class DSWorkflowConcatExpression implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("inputs") 21 | private java.util.List inputs = null; 22 | 23 | @JsonProperty("type") 24 | private DSWorkflowTransformationExpressionTypesConcatExpression type = null; 25 | 26 | 27 | /** 28 | * inputs. 29 | * 30 | * @return DSWorkflowConcatExpression 31 | **/ 32 | public DSWorkflowConcatExpression inputs(java.util.List inputs) { 33 | this.inputs = inputs; 34 | return this; 35 | } 36 | 37 | /** 38 | * addInputsItem. 39 | * 40 | * @return DSWorkflowConcatExpression 41 | **/ 42 | public DSWorkflowConcatExpression addInputsItem(Object inputsItem) { 43 | if (this.inputs == null) { 44 | this.inputs = new java.util.ArrayList<>(); 45 | } 46 | this.inputs.add(inputsItem); 47 | return this; 48 | } 49 | 50 | /** 51 | * A list of #/definitions/StringOrVariableOrTransformation. Each element is: Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]. 52 | * @return inputs 53 | **/ 54 | @Schema(description = "A list of #/definitions/StringOrVariableOrTransformation. Each element is: Object stands for a String or a Variable or a Transformation. This object should be any of the following object models or types: [string, #/definitions/DSWorkflowVariable, #/definitions/DSWorkflowTransformationExpression]") 55 | public java.util.List getInputs() { 56 | return inputs; 57 | } 58 | 59 | /** 60 | * setInputs. 61 | **/ 62 | public void setInputs(java.util.List inputs) { 63 | this.inputs = inputs; 64 | } 65 | 66 | 67 | /** 68 | * type. 69 | * 70 | * @return DSWorkflowConcatExpression 71 | **/ 72 | public DSWorkflowConcatExpression type(DSWorkflowTransformationExpressionTypesConcatExpression type) { 73 | this.type = type; 74 | return this; 75 | } 76 | 77 | /** 78 | * Get type. 79 | * @return type 80 | **/ 81 | @Schema(required = true, description = "") 82 | public DSWorkflowTransformationExpressionTypesConcatExpression getType() { 83 | return type; 84 | } 85 | 86 | /** 87 | * setType. 88 | **/ 89 | public void setType(DSWorkflowTransformationExpressionTypesConcatExpression type) { 90 | this.type = type; 91 | } 92 | 93 | 94 | /** 95 | * Compares objects. 96 | * 97 | * @return true or false depending on comparison result. 98 | */ 99 | @Override 100 | public boolean equals(java.lang.Object o) { 101 | if (this == o) { 102 | return true; 103 | } 104 | if (o == null || getClass() != o.getClass()) { 105 | return false; 106 | } 107 | DSWorkflowConcatExpression dsWorkflowConcatExpression = (DSWorkflowConcatExpression) o; 108 | return Objects.equals(this.inputs, dsWorkflowConcatExpression.inputs) && 109 | Objects.equals(this.type, dsWorkflowConcatExpression.type); 110 | } 111 | 112 | /** 113 | * Returns the HashCode. 114 | */ 115 | @Override 116 | public int hashCode() { 117 | return Objects.hash(inputs, type); 118 | } 119 | 120 | 121 | /** 122 | * Converts the given object to string. 123 | */ 124 | @Override 125 | public String toString() { 126 | StringBuilder sb = new StringBuilder(); 127 | sb.append("class DSWorkflowConcatExpression {\n"); 128 | 129 | sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); 130 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 131 | sb.append("}"); 132 | return sb.toString(); 133 | } 134 | 135 | /** 136 | * Convert the given object to string with each line indented by 4 spaces 137 | * (except the first line). 138 | */ 139 | private String toIndentedString(java.lang.Object o) { 140 | if (o == null) { 141 | return "null"; 142 | } 143 | return o.toString().replace("\n", "\n "); 144 | } 145 | 146 | } 147 | 148 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/GetConfigurationInstanceResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * GetConfigurationInstanceResponse. 13 | * 14 | */ 15 | 16 | public class GetConfigurationInstanceResponse implements Serializable { 17 | private static final long serialVersionUID = 1L; 18 | 19 | @JsonProperty("savedValues") 20 | private Object savedValues = null; 21 | 22 | @JsonProperty("stepId") 23 | private String stepId = null; 24 | 25 | @JsonProperty("workflowDefinitionId") 26 | private String workflowDefinitionId = null; 27 | 28 | 29 | /** 30 | * savedValues. 31 | * 32 | * @return GetConfigurationInstanceResponse 33 | **/ 34 | public GetConfigurationInstanceResponse savedValues(Object savedValues) { 35 | this.savedValues = savedValues; 36 | return this; 37 | } 38 | 39 | /** 40 | * Get savedValues. 41 | * @return savedValues 42 | **/ 43 | @Schema(description = "") 44 | public Object getSavedValues() { 45 | return savedValues; 46 | } 47 | 48 | /** 49 | * setSavedValues. 50 | **/ 51 | public void setSavedValues(Object savedValues) { 52 | this.savedValues = savedValues; 53 | } 54 | 55 | 56 | /** 57 | * stepId. 58 | * 59 | * @return GetConfigurationInstanceResponse 60 | **/ 61 | public GetConfigurationInstanceResponse stepId(String stepId) { 62 | this.stepId = stepId; 63 | return this; 64 | } 65 | 66 | /** 67 | * Get stepId. 68 | * @return stepId 69 | **/ 70 | @Schema(description = "") 71 | public String getStepId() { 72 | return stepId; 73 | } 74 | 75 | /** 76 | * setStepId. 77 | **/ 78 | public void setStepId(String stepId) { 79 | this.stepId = stepId; 80 | } 81 | 82 | 83 | /** 84 | * workflowDefinitionId. 85 | * 86 | * @return GetConfigurationInstanceResponse 87 | **/ 88 | public GetConfigurationInstanceResponse workflowDefinitionId(String workflowDefinitionId) { 89 | this.workflowDefinitionId = workflowDefinitionId; 90 | return this; 91 | } 92 | 93 | /** 94 | * Get workflowDefinitionId. 95 | * @return workflowDefinitionId 96 | **/ 97 | @Schema(description = "") 98 | public String getWorkflowDefinitionId() { 99 | return workflowDefinitionId; 100 | } 101 | 102 | /** 103 | * setWorkflowDefinitionId. 104 | **/ 105 | public void setWorkflowDefinitionId(String workflowDefinitionId) { 106 | this.workflowDefinitionId = workflowDefinitionId; 107 | } 108 | 109 | 110 | /** 111 | * Compares objects. 112 | * 113 | * @return true or false depending on comparison result. 114 | */ 115 | @Override 116 | public boolean equals(java.lang.Object o) { 117 | if (this == o) { 118 | return true; 119 | } 120 | if (o == null || getClass() != o.getClass()) { 121 | return false; 122 | } 123 | GetConfigurationInstanceResponse getConfigurationInstanceResponse = (GetConfigurationInstanceResponse) o; 124 | return Objects.equals(this.savedValues, getConfigurationInstanceResponse.savedValues) && 125 | Objects.equals(this.stepId, getConfigurationInstanceResponse.stepId) && 126 | Objects.equals(this.workflowDefinitionId, getConfigurationInstanceResponse.workflowDefinitionId); 127 | } 128 | 129 | /** 130 | * Returns the HashCode. 131 | */ 132 | @Override 133 | public int hashCode() { 134 | return Objects.hash(savedValues, stepId, workflowDefinitionId); 135 | } 136 | 137 | 138 | /** 139 | * Converts the given object to string. 140 | */ 141 | @Override 142 | public String toString() { 143 | StringBuilder sb = new StringBuilder(); 144 | sb.append("class GetConfigurationInstanceResponse {\n"); 145 | 146 | sb.append(" savedValues: ").append(toIndentedString(savedValues)).append("\n"); 147 | sb.append(" stepId: ").append(toIndentedString(stepId)).append("\n"); 148 | sb.append(" workflowDefinitionId: ").append(toIndentedString(workflowDefinitionId)).append("\n"); 149 | sb.append("}"); 150 | return sb.toString(); 151 | } 152 | 153 | /** 154 | * Convert the given object to string with each line indented by 4 spaces 155 | * (except the first line). 156 | */ 157 | private String toIndentedString(java.lang.Object o) { 158 | if (o == null) { 159 | return "null"; 160 | } 161 | return o.toString().replace("\n", "\n "); 162 | } 163 | 164 | } 165 | 166 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DeployResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.time.OffsetDateTime; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DeployResponse. 14 | * 15 | */ 16 | 17 | public class DeployResponse implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("message") 21 | private String message = null; 22 | 23 | @JsonProperty("method") 24 | private String method = null; 25 | 26 | @JsonProperty("pollUrl") 27 | private String pollUrl = null; 28 | 29 | @JsonProperty("receivedTime") 30 | private String receivedTime = null; 31 | 32 | 33 | /** 34 | * message. 35 | * 36 | * @return DeployResponse 37 | **/ 38 | public DeployResponse message(String message) { 39 | this.message = message; 40 | return this; 41 | } 42 | 43 | /** 44 | * Get message. 45 | * @return message 46 | **/ 47 | @Schema(required = true, description = "") 48 | public String getMessage() { 49 | return message; 50 | } 51 | 52 | /** 53 | * setMessage. 54 | **/ 55 | public void setMessage(String message) { 56 | this.message = message; 57 | } 58 | 59 | 60 | /** 61 | * method. 62 | * 63 | * @return DeployResponse 64 | **/ 65 | public DeployResponse method(String method) { 66 | this.method = method; 67 | return this; 68 | } 69 | 70 | /** 71 | * Get method. 72 | * @return method 73 | **/ 74 | @Schema(description = "") 75 | public String getMethod() { 76 | return method; 77 | } 78 | 79 | /** 80 | * setMethod. 81 | **/ 82 | public void setMethod(String method) { 83 | this.method = method; 84 | } 85 | 86 | 87 | /** 88 | * pollUrl. 89 | * 90 | * @return DeployResponse 91 | **/ 92 | public DeployResponse pollUrl(String pollUrl) { 93 | this.pollUrl = pollUrl; 94 | return this; 95 | } 96 | 97 | /** 98 | * Get pollUrl. 99 | * @return pollUrl 100 | **/ 101 | @Schema(required = true, description = "") 102 | public String getPollUrl() { 103 | return pollUrl; 104 | } 105 | 106 | /** 107 | * setPollUrl. 108 | **/ 109 | public void setPollUrl(String pollUrl) { 110 | this.pollUrl = pollUrl; 111 | } 112 | 113 | 114 | /** 115 | * receivedTime. 116 | * 117 | * @return DeployResponse 118 | **/ 119 | public DeployResponse receivedTime(String receivedTime) { 120 | this.receivedTime = receivedTime; 121 | return this; 122 | } 123 | 124 | /** 125 | * Get receivedTime. 126 | * @return receivedTime 127 | **/ 128 | @Schema(description = "") 129 | public String getReceivedTime() { 130 | return receivedTime; 131 | } 132 | 133 | /** 134 | * setReceivedTime. 135 | **/ 136 | public void setReceivedTime(String receivedTime) { 137 | this.receivedTime = receivedTime; 138 | } 139 | 140 | 141 | /** 142 | * Compares objects. 143 | * 144 | * @return true or false depending on comparison result. 145 | */ 146 | @Override 147 | public boolean equals(java.lang.Object o) { 148 | if (this == o) { 149 | return true; 150 | } 151 | if (o == null || getClass() != o.getClass()) { 152 | return false; 153 | } 154 | DeployResponse deployResponse = (DeployResponse) o; 155 | return Objects.equals(this.message, deployResponse.message) && 156 | Objects.equals(this.method, deployResponse.method) && 157 | Objects.equals(this.pollUrl, deployResponse.pollUrl) && 158 | Objects.equals(this.receivedTime, deployResponse.receivedTime); 159 | } 160 | 161 | /** 162 | * Returns the HashCode. 163 | */ 164 | @Override 165 | public int hashCode() { 166 | return Objects.hash(message, method, pollUrl, receivedTime); 167 | } 168 | 169 | 170 | /** 171 | * Converts the given object to string. 172 | */ 173 | @Override 174 | public String toString() { 175 | StringBuilder sb = new StringBuilder(); 176 | sb.append("class DeployResponse {\n"); 177 | 178 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 179 | sb.append(" method: ").append(toIndentedString(method)).append("\n"); 180 | sb.append(" pollUrl: ").append(toIndentedString(pollUrl)).append("\n"); 181 | sb.append(" receivedTime: ").append(toIndentedString(receivedTime)).append("\n"); 182 | sb.append("}"); 183 | return sb.toString(); 184 | } 185 | 186 | /** 187 | * Convert the given object to string with each line indented by 4 spaces 188 | * (except the first line). 189 | */ 190 | private String toIndentedString(java.lang.Object o) { 191 | if (o == null) { 192 | return "null"; 193 | } 194 | return o.toString().replace("\n", "\n "); 195 | } 196 | 197 | } 198 | 199 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/ProgressInstance.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.math.BigDecimal; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * The progress information for a workflow instance. 14 | * 15 | */ 16 | @Schema(description = "The progress information for a workflow instance") 17 | 18 | public class ProgressInstance implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("completedSteps") 22 | private BigDecimal completedSteps = null; 23 | 24 | @JsonProperty("currentCompletedStepName") 25 | private String currentCompletedStepName = null; 26 | 27 | @JsonProperty("totalSteps") 28 | private BigDecimal totalSteps = null; 29 | 30 | 31 | /** 32 | * completedSteps. 33 | * 34 | * @return ProgressInstance 35 | **/ 36 | public ProgressInstance completedSteps(BigDecimal completedSteps) { 37 | this.completedSteps = completedSteps; 38 | return this; 39 | } 40 | 41 | /** 42 | * The number of completed steps for this workflow instance. 43 | * @return completedSteps 44 | **/ 45 | @Schema(description = "The number of completed steps for this workflow instance") 46 | public BigDecimal getCompletedSteps() { 47 | return completedSteps; 48 | } 49 | 50 | /** 51 | * setCompletedSteps. 52 | **/ 53 | public void setCompletedSteps(BigDecimal completedSteps) { 54 | this.completedSteps = completedSteps; 55 | } 56 | 57 | 58 | /** 59 | * currentCompletedStepName. 60 | * 61 | * @return ProgressInstance 62 | **/ 63 | public ProgressInstance currentCompletedStepName(String currentCompletedStepName) { 64 | this.currentCompletedStepName = currentCompletedStepName; 65 | return this; 66 | } 67 | 68 | /** 69 | * The last completed step name. 70 | * @return currentCompletedStepName 71 | **/ 72 | @Schema(description = "The last completed step name") 73 | public String getCurrentCompletedStepName() { 74 | return currentCompletedStepName; 75 | } 76 | 77 | /** 78 | * setCurrentCompletedStepName. 79 | **/ 80 | public void setCurrentCompletedStepName(String currentCompletedStepName) { 81 | this.currentCompletedStepName = currentCompletedStepName; 82 | } 83 | 84 | 85 | /** 86 | * totalSteps. 87 | * 88 | * @return ProgressInstance 89 | **/ 90 | public ProgressInstance totalSteps(BigDecimal totalSteps) { 91 | this.totalSteps = totalSteps; 92 | return this; 93 | } 94 | 95 | /** 96 | * The total number of steps for this workflow instance. 97 | * @return totalSteps 98 | **/ 99 | @Schema(description = "The total number of steps for this workflow instance") 100 | public BigDecimal getTotalSteps() { 101 | return totalSteps; 102 | } 103 | 104 | /** 105 | * setTotalSteps. 106 | **/ 107 | public void setTotalSteps(BigDecimal totalSteps) { 108 | this.totalSteps = totalSteps; 109 | } 110 | 111 | 112 | /** 113 | * Compares objects. 114 | * 115 | * @return true or false depending on comparison result. 116 | */ 117 | @Override 118 | public boolean equals(java.lang.Object o) { 119 | if (this == o) { 120 | return true; 121 | } 122 | if (o == null || getClass() != o.getClass()) { 123 | return false; 124 | } 125 | ProgressInstance progressInstance = (ProgressInstance) o; 126 | return Objects.equals(this.completedSteps, progressInstance.completedSteps) && 127 | Objects.equals(this.currentCompletedStepName, progressInstance.currentCompletedStepName) && 128 | Objects.equals(this.totalSteps, progressInstance.totalSteps); 129 | } 130 | 131 | /** 132 | * Returns the HashCode. 133 | */ 134 | @Override 135 | public int hashCode() { 136 | return Objects.hash(completedSteps, currentCompletedStepName, totalSteps); 137 | } 138 | 139 | 140 | /** 141 | * Converts the given object to string. 142 | */ 143 | @Override 144 | public String toString() { 145 | StringBuilder sb = new StringBuilder(); 146 | sb.append("class ProgressInstance {\n"); 147 | 148 | sb.append(" completedSteps: ").append(toIndentedString(completedSteps)).append("\n"); 149 | sb.append(" currentCompletedStepName: ").append(toIndentedString(currentCompletedStepName)).append("\n"); 150 | sb.append(" totalSteps: ").append(toIndentedString(totalSteps)).append("\n"); 151 | sb.append("}"); 152 | return sb.toString(); 153 | } 154 | 155 | /** 156 | * Convert the given object to string with each line indented by 4 spaces 157 | * (except the first line). 158 | */ 159 | private String toIndentedString(java.lang.Object o) { 160 | if (o == null) { 161 | return "null"; 162 | } 163 | return o.toString().replace("\n", "\n "); 164 | } 165 | 166 | } 167 | 168 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/TriggerPayload.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | import java.io.Serializable; 10 | 11 | /** 12 | * JSON payload that will be passed to the triggered workflow. 13 | * 14 | */ 15 | @Schema(description = "JSON payload that will be passed to the triggered workflow") 16 | 17 | public class TriggerPayload implements Serializable { 18 | private static final long serialVersionUID = 1L; 19 | 20 | @JsonProperty("instanceName") 21 | private String instanceName = null; 22 | 23 | @JsonProperty("metadata") 24 | private Object metadata = null; 25 | 26 | @JsonProperty("participants") 27 | private Object participants = null; 28 | 29 | @JsonProperty("payload") 30 | private Object payload = null; 31 | 32 | 33 | /** 34 | * instanceName. 35 | * 36 | * @return TriggerPayload 37 | **/ 38 | public TriggerPayload instanceName(String instanceName) { 39 | this.instanceName = instanceName; 40 | return this; 41 | } 42 | 43 | /** 44 | * Get instanceName. 45 | * @return instanceName 46 | **/ 47 | @Schema(description = "") 48 | public String getInstanceName() { 49 | return instanceName; 50 | } 51 | 52 | /** 53 | * setInstanceName. 54 | **/ 55 | public void setInstanceName(String instanceName) { 56 | this.instanceName = instanceName; 57 | } 58 | 59 | 60 | /** 61 | * metadata. 62 | * 63 | * @return TriggerPayload 64 | **/ 65 | public TriggerPayload metadata(Object metadata) { 66 | this.metadata = metadata; 67 | return this; 68 | } 69 | 70 | /** 71 | * Get metadata. 72 | * @return metadata 73 | **/ 74 | @Schema(description = "") 75 | public Object getMetadata() { 76 | return metadata; 77 | } 78 | 79 | /** 80 | * setMetadata. 81 | **/ 82 | public void setMetadata(Object metadata) { 83 | this.metadata = metadata; 84 | } 85 | 86 | 87 | /** 88 | * participants. 89 | * 90 | * @return TriggerPayload 91 | **/ 92 | public TriggerPayload participants(Object participants) { 93 | this.participants = participants; 94 | return this; 95 | } 96 | 97 | /** 98 | * Get participants. 99 | * @return participants 100 | **/ 101 | @Schema(description = "") 102 | public Object getParticipants() { 103 | return participants; 104 | } 105 | 106 | /** 107 | * setParticipants. 108 | **/ 109 | public void setParticipants(Object participants) { 110 | this.participants = participants; 111 | } 112 | 113 | 114 | /** 115 | * payload. 116 | * 117 | * @return TriggerPayload 118 | **/ 119 | public TriggerPayload payload(Object payload) { 120 | this.payload = payload; 121 | return this; 122 | } 123 | 124 | /** 125 | * Get payload. 126 | * @return payload 127 | **/ 128 | @Schema(description = "") 129 | public Object getPayload() { 130 | return payload; 131 | } 132 | 133 | /** 134 | * setPayload. 135 | **/ 136 | public void setPayload(Object payload) { 137 | this.payload = payload; 138 | } 139 | 140 | 141 | /** 142 | * Compares objects. 143 | * 144 | * @return true or false depending on comparison result. 145 | */ 146 | @Override 147 | public boolean equals(java.lang.Object o) { 148 | if (this == o) { 149 | return true; 150 | } 151 | if (o == null || getClass() != o.getClass()) { 152 | return false; 153 | } 154 | TriggerPayload triggerPayload = (TriggerPayload) o; 155 | return Objects.equals(this.instanceName, triggerPayload.instanceName) && 156 | Objects.equals(this.metadata, triggerPayload.metadata) && 157 | Objects.equals(this.participants, triggerPayload.participants) && 158 | Objects.equals(this.payload, triggerPayload.payload); 159 | } 160 | 161 | /** 162 | * Returns the HashCode. 163 | */ 164 | @Override 165 | public int hashCode() { 166 | return Objects.hash(instanceName, metadata, participants, payload); 167 | } 168 | 169 | 170 | /** 171 | * Converts the given object to string. 172 | */ 173 | @Override 174 | public String toString() { 175 | StringBuilder sb = new StringBuilder(); 176 | sb.append("class TriggerPayload {\n"); 177 | 178 | sb.append(" instanceName: ").append(toIndentedString(instanceName)).append("\n"); 179 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 180 | sb.append(" participants: ").append(toIndentedString(participants)).append("\n"); 181 | sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); 182 | sb.append("}"); 183 | return sb.toString(); 184 | } 185 | 186 | /** 187 | * Convert the given object to string with each line indented by 4 spaces 188 | * (except the first line). 189 | */ 190 | private String toIndentedString(java.lang.Object o) { 191 | if (o == null) { 192 | return "null"; 193 | } 194 | return o.toString().replace("\n", "\n "); 195 | } 196 | 197 | } 198 | 199 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableFromStep.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowVariableSourceTypesStep; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DS Workflow Variable from a Step. 14 | * 15 | */ 16 | @Schema(description = "DS Workflow Variable from a Step") 17 | 18 | public class DSWorkflowVariableFromStep implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("key") 22 | private String key = null; 23 | 24 | @JsonProperty("propertyName") 25 | private String propertyName = null; 26 | 27 | @JsonProperty("source") 28 | private DSWorkflowVariableSourceTypesStep source = null; 29 | 30 | @JsonProperty("stepId") 31 | private String stepId = null; 32 | 33 | 34 | /** 35 | * key. 36 | * 37 | * @return DSWorkflowVariableFromStep 38 | **/ 39 | public DSWorkflowVariableFromStep key(String key) { 40 | this.key = key; 41 | return this; 42 | } 43 | 44 | /** 45 | * Get key. 46 | * @return key 47 | **/ 48 | @Schema(required = true, description = "") 49 | public String getKey() { 50 | return key; 51 | } 52 | 53 | /** 54 | * setKey. 55 | **/ 56 | public void setKey(String key) { 57 | this.key = key; 58 | } 59 | 60 | 61 | /** 62 | * propertyName. 63 | * 64 | * @return DSWorkflowVariableFromStep 65 | **/ 66 | public DSWorkflowVariableFromStep propertyName(String propertyName) { 67 | this.propertyName = propertyName; 68 | return this; 69 | } 70 | 71 | /** 72 | * Get propertyName. 73 | * @return propertyName 74 | **/ 75 | @Schema(required = true, description = "") 76 | public String getPropertyName() { 77 | return propertyName; 78 | } 79 | 80 | /** 81 | * setPropertyName. 82 | **/ 83 | public void setPropertyName(String propertyName) { 84 | this.propertyName = propertyName; 85 | } 86 | 87 | 88 | /** 89 | * source. 90 | * 91 | * @return DSWorkflowVariableFromStep 92 | **/ 93 | public DSWorkflowVariableFromStep source(DSWorkflowVariableSourceTypesStep source) { 94 | this.source = source; 95 | return this; 96 | } 97 | 98 | /** 99 | * Get source. 100 | * @return source 101 | **/ 102 | @Schema(required = true, description = "") 103 | public DSWorkflowVariableSourceTypesStep getSource() { 104 | return source; 105 | } 106 | 107 | /** 108 | * setSource. 109 | **/ 110 | public void setSource(DSWorkflowVariableSourceTypesStep source) { 111 | this.source = source; 112 | } 113 | 114 | 115 | /** 116 | * stepId. 117 | * 118 | * @return DSWorkflowVariableFromStep 119 | **/ 120 | public DSWorkflowVariableFromStep stepId(String stepId) { 121 | this.stepId = stepId; 122 | return this; 123 | } 124 | 125 | /** 126 | * Get stepId. 127 | * @return stepId 128 | **/ 129 | @Schema(required = true, description = "") 130 | public String getStepId() { 131 | return stepId; 132 | } 133 | 134 | /** 135 | * setStepId. 136 | **/ 137 | public void setStepId(String stepId) { 138 | this.stepId = stepId; 139 | } 140 | 141 | 142 | /** 143 | * Compares objects. 144 | * 145 | * @return true or false depending on comparison result. 146 | */ 147 | @Override 148 | public boolean equals(java.lang.Object o) { 149 | if (this == o) { 150 | return true; 151 | } 152 | if (o == null || getClass() != o.getClass()) { 153 | return false; 154 | } 155 | DSWorkflowVariableFromStep dsWorkflowVariableFromStep = (DSWorkflowVariableFromStep) o; 156 | return Objects.equals(this.key, dsWorkflowVariableFromStep.key) && 157 | Objects.equals(this.propertyName, dsWorkflowVariableFromStep.propertyName) && 158 | Objects.equals(this.source, dsWorkflowVariableFromStep.source) && 159 | Objects.equals(this.stepId, dsWorkflowVariableFromStep.stepId); 160 | } 161 | 162 | /** 163 | * Returns the HashCode. 164 | */ 165 | @Override 166 | public int hashCode() { 167 | return Objects.hash(key, propertyName, source, stepId); 168 | } 169 | 170 | 171 | /** 172 | * Converts the given object to string. 173 | */ 174 | @Override 175 | public String toString() { 176 | StringBuilder sb = new StringBuilder(); 177 | sb.append("class DSWorkflowVariableFromStep {\n"); 178 | 179 | sb.append(" key: ").append(toIndentedString(key)).append("\n"); 180 | sb.append(" propertyName: ").append(toIndentedString(propertyName)).append("\n"); 181 | sb.append(" source: ").append(toIndentedString(source)).append("\n"); 182 | sb.append(" stepId: ").append(toIndentedString(stepId)).append("\n"); 183 | sb.append("}"); 184 | return sb.toString(); 185 | } 186 | 187 | /** 188 | * Convert the given object to string with each line indented by 4 spaces 189 | * (except the first line). 190 | */ 191 | private String toIndentedString(java.lang.Object o) { 192 | if (o == null) { 193 | return "null"; 194 | } 195 | return o.toString().replace("\n", "\n "); 196 | } 197 | 198 | } 199 | 200 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowVariableFromVariable.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowVariableSourceTypesVariable; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | import java.io.Serializable; 11 | 12 | /** 13 | * DS Workflow Variable from a Variable. 14 | * 15 | */ 16 | @Schema(description = "DS Workflow Variable from a Variable") 17 | 18 | public class DSWorkflowVariableFromVariable implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("key") 22 | private String key = null; 23 | 24 | @JsonProperty("propertyName") 25 | private String propertyName = null; 26 | 27 | @JsonProperty("source") 28 | private DSWorkflowVariableSourceTypesVariable source = null; 29 | 30 | @JsonProperty("stepId") 31 | private String stepId = null; 32 | 33 | 34 | /** 35 | * key. 36 | * 37 | * @return DSWorkflowVariableFromVariable 38 | **/ 39 | public DSWorkflowVariableFromVariable key(String key) { 40 | this.key = key; 41 | return this; 42 | } 43 | 44 | /** 45 | * Get key. 46 | * @return key 47 | **/ 48 | @Schema(required = true, description = "") 49 | public String getKey() { 50 | return key; 51 | } 52 | 53 | /** 54 | * setKey. 55 | **/ 56 | public void setKey(String key) { 57 | this.key = key; 58 | } 59 | 60 | 61 | /** 62 | * propertyName. 63 | * 64 | * @return DSWorkflowVariableFromVariable 65 | **/ 66 | public DSWorkflowVariableFromVariable propertyName(String propertyName) { 67 | this.propertyName = propertyName; 68 | return this; 69 | } 70 | 71 | /** 72 | * Get propertyName. 73 | * @return propertyName 74 | **/ 75 | @Schema(required = true, description = "") 76 | public String getPropertyName() { 77 | return propertyName; 78 | } 79 | 80 | /** 81 | * setPropertyName. 82 | **/ 83 | public void setPropertyName(String propertyName) { 84 | this.propertyName = propertyName; 85 | } 86 | 87 | 88 | /** 89 | * source. 90 | * 91 | * @return DSWorkflowVariableFromVariable 92 | **/ 93 | public DSWorkflowVariableFromVariable source(DSWorkflowVariableSourceTypesVariable source) { 94 | this.source = source; 95 | return this; 96 | } 97 | 98 | /** 99 | * Get source. 100 | * @return source 101 | **/ 102 | @Schema(required = true, description = "") 103 | public DSWorkflowVariableSourceTypesVariable getSource() { 104 | return source; 105 | } 106 | 107 | /** 108 | * setSource. 109 | **/ 110 | public void setSource(DSWorkflowVariableSourceTypesVariable source) { 111 | this.source = source; 112 | } 113 | 114 | 115 | /** 116 | * stepId. 117 | * 118 | * @return DSWorkflowVariableFromVariable 119 | **/ 120 | public DSWorkflowVariableFromVariable stepId(String stepId) { 121 | this.stepId = stepId; 122 | return this; 123 | } 124 | 125 | /** 126 | * Get stepId. 127 | * @return stepId 128 | **/ 129 | @Schema(required = true, description = "") 130 | public String getStepId() { 131 | return stepId; 132 | } 133 | 134 | /** 135 | * setStepId. 136 | **/ 137 | public void setStepId(String stepId) { 138 | this.stepId = stepId; 139 | } 140 | 141 | 142 | /** 143 | * Compares objects. 144 | * 145 | * @return true or false depending on comparison result. 146 | */ 147 | @Override 148 | public boolean equals(java.lang.Object o) { 149 | if (this == o) { 150 | return true; 151 | } 152 | if (o == null || getClass() != o.getClass()) { 153 | return false; 154 | } 155 | DSWorkflowVariableFromVariable dsWorkflowVariableFromVariable = (DSWorkflowVariableFromVariable) o; 156 | return Objects.equals(this.key, dsWorkflowVariableFromVariable.key) && 157 | Objects.equals(this.propertyName, dsWorkflowVariableFromVariable.propertyName) && 158 | Objects.equals(this.source, dsWorkflowVariableFromVariable.source) && 159 | Objects.equals(this.stepId, dsWorkflowVariableFromVariable.stepId); 160 | } 161 | 162 | /** 163 | * Returns the HashCode. 164 | */ 165 | @Override 166 | public int hashCode() { 167 | return Objects.hash(key, propertyName, source, stepId); 168 | } 169 | 170 | 171 | /** 172 | * Converts the given object to string. 173 | */ 174 | @Override 175 | public String toString() { 176 | StringBuilder sb = new StringBuilder(); 177 | sb.append("class DSWorkflowVariableFromVariable {\n"); 178 | 179 | sb.append(" key: ").append(toIndentedString(key)).append("\n"); 180 | sb.append(" propertyName: ").append(toIndentedString(propertyName)).append("\n"); 181 | sb.append(" source: ").append(toIndentedString(source)).append("\n"); 182 | sb.append(" stepId: ").append(toIndentedString(stepId)).append("\n"); 183 | sb.append("}"); 184 | return sb.toString(); 185 | } 186 | 187 | /** 188 | * Convert the given object to string with each line indented by 4 spaces 189 | * (except the first line). 190 | */ 191 | private String toIndentedString(java.lang.Object o) { 192 | if (o == null) { 193 | return "null"; 194 | } 195 | return o.toString().replace("\n", "\n "); 196 | } 197 | 198 | } 199 | 200 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/maestro/model/DSWorkflowBooleanExpression.java: -------------------------------------------------------------------------------- 1 | package com.docusign.maestro.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.maestro.model.DSWorkflowExpressionTypesBooleanExpression; 6 | import com.docusign.maestro.model.DSWorkflowLogicalOperatorTypes; 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | import io.swagger.v3.oas.annotations.media.Schema; 11 | import java.io.Serializable; 12 | 13 | /** 14 | * DSWorkflowBooleanExpression. 15 | * 16 | */ 17 | 18 | public class DSWorkflowBooleanExpression implements Serializable { 19 | private static final long serialVersionUID = 1L; 20 | 21 | @JsonProperty("expressions") 22 | private java.util.List expressions = new java.util.ArrayList<>(); 23 | 24 | @JsonProperty("logicalOperator") 25 | private DSWorkflowLogicalOperatorTypes logicalOperator = null; 26 | 27 | @JsonProperty("type") 28 | private DSWorkflowExpressionTypesBooleanExpression type = null; 29 | 30 | 31 | /** 32 | * expressions. 33 | * 34 | * @return DSWorkflowBooleanExpression 35 | **/ 36 | public DSWorkflowBooleanExpression expressions(java.util.List expressions) { 37 | this.expressions = expressions; 38 | return this; 39 | } 40 | 41 | /** 42 | * addExpressionsItem. 43 | * 44 | * @return DSWorkflowBooleanExpression 45 | **/ 46 | public DSWorkflowBooleanExpression addExpressionsItem(Object expressionsItem) { 47 | this.expressions.add(expressionsItem); 48 | return this; 49 | } 50 | 51 | /** 52 | * A list of objects. Each object should contain any of the following object models: [#/definitions/DSWorkflowBooleanExpression, #/definitions/DSWorkflowComparisonExpression]. 53 | * @return expressions 54 | **/ 55 | @Schema(required = true, description = "A list of objects. Each object should contain any of the following object models: [#/definitions/DSWorkflowBooleanExpression, #/definitions/DSWorkflowComparisonExpression]") 56 | public java.util.List getExpressions() { 57 | return expressions; 58 | } 59 | 60 | /** 61 | * setExpressions. 62 | **/ 63 | public void setExpressions(java.util.List expressions) { 64 | this.expressions = expressions; 65 | } 66 | 67 | 68 | /** 69 | * logicalOperator. 70 | * 71 | * @return DSWorkflowBooleanExpression 72 | **/ 73 | public DSWorkflowBooleanExpression logicalOperator(DSWorkflowLogicalOperatorTypes logicalOperator) { 74 | this.logicalOperator = logicalOperator; 75 | return this; 76 | } 77 | 78 | /** 79 | * Get logicalOperator. 80 | * @return logicalOperator 81 | **/ 82 | @Schema(required = true, description = "") 83 | public DSWorkflowLogicalOperatorTypes getLogicalOperator() { 84 | return logicalOperator; 85 | } 86 | 87 | /** 88 | * setLogicalOperator. 89 | **/ 90 | public void setLogicalOperator(DSWorkflowLogicalOperatorTypes logicalOperator) { 91 | this.logicalOperator = logicalOperator; 92 | } 93 | 94 | 95 | /** 96 | * type. 97 | * 98 | * @return DSWorkflowBooleanExpression 99 | **/ 100 | public DSWorkflowBooleanExpression type(DSWorkflowExpressionTypesBooleanExpression type) { 101 | this.type = type; 102 | return this; 103 | } 104 | 105 | /** 106 | * Get type. 107 | * @return type 108 | **/ 109 | @Schema(required = true, description = "") 110 | public DSWorkflowExpressionTypesBooleanExpression getType() { 111 | return type; 112 | } 113 | 114 | /** 115 | * setType. 116 | **/ 117 | public void setType(DSWorkflowExpressionTypesBooleanExpression type) { 118 | this.type = type; 119 | } 120 | 121 | 122 | /** 123 | * Compares objects. 124 | * 125 | * @return true or false depending on comparison result. 126 | */ 127 | @Override 128 | public boolean equals(java.lang.Object o) { 129 | if (this == o) { 130 | return true; 131 | } 132 | if (o == null || getClass() != o.getClass()) { 133 | return false; 134 | } 135 | DSWorkflowBooleanExpression dsWorkflowBooleanExpression = (DSWorkflowBooleanExpression) o; 136 | return Objects.equals(this.expressions, dsWorkflowBooleanExpression.expressions) && 137 | Objects.equals(this.logicalOperator, dsWorkflowBooleanExpression.logicalOperator) && 138 | Objects.equals(this.type, dsWorkflowBooleanExpression.type); 139 | } 140 | 141 | /** 142 | * Returns the HashCode. 143 | */ 144 | @Override 145 | public int hashCode() { 146 | return Objects.hash(expressions, logicalOperator, type); 147 | } 148 | 149 | 150 | /** 151 | * Converts the given object to string. 152 | */ 153 | @Override 154 | public String toString() { 155 | StringBuilder sb = new StringBuilder(); 156 | sb.append("class DSWorkflowBooleanExpression {\n"); 157 | 158 | sb.append(" expressions: ").append(toIndentedString(expressions)).append("\n"); 159 | sb.append(" logicalOperator: ").append(toIndentedString(logicalOperator)).append("\n"); 160 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 161 | sb.append("}"); 162 | return sb.toString(); 163 | } 164 | 165 | /** 166 | * Convert the given object to string with each line indented by 4 spaces 167 | * (except the first line). 168 | */ 169 | private String toIndentedString(java.lang.Object o) { 170 | if (o == null) { 171 | return "null"; 172 | } 173 | return o.toString().replace("\n", "\n "); 174 | } 175 | 176 | } 177 | 178 | --------------------------------------------------------------------------------