diff --git a/.fern/metadata.json b/.fern/metadata.json index 0d9886f..6fc08d1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -10,9 +10,9 @@ "base-exception-class-name": "CloudPDFException", "base-api-exception-class-name": "CloudPDFApiException" }, - "originGitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53", + "originGitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.3.0", + "requestedVersion": "3.4.0", "ciProvider": "github" } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 45f6f60..cf089ce 100644 --- a/build.gradle +++ b/build.gradle @@ -46,7 +46,7 @@ java { group = 'com.cloudpdf' -version = '3.3.0' +version = '3.4.0' jar { dependsOn(":generatePomFileForMavenPublication") @@ -73,7 +73,7 @@ publishing { maven(MavenPublication) { groupId = 'com.cloudpdf' artifactId = 'sdk' - version = '3.3.0' + version = '3.4.0' from components.java pom { name = 'CloudPDF' diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index e404c79..12170d2 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "java", - "canonicalVersion": "3.3.0", - "sdkVersion": "3.3.0", + "canonicalVersion": "3.4.0", + "sdkVersion": "3.4.0", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "8d6fda1d157a3f3f82d3a16835381932eaa6efe3054100bb0aa63c0ad5ac6909", - "gitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53", + "openapiSha256": "1416853fd5400e76cd33ffd218e90673faf6c8c8c50f86af1937ba6576efb27d", + "gitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83", "gitCommitIsDirty": false }, "fern": { diff --git a/src/main/java/api/AsyncCloudPDFClientBuilder.java b/src/main/java/api/AsyncCloudPDFClientBuilder.java index 5d2a0d9..d3be0b3 100644 --- a/src/main/java/api/AsyncCloudPDFClientBuilder.java +++ b/src/main/java/api/AsyncCloudPDFClientBuilder.java @@ -26,7 +26,7 @@ public class AsyncCloudPDFClientBuilder { private String token = null; - private String embedPdfVersion = "3.3"; + private String embedPdfVersion = "3.4"; private Environment environment = Environment.SAAS; diff --git a/src/main/java/api/CloudPDFClientBuilder.java b/src/main/java/api/CloudPDFClientBuilder.java index fc2c4a3..b2e4cc7 100644 --- a/src/main/java/api/CloudPDFClientBuilder.java +++ b/src/main/java/api/CloudPDFClientBuilder.java @@ -26,7 +26,7 @@ public class CloudPDFClientBuilder { private String token = null; - private String embedPdfVersion = "3.3"; + private String embedPdfVersion = "3.4"; private Environment environment = Environment.SAAS; diff --git a/src/main/java/api/core/ClientOptions.java b/src/main/java/api/core/ClientOptions.java index 931f3ce..bd8be58 100644 --- a/src/main/java/api/core/ClientOptions.java +++ b/src/main/java/api/core/ClientOptions.java @@ -49,7 +49,7 @@ private ClientOptions( { put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.cloudpdf:sdk"); - put("X-Fern-SDK-Version", "3.3.0"); + put("X-Fern-SDK-Version", "3.4.0"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/api/types/ChangeOpFormsSetSignatureAppearanceResources.java b/src/main/java/api/types/ChangeOpFormsSetSignatureAppearanceResources.java index 2667ec2..859e211 100644 --- a/src/main/java/api/types/ChangeOpFormsSetSignatureAppearanceResources.java +++ b/src/main/java/api/types/ChangeOpFormsSetSignatureAppearanceResources.java @@ -3,33 +3,47 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.HashMap; import java.util.Map; import java.util.Objects; -import org.jetbrains.annotations.NotNull; +import java.util.Optional; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ChangeOpFormsSetSignatureAppearanceResources.Builder.class) public final class ChangeOpFormsSetSignatureAppearanceResources { - private final String appearance; + private final Optional appearance; private final Map additionalProperties; - private ChangeOpFormsSetSignatureAppearanceResources(String appearance, Map additionalProperties) { + private ChangeOpFormsSetSignatureAppearanceResources( + Optional appearance, Map additionalProperties) { this.appearance = appearance; this.additionalProperties = additionalProperties; } + @JsonIgnore + public Optional getAppearance() { + if (appearance == null) { + return Optional.empty(); + } + return appearance; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("appearance") - public String getAppearance() { + private Optional _getAppearance() { return appearance; } @@ -59,58 +73,55 @@ public String toString() { return ObjectMappers.stringify(this); } - public static AppearanceStage builder() { + public static Builder builder() { return new Builder(); } - public interface AppearanceStage { - _FinalStage appearance(@NotNull String appearance); - - Builder from(ChangeOpFormsSetSignatureAppearanceResources other); - } - - public interface _FinalStage { - ChangeOpFormsSetSignatureAppearanceResources build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - } - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements AppearanceStage, _FinalStage { - private String appearance; + public static final class Builder { + private Optional appearance = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} - @java.lang.Override public Builder from(ChangeOpFormsSetSignatureAppearanceResources other) { appearance(other.getAppearance()); return this; } - @java.lang.Override - @JsonSetter("appearance") - public _FinalStage appearance(@NotNull String appearance) { - this.appearance = Objects.requireNonNull(appearance, "appearance must not be null"); + @JsonSetter(value = "appearance", nulls = Nulls.SKIP) + public Builder appearance(Optional appearance) { + this.appearance = appearance; + return this; + } + + public Builder appearance(String appearance) { + this.appearance = Optional.ofNullable(appearance); + return this; + } + + public Builder appearance(Nullable appearance) { + if (appearance.isNull()) { + this.appearance = null; + } else if (appearance.isEmpty()) { + this.appearance = Optional.empty(); + } else { + this.appearance = Optional.of(appearance.get()); + } return this; } - @java.lang.Override public ChangeOpFormsSetSignatureAppearanceResources build() { return new ChangeOpFormsSetSignatureAppearanceResources(appearance, additionalProperties); } - @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } - @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/api/types/FormFieldCheckbox.java b/src/main/java/api/types/FormFieldCheckbox.java index 5105686..fcd6cec 100644 --- a/src/main/java/api/types/FormFieldCheckbox.java +++ b/src/main/java/api/types/FormFieldCheckbox.java @@ -51,6 +51,8 @@ public final class FormFieldCheckbox { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -84,6 +86,7 @@ private FormFieldCheckbox( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -106,6 +109,7 @@ private FormFieldCheckbox( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -187,6 +191,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -268,6 +280,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -328,6 +346,7 @@ private boolean equalTo(FormFieldCheckbox other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -354,6 +373,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -445,6 +465,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -535,6 +561,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -562,6 +590,7 @@ public Builder from(FormFieldCheckbox other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -818,6 +847,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -921,6 +975,7 @@ public FormFieldCheckbox build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, diff --git a/src/main/java/api/types/FormFieldCombobox.java b/src/main/java/api/types/FormFieldCombobox.java index d302257..e57ac5b 100644 --- a/src/main/java/api/types/FormFieldCombobox.java +++ b/src/main/java/api/types/FormFieldCombobox.java @@ -51,6 +51,8 @@ public final class FormFieldCombobox { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -73,6 +75,8 @@ public final class FormFieldCombobox { private final List options; + private final Optional format; + private final Map additionalProperties; private FormFieldCombobox( @@ -88,6 +92,7 @@ private FormFieldCombobox( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -99,6 +104,7 @@ private FormFieldCombobox( String defaultValue, boolean edit, List options, + Optional format, Map additionalProperties) { this.ref = ref; this.name = name; @@ -112,6 +118,7 @@ private FormFieldCombobox( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -123,6 +130,7 @@ private FormFieldCombobox( this.defaultValue = defaultValue; this.edit = edit; this.options = options; + this.format = format; this.additionalProperties = additionalProperties; } @@ -195,6 +203,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -268,6 +284,17 @@ public List getOptions() { return options; } + /** + * @return The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other. + */ + @JsonIgnore + public Optional getFormat() { + if (format == null) { + return Optional.empty(); + } + return format; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("alternateName") private Optional _getAlternateName() { @@ -286,6 +313,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -322,6 +355,12 @@ private Optional _getImportedBy() { return importedBy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("format") + private Optional _getFormat() { + return format; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -346,6 +385,7 @@ private boolean equalTo(FormFieldCombobox other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -356,7 +396,8 @@ private boolean equalTo(FormFieldCombobox other) { && value.equals(other.value) && defaultValue.equals(other.defaultValue) && edit == other.edit - && options.equals(other.options); + && options.equals(other.options) + && format.equals(other.format); } @java.lang.Override @@ -374,6 +415,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -384,7 +426,8 @@ public int hashCode() { this.value, this.defaultValue, this.edit, - this.options); + this.options, + this.format); } @java.lang.Override @@ -471,6 +514,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -518,6 +567,15 @@ public interface _FinalStage { _FinalStage addOptions(FormFieldComboboxOptionsItem options); _FinalStage addAllOptions(List options); + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ */ + _FinalStage format(Optional format); + + _FinalStage format(FormFieldFormat format); + + _FinalStage format(Nullable format); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -556,6 +614,8 @@ public static final class Builder private boolean edit; + private Optional format = Optional.empty(); + private List options = new ArrayList<>(); private List widgets = new ArrayList<>(); @@ -572,6 +632,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -599,6 +661,7 @@ public Builder from(FormFieldCombobox other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -610,6 +673,7 @@ public Builder from(FormFieldCombobox other) { defaultValue(other.getDefaultValue()); edit(other.getEdit()); options(other.getOptions()); + format(other.getFormat()); return this; } @@ -690,6 +754,42 @@ public _FinalStage edit(boolean edit) { return this; } + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage format(Nullable format) { + if (format.isNull()) { + this.format = null; + } else if (format.isEmpty()) { + this.format = Optional.empty(); + } else { + this.format = Optional.of(format.get()); + } + return this; + } + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage format(FormFieldFormat format) { + this.format = Optional.ofNullable(format); + return this; + } + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ */ + @java.lang.Override + @JsonSetter(value = "format", nulls = Nulls.SKIP) + public _FinalStage format(Optional format) { + this.format = format; + return this; + } + @java.lang.Override public _FinalStage addAllOptions(List options) { if (options != null) { @@ -888,6 +988,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -991,6 +1116,7 @@ public FormFieldCombobox build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, @@ -1002,6 +1128,7 @@ public FormFieldCombobox build() { defaultValue, edit, options, + format, additionalProperties); } diff --git a/src/main/java/api/types/FormFieldDraftCheckbox.java b/src/main/java/api/types/FormFieldDraftCheckbox.java index 54762af..68f5704 100644 --- a/src/main/java/api/types/FormFieldDraftCheckbox.java +++ b/src/main/java/api/types/FormFieldDraftCheckbox.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftCheckbox { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -50,6 +55,7 @@ private FormFieldDraftCheckbox( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Map additionalProperties) { @@ -60,6 +66,7 @@ private FormFieldDraftCheckbox( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.additionalProperties = additionalProperties; @@ -95,11 +102,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -110,6 +128,18 @@ public Optional> getWidgets() { return widgets; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -129,6 +159,7 @@ private boolean equalTo(FormFieldDraftCheckbox other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets); } @@ -143,6 +174,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets); } @@ -193,6 +225,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -210,6 +250,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -236,6 +278,7 @@ public Builder from(FormFieldDraftCheckbox other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); return this; @@ -274,6 +317,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -362,6 +442,7 @@ public FormFieldDraftCheckbox build() { alternateName, mappingName, groupId, + purpose, actions, widgets, additionalProperties); diff --git a/src/main/java/api/types/FormFieldDraftCombobox.java b/src/main/java/api/types/FormFieldDraftCombobox.java index 4d70d4c..ad238c7 100644 --- a/src/main/java/api/types/FormFieldDraftCombobox.java +++ b/src/main/java/api/types/FormFieldDraftCombobox.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftCombobox { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -46,6 +51,8 @@ public final class FormFieldDraftCombobox { private final Optional defaultValue; + private final Optional format; + private final Map additionalProperties; private FormFieldDraftCombobox( @@ -56,11 +63,13 @@ private FormFieldDraftCombobox( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Optional edit, Optional> options, Optional defaultValue, + Optional format, Map additionalProperties) { this.name = name; this.readOnly = readOnly; @@ -69,11 +78,13 @@ private FormFieldDraftCombobox( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.edit = edit; this.options = options; this.defaultValue = defaultValue; + this.format = format; this.additionalProperties = additionalProperties; } @@ -107,11 +118,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -137,6 +159,32 @@ public Optional getDefaultValue() { return defaultValue; } + @JsonIgnore + public Optional getFormat() { + if (format == null) { + return Optional.empty(); + } + return format; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("format") + private Optional _getFormat() { + return format; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -156,11 +204,13 @@ private boolean equalTo(FormFieldDraftCombobox other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets) && edit.equals(other.edit) && options.equals(other.options) - && defaultValue.equals(other.defaultValue); + && defaultValue.equals(other.defaultValue) + && format.equals(other.format); } @java.lang.Override @@ -173,11 +223,13 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets, this.edit, this.options, - this.defaultValue); + this.defaultValue, + this.format); } @java.lang.Override @@ -226,6 +278,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -245,12 +305,20 @@ public interface _FinalStage { _FinalStage defaultValue(Optional defaultValue); _FinalStage defaultValue(String defaultValue); + + _FinalStage format(Optional format); + + _FinalStage format(FormFieldFormatWritable format); + + _FinalStage format(Nullable format); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements NameStage, _FinalStage { private String name; + private Optional format = Optional.empty(); + private Optional defaultValue = Optional.empty(); private Optional> options = Optional.empty(); @@ -261,6 +329,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -287,11 +357,13 @@ public Builder from(FormFieldDraftCombobox other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); edit(other.getEdit()); options(other.getOptions()); defaultValue(other.getDefaultValue()); + format(other.getFormat()); return this; } @@ -302,6 +374,31 @@ public _FinalStage name(@NotNull String name) { return this; } + @java.lang.Override + public _FinalStage format(Nullable format) { + if (format.isNull()) { + this.format = null; + } else if (format.isEmpty()) { + this.format = Optional.empty(); + } else { + this.format = Optional.of(format.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage format(FormFieldFormatWritable format) { + this.format = Optional.ofNullable(format); + return this; + } + + @java.lang.Override + @JsonSetter(value = "format", nulls = Nulls.SKIP) + public _FinalStage format(Optional format) { + this.format = format; + return this; + } + @java.lang.Override public _FinalStage defaultValue(String defaultValue) { this.defaultValue = Optional.ofNullable(defaultValue); @@ -367,6 +464,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -455,11 +589,13 @@ public FormFieldDraftCombobox build() { alternateName, mappingName, groupId, + purpose, actions, widgets, edit, options, defaultValue, + format, additionalProperties); } diff --git a/src/main/java/api/types/FormFieldDraftListbox.java b/src/main/java/api/types/FormFieldDraftListbox.java index cae867a..f6da2dc 100644 --- a/src/main/java/api/types/FormFieldDraftListbox.java +++ b/src/main/java/api/types/FormFieldDraftListbox.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftListbox { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -56,6 +61,7 @@ private FormFieldDraftListbox( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Optional multiSelect, @@ -69,6 +75,7 @@ private FormFieldDraftListbox( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.multiSelect = multiSelect; @@ -107,11 +114,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -137,6 +155,18 @@ public Optional> getDefaultValue() { return defaultValue; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -156,6 +186,7 @@ private boolean equalTo(FormFieldDraftListbox other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets) && multiSelect.equals(other.multiSelect) @@ -173,6 +204,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets, this.multiSelect, @@ -226,6 +258,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -261,6 +301,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -287,6 +329,7 @@ public Builder from(FormFieldDraftListbox other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); multiSelect(other.getMultiSelect()); @@ -367,6 +410,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -455,6 +535,7 @@ public FormFieldDraftListbox build() { alternateName, mappingName, groupId, + purpose, actions, widgets, multiSelect, diff --git a/src/main/java/api/types/FormFieldDraftPushbutton.java b/src/main/java/api/types/FormFieldDraftPushbutton.java index dabee69..8544ad4 100644 --- a/src/main/java/api/types/FormFieldDraftPushbutton.java +++ b/src/main/java/api/types/FormFieldDraftPushbutton.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftPushbutton { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -50,6 +55,7 @@ private FormFieldDraftPushbutton( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Map additionalProperties) { @@ -60,6 +66,7 @@ private FormFieldDraftPushbutton( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.additionalProperties = additionalProperties; @@ -95,11 +102,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -110,6 +128,18 @@ public Optional> getWidgets() { return widgets; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -129,6 +159,7 @@ private boolean equalTo(FormFieldDraftPushbutton other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets); } @@ -143,6 +174,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets); } @@ -193,6 +225,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -210,6 +250,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -236,6 +278,7 @@ public Builder from(FormFieldDraftPushbutton other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); return this; @@ -274,6 +317,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -362,6 +442,7 @@ public FormFieldDraftPushbutton build() { alternateName, mappingName, groupId, + purpose, actions, widgets, additionalProperties); diff --git a/src/main/java/api/types/FormFieldDraftRadio.java b/src/main/java/api/types/FormFieldDraftRadio.java index 446f729..c848eab 100644 --- a/src/main/java/api/types/FormFieldDraftRadio.java +++ b/src/main/java/api/types/FormFieldDraftRadio.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftRadio { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -54,6 +59,7 @@ private FormFieldDraftRadio( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Optional radiosInUnison, @@ -66,6 +72,7 @@ private FormFieldDraftRadio( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.radiosInUnison = radiosInUnison; @@ -103,11 +110,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -128,6 +146,18 @@ public Optional getNoToggleToOff() { return noToggleToOff; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -147,6 +177,7 @@ private boolean equalTo(FormFieldDraftRadio other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets) && radiosInUnison.equals(other.radiosInUnison) @@ -163,6 +194,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets, this.radiosInUnison, @@ -215,6 +247,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -244,6 +284,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -270,6 +312,7 @@ public Builder from(FormFieldDraftRadio other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); radiosInUnison(other.getRadiosInUnison()); @@ -336,6 +379,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -424,6 +504,7 @@ public FormFieldDraftRadio build() { alternateName, mappingName, groupId, + purpose, actions, widgets, radiosInUnison, diff --git a/src/main/java/api/types/FormFieldDraftSignature.java b/src/main/java/api/types/FormFieldDraftSignature.java index de01167..1a22c34 100644 --- a/src/main/java/api/types/FormFieldDraftSignature.java +++ b/src/main/java/api/types/FormFieldDraftSignature.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftSignature { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -50,6 +55,7 @@ private FormFieldDraftSignature( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Map additionalProperties) { @@ -60,6 +66,7 @@ private FormFieldDraftSignature( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.additionalProperties = additionalProperties; @@ -95,11 +102,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -110,6 +128,18 @@ public Optional> getWidgets() { return widgets; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -129,6 +159,7 @@ private boolean equalTo(FormFieldDraftSignature other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets); } @@ -143,6 +174,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets); } @@ -193,6 +225,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -210,6 +250,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -236,6 +278,7 @@ public Builder from(FormFieldDraftSignature other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); return this; @@ -274,6 +317,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -362,6 +442,7 @@ public FormFieldDraftSignature build() { alternateName, mappingName, groupId, + purpose, actions, widgets, additionalProperties); diff --git a/src/main/java/api/types/FormFieldDraftText.java b/src/main/java/api/types/FormFieldDraftText.java index 9e065e9..beef97a 100644 --- a/src/main/java/api/types/FormFieldDraftText.java +++ b/src/main/java/api/types/FormFieldDraftText.java @@ -3,9 +3,12 @@ */ package com.cloudpdf.api.types; +import com.cloudpdf.api.core.Nullable; +import com.cloudpdf.api.core.NullableNonemptyFilter; import com.cloudpdf.api.core.ObjectMappers; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,6 +39,8 @@ public final class FormFieldDraftText { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional> widgets; @@ -50,6 +55,8 @@ public final class FormFieldDraftText { private final Optional comb; + private final Optional format; + private final Map additionalProperties; private FormFieldDraftText( @@ -60,6 +67,7 @@ private FormFieldDraftText( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional> widgets, Optional defaultValue, @@ -67,6 +75,7 @@ private FormFieldDraftText( Optional multiline, Optional password, Optional comb, + Optional format, Map additionalProperties) { this.name = name; this.readOnly = readOnly; @@ -75,6 +84,7 @@ private FormFieldDraftText( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.widgets = widgets; this.defaultValue = defaultValue; @@ -82,6 +92,7 @@ private FormFieldDraftText( this.multiline = multiline; this.password = password; this.comb = comb; + this.format = format; this.additionalProperties = additionalProperties; } @@ -115,11 +126,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -155,6 +177,32 @@ public Optional getComb() { return comb; } + @JsonIgnore + public Optional getFormat() { + if (format == null) { + return Optional.empty(); + } + return format; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("format") + private Optional _getFormat() { + return format; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -174,13 +222,15 @@ private boolean equalTo(FormFieldDraftText other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && widgets.equals(other.widgets) && defaultValue.equals(other.defaultValue) && maxLength.equals(other.maxLength) && multiline.equals(other.multiline) && password.equals(other.password) - && comb.equals(other.comb); + && comb.equals(other.comb) + && format.equals(other.format); } @java.lang.Override @@ -193,13 +243,15 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.widgets, this.defaultValue, this.maxLength, this.multiline, this.password, - this.comb); + this.comb, + this.format); } @java.lang.Override @@ -248,6 +300,14 @@ public interface _FinalStage { _FinalStage groupId(String groupId); + _FinalStage groupId(Nullable groupId); + + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage actions(Optional actions); _FinalStage actions(FieldActionsPatch actions); @@ -275,12 +335,20 @@ public interface _FinalStage { _FinalStage comb(Optional comb); _FinalStage comb(Boolean comb); + + _FinalStage format(Optional format); + + _FinalStage format(FormFieldFormatWritable format); + + _FinalStage format(Nullable format); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements NameStage, _FinalStage { private String name; + private Optional format = Optional.empty(); + private Optional comb = Optional.empty(); private Optional password = Optional.empty(); @@ -295,6 +363,8 @@ public static final class Builder implements NameStage, _FinalStage { private Optional actions = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional mappingName = Optional.empty(); @@ -321,6 +391,7 @@ public Builder from(FormFieldDraftText other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); widgets(other.getWidgets()); defaultValue(other.getDefaultValue()); @@ -328,6 +399,7 @@ public Builder from(FormFieldDraftText other) { multiline(other.getMultiline()); password(other.getPassword()); comb(other.getComb()); + format(other.getFormat()); return this; } @@ -338,6 +410,31 @@ public _FinalStage name(@NotNull String name) { return this; } + @java.lang.Override + public _FinalStage format(Nullable format) { + if (format.isNull()) { + this.format = null; + } else if (format.isEmpty()) { + this.format = Optional.empty(); + } else { + this.format = Optional.of(format.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage format(FormFieldFormatWritable format) { + this.format = Optional.ofNullable(format); + return this; + } + + @java.lang.Override + @JsonSetter(value = "format", nulls = Nulls.SKIP) + public _FinalStage format(Optional format) { + this.format = format; + return this; + } + @java.lang.Override public _FinalStage comb(Boolean comb) { this.comb = Optional.ofNullable(comb); @@ -429,6 +526,43 @@ public _FinalStage actions(Optional actions) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + @java.lang.Override + public _FinalStage groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + @java.lang.Override public _FinalStage groupId(String groupId) { this.groupId = Optional.ofNullable(groupId); @@ -517,6 +651,7 @@ public FormFieldDraftText build() { alternateName, mappingName, groupId, + purpose, actions, widgets, defaultValue, @@ -524,6 +659,7 @@ public FormFieldDraftText build() { multiline, password, comb, + format, additionalProperties); } diff --git a/src/main/java/api/types/FormFieldFormat.java b/src/main/java/api/types/FormFieldFormat.java new file mode 100644 index 0000000..258e542 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormat.java @@ -0,0 +1,282 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Objects; +import java.util.Optional; + +public final class FormFieldFormat { + private final Value value; + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + private FormFieldFormat(Value value) { + this.value = value; + } + + public T visit(Visitor visitor) { + return value.visit(visitor); + } + + public static FormFieldFormat date(FormFieldFormatDate value) { + return new FormFieldFormat(new DateValue(value)); + } + + public static FormFieldFormat time(FormFieldFormatTime value) { + return new FormFieldFormat(new TimeValue(value)); + } + + public static FormFieldFormat other(FormFieldFormatOther value) { + return new FormFieldFormat(new OtherValue(value)); + } + + public boolean isDate() { + return value instanceof DateValue; + } + + public boolean isTime() { + return value instanceof TimeValue; + } + + public boolean isOther() { + return value instanceof OtherValue; + } + + public boolean _isUnknown() { + return value instanceof _UnknownValue; + } + + public Optional getDate() { + if (isDate()) { + return Optional.of(((DateValue) value).value); + } + return Optional.empty(); + } + + public Optional getTime() { + if (isTime()) { + return Optional.of(((TimeValue) value).value); + } + return Optional.empty(); + } + + public Optional getOther() { + if (isOther()) { + return Optional.of(((OtherValue) value).value); + } + return Optional.empty(); + } + + public Optional _getUnknown() { + if (_isUnknown()) { + return Optional.of(((_UnknownValue) value).value); + } + return Optional.empty(); + } + + @Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormat && value.equals(((FormFieldFormat) other).value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + return value.toString(); + } + + @JsonValue + private Value getValue() { + return this.value; + } + + public interface Visitor { + T visitDate(FormFieldFormatDate date); + + T visitTime(FormFieldFormatTime time); + + T visitOther(FormFieldFormatOther other); + + T _visitUnknown(Object unknownType); + } + + @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true, defaultImpl = _UnknownValue.class) + @JsonSubTypes({ + @JsonSubTypes.Type(DateValue.class), + @JsonSubTypes.Type(TimeValue.class), + @JsonSubTypes.Type(OtherValue.class) + }) + @JsonIgnoreProperties(ignoreUnknown = true) + private interface Value { + T visit(Visitor visitor); + } + + @JsonTypeName("date") + @JsonIgnoreProperties("kind") + private static final class DateValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "kind", allowSetters = true) + private FormFieldFormatDate value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private DateValue() {} + + private DateValue(FormFieldFormatDate value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitDate(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof DateValue && equalTo((DateValue) other); + } + + private boolean equalTo(DateValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormat{" + "value: " + value + "}"; + } + } + + @JsonTypeName("time") + @JsonIgnoreProperties("kind") + private static final class TimeValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "kind", allowSetters = true) + private FormFieldFormatTime value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private TimeValue() {} + + private TimeValue(FormFieldFormatTime value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitTime(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TimeValue && equalTo((TimeValue) other); + } + + private boolean equalTo(TimeValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormat{" + "value: " + value + "}"; + } + } + + @JsonTypeName("other") + @JsonIgnoreProperties("kind") + private static final class OtherValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "kind", allowSetters = true) + private FormFieldFormatOther value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private OtherValue() {} + + private OtherValue(FormFieldFormatOther value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitOther(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof OtherValue && equalTo((OtherValue) other); + } + + private boolean equalTo(OtherValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormat{" + "value: " + value + "}"; + } + } + + @JsonIgnoreProperties("kind") + private static final class _UnknownValue implements Value { + private String type; + + @JsonValue + private Object value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private _UnknownValue(@JsonProperty("value") Object value) {} + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor._visitUnknown(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof _UnknownValue && equalTo((_UnknownValue) other); + } + + private boolean equalTo(_UnknownValue other) { + return type.equals(other.type) && value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.type, this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormat{" + "type: " + type + ", value: " + value + "}"; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatDate.java b/src/main/java/api/types/FormFieldFormatDate.java new file mode 100644 index 0000000..7504a81 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatDate.java @@ -0,0 +1,118 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.cloudpdf.api.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = FormFieldFormatDate.Builder.class) +public final class FormFieldFormatDate { + private final String pattern; + + private final Map additionalProperties; + + private FormFieldFormatDate(String pattern, Map additionalProperties) { + this.pattern = pattern; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pattern") + public String getPattern() { + return pattern; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatDate && equalTo((FormFieldFormatDate) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(FormFieldFormatDate other) { + return pattern.equals(other.pattern); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pattern); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PatternStage builder() { + return new Builder(); + } + + public interface PatternStage { + _FinalStage pattern(@NotNull String pattern); + + Builder from(FormFieldFormatDate other); + } + + public interface _FinalStage { + FormFieldFormatDate build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PatternStage, _FinalStage { + private String pattern; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(FormFieldFormatDate other) { + pattern(other.getPattern()); + return this; + } + + @java.lang.Override + @JsonSetter("pattern") + public _FinalStage pattern(@NotNull String pattern) { + this.pattern = Objects.requireNonNull(pattern, "pattern must not be null"); + return this; + } + + @java.lang.Override + public FormFieldFormatDate build() { + return new FormFieldFormatDate(pattern, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatOther.java b/src/main/java/api/types/FormFieldFormatOther.java new file mode 100644 index 0000000..1786a34 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatOther.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.cloudpdf.api.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = FormFieldFormatOther.Builder.class) +public final class FormFieldFormatOther { + private final Map additionalProperties; + + private FormFieldFormatOther(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatOther; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(FormFieldFormatOther other) { + return this; + } + + public FormFieldFormatOther build() { + return new FormFieldFormatOther(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatTime.java b/src/main/java/api/types/FormFieldFormatTime.java new file mode 100644 index 0000000..e7f3839 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatTime.java @@ -0,0 +1,118 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.cloudpdf.api.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = FormFieldFormatTime.Builder.class) +public final class FormFieldFormatTime { + private final String pattern; + + private final Map additionalProperties; + + private FormFieldFormatTime(String pattern, Map additionalProperties) { + this.pattern = pattern; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pattern") + public String getPattern() { + return pattern; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatTime && equalTo((FormFieldFormatTime) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(FormFieldFormatTime other) { + return pattern.equals(other.pattern); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pattern); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PatternStage builder() { + return new Builder(); + } + + public interface PatternStage { + _FinalStage pattern(@NotNull String pattern); + + Builder from(FormFieldFormatTime other); + } + + public interface _FinalStage { + FormFieldFormatTime build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PatternStage, _FinalStage { + private String pattern; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(FormFieldFormatTime other) { + pattern(other.getPattern()); + return this; + } + + @java.lang.Override + @JsonSetter("pattern") + public _FinalStage pattern(@NotNull String pattern) { + this.pattern = Objects.requireNonNull(pattern, "pattern must not be null"); + return this; + } + + @java.lang.Override + public FormFieldFormatTime build() { + return new FormFieldFormatTime(pattern, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatWritable.java b/src/main/java/api/types/FormFieldFormatWritable.java new file mode 100644 index 0000000..c2f848f --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatWritable.java @@ -0,0 +1,221 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Objects; +import java.util.Optional; + +public final class FormFieldFormatWritable { + private final Value value; + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + private FormFieldFormatWritable(Value value) { + this.value = value; + } + + public T visit(Visitor visitor) { + return value.visit(visitor); + } + + public static FormFieldFormatWritable date(FormFieldFormatWritableDate value) { + return new FormFieldFormatWritable(new DateValue(value)); + } + + public static FormFieldFormatWritable time(FormFieldFormatWritableTime value) { + return new FormFieldFormatWritable(new TimeValue(value)); + } + + public boolean isDate() { + return value instanceof DateValue; + } + + public boolean isTime() { + return value instanceof TimeValue; + } + + public boolean _isUnknown() { + return value instanceof _UnknownValue; + } + + public Optional getDate() { + if (isDate()) { + return Optional.of(((DateValue) value).value); + } + return Optional.empty(); + } + + public Optional getTime() { + if (isTime()) { + return Optional.of(((TimeValue) value).value); + } + return Optional.empty(); + } + + public Optional _getUnknown() { + if (_isUnknown()) { + return Optional.of(((_UnknownValue) value).value); + } + return Optional.empty(); + } + + @Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatWritable && value.equals(((FormFieldFormatWritable) other).value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + return value.toString(); + } + + @JsonValue + private Value getValue() { + return this.value; + } + + public interface Visitor { + T visitDate(FormFieldFormatWritableDate date); + + T visitTime(FormFieldFormatWritableTime time); + + T _visitUnknown(Object unknownType); + } + + @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true, defaultImpl = _UnknownValue.class) + @JsonSubTypes({@JsonSubTypes.Type(DateValue.class), @JsonSubTypes.Type(TimeValue.class)}) + @JsonIgnoreProperties(ignoreUnknown = true) + private interface Value { + T visit(Visitor visitor); + } + + @JsonTypeName("date") + @JsonIgnoreProperties("kind") + private static final class DateValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "kind", allowSetters = true) + private FormFieldFormatWritableDate value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private DateValue() {} + + private DateValue(FormFieldFormatWritableDate value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitDate(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof DateValue && equalTo((DateValue) other); + } + + private boolean equalTo(DateValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormatWritable{" + "value: " + value + "}"; + } + } + + @JsonTypeName("time") + @JsonIgnoreProperties("kind") + private static final class TimeValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "kind", allowSetters = true) + private FormFieldFormatWritableTime value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private TimeValue() {} + + private TimeValue(FormFieldFormatWritableTime value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitTime(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TimeValue && equalTo((TimeValue) other); + } + + private boolean equalTo(TimeValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormatWritable{" + "value: " + value + "}"; + } + } + + @JsonIgnoreProperties("kind") + private static final class _UnknownValue implements Value { + private String type; + + @JsonValue + private Object value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private _UnknownValue(@JsonProperty("value") Object value) {} + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor._visitUnknown(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof _UnknownValue && equalTo((_UnknownValue) other); + } + + private boolean equalTo(_UnknownValue other) { + return type.equals(other.type) && value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.type, this.value); + } + + @java.lang.Override + public String toString() { + return "FormFieldFormatWritable{" + "type: " + type + ", value: " + value + "}"; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatWritableDate.java b/src/main/java/api/types/FormFieldFormatWritableDate.java new file mode 100644 index 0000000..087e722 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatWritableDate.java @@ -0,0 +1,118 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.cloudpdf.api.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = FormFieldFormatWritableDate.Builder.class) +public final class FormFieldFormatWritableDate { + private final String pattern; + + private final Map additionalProperties; + + private FormFieldFormatWritableDate(String pattern, Map additionalProperties) { + this.pattern = pattern; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pattern") + public String getPattern() { + return pattern; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatWritableDate && equalTo((FormFieldFormatWritableDate) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(FormFieldFormatWritableDate other) { + return pattern.equals(other.pattern); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pattern); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PatternStage builder() { + return new Builder(); + } + + public interface PatternStage { + _FinalStage pattern(@NotNull String pattern); + + Builder from(FormFieldFormatWritableDate other); + } + + public interface _FinalStage { + FormFieldFormatWritableDate build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PatternStage, _FinalStage { + private String pattern; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(FormFieldFormatWritableDate other) { + pattern(other.getPattern()); + return this; + } + + @java.lang.Override + @JsonSetter("pattern") + public _FinalStage pattern(@NotNull String pattern) { + this.pattern = Objects.requireNonNull(pattern, "pattern must not be null"); + return this; + } + + @java.lang.Override + public FormFieldFormatWritableDate build() { + return new FormFieldFormatWritableDate(pattern, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/api/types/FormFieldFormatWritableTime.java b/src/main/java/api/types/FormFieldFormatWritableTime.java new file mode 100644 index 0000000..638f8e8 --- /dev/null +++ b/src/main/java/api/types/FormFieldFormatWritableTime.java @@ -0,0 +1,118 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.cloudpdf.api.types; + +import com.cloudpdf.api.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = FormFieldFormatWritableTime.Builder.class) +public final class FormFieldFormatWritableTime { + private final String pattern; + + private final Map additionalProperties; + + private FormFieldFormatWritableTime(String pattern, Map additionalProperties) { + this.pattern = pattern; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pattern") + public String getPattern() { + return pattern; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof FormFieldFormatWritableTime && equalTo((FormFieldFormatWritableTime) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(FormFieldFormatWritableTime other) { + return pattern.equals(other.pattern); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pattern); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PatternStage builder() { + return new Builder(); + } + + public interface PatternStage { + _FinalStage pattern(@NotNull String pattern); + + Builder from(FormFieldFormatWritableTime other); + } + + public interface _FinalStage { + FormFieldFormatWritableTime build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PatternStage, _FinalStage { + private String pattern; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(FormFieldFormatWritableTime other) { + pattern(other.getPattern()); + return this; + } + + @java.lang.Override + @JsonSetter("pattern") + public _FinalStage pattern(@NotNull String pattern) { + this.pattern = Objects.requireNonNull(pattern, "pattern must not be null"); + return this; + } + + @java.lang.Override + public FormFieldFormatWritableTime build() { + return new FormFieldFormatWritableTime(pattern, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/api/types/FormFieldListbox.java b/src/main/java/api/types/FormFieldListbox.java index 4aea49a..cf7d673 100644 --- a/src/main/java/api/types/FormFieldListbox.java +++ b/src/main/java/api/types/FormFieldListbox.java @@ -51,6 +51,8 @@ public final class FormFieldListbox { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -90,6 +92,7 @@ private FormFieldListbox( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -115,6 +118,7 @@ private FormFieldListbox( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -199,6 +203,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -295,6 +307,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -355,6 +373,7 @@ private boolean equalTo(FormFieldListbox other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -384,6 +403,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -478,6 +498,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -592,6 +618,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -619,6 +647,7 @@ public Builder from(FormFieldListbox other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -950,6 +979,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -1053,6 +1107,7 @@ public FormFieldListbox build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, diff --git a/src/main/java/api/types/FormFieldPatch.java b/src/main/java/api/types/FormFieldPatch.java index e1060e8..87c4b14 100644 --- a/src/main/java/api/types/FormFieldPatch.java +++ b/src/main/java/api/types/FormFieldPatch.java @@ -38,6 +38,8 @@ public final class FormFieldPatch { private final Optional groupId; + private final Optional purpose; + private final Optional actions; private final Optional kind; @@ -62,6 +64,8 @@ public final class FormFieldPatch { private final Optional> options; + private final Optional format; + private final Map additionalProperties; private FormFieldPatch( @@ -72,6 +76,7 @@ private FormFieldPatch( Optional alternateName, Optional mappingName, Optional groupId, + Optional purpose, Optional actions, Optional kind, Optional defaultValue, @@ -84,6 +89,7 @@ private FormFieldPatch( Optional edit, Optional multiSelect, Optional> options, + Optional format, Map additionalProperties) { this.name = name; this.readOnly = readOnly; @@ -92,6 +98,7 @@ private FormFieldPatch( this.alternateName = alternateName; this.mappingName = mappingName; this.groupId = groupId; + this.purpose = purpose; this.actions = actions; this.kind = kind; this.defaultValue = defaultValue; @@ -104,6 +111,7 @@ private FormFieldPatch( this.edit = edit; this.multiSelect = multiSelect; this.options = options; + this.format = format; this.additionalProperties = additionalProperties; } @@ -143,11 +151,22 @@ public Optional getMappingName() { return mappingName; } - @JsonProperty("groupId") + @JsonIgnore public Optional getGroupId() { + if (groupId == null) { + return Optional.empty(); + } return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonProperty("actions") public Optional getActions() { return actions; @@ -214,6 +233,14 @@ public Optional> getOptions() { return options; } + @JsonIgnore + public Optional getFormat() { + if (format == null) { + return Optional.empty(); + } + return format; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("alternateName") private Optional _getAlternateName() { @@ -226,6 +253,18 @@ private Optional _getMappingName() { return mappingName; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("groupId") + private Optional _getGroupId() { + return groupId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("defaultValue") private Optional _getDefaultValue() { @@ -238,6 +277,12 @@ private Optional _getMaxLength() { return maxLength; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("format") + private Optional _getFormat() { + return format; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -257,6 +302,7 @@ private boolean equalTo(FormFieldPatch other) { && alternateName.equals(other.alternateName) && mappingName.equals(other.mappingName) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && actions.equals(other.actions) && kind.equals(other.kind) && defaultValue.equals(other.defaultValue) @@ -268,7 +314,8 @@ private boolean equalTo(FormFieldPatch other) { && noToggleToOff.equals(other.noToggleToOff) && edit.equals(other.edit) && multiSelect.equals(other.multiSelect) - && options.equals(other.options); + && options.equals(other.options) + && format.equals(other.format); } @java.lang.Override @@ -281,6 +328,7 @@ public int hashCode() { this.alternateName, this.mappingName, this.groupId, + this.purpose, this.actions, this.kind, this.defaultValue, @@ -292,7 +340,8 @@ public int hashCode() { this.noToggleToOff, this.edit, this.multiSelect, - this.options); + this.options, + this.format); } @java.lang.Override @@ -320,6 +369,8 @@ public static final class Builder { private Optional groupId = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional actions = Optional.empty(); private Optional kind = Optional.empty(); @@ -344,6 +395,8 @@ public static final class Builder { private Optional> options = Optional.empty(); + private Optional format = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -357,6 +410,7 @@ public Builder from(FormFieldPatch other) { alternateName(other.getAlternateName()); mappingName(other.getMappingName()); groupId(other.getGroupId()); + purpose(other.getPurpose()); actions(other.getActions()); kind(other.getKind()); defaultValue(other.getDefaultValue()); @@ -369,6 +423,7 @@ public Builder from(FormFieldPatch other) { edit(other.getEdit()); multiSelect(other.getMultiSelect()); options(other.getOptions()); + format(other.getFormat()); return this; } @@ -471,6 +526,39 @@ public Builder groupId(String groupId) { return this; } + public Builder groupId(Nullable groupId) { + if (groupId.isNull()) { + this.groupId = null; + } else if (groupId.isEmpty()) { + this.groupId = Optional.empty(); + } else { + this.groupId = Optional.of(groupId.get()); + } + return this; + } + + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public Builder purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + + public Builder purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + public Builder purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + @JsonSetter(value = "actions", nulls = Nulls.SKIP) public Builder actions(Optional actions) { this.actions = actions; @@ -625,6 +713,28 @@ public Builder options(List options) { return this; } + @JsonSetter(value = "format", nulls = Nulls.SKIP) + public Builder format(Optional format) { + this.format = format; + return this; + } + + public Builder format(FormFieldFormatWritable format) { + this.format = Optional.ofNullable(format); + return this; + } + + public Builder format(Nullable format) { + if (format.isNull()) { + this.format = null; + } else if (format.isEmpty()) { + this.format = Optional.empty(); + } else { + this.format = Optional.of(format.get()); + } + return this; + } + public FormFieldPatch build() { return new FormFieldPatch( name, @@ -634,6 +744,7 @@ public FormFieldPatch build() { alternateName, mappingName, groupId, + purpose, actions, kind, defaultValue, @@ -646,6 +757,7 @@ public FormFieldPatch build() { edit, multiSelect, options, + format, additionalProperties); } diff --git a/src/main/java/api/types/FormFieldPushbutton.java b/src/main/java/api/types/FormFieldPushbutton.java index 1710282..4c234f5 100644 --- a/src/main/java/api/types/FormFieldPushbutton.java +++ b/src/main/java/api/types/FormFieldPushbutton.java @@ -51,6 +51,8 @@ public final class FormFieldPushbutton { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -80,6 +82,7 @@ private FormFieldPushbutton( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -100,6 +103,7 @@ private FormFieldPushbutton( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -179,6 +183,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -250,6 +262,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -310,6 +328,7 @@ private boolean equalTo(FormFieldPushbutton other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -334,6 +353,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -415,6 +435,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -499,6 +525,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -526,6 +554,7 @@ public Builder from(FormFieldPushbutton other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -766,6 +795,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -869,6 +923,7 @@ public FormFieldPushbutton build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, diff --git a/src/main/java/api/types/FormFieldRadio.java b/src/main/java/api/types/FormFieldRadio.java index c98ca58..b37b58b 100644 --- a/src/main/java/api/types/FormFieldRadio.java +++ b/src/main/java/api/types/FormFieldRadio.java @@ -51,6 +51,8 @@ public final class FormFieldRadio { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -86,6 +88,7 @@ private FormFieldRadio( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -109,6 +112,7 @@ private FormFieldRadio( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -191,6 +195,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -277,6 +289,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -337,6 +355,7 @@ private boolean equalTo(FormFieldRadio other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -364,6 +383,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -460,6 +480,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -553,6 +579,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -580,6 +608,7 @@ public Builder from(FormFieldRadio other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -844,6 +873,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -947,6 +1001,7 @@ public FormFieldRadio build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, diff --git a/src/main/java/api/types/FormFieldSignature.java b/src/main/java/api/types/FormFieldSignature.java index e0490de..53bbb42 100644 --- a/src/main/java/api/types/FormFieldSignature.java +++ b/src/main/java/api/types/FormFieldSignature.java @@ -51,6 +51,8 @@ public final class FormFieldSignature { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -80,6 +82,7 @@ private FormFieldSignature( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -100,6 +103,7 @@ private FormFieldSignature( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -179,6 +183,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -250,6 +262,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -310,6 +328,7 @@ private boolean equalTo(FormFieldSignature other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -334,6 +353,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -415,6 +435,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -499,6 +525,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -526,6 +554,7 @@ public Builder from(FormFieldSignature other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -766,6 +795,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -869,6 +923,7 @@ public FormFieldSignature build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, diff --git a/src/main/java/api/types/FormFieldText.java b/src/main/java/api/types/FormFieldText.java index d5f29de..d3c094a 100644 --- a/src/main/java/api/types/FormFieldText.java +++ b/src/main/java/api/types/FormFieldText.java @@ -51,6 +51,8 @@ public final class FormFieldText { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -77,6 +79,8 @@ public final class FormFieldText { private final boolean comb; + private final Optional format; + private final Map additionalProperties; private FormFieldText( @@ -92,6 +96,7 @@ private FormFieldText( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -105,6 +110,7 @@ private FormFieldText( boolean multiline, boolean password, boolean comb, + Optional format, Map additionalProperties) { this.ref = ref; this.name = name; @@ -118,6 +124,7 @@ private FormFieldText( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -131,6 +138,7 @@ private FormFieldText( this.multiline = multiline; this.password = password; this.comb = comb; + this.format = format; this.additionalProperties = additionalProperties; } @@ -203,6 +211,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -289,6 +305,17 @@ public boolean getComb() { return comb; } + /** + * @return The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other. + */ + @JsonIgnore + public Optional getFormat() { + if (format == null) { + return Optional.empty(); + } + return format; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("alternateName") private Optional _getAlternateName() { @@ -307,6 +334,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -349,6 +382,12 @@ private Optional _getMaxLength() { return maxLength; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("format") + private Optional _getFormat() { + return format; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -373,6 +412,7 @@ private boolean equalTo(FormFieldText other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -385,7 +425,8 @@ private boolean equalTo(FormFieldText other) { && maxLength.equals(other.maxLength) && multiline == other.multiline && password == other.password - && comb == other.comb; + && comb == other.comb + && format.equals(other.format); } @java.lang.Override @@ -403,6 +444,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -415,7 +457,8 @@ public int hashCode() { this.maxLength, this.multiline, this.password, - this.comb); + this.comb, + this.format); } @java.lang.Override @@ -510,6 +553,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -557,6 +606,15 @@ public interface _FinalStage { _FinalStage maxLength(Integer maxLength); _FinalStage maxLength(Nullable maxLength); + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ */ + _FinalStage format(Optional format); + + _FinalStage format(FormFieldFormat format); + + _FinalStage format(Nullable format); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -601,6 +659,8 @@ public static final class Builder private boolean comb; + private Optional format = Optional.empty(); + private Optional maxLength = Optional.empty(); private List widgets = new ArrayList<>(); @@ -617,6 +677,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -644,6 +706,7 @@ public Builder from(FormFieldText other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -657,6 +720,7 @@ public Builder from(FormFieldText other) { multiline(other.getMultiline()); password(other.getPassword()); comb(other.getComb()); + format(other.getFormat()); return this; } @@ -751,6 +815,42 @@ public _FinalStage comb(boolean comb) { return this; } + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage format(Nullable format) { + if (format.isNull()) { + this.format = null; + } else if (format.isEmpty()) { + this.format = Optional.empty(); + } else { + this.format = Optional.of(format.get()); + } + return this; + } + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage format(FormFieldFormat format) { + this.format = Optional.ofNullable(format); + return this; + } + + /** + *

The shape a text field's or a dropdown's value has, by its kind: a date or a time with the pattern it is shown in, or other for a format script the engine does not recognise. A newer server can add kinds: read one your client doesn't know as other.

+ */ + @java.lang.Override + @JsonSetter(value = "format", nulls = Nulls.SKIP) + public _FinalStage format(Optional format) { + this.format = format; + return this; + } + @java.lang.Override public _FinalStage maxLength(Nullable maxLength) { if (maxLength.isNull()) { @@ -950,6 +1050,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -1053,6 +1178,7 @@ public FormFieldText build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy, @@ -1066,6 +1192,7 @@ public FormFieldText build() { multiline, password, comb, + format, additionalProperties); } diff --git a/src/main/java/api/types/FormFieldUnknown.java b/src/main/java/api/types/FormFieldUnknown.java index 15ccd2e..266a998 100644 --- a/src/main/java/api/types/FormFieldUnknown.java +++ b/src/main/java/api/types/FormFieldUnknown.java @@ -51,6 +51,8 @@ public final class FormFieldUnknown { private final Optional groupId; + private final Optional purpose; + private final Optional createdBy; private final Optional createdAt; @@ -82,6 +84,7 @@ private FormFieldUnknown( FormValueEntry defaultValueEntry, Optional actions, Optional groupId, + Optional purpose, Optional createdBy, Optional createdAt, Optional filledBy, @@ -103,6 +106,7 @@ private FormFieldUnknown( this.defaultValueEntry = defaultValueEntry; this.actions = actions; this.groupId = groupId; + this.purpose = purpose; this.createdBy = createdBy; this.createdAt = createdAt; this.filledBy = filledBy; @@ -183,6 +187,14 @@ public Optional getGroupId() { return groupId; } + @JsonIgnore + public Optional getPurpose() { + if (purpose == null) { + return Optional.empty(); + } + return purpose; + } + @JsonIgnore public Optional getCreatedBy() { if (createdBy == null) { @@ -259,6 +271,12 @@ private Optional _getGroupId() { return groupId; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("purpose") + private Optional _getPurpose() { + return purpose; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("createdBy") private Optional _getCreatedBy() { @@ -319,6 +337,7 @@ private boolean equalTo(FormFieldUnknown other) { && defaultValueEntry.equals(other.defaultValueEntry) && actions.equals(other.actions) && groupId.equals(other.groupId) + && purpose.equals(other.purpose) && createdBy.equals(other.createdBy) && createdAt.equals(other.createdAt) && filledBy.equals(other.filledBy) @@ -344,6 +363,7 @@ public int hashCode() { this.defaultValueEntry, this.actions, this.groupId, + this.purpose, this.createdBy, this.createdAt, this.filledBy, @@ -430,6 +450,12 @@ public interface _FinalStage { _FinalStage groupId(Nullable groupId); + _FinalStage purpose(Optional purpose); + + _FinalStage purpose(String purpose); + + _FinalStage purpose(Nullable purpose); + _FinalStage createdBy(Optional createdBy); _FinalStage createdBy(String createdBy); @@ -517,6 +543,8 @@ public static final class Builder private Optional createdBy = Optional.empty(); + private Optional purpose = Optional.empty(); + private Optional groupId = Optional.empty(); private Optional actions = Optional.empty(); @@ -544,6 +572,7 @@ public Builder from(FormFieldUnknown other) { defaultValueEntry(other.getDefaultValueEntry()); actions(other.getActions()); groupId(other.getGroupId()); + purpose(other.getPurpose()); createdBy(other.getCreatedBy()); createdAt(other.getCreatedAt()); filledBy(other.getFilledBy()); @@ -792,6 +821,31 @@ public _FinalStage createdBy(Optional createdBy) { return this; } + @java.lang.Override + public _FinalStage purpose(Nullable purpose) { + if (purpose.isNull()) { + this.purpose = null; + } else if (purpose.isEmpty()) { + this.purpose = Optional.empty(); + } else { + this.purpose = Optional.of(purpose.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage purpose(String purpose) { + this.purpose = Optional.ofNullable(purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "purpose", nulls = Nulls.SKIP) + public _FinalStage purpose(Optional purpose) { + this.purpose = purpose; + return this; + } + @java.lang.Override public _FinalStage groupId(Nullable groupId) { if (groupId.isNull()) { @@ -895,6 +949,7 @@ public FormFieldUnknown build() { defaultValueEntry, actions, groupId, + purpose, createdBy, createdAt, filledBy,