diff --git a/openapi-raw.yaml b/openapi-raw.yaml
index 167663414..48c4321fb 100644
--- a/openapi-raw.yaml
+++ b/openapi-raw.yaml
@@ -12286,6 +12286,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
+ validation_custom_regex:
+ description: '_t__TemplateResponseDocumentFormField::CUSTOM_REGEX'
+ type: string
+ nullable: true
+ validation_custom_regex_format_label:
+ description: '_t__TemplateResponseDocumentFormField::CUSTOM_REGEX_LABEL'
+ type: string
+ nullable: true
group:
description: '_t__TemplateResponseDocumentFormField::GROUP'
type: string
diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml
index c832450e1..72542c9b1 100644
--- a/openapi-sdk.yaml
+++ b/openapi-sdk.yaml
@@ -13130,6 +13130,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
+ validation_custom_regex:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
+ type: string
+ nullable: true
+ validation_custom_regex_format_label:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
+ type: string
+ nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
diff --git a/openapi.yaml b/openapi.yaml
index 679506241..819e4ec59 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -13108,6 +13108,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
+ validation_custom_regex:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
+ type: string
+ nullable: true
+ validation_custom_regex_format_label:
+ description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
+ type: string
+ nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
diff --git a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md
index 368fec852..3005e1033 100644
--- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldText.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
**Width** | **int** | The width in pixels of this form field. | [optional]
**Height** | **int** | The height in pixels of this form field. | [optional]
**Required** | **bool** | Boolean showing whether or not this field is required. | [optional]
-**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).
* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] **FontFamily** | **string** | Font family used in this form field's text. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [optional] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [optional]
+**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).
* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field's text. | [optional] **FontFamily** | **string** | Font family used in this form field's text. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [optional] **ValidationCustomRegex** | **string** | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | [optional] **ValidationCustomRegexFormatLabel** | **string** | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | [optional] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs
index 70797b67d..8c7509535 100644
--- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs
+++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldText.cs
@@ -122,6 +122,8 @@ protected TemplateResponseDocumentFormFieldText() { }
/// Original font size used in this form field's text..
/// Font family used in this form field's text..
/// Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values..
+ /// When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field..
+ /// When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern..
/// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields..
/// A unique id for the form field..
/// The name of the form field..
@@ -131,7 +133,7 @@ protected TemplateResponseDocumentFormFieldText() { }
/// The width in pixels of this form field..
/// The height in pixels of this form field..
/// Boolean showing whether or not this field is required..
- public TemplateResponseDocumentFormFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string group = default(string), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool))
+ public TemplateResponseDocumentFormFieldText(string type = @"text", TemplateResponseFieldAvgTextLength avgTextLength = default(TemplateResponseFieldAvgTextLength), bool isMultiline = default(bool), int originalFontSize = default(int), string fontFamily = default(string), ValidationTypeEnum? validationType = default(ValidationTypeEnum?), string validationCustomRegex = default(string), string validationCustomRegexFormatLabel = default(string), string group = default(string), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool))
{
this.ApiId = apiId;
this.Name = name;
@@ -153,6 +155,8 @@ protected TemplateResponseDocumentFormFieldText() { }
this.OriginalFontSize = originalFontSize;
this.FontFamily = fontFamily;
this.ValidationType = validationType;
+ this.ValidationCustomRegex = validationCustomRegex;
+ this.ValidationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
this.Group = group;
}
@@ -206,6 +210,20 @@ public static TemplateResponseDocumentFormFieldText Init(string jsonData)
[DataMember(Name = "fontFamily", EmitDefaultValue = true)]
public string FontFamily { get; set; }
+ ///
+ /// When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+ ///
+ /// When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+ [DataMember(Name = "validation_custom_regex", EmitDefaultValue = true)]
+ public string ValidationCustomRegex { get; set; }
+
+ ///
+ /// When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
+ ///
+ /// When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
+ [DataMember(Name = "validation_custom_regex_format_label", EmitDefaultValue = true)]
+ public string ValidationCustomRegexFormatLabel { get; set; }
+
///
/// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
///
@@ -228,6 +246,8 @@ public override string ToString()
sb.Append(" OriginalFontSize: ").Append(OriginalFontSize).Append("\n");
sb.Append(" FontFamily: ").Append(FontFamily).Append("\n");
sb.Append(" ValidationType: ").Append(ValidationType).Append("\n");
+ sb.Append(" ValidationCustomRegex: ").Append(ValidationCustomRegex).Append("\n");
+ sb.Append(" ValidationCustomRegexFormatLabel: ").Append(ValidationCustomRegexFormatLabel).Append("\n");
sb.Append(" Group: ").Append(Group).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -291,6 +311,16 @@ public bool Equals(TemplateResponseDocumentFormFieldText input)
this.ValidationType == input.ValidationType ||
this.ValidationType.Equals(input.ValidationType)
) && base.Equals(input) &&
+ (
+ this.ValidationCustomRegex == input.ValidationCustomRegex ||
+ (this.ValidationCustomRegex != null &&
+ this.ValidationCustomRegex.Equals(input.ValidationCustomRegex))
+ ) && base.Equals(input) &&
+ (
+ this.ValidationCustomRegexFormatLabel == input.ValidationCustomRegexFormatLabel ||
+ (this.ValidationCustomRegexFormatLabel != null &&
+ this.ValidationCustomRegexFormatLabel.Equals(input.ValidationCustomRegexFormatLabel))
+ ) && base.Equals(input) &&
(
this.Group == input.Group ||
(this.Group != null &&
@@ -322,6 +352,14 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.FontFamily.GetHashCode();
}
hashCode = (hashCode * 59) + this.ValidationType.GetHashCode();
+ if (this.ValidationCustomRegex != null)
+ {
+ hashCode = (hashCode * 59) + this.ValidationCustomRegex.GetHashCode();
+ }
+ if (this.ValidationCustomRegexFormatLabel != null)
+ {
+ hashCode = (hashCode * 59) + this.ValidationCustomRegexFormatLabel.GetHashCode();
+ }
if (this.Group != null)
{
hashCode = (hashCode * 59) + this.Group.GetHashCode();
@@ -399,6 +437,20 @@ public List GetOpenApiTypes()
Value = ValidationType,
});
types.Add(new OpenApiType()
+ {
+ Name = "validation_custom_regex",
+ Property = "ValidationCustomRegex",
+ Type = "string",
+ Value = ValidationCustomRegex,
+ });
+ types.Add(new OpenApiType()
+ {
+ Name = "validation_custom_regex_format_label",
+ Property = "ValidationCustomRegexFormatLabel",
+ Type = "string",
+ Value = ValidationCustomRegexFormatLabel,
+ });
+ types.Add(new OpenApiType()
{
Name = "group",
Property = "Group",
diff --git a/sdks/java-v1/docs/TemplateResponseDocumentFormFieldText.md b/sdks/java-v1/docs/TemplateResponseDocumentFormFieldText.md
index 49cdfaad6..1b8d78c02 100644
--- a/sdks/java-v1/docs/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/java-v1/docs/TemplateResponseDocumentFormFieldText.md
@@ -14,6 +14,8 @@ This class extends `TemplateResponseDocumentFormFieldBase`
| `originalFontSize` | ```Integer``` | Original font size used in this form field's text. | |
| `fontFamily` | ```String``` | Font family used in this form field's text. | |
| `validationType` | [```ValidationTypeEnum```](#ValidationTypeEnum) | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validationCustomRegex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validationCustomRegexFormatLabel` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
index 353bd8941..1eb8a426c 100644
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
+++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
@@ -34,6 +34,8 @@
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_ORIGINAL_FONT_SIZE,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_FONT_FAMILY,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_TYPE,
+ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX,
+ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_GROUP
})
@javax.annotation.Generated(
@@ -119,6 +121,13 @@ public static ValidationTypeEnum fromValue(String value) {
public static final String JSON_PROPERTY_VALIDATION_TYPE = "validation_type";
@javax.annotation.Nullable private ValidationTypeEnum validationType;
+ public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX = "validation_custom_regex";
+ @javax.annotation.Nullable private String validationCustomRegex;
+
+ public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL =
+ "validation_custom_regex_format_label";
+ @javax.annotation.Nullable private String validationCustomRegexFormatLabel;
+
public static final String JSON_PROPERTY_GROUP = "group";
@javax.annotation.Nullable private String group;
@@ -289,6 +298,55 @@ public void setValidationType(@javax.annotation.Nullable ValidationTypeEnum vali
this.validationType = validationType;
}
+ public TemplateResponseDocumentFormFieldText validationCustomRegex(
+ @javax.annotation.Nullable String validationCustomRegex) {
+ this.validationCustomRegex = validationCustomRegex;
+ return this;
+ }
+
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the
+ * custom regular expression pattern that will be used to validate the text field.
+ *
+ * @return validationCustomRegex
+ */
+ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getValidationCustomRegex() {
+ return validationCustomRegex;
+ }
+
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setValidationCustomRegex(@javax.annotation.Nullable String validationCustomRegex) {
+ this.validationCustomRegex = validationCustomRegex;
+ }
+
+ public TemplateResponseDocumentFormFieldText validationCustomRegexFormatLabel(
+ @javax.annotation.Nullable String validationCustomRegexFormatLabel) {
+ this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
+ return this;
+ }
+
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the error
+ * message displayed to the signer when the text does not match the provided regex pattern.
+ *
+ * @return validationCustomRegexFormatLabel
+ */
+ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getValidationCustomRegexFormatLabel() {
+ return validationCustomRegexFormatLabel;
+ }
+
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setValidationCustomRegexFormatLabel(
+ @javax.annotation.Nullable String validationCustomRegexFormatLabel) {
+ this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
+ }
+
public TemplateResponseDocumentFormFieldText group(@javax.annotation.Nullable String group) {
this.group = group;
return this;
@@ -334,6 +392,12 @@ public boolean equals(Object o) {
&& Objects.equals(this.fontFamily, templateResponseDocumentFormFieldText.fontFamily)
&& Objects.equals(
this.validationType, templateResponseDocumentFormFieldText.validationType)
+ && Objects.equals(
+ this.validationCustomRegex,
+ templateResponseDocumentFormFieldText.validationCustomRegex)
+ && Objects.equals(
+ this.validationCustomRegexFormatLabel,
+ templateResponseDocumentFormFieldText.validationCustomRegexFormatLabel)
&& Objects.equals(this.group, templateResponseDocumentFormFieldText.group)
&& super.equals(o);
}
@@ -347,6 +411,8 @@ public int hashCode() {
originalFontSize,
fontFamily,
validationType,
+ validationCustomRegex,
+ validationCustomRegexFormatLabel,
group,
super.hashCode());
}
@@ -362,6 +428,12 @@ public String toString() {
sb.append(" originalFontSize: ").append(toIndentedString(originalFontSize)).append("\n");
sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n");
sb.append(" validationType: ").append(toIndentedString(validationType)).append("\n");
+ sb.append(" validationCustomRegex: ")
+ .append(toIndentedString(validationCustomRegex))
+ .append("\n");
+ sb.append(" validationCustomRegexFormatLabel: ")
+ .append(toIndentedString(validationCustomRegexFormatLabel))
+ .append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append("}");
return sb.toString();
@@ -490,6 +562,56 @@ public Map createFormData() throws ApiException {
JSON.getDefault().getMapper().writeValueAsString(validationType));
}
}
+ if (validationCustomRegex != null) {
+ if (isFileTypeOrListOfFiles(validationCustomRegex)) {
+ fileTypeFound = true;
+ }
+
+ if (validationCustomRegex.getClass().equals(java.io.File.class)
+ || validationCustomRegex.getClass().equals(Integer.class)
+ || validationCustomRegex.getClass().equals(String.class)
+ || validationCustomRegex.getClass().isEnum()) {
+ map.put("validation_custom_regex", validationCustomRegex);
+ } else if (isListOfFile(validationCustomRegex)) {
+ for (int i = 0; i < getListSize(validationCustomRegex); i++) {
+ map.put(
+ "validation_custom_regex[" + i + "]",
+ getFromList(validationCustomRegex, i));
+ }
+ } else {
+ map.put(
+ "validation_custom_regex",
+ JSON.getDefault()
+ .getMapper()
+ .writeValueAsString(validationCustomRegex));
+ }
+ }
+ if (validationCustomRegexFormatLabel != null) {
+ if (isFileTypeOrListOfFiles(validationCustomRegexFormatLabel)) {
+ fileTypeFound = true;
+ }
+
+ if (validationCustomRegexFormatLabel.getClass().equals(java.io.File.class)
+ || validationCustomRegexFormatLabel.getClass().equals(Integer.class)
+ || validationCustomRegexFormatLabel.getClass().equals(String.class)
+ || validationCustomRegexFormatLabel.getClass().isEnum()) {
+ map.put(
+ "validation_custom_regex_format_label",
+ validationCustomRegexFormatLabel);
+ } else if (isListOfFile(validationCustomRegexFormatLabel)) {
+ for (int i = 0; i < getListSize(validationCustomRegexFormatLabel); i++) {
+ map.put(
+ "validation_custom_regex_format_label[" + i + "]",
+ getFromList(validationCustomRegexFormatLabel, i));
+ }
+ } else {
+ map.put(
+ "validation_custom_regex_format_label",
+ JSON.getDefault()
+ .getMapper()
+ .writeValueAsString(validationCustomRegexFormatLabel));
+ }
+ }
if (group != null) {
if (isFileTypeOrListOfFiles(group)) {
fileTypeFound = true;
diff --git a/sdks/java-v2/docs/TemplateResponseDocumentFormFieldText.md b/sdks/java-v2/docs/TemplateResponseDocumentFormFieldText.md
index 49cdfaad6..1b8d78c02 100644
--- a/sdks/java-v2/docs/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/java-v2/docs/TemplateResponseDocumentFormFieldText.md
@@ -14,6 +14,8 @@ This class extends `TemplateResponseDocumentFormFieldBase`
| `originalFontSize` | ```Integer``` | Original font size used in this form field's text. | |
| `fontFamily` | ```String``` | Font family used in this form field's text. | |
| `validationType` | [```ValidationTypeEnum```](#ValidationTypeEnum) | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validationCustomRegex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validationCustomRegexFormatLabel` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
index 7bbb7ca05..47567e1ba 100644
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
+++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java
@@ -44,6 +44,8 @@
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_ORIGINAL_FONT_SIZE,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_FONT_FAMILY,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_TYPE,
+ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX,
+ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_GROUP
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0")
@@ -129,6 +131,14 @@ public static ValidationTypeEnum fromValue(String value) {
@jakarta.annotation.Nullable
private ValidationTypeEnum validationType;
+ public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX = "validation_custom_regex";
+ @jakarta.annotation.Nullable
+ private String validationCustomRegex;
+
+ public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL = "validation_custom_regex_format_label";
+ @jakarta.annotation.Nullable
+ private String validationCustomRegexFormatLabel;
+
public static final String JSON_PROPERTY_GROUP = "group";
@jakarta.annotation.Nullable
private String group;
@@ -301,6 +311,56 @@ public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum va
}
+ public TemplateResponseDocumentFormFieldText validationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) {
+ this.validationCustomRegex = validationCustomRegex;
+ return this;
+ }
+
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+ * @return validationCustomRegex
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+
+ public String getValidationCustomRegex() {
+ return validationCustomRegex;
+ }
+
+
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setValidationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) {
+ this.validationCustomRegex = validationCustomRegex;
+ }
+
+
+ public TemplateResponseDocumentFormFieldText validationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) {
+ this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
+ return this;
+ }
+
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
+ * @return validationCustomRegexFormatLabel
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+
+ public String getValidationCustomRegexFormatLabel() {
+ return validationCustomRegexFormatLabel;
+ }
+
+
+ @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setValidationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) {
+ this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
+ }
+
+
public TemplateResponseDocumentFormFieldText group(@jakarta.annotation.Nullable String group) {
this.group = group;
return this;
@@ -344,13 +404,15 @@ public boolean equals(Object o) {
Objects.equals(this.originalFontSize, templateResponseDocumentFormFieldText.originalFontSize) &&
Objects.equals(this.fontFamily, templateResponseDocumentFormFieldText.fontFamily) &&
Objects.equals(this.validationType, templateResponseDocumentFormFieldText.validationType) &&
+ Objects.equals(this.validationCustomRegex, templateResponseDocumentFormFieldText.validationCustomRegex) &&
+ Objects.equals(this.validationCustomRegexFormatLabel, templateResponseDocumentFormFieldText.validationCustomRegexFormatLabel) &&
Objects.equals(this.group, templateResponseDocumentFormFieldText.group) &&
super.equals(o);
}
@Override
public int hashCode() {
- return Objects.hash(type, avgTextLength, isMultiline, originalFontSize, fontFamily, validationType, group, super.hashCode());
+ return Objects.hash(type, avgTextLength, isMultiline, originalFontSize, fontFamily, validationType, validationCustomRegex, validationCustomRegexFormatLabel, group, super.hashCode());
}
@Override
@@ -364,6 +426,8 @@ public String toString() {
sb.append(" originalFontSize: ").append(toIndentedString(originalFontSize)).append("\n");
sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n");
sb.append(" validationType: ").append(toIndentedString(validationType)).append("\n");
+ sb.append(" validationCustomRegex: ").append(toIndentedString(validationCustomRegex)).append("\n");
+ sb.append(" validationCustomRegexFormatLabel: ").append(toIndentedString(validationCustomRegexFormatLabel)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append("}");
return sb.toString();
@@ -488,6 +552,44 @@ public Map createFormData() throws ApiException {
map.put("validation_type", JSON.getDefault().getMapper().writeValueAsString(validationType));
}
}
+ if (validationCustomRegex != null) {
+ if (isFileTypeOrListOfFiles(validationCustomRegex)) {
+ fileTypeFound = true;
+ }
+
+ if (validationCustomRegex.getClass().equals(java.io.File.class) ||
+ validationCustomRegex.getClass().equals(Integer.class) ||
+ validationCustomRegex.getClass().equals(String.class) ||
+ validationCustomRegex.getClass().isEnum()) {
+ map.put("validation_custom_regex", validationCustomRegex);
+ } else if (isListOfFile(validationCustomRegex)) {
+ for(int i = 0; i< getListSize(validationCustomRegex); i++) {
+ map.put("validation_custom_regex[" + i + "]", getFromList(validationCustomRegex, i));
+ }
+ }
+ else {
+ map.put("validation_custom_regex", JSON.getDefault().getMapper().writeValueAsString(validationCustomRegex));
+ }
+ }
+ if (validationCustomRegexFormatLabel != null) {
+ if (isFileTypeOrListOfFiles(validationCustomRegexFormatLabel)) {
+ fileTypeFound = true;
+ }
+
+ if (validationCustomRegexFormatLabel.getClass().equals(java.io.File.class) ||
+ validationCustomRegexFormatLabel.getClass().equals(Integer.class) ||
+ validationCustomRegexFormatLabel.getClass().equals(String.class) ||
+ validationCustomRegexFormatLabel.getClass().isEnum()) {
+ map.put("validation_custom_regex_format_label", validationCustomRegexFormatLabel);
+ } else if (isListOfFile(validationCustomRegexFormatLabel)) {
+ for(int i = 0; i< getListSize(validationCustomRegexFormatLabel); i++) {
+ map.put("validation_custom_regex_format_label[" + i + "]", getFromList(validationCustomRegexFormatLabel, i));
+ }
+ }
+ else {
+ map.put("validation_custom_regex_format_label", JSON.getDefault().getMapper().writeValueAsString(validationCustomRegexFormatLabel));
+ }
+ }
if (group != null) {
if (isFileTypeOrListOfFiles(group)) {
fileTypeFound = true;
diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js
index 0e8c3dcfd..943de1b8c 100644
--- a/sdks/node/dist/api.js
+++ b/sdks/node/dist/api.js
@@ -25344,6 +25344,16 @@ var TemplateResponseDocumentFormFieldText = class _TemplateResponseDocumentFormF
baseName: "validation_type",
type: "TemplateResponseDocumentFormFieldText.ValidationTypeEnum"
},
+ {
+ name: "validationCustomRegex",
+ baseName: "validation_custom_regex",
+ type: "string"
+ },
+ {
+ name: "validationCustomRegexFormatLabel",
+ baseName: "validation_custom_regex_format_label",
+ type: "string"
+ },
{
name: "group",
baseName: "group",
diff --git a/sdks/node/docs/model/TemplateResponseDocumentFormFieldText.md b/sdks/node/docs/model/TemplateResponseDocumentFormFieldText.md
index 25a86e871..07154a227 100644
--- a/sdks/node/docs/model/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/node/docs/model/TemplateResponseDocumentFormFieldText.md
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
| `originalFontSize` | ```number``` | Original font size used in this form field's text. | |
| `fontFamily` | ```string``` | Font family used in this form field's text. | |
| `validationType` | ```string``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validationCustomRegex` | ```string``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validationCustomRegexFormatLabel` | ```string``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```string``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/node/model/templateResponseDocumentFormFieldText.ts b/sdks/node/model/templateResponseDocumentFormFieldText.ts
index e758496f8..a10ace959 100644
--- a/sdks/node/model/templateResponseDocumentFormFieldText.ts
+++ b/sdks/node/model/templateResponseDocumentFormFieldText.ts
@@ -51,6 +51,14 @@ export class TemplateResponseDocumentFormFieldText extends TemplateResponseDocum
* Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.
*/
"validationType"?: TemplateResponseDocumentFormFieldText.ValidationTypeEnum;
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+ */
+ "validationCustomRegex"?: string | null;
+ /**
+ * When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
+ */
+ "validationCustomRegexFormatLabel"?: string | null;
/**
* The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
*/
@@ -89,6 +97,16 @@ export class TemplateResponseDocumentFormFieldText extends TemplateResponseDocum
baseName: "validation_type",
type: "TemplateResponseDocumentFormFieldText.ValidationTypeEnum",
},
+ {
+ name: "validationCustomRegex",
+ baseName: "validation_custom_regex",
+ type: "string",
+ },
+ {
+ name: "validationCustomRegexFormatLabel",
+ baseName: "validation_custom_regex_format_label",
+ type: "string",
+ },
{
name: "group",
baseName: "group",
diff --git a/sdks/node/types/model/templateResponseDocumentFormFieldText.d.ts b/sdks/node/types/model/templateResponseDocumentFormFieldText.d.ts
index 5f6dcb4f1..2509450f9 100644
--- a/sdks/node/types/model/templateResponseDocumentFormFieldText.d.ts
+++ b/sdks/node/types/model/templateResponseDocumentFormFieldText.d.ts
@@ -8,6 +8,8 @@ export declare class TemplateResponseDocumentFormFieldText extends TemplateRespo
"originalFontSize"?: number;
"fontFamily"?: string;
"validationType"?: TemplateResponseDocumentFormFieldText.ValidationTypeEnum;
+ "validationCustomRegex"?: string | null;
+ "validationCustomRegexFormatLabel"?: string | null;
"group"?: string | null;
static discriminator: string | undefined;
static attributeTypeMap: AttributeTypeMap;
diff --git a/sdks/php/docs/Model/TemplateResponseDocumentFormFieldText.md b/sdks/php/docs/Model/TemplateResponseDocumentFormFieldText.md
index e6af0e041..630c7a032 100644
--- a/sdks/php/docs/Model/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/php/docs/Model/TemplateResponseDocumentFormFieldText.md
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
| `original_font_size` | ```int``` | Original font size used in this form field's text. | |
| `font_family` | ```string``` | Font family used in this form field's text. | |
| `validation_type` | ```string``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validation_custom_regex` | ```string``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validation_custom_regex_format_label` | ```string``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```string``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/sdks/php/src/Model/TemplateResponseDocumentFormFieldText.php b/sdks/php/src/Model/TemplateResponseDocumentFormFieldText.php
index afb433174..078f5995d 100644
--- a/sdks/php/src/Model/TemplateResponseDocumentFormFieldText.php
+++ b/sdks/php/src/Model/TemplateResponseDocumentFormFieldText.php
@@ -62,6 +62,8 @@ class TemplateResponseDocumentFormFieldText extends TemplateResponseDocumentForm
'original_font_size' => 'int',
'font_family' => 'string',
'validation_type' => 'string',
+ 'validation_custom_regex' => 'string',
+ 'validation_custom_regex_format_label' => 'string',
'group' => 'string',
];
@@ -79,6 +81,8 @@ class TemplateResponseDocumentFormFieldText extends TemplateResponseDocumentForm
'original_font_size' => null,
'font_family' => null,
'validation_type' => null,
+ 'validation_custom_regex' => null,
+ 'validation_custom_regex_format_label' => null,
'group' => null,
];
@@ -94,6 +98,8 @@ class TemplateResponseDocumentFormFieldText extends TemplateResponseDocumentForm
'original_font_size' => false,
'font_family' => false,
'validation_type' => true,
+ 'validation_custom_regex' => true,
+ 'validation_custom_regex_format_label' => true,
'group' => true,
];
@@ -181,6 +187,8 @@ public function isNullableSetToNull(string $property): bool
'original_font_size' => 'originalFontSize',
'font_family' => 'fontFamily',
'validation_type' => 'validation_type',
+ 'validation_custom_regex' => 'validation_custom_regex',
+ 'validation_custom_regex_format_label' => 'validation_custom_regex_format_label',
'group' => 'group',
];
@@ -196,6 +204,8 @@ public function isNullableSetToNull(string $property): bool
'original_font_size' => 'setOriginalFontSize',
'font_family' => 'setFontFamily',
'validation_type' => 'setValidationType',
+ 'validation_custom_regex' => 'setValidationCustomRegex',
+ 'validation_custom_regex_format_label' => 'setValidationCustomRegexFormatLabel',
'group' => 'setGroup',
];
@@ -211,6 +221,8 @@ public function isNullableSetToNull(string $property): bool
'original_font_size' => 'getOriginalFontSize',
'font_family' => 'getFontFamily',
'validation_type' => 'getValidationType',
+ 'validation_custom_regex' => 'getValidationCustomRegex',
+ 'validation_custom_regex_format_label' => 'getValidationCustomRegexFormatLabel',
'group' => 'getGroup',
];
@@ -303,6 +315,8 @@ public function __construct(?array $data = null)
$this->setIfExists('original_font_size', $data ?? [], null);
$this->setIfExists('font_family', $data ?? [], null);
$this->setIfExists('validation_type', $data ?? [], null);
+ $this->setIfExists('validation_custom_regex', $data ?? [], null);
+ $this->setIfExists('validation_custom_regex_format_label', $data ?? [], null);
$this->setIfExists('group', $data ?? [], null);
}
@@ -556,6 +570,74 @@ public function setValidationType(?string $validation_type)
return $this;
}
+ /**
+ * Gets validation_custom_regex
+ *
+ * @return string|null
+ */
+ public function getValidationCustomRegex()
+ {
+ return $this->container['validation_custom_regex'];
+ }
+
+ /**
+ * Sets validation_custom_regex
+ *
+ * @param string|null $validation_custom_regex when `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field
+ *
+ * @return self
+ */
+ public function setValidationCustomRegex(?string $validation_custom_regex)
+ {
+ if (is_null($validation_custom_regex)) {
+ array_push($this->openAPINullablesSetToNull, 'validation_custom_regex');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('validation_custom_regex', $nullablesSetToNull);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['validation_custom_regex'] = $validation_custom_regex;
+
+ return $this;
+ }
+
+ /**
+ * Gets validation_custom_regex_format_label
+ *
+ * @return string|null
+ */
+ public function getValidationCustomRegexFormatLabel()
+ {
+ return $this->container['validation_custom_regex_format_label'];
+ }
+
+ /**
+ * Sets validation_custom_regex_format_label
+ *
+ * @param string|null $validation_custom_regex_format_label when `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern
+ *
+ * @return self
+ */
+ public function setValidationCustomRegexFormatLabel(?string $validation_custom_regex_format_label)
+ {
+ if (is_null($validation_custom_regex_format_label)) {
+ array_push($this->openAPINullablesSetToNull, 'validation_custom_regex_format_label');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('validation_custom_regex_format_label', $nullablesSetToNull);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['validation_custom_regex_format_label'] = $validation_custom_regex_format_label;
+
+ return $this;
+ }
+
/**
* Gets group
*
diff --git a/sdks/python/docs/TemplateResponseDocumentFormFieldText.md b/sdks/python/docs/TemplateResponseDocumentFormFieldText.md
index 8d52035f9..c0ed796ca 100644
--- a/sdks/python/docs/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/python/docs/TemplateResponseDocumentFormFieldText.md
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
| `original_font_size` | ```int``` | Original font size used in this form field's text. | |
| `font_family` | ```str``` | Font family used in this form field's text. | |
| `validation_type` | ```str``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validation_custom_regex` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validation_custom_regex_format_label` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```str``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/sdks/python/dropbox_sign/models/template_response_document_form_field_text.py b/sdks/python/dropbox_sign/models/template_response_document_form_field_text.py
index e6800d2ed..6280970f4 100644
--- a/sdks/python/dropbox_sign/models/template_response_document_form_field_text.py
+++ b/sdks/python/dropbox_sign/models/template_response_document_form_field_text.py
@@ -68,6 +68,14 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
default=None,
description="Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.",
)
+ validation_custom_regex: Optional[StrictStr] = Field(
+ default=None,
+ description="When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.",
+ )
+ validation_custom_regex_format_label: Optional[StrictStr] = Field(
+ default=None,
+ description="When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.",
+ )
group: Optional[StrictStr] = Field(
default=None,
description="The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.",
@@ -87,6 +95,8 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
"originalFontSize",
"fontFamily",
"validation_type",
+ "validation_custom_regex",
+ "validation_custom_regex_format_label",
"group",
]
@@ -199,6 +209,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"originalFontSize": obj.get("originalFontSize"),
"fontFamily": obj.get("fontFamily"),
"validation_type": obj.get("validation_type"),
+ "validation_custom_regex": obj.get("validation_custom_regex"),
+ "validation_custom_regex_format_label": obj.get(
+ "validation_custom_regex_format_label"
+ ),
"group": obj.get("group"),
}
)
@@ -223,6 +237,8 @@ def openapi_types(cls) -> Dict[str, str]:
"original_font_size": "(int,)",
"font_family": "(str,)",
"validation_type": "(str,)",
+ "validation_custom_regex": "(str,)",
+ "validation_custom_regex_format_label": "(str,)",
"group": "(str,)",
"api_id": "(str,)",
"name": "(str,)",
diff --git a/sdks/ruby/docs/TemplateResponseDocumentFormFieldText.md b/sdks/ruby/docs/TemplateResponseDocumentFormFieldText.md
index 7bfe70283..f63026a61 100644
--- a/sdks/ruby/docs/TemplateResponseDocumentFormFieldText.md
+++ b/sdks/ruby/docs/TemplateResponseDocumentFormFieldText.md
@@ -12,5 +12,7 @@ This class extends `TemplateResponseDocumentFormFieldBase`
| `original_font_size` | ```Integer``` | Original font size used in this form field's text. | |
| `font_family` | ```String``` | Font family used in this form field's text. | |
| `validation_type` | ```String``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
+| `validation_custom_regex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
+| `validation_custom_regex_format_label` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
diff --git a/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_text.rb b/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_text.rb
index 7028169e3..11d6178bb 100644
--- a/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_text.rb
+++ b/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_text.rb
@@ -42,6 +42,14 @@ class TemplateResponseDocumentFormFieldText < TemplateResponseDocumentFormFieldB
# @return [String, nil]
attr_accessor :validation_type
+ # When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+ # @return [String, nil]
+ attr_accessor :validation_custom_regex
+
+ # When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
+ # @return [String, nil]
+ attr_accessor :validation_custom_regex_format_label
+
# The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.
# @return [String, nil]
attr_accessor :group
@@ -77,6 +85,8 @@ def self.attribute_map
:'original_font_size' => :'originalFontSize',
:'font_family' => :'fontFamily',
:'validation_type' => :'validation_type',
+ :'validation_custom_regex' => :'validation_custom_regex',
+ :'validation_custom_regex_format_label' => :'validation_custom_regex_format_label',
:'group' => :'group'
}
end
@@ -100,6 +110,8 @@ def self.openapi_types
:'original_font_size' => :'Integer',
:'font_family' => :'String',
:'validation_type' => :'String',
+ :'validation_custom_regex' => :'String',
+ :'validation_custom_regex_format_label' => :'String',
:'group' => :'String'
}
end
@@ -108,6 +120,8 @@ def self.openapi_types
def self.openapi_nullable
Set.new([
:'validation_type',
+ :'validation_custom_regex',
+ :'validation_custom_regex_format_label',
:'group'
])
end
@@ -182,6 +196,14 @@ def initialize(attributes = {})
self.validation_type = attributes[:'validation_type']
end
+ if attributes.key?(:'validation_custom_regex')
+ self.validation_custom_regex = attributes[:'validation_custom_regex']
+ end
+
+ if attributes.key?(:'validation_custom_regex_format_label')
+ self.validation_custom_regex_format_label = attributes[:'validation_custom_regex_format_label']
+ end
+
if attributes.key?(:'group')
self.group = attributes[:'group']
end
@@ -238,6 +260,8 @@ def ==(o)
original_font_size == o.original_font_size &&
font_family == o.font_family &&
validation_type == o.validation_type &&
+ validation_custom_regex == o.validation_custom_regex &&
+ validation_custom_regex_format_label == o.validation_custom_regex_format_label &&
group == o.group && super(o)
end
@@ -250,7 +274,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, group].hash
+ [type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, validation_custom_regex, validation_custom_regex_format_label, group].hash
end
# Builds the object from hash
diff --git a/translations/en.yaml b/translations/en.yaml
index 38f1edc13..3dcaf3ea3 100644
--- a/translations/en.yaml
+++ b/translations/en.yaml
@@ -1623,7 +1623,8 @@
"TemplateResponseDocumentFormField::FONT_FAMILY": Font family used in this form field's text.
# text-only
"TemplateResponseDocumentFormField::VALIDATION_TYPE": Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.
-
+"TemplateResponseDocumentFormField::CUSTOM_REGEX": When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.
+"TemplateResponseDocumentFormField::CUSTOM_REGEX_LABEL": When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
"TemplateResponseDocumentStaticField::DESCRIPTION": An array describing static overlay fields. **NOTE:** Only available for certain subscriptions.
"TemplateResponseDocumentStaticField::DESCRIPTION_EXTENDS": This class extends `TemplateResponseDocumentStaticFieldBase`
"TemplateResponseDocumentStaticField::NAME": The name of the static field.