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
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 | *