docspring 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +84 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +2 -2
- data/README.md +10 -1
- data/docs/AddTemplateFieldsRequest.md +18 -0
- data/docs/Client.md +704 -33
- data/docs/CreateSubmissionBatchRequest.md +2 -0
- data/docs/CreateSubmissionRequest.md +2 -0
- data/docs/CreateTemplateRequest.md +10 -2
- data/docs/Field.md +198 -0
- data/docs/FieldDependency.md +22 -0
- data/docs/FieldDependencyInput.md +22 -0
- data/docs/FieldGroup.md +32 -0
- data/docs/FieldGroupInput.md +30 -0
- data/docs/FieldGroupType.md +15 -0
- data/docs/FieldInput.md +196 -0
- data/docs/FieldType.md +15 -0
- data/docs/GenerateFilesFormat.md +15 -0
- data/docs/GenerateSubmissionFilesRequest.md +18 -0
- data/docs/OutputFormat.md +15 -0
- data/docs/PageImage.md +34 -0
- data/docs/PageImages.md +24 -0
- data/docs/PredefinedField.md +30 -0
- data/docs/PredefinedFieldInput.md +30 -0
- data/docs/RemoveTemplateFieldsRequest.md +18 -0
- data/docs/ReorderTemplateFieldsRequest.md +18 -0
- data/docs/Submission.md +3 -1
- data/docs/SubmissionFiles.md +3 -1
- data/docs/SubmissionInput.md +2 -0
- data/docs/SubmissionValidation.md +24 -0
- data/docs/Template.md +6 -0
- data/docs/TemplateDiff.md +30 -0
- data/docs/TemplateDiffSummary.md +28 -0
- data/docs/TemplateDocument.md +3 -3
- data/docs/TemplateFieldChange.md +24 -0
- data/docs/TemplateFieldChanges.md +24 -0
- data/docs/TemplateFieldDependency.md +1 -1
- data/docs/TemplateFieldDependencyInput.md +1 -1
- data/docs/TemplateFieldMove.md +22 -0
- data/docs/TemplateFields.md +22 -0
- data/docs/TemplatePageImages.md +24 -0
- data/docs/UpdateTemplateDocumentRequest.md +6 -2
- data/docs/UpdateTemplateFieldsRequest.md +18 -0
- data/docs/UpdateTemplateRequest.md +6 -0
- data/docs/ValidateSubmissionRequest.md +38 -0
- data/lib/docspring/api/client.rb +666 -18
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/add_template_fields_request.rb +187 -0
- data/lib/docspring/models/create_submission_batch_request.rb +23 -1
- data/lib/docspring/models/create_submission_request.rb +23 -1
- data/lib/docspring/models/create_template_request.rb +48 -3
- data/lib/docspring/models/field.rb +2217 -0
- data/lib/docspring/models/field_dependency.rb +246 -0
- data/lib/docspring/models/field_dependency_input.rb +246 -0
- data/lib/docspring/models/field_group.rb +368 -0
- data/lib/docspring/models/field_group_input.rb +247 -0
- data/lib/docspring/models/field_group_type.rb +41 -0
- data/lib/docspring/models/field_input.rb +1109 -0
- data/lib/docspring/models/field_type.rb +54 -0
- data/lib/docspring/models/generate_files_format.rb +40 -0
- data/lib/docspring/models/generate_submission_files_request.rb +187 -0
- data/lib/docspring/models/output_format.rb +41 -0
- data/lib/docspring/models/page_image.rb +359 -0
- data/lib/docspring/models/page_images.rb +248 -0
- data/lib/docspring/models/predefined_field.rb +287 -0
- data/lib/docspring/models/predefined_field_input.rb +287 -0
- data/lib/docspring/models/remove_template_fields_request.rb +187 -0
- data/lib/docspring/models/reorder_template_fields_request.rb +187 -0
- data/lib/docspring/models/submission.rb +31 -2
- data/lib/docspring/models/submission_files.rb +13 -4
- data/lib/docspring/models/submission_input.rb +23 -1
- data/lib/docspring/models/submission_validation.rb +234 -0
- data/lib/docspring/models/template.rb +74 -1
- data/lib/docspring/models/template_diff.rb +321 -0
- data/lib/docspring/models/template_diff_summary.rb +320 -0
- data/lib/docspring/models/template_document.rb +3 -3
- data/lib/docspring/models/template_document_state.rb +3 -1
- data/lib/docspring/models/template_field_change.rb +266 -0
- data/lib/docspring/models/template_field_changes.rb +274 -0
- data/lib/docspring/models/template_field_dependency.rb +1 -1
- data/lib/docspring/models/template_field_dependency_input.rb +1 -1
- data/lib/docspring/models/template_field_move.rb +239 -0
- data/lib/docspring/models/template_fields.rb +227 -0
- data/lib/docspring/models/template_page_images.rb +254 -0
- data/lib/docspring/models/update_template_document_request.rb +23 -20
- data/lib/docspring/models/update_template_fields_request.rb +187 -0
- data/lib/docspring/models/update_template_request.rb +38 -1
- data/lib/docspring/models/validate_submission_request.rb +288 -0
- data/lib/docspring/request_schemas.json +3364 -1584
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +28 -0
- data/spec/api/client_spec.rb +128 -9
- data/spec/models/add_template_fields_request_spec.rb +36 -0
- data/spec/models/create_submission_batch_request_spec.rb +6 -0
- data/spec/models/create_submission_request_spec.rb +6 -0
- data/spec/models/create_template_request_spec.rb +24 -0
- data/spec/models/field_dependency_input_spec.rb +48 -0
- data/spec/models/field_dependency_spec.rb +48 -0
- data/spec/models/field_group_input_spec.rb +72 -0
- data/spec/models/field_group_spec.rb +78 -0
- data/spec/models/field_group_type_spec.rb +30 -0
- data/spec/models/field_input_spec.rb +570 -0
- data/spec/models/field_spec.rb +576 -0
- data/spec/models/field_type_spec.rb +30 -0
- data/spec/models/generate_files_format_spec.rb +30 -0
- data/spec/models/generate_submission_files_request_spec.rb +36 -0
- data/spec/models/output_format_spec.rb +30 -0
- data/spec/models/page_image_spec.rb +84 -0
- data/spec/models/page_images_spec.rb +54 -0
- data/spec/models/predefined_field_input_spec.rb +72 -0
- data/spec/models/predefined_field_spec.rb +72 -0
- data/spec/models/remove_template_fields_request_spec.rb +36 -0
- data/spec/models/reorder_template_fields_request_spec.rb +36 -0
- data/spec/models/submission_files_spec.rb +6 -0
- data/spec/models/submission_input_spec.rb +6 -0
- data/spec/models/submission_spec.rb +6 -0
- data/spec/models/submission_validation_spec.rb +54 -0
- data/spec/models/template_diff_spec.rb +72 -0
- data/spec/models/template_diff_summary_spec.rb +66 -0
- data/spec/models/template_field_change_spec.rb +54 -0
- data/spec/models/template_field_changes_spec.rb +54 -0
- data/spec/models/template_field_move_spec.rb +48 -0
- data/spec/models/template_fields_spec.rb +48 -0
- data/spec/models/template_page_images_spec.rb +54 -0
- data/spec/models/template_spec.rb +18 -0
- data/spec/models/update_template_document_request_spec.rb +12 -0
- data/spec/models/update_template_fields_request_spec.rb +36 -0
- data/spec/models/update_template_request_spec.rb +18 -0
- data/spec/models/validate_submission_request_spec.rb +96 -0
- metadata +113 -1
|
@@ -0,0 +1,2217 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DocSpring API
|
|
3
|
+
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v2
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0-DOCSPRING
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DocSpring
|
|
17
|
+
# A field of a template: the name of a value in submission data, and how and where it prints. Fields with the same `name` share one value and the settings the descriptions say are shared. A PDF template's fields are placed on its pages: `x`, `y`, `width` and `height` are in units where every page is 2480 wide, measured from the top-left corner of the field's `page`. To convert from PDF points, multiply by 2480 and divide by the page's width in points (`document.page_dimensions` on the template). An HTML template's fields are all on page 1, and their placement and style settings aren't used.
|
|
18
|
+
class Field < ApiModelBase
|
|
19
|
+
# The field's ID, an integer that's unique within the template.
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# The field's name, the key of its value in submission data. A `/` nests the key in objects and arrays (`client/address`, `items/0/price`); write a literal `/` as `~1` and `~` as `~0`. Fields with the same name share one value and their shared settings, and array indexes inside a name are ignored for settings, so `items/0/price` and `items/1/price` share settings but not values. A `#` and a line number (`notes#0`, `notes#1`) splits one value over several fields as lines of text, and names that start with `@@` print submission details such as `@@date`.
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# The number of the page the field is on, starting at 1. A field added without one goes on page 1, and a field moved to another page without a new `y` keeps its place on the page.
|
|
26
|
+
attr_accessor :page
|
|
27
|
+
|
|
28
|
+
# The name of the PDF form field this field was made from, when the template's PDF had fillable fields. Null for fields added in DocSpring.
|
|
29
|
+
attr_accessor :acroform_name
|
|
30
|
+
|
|
31
|
+
# The data type of the field's value: `string`, `number`, `boolean`, `date`, `address`, `country`, `email`, `url`, `image`, `signature`, `initials`, `barcode`, or `combined` (made from other fields' values, never sent in submission data). It sets how the value is validated and which `display_type`s the field can use. `object` and `array` are the types of field groups (the template's `field_groups`), not of fields. Shared by every field with the same `name`.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
# The field prints fixed content, its `default`, instead of a value from submission data, and it's left out of the template's data schema and forms. Static check marks and shapes always print unless `hidden`, and a static number field's `default` can be a formula. Shared by every field with the same `name`.
|
|
35
|
+
attr_accessor :static
|
|
36
|
+
|
|
37
|
+
# Text and check display only: prints the field as a fillable PDF form field instead of flat content (a text field with an `option_list` becomes a dropdown). A submission's `editable` option, when set, overrides this for every field. Shared by every field with the same `name`.
|
|
38
|
+
attr_accessor :editable
|
|
39
|
+
|
|
40
|
+
# The value used when a submission leaves the field out, and the value forms are pre-filled with. A required field still needs a value in each submission. An image field's default is an image URL, a number field's can be a formula, and a static field's is the content it prints. Shared by every field with the same `name`.
|
|
41
|
+
attr_accessor :default
|
|
42
|
+
|
|
43
|
+
# The field's title in the template's data schema and on forms. When it's empty, a title is made from the field's name. Shared by every field with the same `name`.
|
|
44
|
+
attr_accessor :title
|
|
45
|
+
|
|
46
|
+
# Help text for the field, added to the template's data schema and shown on forms. Shared by every field with the same `name`.
|
|
47
|
+
attr_accessor :description
|
|
48
|
+
|
|
49
|
+
# Placeholder text for the field's input on forms, added to the template's data schema as `x-placeholder`. Shared by every field with the same `name`.
|
|
50
|
+
attr_accessor :placeholder
|
|
51
|
+
|
|
52
|
+
# Text for your own use, added to the template's data schema as `x-metadata`. DocSpring doesn't use it. Shared by every field with the same `name`.
|
|
53
|
+
attr_accessor :metadata
|
|
54
|
+
|
|
55
|
+
# Whether each submission must include a value for the field. A submission without one fails validation, and no PDF is generated. Shared by every field with the same `name`.
|
|
56
|
+
attr_accessor :required
|
|
57
|
+
|
|
58
|
+
# String fields only: a comma-separated list of the values the field accepts. It's added to the template's data schema as an `enum`, forms show it as a select list, and an `editable` field becomes a dropdown. Shared by every field with the same `name`.
|
|
59
|
+
attr_accessor :option_list
|
|
60
|
+
|
|
61
|
+
# Combined fields only: a comma-separated list of the names of the fields whose values are combined, in order. Shared by every field with the same `name`.
|
|
62
|
+
attr_accessor :combined_field_names
|
|
63
|
+
|
|
64
|
+
# Combined fields only: `separator` joins the values with `combined_field_separator`, and `format` puts them into `combined_field_format`. Shared by every field with the same `name`.
|
|
65
|
+
attr_accessor :combined_field_type
|
|
66
|
+
|
|
67
|
+
# Combined fields only: the text placed between the values when `combined_field_type` is `separator`. Empty values are skipped. Defaults to a space. Shared by every field with the same `name`.
|
|
68
|
+
attr_accessor :combined_field_separator
|
|
69
|
+
|
|
70
|
+
# Combined fields only: the text for `combined_field_type` `format`, where `$0`, `$1` and so on are replaced with the values of `combined_field_names` in order, such as `Full name: $0, Occupation: $1`. Shared by every field with the same `name`.
|
|
71
|
+
attr_accessor :combined_field_format
|
|
72
|
+
|
|
73
|
+
# Number fields only: the value must be a whole number. Shared by every field with the same `name`.
|
|
74
|
+
attr_accessor :integer
|
|
75
|
+
|
|
76
|
+
# Number fields only: the smallest value allowed. Shared by every field with the same `name`.
|
|
77
|
+
attr_accessor :minimum
|
|
78
|
+
|
|
79
|
+
# Number fields only: the largest value allowed. Shared by every field with the same `name`.
|
|
80
|
+
attr_accessor :maximum
|
|
81
|
+
|
|
82
|
+
# Number fields only: the value must be greater than `minimum`, not equal to it. Shared by every field with the same `name`.
|
|
83
|
+
attr_accessor :exclusive_minimum
|
|
84
|
+
|
|
85
|
+
# Number fields only: the value must be less than `maximum`, not equal to it. Shared by every field with the same `name`.
|
|
86
|
+
attr_accessor :exclusive_maximum
|
|
87
|
+
|
|
88
|
+
# Date fields only: the value is a date and time (`YYYY-MM-DDThh:mm:ss.fffZ`) instead of a date (`YYYY-MM-DD`), and it prints with the template's date-time format unless `date_time_format` is set. Shared by every field with the same `name`.
|
|
89
|
+
attr_accessor :include_time
|
|
90
|
+
|
|
91
|
+
# Signature and initials fields only: lets signers draw their signature on forms and in data requests. Shared by every field with the same `name`.
|
|
92
|
+
attr_accessor :signature_allow_draw
|
|
93
|
+
|
|
94
|
+
# Signature and initials fields only: lets signers type their name and choose a script font instead of drawing, on forms and in data requests. Shared by every field with the same `name`.
|
|
95
|
+
attr_accessor :signature_allow_type
|
|
96
|
+
|
|
97
|
+
# Barcode fields only: the barcode format, which the value must match. `code_128` and `pdf417` take any ASCII text; `code_39` and `code_93` take capital letters, digits, spaces and `- . $ / + %`; `code_25` takes digits; `ean_13` takes 12 digits, `ean_8` 7 digits and `upc_a` 11 digits (the check digit is added). Shared by every field with the same `name`.
|
|
98
|
+
attr_accessor :barcode_symbology
|
|
99
|
+
|
|
100
|
+
# Leaves the field off the PDF. It stays in the template's data schema (marked `x-hidden`) and on forms, so other fields, such as combined fields, can use its value. A hidden static check mark or shape isn't printed.
|
|
101
|
+
attr_accessor :hidden
|
|
102
|
+
|
|
103
|
+
# The distance from the page's left edge to the field's left edge. Positions and sizes are in units where every page is 2480 wide: one unit is the page's width in points divided by 2480 (about 0.247 points on a US Letter page).
|
|
104
|
+
attr_accessor :x
|
|
105
|
+
|
|
106
|
+
# The distance from the top edge of the field's `page` down to the field's top edge, in the units of `x`. A page is 2480 times its height divided by its width units tall: about 3209 for US Letter and 3508 for A4.
|
|
107
|
+
attr_accessor :y
|
|
108
|
+
|
|
109
|
+
# The field's width, in the units of `x`. A check mark is sized to the field's width.
|
|
110
|
+
attr_accessor :width
|
|
111
|
+
|
|
112
|
+
# The field's height, in the units of `x`. The template editor keeps check marks, QR codes, and square and circle shapes square, with `height` equal to `width`.
|
|
113
|
+
attr_accessor :height
|
|
114
|
+
|
|
115
|
+
# Rotates the field clockwise by this many degrees, from -360 to 360 (negative turns it counterclockwise).
|
|
116
|
+
attr_accessor :rotation
|
|
117
|
+
|
|
118
|
+
# How the value appears on the PDF: `text`, `check` (a check mark), `shape`, `qrcode`, `barcode`, or `image` (image, signature and initials fields). Check marks and shapes print only when the value meets the field's `condition`, and the field's `type` limits which display types it can use.
|
|
119
|
+
attr_accessor :display_type
|
|
120
|
+
|
|
121
|
+
# The opacity of the field's content and background, from 0 (invisible) to 1. QR codes and barcodes always print at full opacity.
|
|
122
|
+
attr_accessor :opacity
|
|
123
|
+
|
|
124
|
+
# Date fields only: how the date prints, as a strftime format such as `%m/%d/%Y`, or a calculation such as `@years_since`, `@years_until` or `@diff_years` (also months, weeks, days, hours, minutes and seconds), counted to when the PDF is generated. Empty uses the template's date format, or its date-time format with `include_time`.
|
|
125
|
+
attr_accessor :date_time_format
|
|
126
|
+
|
|
127
|
+
# Text display only: the font, one of `Helvetica`, `Arial`, `Calibri`, `Open Sans`, `Roboto`, `Lato`, `Poppins`, `Public Sans`, `Questrial`, `Times New Roman`, `Dancing Script`, `Lovtony Script`, or the monospace `Courier`, `Inconsolata`, `Menlo`, `Roboto Mono` and `Ubuntu Mono`. Empty uses the template's default typeface.
|
|
128
|
+
attr_accessor :typeface
|
|
129
|
+
|
|
130
|
+
# Text display only: the font size in points. Empty uses the template's default font size.
|
|
131
|
+
attr_accessor :font_size
|
|
132
|
+
|
|
133
|
+
# Text display only: extra space between characters, in points. Empty uses the template's default.
|
|
134
|
+
attr_accessor :character_spacing
|
|
135
|
+
|
|
136
|
+
# Text display only: prints the text in bold.
|
|
137
|
+
attr_accessor :bold
|
|
138
|
+
|
|
139
|
+
# Text display only: prints the text in capital letters.
|
|
140
|
+
attr_accessor :uppercase
|
|
141
|
+
|
|
142
|
+
# Text display only: draws a line through the text.
|
|
143
|
+
attr_accessor :strikethrough
|
|
144
|
+
|
|
145
|
+
# Text display only: keeps the spaces at the start of the text and of each line, so text can be lined up with spaces.
|
|
146
|
+
attr_accessor :keep_leading_spaces
|
|
147
|
+
|
|
148
|
+
# Text display only: what happens to text that doesn't fit the field. `shrink_to_fit` makes the font smaller, down to 5 points; `truncate` cuts the text off and returns the rest in the submission's `truncated_text`.
|
|
149
|
+
attr_accessor :overflow
|
|
150
|
+
|
|
151
|
+
# Text display only: wraps the text over as many lines as fit in the field's height instead of printing one line, and forms show a multi-line input.
|
|
152
|
+
attr_accessor :multiline
|
|
153
|
+
|
|
154
|
+
# Text display only, with `multiline`: spreads the text over exactly this many evenly spaced lines in the field's height (up to 300), to line up with lines printed on the form. Empty uses the font's normal line spacing.
|
|
155
|
+
attr_accessor :multiline_lines
|
|
156
|
+
|
|
157
|
+
# Text display only: the fewest characters the value can have, added to the template's data schema. Not used for date, address, country or number fields, or fields with an `option_list`.
|
|
158
|
+
attr_accessor :min_length
|
|
159
|
+
|
|
160
|
+
# Text display only: the most characters the value can have, added to the template's data schema; it also limits an `editable` field. Not used for date, address, country or number fields, or fields with an `option_list`.
|
|
161
|
+
attr_accessor :max_length
|
|
162
|
+
|
|
163
|
+
# Text display only, with a monospace `typeface` (`Courier`, `Inconsolata`, `Menlo`, `Roboto Mono` or `Ubuntu Mono`): adds the number of characters that fit in the field to the template's data schema as its maximum length.
|
|
164
|
+
attr_accessor :auto_calculate_max_length
|
|
165
|
+
|
|
166
|
+
# Text display only: the text color, as a hex code such as `444444`. Empty uses the template's default text color.
|
|
167
|
+
attr_accessor :color
|
|
168
|
+
|
|
169
|
+
# Text display only: the name of a data field whose value, a hex code such as `FF0000`, sets the text color for each submission. That field is added to the template's data schema, with `color` as its default.
|
|
170
|
+
attr_accessor :color_field_name
|
|
171
|
+
|
|
172
|
+
# Makes the `color_field_name` field required. When it isn't required and a submission leaves it out, `color` is used.
|
|
173
|
+
attr_accessor :color_field_required
|
|
174
|
+
|
|
175
|
+
# Text and check display only: a color that fills the field's area behind its content, as a hex code, to cover what the page shows there. Check fields print it even when unchecked; text fields print it only when they have a value.
|
|
176
|
+
attr_accessor :background_color
|
|
177
|
+
|
|
178
|
+
# Text and check display only: the name of a data field whose value, a hex code, sets the background color for each submission. That field is added to the template's data schema, with `background_color` as its default.
|
|
179
|
+
attr_accessor :background_color_field_name
|
|
180
|
+
|
|
181
|
+
# Makes the `background_color_field_name` field required. When it isn't required and a submission leaves it out, `background_color` is used.
|
|
182
|
+
attr_accessor :background_color_field_required
|
|
183
|
+
|
|
184
|
+
# Text display only: how the text is aligned across the field: `left`, `center`, `right` or `justify` (both edges of every line of multiline text except the last of each paragraph).
|
|
185
|
+
attr_accessor :alignment
|
|
186
|
+
|
|
187
|
+
# Text display only: how the text is aligned vertically in the field: `bottom`, `center` or `top`.
|
|
188
|
+
attr_accessor :v_alignment
|
|
189
|
+
|
|
190
|
+
# Text display only: splits the field into `comb_number_of_cells` boxes of equal width and prints one character, centered, in each.
|
|
191
|
+
attr_accessor :comb
|
|
192
|
+
|
|
193
|
+
# With `comb`: how many boxes the field has. The value's maximum length in the template's data schema is this plus `comb_value_offset`.
|
|
194
|
+
attr_accessor :comb_number_of_cells
|
|
195
|
+
|
|
196
|
+
# With `comb`: the position, from 0, of the first character of the value that this field prints. For an SSN printed in boxes of 3, 2 and 4 digits, three fields named `ssn` use offsets 0, 3 and 5.
|
|
197
|
+
attr_accessor :comb_value_offset
|
|
198
|
+
|
|
199
|
+
# Shape display only: `square`, `rectangle`, `circle`, `ellipse`, `triangle` or `polygon`. A square or circle uses the smaller of `width` and `height`.
|
|
200
|
+
attr_accessor :shape_type
|
|
201
|
+
|
|
202
|
+
# Shape display only, with `shape_type` `polygon`: the number of sides, 3 to 12.
|
|
203
|
+
attr_accessor :shape_sides
|
|
204
|
+
|
|
205
|
+
# Shape display only: the width of the shape's border, in points.
|
|
206
|
+
attr_accessor :shape_border_width
|
|
207
|
+
|
|
208
|
+
# Shape display only: the shape's border color, as a hex code. Null draws no border.
|
|
209
|
+
attr_accessor :shape_border_color
|
|
210
|
+
|
|
211
|
+
# Shape display only: the name of a data field whose value, a hex code, sets the border color for each submission. That field is added to the template's data schema, with `shape_border_color` as its default.
|
|
212
|
+
attr_accessor :shape_border_color_field_name
|
|
213
|
+
|
|
214
|
+
# Makes the `shape_border_color_field_name` field required. When it isn't required and a submission leaves it out, `shape_border_color` is used.
|
|
215
|
+
attr_accessor :shape_border_color_field_required
|
|
216
|
+
|
|
217
|
+
# Shape display only: the color that fills the shape, as a hex code. Null leaves it unfilled.
|
|
218
|
+
attr_accessor :shape_fill_color
|
|
219
|
+
|
|
220
|
+
# Shape display only: the name of a data field whose value, a hex code, sets the fill color for each submission. That field is added to the template's data schema, with `shape_fill_color` as its default.
|
|
221
|
+
attr_accessor :shape_fill_color_field_name
|
|
222
|
+
|
|
223
|
+
# Makes the `shape_fill_color_field_name` field required. When it isn't required and a submission leaves it out, `shape_fill_color` is used.
|
|
224
|
+
attr_accessor :shape_fill_color_field_required
|
|
225
|
+
|
|
226
|
+
# Check display only: the character printed, as an HTML entity: `✓` (✓), `✔` (✔, the default), `✖` (✖), `✗` (✗) or `✘` (✘).
|
|
227
|
+
attr_accessor :check_character
|
|
228
|
+
|
|
229
|
+
# Check display only: the check mark's color, as a hex code. Empty uses the template's default check color.
|
|
230
|
+
attr_accessor :check_color
|
|
231
|
+
|
|
232
|
+
# Check display only: the name of a data field whose value, a hex code, sets the check mark's color for each submission. That field is added to the template's data schema, with `check_color` as its default.
|
|
233
|
+
attr_accessor :check_color_field_name
|
|
234
|
+
|
|
235
|
+
# Makes the `check_color_field_name` field required. When it isn't required and a submission leaves it out, `check_color` is used.
|
|
236
|
+
attr_accessor :check_color_field_required
|
|
237
|
+
|
|
238
|
+
# QR code display only: the QR code's color, as a hex code, printed on a white background. Empty prints it in black.
|
|
239
|
+
attr_accessor :qrcode_color
|
|
240
|
+
|
|
241
|
+
# QR code display only: the name of a data field whose value, a hex code, sets the QR code's color for each submission. That field is added to the template's data schema, with `qrcode_color` as its default.
|
|
242
|
+
attr_accessor :qrcode_color_field_name
|
|
243
|
+
|
|
244
|
+
# Makes the `qrcode_color_field_name` field required. When it isn't required and a submission leaves it out, `qrcode_color` is used.
|
|
245
|
+
attr_accessor :qrcode_color_field_required
|
|
246
|
+
|
|
247
|
+
# Boolean fields with text display: the text printed when the value is `true`. Empty uses the template's `true_text`; when neither is set, nothing prints.
|
|
248
|
+
attr_accessor :true_text
|
|
249
|
+
|
|
250
|
+
# Boolean fields with text display: the text printed when the value is `false`. Empty uses the template's `false_text`; when neither is set, nothing prints.
|
|
251
|
+
attr_accessor :false_text
|
|
252
|
+
|
|
253
|
+
# Check and shape display only: the value a string or number field's value is compared with, by `string_condition_type` or `number_condition_type`, to decide whether the check mark or shape prints. Boolean fields print when `true` (see `invert_boolean_condition`), and other types print when they have a value.
|
|
254
|
+
attr_accessor :condition
|
|
255
|
+
|
|
256
|
+
# String fields with check or shape display: how the value is compared with `condition`: `equals`, `contains`, `starts_with`, `ends_with`, or `regex`, where `condition` is a regular expression the value must match.
|
|
257
|
+
attr_accessor :string_condition_type
|
|
258
|
+
|
|
259
|
+
# Number fields with check or shape display: how the value is compared with `condition`: `equals`, `gt` (greater than), `gte` (greater than or equal to), `lt` (less than), `lte` (less than or equal to), or `range`, between `number_condition_range_min` and `number_condition_range_max`.
|
|
260
|
+
attr_accessor :number_condition_type
|
|
261
|
+
|
|
262
|
+
# With `number_condition_type` `range`: the lower end of the range, included unless `number_condition_range_exclusive_min` is set.
|
|
263
|
+
attr_accessor :number_condition_range_min
|
|
264
|
+
|
|
265
|
+
# With `number_condition_type` `range`: the upper end of the range, included unless `number_condition_range_exclusive_max` is set.
|
|
266
|
+
attr_accessor :number_condition_range_max
|
|
267
|
+
|
|
268
|
+
# With `number_condition_type` `range`: leaves `number_condition_range_min` itself out of the range.
|
|
269
|
+
attr_accessor :number_condition_range_exclusive_min
|
|
270
|
+
|
|
271
|
+
# With `number_condition_type` `range`: leaves `number_condition_range_max` itself out of the range.
|
|
272
|
+
attr_accessor :number_condition_range_exclusive_max
|
|
273
|
+
|
|
274
|
+
# Boolean fields with check or shape display: prints the check mark or shape when the value is `false` or missing, instead of `true`.
|
|
275
|
+
attr_accessor :invert_boolean_condition
|
|
276
|
+
|
|
277
|
+
# Number fields only: forms show a currency input, and the template's data schema gives the field `format: currency`. It doesn't change how the number prints.
|
|
278
|
+
attr_accessor :currency
|
|
279
|
+
|
|
280
|
+
# Number fields with text display: prints the number with this many decimal places, from 0 (rounds to a whole number) to 99. Empty prints the number as it was sent.
|
|
281
|
+
attr_accessor :decimal_places
|
|
282
|
+
|
|
283
|
+
# Image fields only: how the image is resized to the field. `fit` keeps its proportions and fits it inside the field, which can leave empty space; `fill` keeps its proportions and crops it to fill the field; `stretch` stretches it to the field's size. Signatures and initials always fit.
|
|
284
|
+
attr_accessor :image_scale_type
|
|
285
|
+
|
|
286
|
+
# Image, signature and initials fields: where the image sits in the field with `fit`, or which part is kept with `fill`: `NorthWest` (top left), `North`, `NorthEast`, `West`, `Center`, `East`, `SouthWest`, `South` or `SouthEast` (bottom right). It also aligns typed signatures, and isn't used with `stretch`.
|
|
287
|
+
attr_accessor :image_gravity
|
|
288
|
+
|
|
289
|
+
# The field's own conditional logic rule: when other fields' values meet its conditions, the field is shown, made required, or both. Null when it has none. The template's rules (`field_dependencies`) can apply to the field too. Shared by every field with the same `name`.
|
|
290
|
+
attr_accessor :dependencies
|
|
291
|
+
|
|
292
|
+
class EnumAttributeValidator
|
|
293
|
+
attr_reader :datatype
|
|
294
|
+
attr_reader :allowable_values
|
|
295
|
+
|
|
296
|
+
def initialize(datatype, allowable_values)
|
|
297
|
+
@allowable_values = allowable_values.map do |value|
|
|
298
|
+
case datatype.to_s
|
|
299
|
+
when /Integer/i
|
|
300
|
+
value.to_i
|
|
301
|
+
when /Float/i
|
|
302
|
+
value.to_f
|
|
303
|
+
else
|
|
304
|
+
value
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
def valid?(value)
|
|
310
|
+
!value || allowable_values.include?(value)
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
315
|
+
def self.attribute_map
|
|
316
|
+
{
|
|
317
|
+
:'id' => :'id',
|
|
318
|
+
:'name' => :'name',
|
|
319
|
+
:'page' => :'page',
|
|
320
|
+
:'acroform_name' => :'acroform_name',
|
|
321
|
+
:'type' => :'type',
|
|
322
|
+
:'static' => :'static',
|
|
323
|
+
:'editable' => :'editable',
|
|
324
|
+
:'default' => :'default',
|
|
325
|
+
:'title' => :'title',
|
|
326
|
+
:'description' => :'description',
|
|
327
|
+
:'placeholder' => :'placeholder',
|
|
328
|
+
:'metadata' => :'metadata',
|
|
329
|
+
:'required' => :'required',
|
|
330
|
+
:'option_list' => :'option_list',
|
|
331
|
+
:'combined_field_names' => :'combined_field_names',
|
|
332
|
+
:'combined_field_type' => :'combined_field_type',
|
|
333
|
+
:'combined_field_separator' => :'combined_field_separator',
|
|
334
|
+
:'combined_field_format' => :'combined_field_format',
|
|
335
|
+
:'integer' => :'integer',
|
|
336
|
+
:'minimum' => :'minimum',
|
|
337
|
+
:'maximum' => :'maximum',
|
|
338
|
+
:'exclusive_minimum' => :'exclusive_minimum',
|
|
339
|
+
:'exclusive_maximum' => :'exclusive_maximum',
|
|
340
|
+
:'include_time' => :'include_time',
|
|
341
|
+
:'signature_allow_draw' => :'signature_allow_draw',
|
|
342
|
+
:'signature_allow_type' => :'signature_allow_type',
|
|
343
|
+
:'barcode_symbology' => :'barcode_symbology',
|
|
344
|
+
:'hidden' => :'hidden',
|
|
345
|
+
:'x' => :'x',
|
|
346
|
+
:'y' => :'y',
|
|
347
|
+
:'width' => :'width',
|
|
348
|
+
:'height' => :'height',
|
|
349
|
+
:'rotation' => :'rotation',
|
|
350
|
+
:'display_type' => :'display_type',
|
|
351
|
+
:'opacity' => :'opacity',
|
|
352
|
+
:'date_time_format' => :'date_time_format',
|
|
353
|
+
:'typeface' => :'typeface',
|
|
354
|
+
:'font_size' => :'font_size',
|
|
355
|
+
:'character_spacing' => :'character_spacing',
|
|
356
|
+
:'bold' => :'bold',
|
|
357
|
+
:'uppercase' => :'uppercase',
|
|
358
|
+
:'strikethrough' => :'strikethrough',
|
|
359
|
+
:'keep_leading_spaces' => :'keep_leading_spaces',
|
|
360
|
+
:'overflow' => :'overflow',
|
|
361
|
+
:'multiline' => :'multiline',
|
|
362
|
+
:'multiline_lines' => :'multiline_lines',
|
|
363
|
+
:'min_length' => :'min_length',
|
|
364
|
+
:'max_length' => :'max_length',
|
|
365
|
+
:'auto_calculate_max_length' => :'auto_calculate_max_length',
|
|
366
|
+
:'color' => :'color',
|
|
367
|
+
:'color_field_name' => :'color_field_name',
|
|
368
|
+
:'color_field_required' => :'color_field_required',
|
|
369
|
+
:'background_color' => :'background_color',
|
|
370
|
+
:'background_color_field_name' => :'background_color_field_name',
|
|
371
|
+
:'background_color_field_required' => :'background_color_field_required',
|
|
372
|
+
:'alignment' => :'alignment',
|
|
373
|
+
:'v_alignment' => :'v_alignment',
|
|
374
|
+
:'comb' => :'comb',
|
|
375
|
+
:'comb_number_of_cells' => :'comb_number_of_cells',
|
|
376
|
+
:'comb_value_offset' => :'comb_value_offset',
|
|
377
|
+
:'shape_type' => :'shape_type',
|
|
378
|
+
:'shape_sides' => :'shape_sides',
|
|
379
|
+
:'shape_border_width' => :'shape_border_width',
|
|
380
|
+
:'shape_border_color' => :'shape_border_color',
|
|
381
|
+
:'shape_border_color_field_name' => :'shape_border_color_field_name',
|
|
382
|
+
:'shape_border_color_field_required' => :'shape_border_color_field_required',
|
|
383
|
+
:'shape_fill_color' => :'shape_fill_color',
|
|
384
|
+
:'shape_fill_color_field_name' => :'shape_fill_color_field_name',
|
|
385
|
+
:'shape_fill_color_field_required' => :'shape_fill_color_field_required',
|
|
386
|
+
:'check_character' => :'check_character',
|
|
387
|
+
:'check_color' => :'check_color',
|
|
388
|
+
:'check_color_field_name' => :'check_color_field_name',
|
|
389
|
+
:'check_color_field_required' => :'check_color_field_required',
|
|
390
|
+
:'qrcode_color' => :'qrcode_color',
|
|
391
|
+
:'qrcode_color_field_name' => :'qrcode_color_field_name',
|
|
392
|
+
:'qrcode_color_field_required' => :'qrcode_color_field_required',
|
|
393
|
+
:'true_text' => :'true_text',
|
|
394
|
+
:'false_text' => :'false_text',
|
|
395
|
+
:'condition' => :'condition',
|
|
396
|
+
:'string_condition_type' => :'string_condition_type',
|
|
397
|
+
:'number_condition_type' => :'number_condition_type',
|
|
398
|
+
:'number_condition_range_min' => :'number_condition_range_min',
|
|
399
|
+
:'number_condition_range_max' => :'number_condition_range_max',
|
|
400
|
+
:'number_condition_range_exclusive_min' => :'number_condition_range_exclusive_min',
|
|
401
|
+
:'number_condition_range_exclusive_max' => :'number_condition_range_exclusive_max',
|
|
402
|
+
:'invert_boolean_condition' => :'invert_boolean_condition',
|
|
403
|
+
:'currency' => :'currency',
|
|
404
|
+
:'decimal_places' => :'decimal_places',
|
|
405
|
+
:'image_scale_type' => :'image_scale_type',
|
|
406
|
+
:'image_gravity' => :'image_gravity',
|
|
407
|
+
:'dependencies' => :'dependencies'
|
|
408
|
+
}
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Returns attribute mapping this model knows about
|
|
412
|
+
def self.acceptable_attribute_map
|
|
413
|
+
attribute_map
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Returns all the JSON keys this model knows about
|
|
417
|
+
def self.acceptable_attributes
|
|
418
|
+
acceptable_attribute_map.values
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Attribute type mapping.
|
|
422
|
+
def self.openapi_types
|
|
423
|
+
{
|
|
424
|
+
:'id' => :'Integer',
|
|
425
|
+
:'name' => :'String',
|
|
426
|
+
:'page' => :'Integer',
|
|
427
|
+
:'acroform_name' => :'String',
|
|
428
|
+
:'type' => :'FieldType',
|
|
429
|
+
:'static' => :'Boolean',
|
|
430
|
+
:'editable' => :'Boolean',
|
|
431
|
+
:'default' => :'String',
|
|
432
|
+
:'title' => :'String',
|
|
433
|
+
:'description' => :'String',
|
|
434
|
+
:'placeholder' => :'String',
|
|
435
|
+
:'metadata' => :'String',
|
|
436
|
+
:'required' => :'Boolean',
|
|
437
|
+
:'option_list' => :'String',
|
|
438
|
+
:'combined_field_names' => :'String',
|
|
439
|
+
:'combined_field_type' => :'CombinedFieldType',
|
|
440
|
+
:'combined_field_separator' => :'String',
|
|
441
|
+
:'combined_field_format' => :'String',
|
|
442
|
+
:'integer' => :'Boolean',
|
|
443
|
+
:'minimum' => :'Float',
|
|
444
|
+
:'maximum' => :'Float',
|
|
445
|
+
:'exclusive_minimum' => :'Boolean',
|
|
446
|
+
:'exclusive_maximum' => :'Boolean',
|
|
447
|
+
:'include_time' => :'Boolean',
|
|
448
|
+
:'signature_allow_draw' => :'Boolean',
|
|
449
|
+
:'signature_allow_type' => :'Boolean',
|
|
450
|
+
:'barcode_symbology' => :'BarcodeSymbology',
|
|
451
|
+
:'hidden' => :'Boolean',
|
|
452
|
+
:'x' => :'Float',
|
|
453
|
+
:'y' => :'Float',
|
|
454
|
+
:'width' => :'Float',
|
|
455
|
+
:'height' => :'Float',
|
|
456
|
+
:'rotation' => :'Float',
|
|
457
|
+
:'display_type' => :'FieldDisplayType',
|
|
458
|
+
:'opacity' => :'Float',
|
|
459
|
+
:'date_time_format' => :'String',
|
|
460
|
+
:'typeface' => :'Typeface',
|
|
461
|
+
:'font_size' => :'Integer',
|
|
462
|
+
:'character_spacing' => :'Float',
|
|
463
|
+
:'bold' => :'Boolean',
|
|
464
|
+
:'uppercase' => :'Boolean',
|
|
465
|
+
:'strikethrough' => :'Boolean',
|
|
466
|
+
:'keep_leading_spaces' => :'Boolean',
|
|
467
|
+
:'overflow' => :'TextOverflow',
|
|
468
|
+
:'multiline' => :'Boolean',
|
|
469
|
+
:'multiline_lines' => :'Integer',
|
|
470
|
+
:'min_length' => :'Float',
|
|
471
|
+
:'max_length' => :'Integer',
|
|
472
|
+
:'auto_calculate_max_length' => :'Boolean',
|
|
473
|
+
:'color' => :'String',
|
|
474
|
+
:'color_field_name' => :'String',
|
|
475
|
+
:'color_field_required' => :'Boolean',
|
|
476
|
+
:'background_color' => :'String',
|
|
477
|
+
:'background_color_field_name' => :'String',
|
|
478
|
+
:'background_color_field_required' => :'Boolean',
|
|
479
|
+
:'alignment' => :'TextAlignment',
|
|
480
|
+
:'v_alignment' => :'TextVerticalAlignment',
|
|
481
|
+
:'comb' => :'Boolean',
|
|
482
|
+
:'comb_number_of_cells' => :'Integer',
|
|
483
|
+
:'comb_value_offset' => :'Integer',
|
|
484
|
+
:'shape_type' => :'ShapeType',
|
|
485
|
+
:'shape_sides' => :'Integer',
|
|
486
|
+
:'shape_border_width' => :'Integer',
|
|
487
|
+
:'shape_border_color' => :'String',
|
|
488
|
+
:'shape_border_color_field_name' => :'String',
|
|
489
|
+
:'shape_border_color_field_required' => :'Boolean',
|
|
490
|
+
:'shape_fill_color' => :'String',
|
|
491
|
+
:'shape_fill_color_field_name' => :'String',
|
|
492
|
+
:'shape_fill_color_field_required' => :'Boolean',
|
|
493
|
+
:'check_character' => :'CheckCharacter',
|
|
494
|
+
:'check_color' => :'String',
|
|
495
|
+
:'check_color_field_name' => :'String',
|
|
496
|
+
:'check_color_field_required' => :'Boolean',
|
|
497
|
+
:'qrcode_color' => :'String',
|
|
498
|
+
:'qrcode_color_field_name' => :'String',
|
|
499
|
+
:'qrcode_color_field_required' => :'Boolean',
|
|
500
|
+
:'true_text' => :'String',
|
|
501
|
+
:'false_text' => :'String',
|
|
502
|
+
:'condition' => :'String',
|
|
503
|
+
:'string_condition_type' => :'StringConditionType',
|
|
504
|
+
:'number_condition_type' => :'NumberConditionType',
|
|
505
|
+
:'number_condition_range_min' => :'Float',
|
|
506
|
+
:'number_condition_range_max' => :'Float',
|
|
507
|
+
:'number_condition_range_exclusive_min' => :'Boolean',
|
|
508
|
+
:'number_condition_range_exclusive_max' => :'Boolean',
|
|
509
|
+
:'invert_boolean_condition' => :'Boolean',
|
|
510
|
+
:'currency' => :'Boolean',
|
|
511
|
+
:'decimal_places' => :'Integer',
|
|
512
|
+
:'image_scale_type' => :'ImageScaleType',
|
|
513
|
+
:'image_gravity' => :'ImageGravity',
|
|
514
|
+
:'dependencies' => :'FieldDependency'
|
|
515
|
+
}
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# List of attributes with nullable: true
|
|
519
|
+
def self.openapi_nullable
|
|
520
|
+
Set.new([
|
|
521
|
+
:'name',
|
|
522
|
+
:'acroform_name',
|
|
523
|
+
:'default',
|
|
524
|
+
:'option_list',
|
|
525
|
+
:'minimum',
|
|
526
|
+
:'maximum',
|
|
527
|
+
:'include_time',
|
|
528
|
+
:'date_time_format',
|
|
529
|
+
:'typeface',
|
|
530
|
+
:'font_size',
|
|
531
|
+
:'multiline_lines',
|
|
532
|
+
:'max_length',
|
|
533
|
+
:'color',
|
|
534
|
+
:'color_field_name',
|
|
535
|
+
:'background_color',
|
|
536
|
+
:'background_color_field_name',
|
|
537
|
+
:'shape_border_color_field_name',
|
|
538
|
+
:'shape_fill_color',
|
|
539
|
+
:'shape_fill_color_field_name',
|
|
540
|
+
:'check_color',
|
|
541
|
+
:'check_color_field_name',
|
|
542
|
+
:'qrcode_color',
|
|
543
|
+
:'qrcode_color_field_name',
|
|
544
|
+
:'true_text',
|
|
545
|
+
:'false_text',
|
|
546
|
+
:'condition',
|
|
547
|
+
:'number_condition_range_min',
|
|
548
|
+
:'number_condition_range_max',
|
|
549
|
+
:'decimal_places',
|
|
550
|
+
:'dependencies'
|
|
551
|
+
])
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# Returns attribute type mapping
|
|
555
|
+
def self.acceptable_openapi_types
|
|
556
|
+
openapi_types
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# Returns the nullable attributes
|
|
560
|
+
def self.acceptable_openapi_nullable
|
|
561
|
+
openapi_nullable
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
# Initializes the object
|
|
565
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
566
|
+
def initialize(attributes = {})
|
|
567
|
+
if (!attributes.is_a?(Hash))
|
|
568
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::Field` initialize method"
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
572
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
573
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
574
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
575
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::Field`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
576
|
+
end
|
|
577
|
+
h[k.to_sym] = v
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
if attributes.key?(:'id')
|
|
581
|
+
self.id = attributes[:'id']
|
|
582
|
+
else
|
|
583
|
+
self.id = nil
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
if attributes.key?(:'name')
|
|
587
|
+
self.name = attributes[:'name']
|
|
588
|
+
else
|
|
589
|
+
self.name = nil
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
if attributes.key?(:'page')
|
|
593
|
+
self.page = attributes[:'page']
|
|
594
|
+
else
|
|
595
|
+
self.page = nil
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
if attributes.key?(:'acroform_name')
|
|
599
|
+
self.acroform_name = attributes[:'acroform_name']
|
|
600
|
+
else
|
|
601
|
+
self.acroform_name = nil
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
if attributes.key?(:'type')
|
|
605
|
+
self.type = attributes[:'type']
|
|
606
|
+
else
|
|
607
|
+
self.type = nil
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
if attributes.key?(:'static')
|
|
611
|
+
self.static = attributes[:'static']
|
|
612
|
+
else
|
|
613
|
+
self.static = nil
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
if attributes.key?(:'editable')
|
|
617
|
+
self.editable = attributes[:'editable']
|
|
618
|
+
else
|
|
619
|
+
self.editable = nil
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
if attributes.key?(:'default')
|
|
623
|
+
self.default = attributes[:'default']
|
|
624
|
+
else
|
|
625
|
+
self.default = nil
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
if attributes.key?(:'title')
|
|
629
|
+
self.title = attributes[:'title']
|
|
630
|
+
else
|
|
631
|
+
self.title = nil
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
if attributes.key?(:'description')
|
|
635
|
+
self.description = attributes[:'description']
|
|
636
|
+
else
|
|
637
|
+
self.description = nil
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
if attributes.key?(:'placeholder')
|
|
641
|
+
self.placeholder = attributes[:'placeholder']
|
|
642
|
+
else
|
|
643
|
+
self.placeholder = nil
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
if attributes.key?(:'metadata')
|
|
647
|
+
self.metadata = attributes[:'metadata']
|
|
648
|
+
else
|
|
649
|
+
self.metadata = nil
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
if attributes.key?(:'required')
|
|
653
|
+
self.required = attributes[:'required']
|
|
654
|
+
else
|
|
655
|
+
self.required = nil
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
if attributes.key?(:'option_list')
|
|
659
|
+
self.option_list = attributes[:'option_list']
|
|
660
|
+
else
|
|
661
|
+
self.option_list = nil
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
if attributes.key?(:'combined_field_names')
|
|
665
|
+
self.combined_field_names = attributes[:'combined_field_names']
|
|
666
|
+
else
|
|
667
|
+
self.combined_field_names = nil
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
if attributes.key?(:'combined_field_type')
|
|
671
|
+
self.combined_field_type = attributes[:'combined_field_type']
|
|
672
|
+
else
|
|
673
|
+
self.combined_field_type = nil
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
if attributes.key?(:'combined_field_separator')
|
|
677
|
+
self.combined_field_separator = attributes[:'combined_field_separator']
|
|
678
|
+
else
|
|
679
|
+
self.combined_field_separator = nil
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
if attributes.key?(:'combined_field_format')
|
|
683
|
+
self.combined_field_format = attributes[:'combined_field_format']
|
|
684
|
+
else
|
|
685
|
+
self.combined_field_format = nil
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
if attributes.key?(:'integer')
|
|
689
|
+
self.integer = attributes[:'integer']
|
|
690
|
+
else
|
|
691
|
+
self.integer = nil
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
if attributes.key?(:'minimum')
|
|
695
|
+
self.minimum = attributes[:'minimum']
|
|
696
|
+
else
|
|
697
|
+
self.minimum = nil
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
if attributes.key?(:'maximum')
|
|
701
|
+
self.maximum = attributes[:'maximum']
|
|
702
|
+
else
|
|
703
|
+
self.maximum = nil
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
if attributes.key?(:'exclusive_minimum')
|
|
707
|
+
self.exclusive_minimum = attributes[:'exclusive_minimum']
|
|
708
|
+
else
|
|
709
|
+
self.exclusive_minimum = nil
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
if attributes.key?(:'exclusive_maximum')
|
|
713
|
+
self.exclusive_maximum = attributes[:'exclusive_maximum']
|
|
714
|
+
else
|
|
715
|
+
self.exclusive_maximum = nil
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
if attributes.key?(:'include_time')
|
|
719
|
+
self.include_time = attributes[:'include_time']
|
|
720
|
+
else
|
|
721
|
+
self.include_time = nil
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
if attributes.key?(:'signature_allow_draw')
|
|
725
|
+
self.signature_allow_draw = attributes[:'signature_allow_draw']
|
|
726
|
+
else
|
|
727
|
+
self.signature_allow_draw = nil
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
if attributes.key?(:'signature_allow_type')
|
|
731
|
+
self.signature_allow_type = attributes[:'signature_allow_type']
|
|
732
|
+
else
|
|
733
|
+
self.signature_allow_type = nil
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
if attributes.key?(:'barcode_symbology')
|
|
737
|
+
self.barcode_symbology = attributes[:'barcode_symbology']
|
|
738
|
+
else
|
|
739
|
+
self.barcode_symbology = nil
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
if attributes.key?(:'hidden')
|
|
743
|
+
self.hidden = attributes[:'hidden']
|
|
744
|
+
else
|
|
745
|
+
self.hidden = nil
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
if attributes.key?(:'x')
|
|
749
|
+
self.x = attributes[:'x']
|
|
750
|
+
else
|
|
751
|
+
self.x = nil
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
if attributes.key?(:'y')
|
|
755
|
+
self.y = attributes[:'y']
|
|
756
|
+
else
|
|
757
|
+
self.y = nil
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
if attributes.key?(:'width')
|
|
761
|
+
self.width = attributes[:'width']
|
|
762
|
+
else
|
|
763
|
+
self.width = nil
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
if attributes.key?(:'height')
|
|
767
|
+
self.height = attributes[:'height']
|
|
768
|
+
else
|
|
769
|
+
self.height = nil
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
if attributes.key?(:'rotation')
|
|
773
|
+
self.rotation = attributes[:'rotation']
|
|
774
|
+
else
|
|
775
|
+
self.rotation = nil
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
if attributes.key?(:'display_type')
|
|
779
|
+
self.display_type = attributes[:'display_type']
|
|
780
|
+
else
|
|
781
|
+
self.display_type = nil
|
|
782
|
+
end
|
|
783
|
+
|
|
784
|
+
if attributes.key?(:'opacity')
|
|
785
|
+
self.opacity = attributes[:'opacity']
|
|
786
|
+
else
|
|
787
|
+
self.opacity = nil
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
if attributes.key?(:'date_time_format')
|
|
791
|
+
self.date_time_format = attributes[:'date_time_format']
|
|
792
|
+
else
|
|
793
|
+
self.date_time_format = nil
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
if attributes.key?(:'typeface')
|
|
797
|
+
self.typeface = attributes[:'typeface']
|
|
798
|
+
else
|
|
799
|
+
self.typeface = nil
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
if attributes.key?(:'font_size')
|
|
803
|
+
self.font_size = attributes[:'font_size']
|
|
804
|
+
else
|
|
805
|
+
self.font_size = nil
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
if attributes.key?(:'character_spacing')
|
|
809
|
+
self.character_spacing = attributes[:'character_spacing']
|
|
810
|
+
else
|
|
811
|
+
self.character_spacing = nil
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
if attributes.key?(:'bold')
|
|
815
|
+
self.bold = attributes[:'bold']
|
|
816
|
+
else
|
|
817
|
+
self.bold = nil
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
if attributes.key?(:'uppercase')
|
|
821
|
+
self.uppercase = attributes[:'uppercase']
|
|
822
|
+
else
|
|
823
|
+
self.uppercase = nil
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
if attributes.key?(:'strikethrough')
|
|
827
|
+
self.strikethrough = attributes[:'strikethrough']
|
|
828
|
+
else
|
|
829
|
+
self.strikethrough = nil
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
if attributes.key?(:'keep_leading_spaces')
|
|
833
|
+
self.keep_leading_spaces = attributes[:'keep_leading_spaces']
|
|
834
|
+
else
|
|
835
|
+
self.keep_leading_spaces = nil
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
if attributes.key?(:'overflow')
|
|
839
|
+
self.overflow = attributes[:'overflow']
|
|
840
|
+
else
|
|
841
|
+
self.overflow = nil
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
if attributes.key?(:'multiline')
|
|
845
|
+
self.multiline = attributes[:'multiline']
|
|
846
|
+
else
|
|
847
|
+
self.multiline = nil
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
if attributes.key?(:'multiline_lines')
|
|
851
|
+
self.multiline_lines = attributes[:'multiline_lines']
|
|
852
|
+
else
|
|
853
|
+
self.multiline_lines = nil
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
if attributes.key?(:'min_length')
|
|
857
|
+
self.min_length = attributes[:'min_length']
|
|
858
|
+
else
|
|
859
|
+
self.min_length = nil
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
if attributes.key?(:'max_length')
|
|
863
|
+
self.max_length = attributes[:'max_length']
|
|
864
|
+
else
|
|
865
|
+
self.max_length = nil
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
if attributes.key?(:'auto_calculate_max_length')
|
|
869
|
+
self.auto_calculate_max_length = attributes[:'auto_calculate_max_length']
|
|
870
|
+
else
|
|
871
|
+
self.auto_calculate_max_length = nil
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
if attributes.key?(:'color')
|
|
875
|
+
self.color = attributes[:'color']
|
|
876
|
+
else
|
|
877
|
+
self.color = nil
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
if attributes.key?(:'color_field_name')
|
|
881
|
+
self.color_field_name = attributes[:'color_field_name']
|
|
882
|
+
else
|
|
883
|
+
self.color_field_name = nil
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
if attributes.key?(:'color_field_required')
|
|
887
|
+
self.color_field_required = attributes[:'color_field_required']
|
|
888
|
+
else
|
|
889
|
+
self.color_field_required = nil
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
if attributes.key?(:'background_color')
|
|
893
|
+
self.background_color = attributes[:'background_color']
|
|
894
|
+
else
|
|
895
|
+
self.background_color = nil
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
if attributes.key?(:'background_color_field_name')
|
|
899
|
+
self.background_color_field_name = attributes[:'background_color_field_name']
|
|
900
|
+
else
|
|
901
|
+
self.background_color_field_name = nil
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
if attributes.key?(:'background_color_field_required')
|
|
905
|
+
self.background_color_field_required = attributes[:'background_color_field_required']
|
|
906
|
+
else
|
|
907
|
+
self.background_color_field_required = nil
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
if attributes.key?(:'alignment')
|
|
911
|
+
self.alignment = attributes[:'alignment']
|
|
912
|
+
else
|
|
913
|
+
self.alignment = nil
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
if attributes.key?(:'v_alignment')
|
|
917
|
+
self.v_alignment = attributes[:'v_alignment']
|
|
918
|
+
else
|
|
919
|
+
self.v_alignment = nil
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
if attributes.key?(:'comb')
|
|
923
|
+
self.comb = attributes[:'comb']
|
|
924
|
+
else
|
|
925
|
+
self.comb = nil
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
if attributes.key?(:'comb_number_of_cells')
|
|
929
|
+
self.comb_number_of_cells = attributes[:'comb_number_of_cells']
|
|
930
|
+
else
|
|
931
|
+
self.comb_number_of_cells = nil
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
if attributes.key?(:'comb_value_offset')
|
|
935
|
+
self.comb_value_offset = attributes[:'comb_value_offset']
|
|
936
|
+
else
|
|
937
|
+
self.comb_value_offset = nil
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
if attributes.key?(:'shape_type')
|
|
941
|
+
self.shape_type = attributes[:'shape_type']
|
|
942
|
+
else
|
|
943
|
+
self.shape_type = nil
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
if attributes.key?(:'shape_sides')
|
|
947
|
+
self.shape_sides = attributes[:'shape_sides']
|
|
948
|
+
else
|
|
949
|
+
self.shape_sides = nil
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
if attributes.key?(:'shape_border_width')
|
|
953
|
+
self.shape_border_width = attributes[:'shape_border_width']
|
|
954
|
+
else
|
|
955
|
+
self.shape_border_width = nil
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
if attributes.key?(:'shape_border_color')
|
|
959
|
+
self.shape_border_color = attributes[:'shape_border_color']
|
|
960
|
+
else
|
|
961
|
+
self.shape_border_color = nil
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
if attributes.key?(:'shape_border_color_field_name')
|
|
965
|
+
self.shape_border_color_field_name = attributes[:'shape_border_color_field_name']
|
|
966
|
+
else
|
|
967
|
+
self.shape_border_color_field_name = nil
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
if attributes.key?(:'shape_border_color_field_required')
|
|
971
|
+
self.shape_border_color_field_required = attributes[:'shape_border_color_field_required']
|
|
972
|
+
else
|
|
973
|
+
self.shape_border_color_field_required = nil
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
if attributes.key?(:'shape_fill_color')
|
|
977
|
+
self.shape_fill_color = attributes[:'shape_fill_color']
|
|
978
|
+
else
|
|
979
|
+
self.shape_fill_color = nil
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
if attributes.key?(:'shape_fill_color_field_name')
|
|
983
|
+
self.shape_fill_color_field_name = attributes[:'shape_fill_color_field_name']
|
|
984
|
+
else
|
|
985
|
+
self.shape_fill_color_field_name = nil
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
if attributes.key?(:'shape_fill_color_field_required')
|
|
989
|
+
self.shape_fill_color_field_required = attributes[:'shape_fill_color_field_required']
|
|
990
|
+
else
|
|
991
|
+
self.shape_fill_color_field_required = nil
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
if attributes.key?(:'check_character')
|
|
995
|
+
self.check_character = attributes[:'check_character']
|
|
996
|
+
else
|
|
997
|
+
self.check_character = nil
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
if attributes.key?(:'check_color')
|
|
1001
|
+
self.check_color = attributes[:'check_color']
|
|
1002
|
+
else
|
|
1003
|
+
self.check_color = nil
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
if attributes.key?(:'check_color_field_name')
|
|
1007
|
+
self.check_color_field_name = attributes[:'check_color_field_name']
|
|
1008
|
+
else
|
|
1009
|
+
self.check_color_field_name = nil
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
if attributes.key?(:'check_color_field_required')
|
|
1013
|
+
self.check_color_field_required = attributes[:'check_color_field_required']
|
|
1014
|
+
else
|
|
1015
|
+
self.check_color_field_required = nil
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
if attributes.key?(:'qrcode_color')
|
|
1019
|
+
self.qrcode_color = attributes[:'qrcode_color']
|
|
1020
|
+
else
|
|
1021
|
+
self.qrcode_color = nil
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
if attributes.key?(:'qrcode_color_field_name')
|
|
1025
|
+
self.qrcode_color_field_name = attributes[:'qrcode_color_field_name']
|
|
1026
|
+
else
|
|
1027
|
+
self.qrcode_color_field_name = nil
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
if attributes.key?(:'qrcode_color_field_required')
|
|
1031
|
+
self.qrcode_color_field_required = attributes[:'qrcode_color_field_required']
|
|
1032
|
+
else
|
|
1033
|
+
self.qrcode_color_field_required = nil
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
if attributes.key?(:'true_text')
|
|
1037
|
+
self.true_text = attributes[:'true_text']
|
|
1038
|
+
else
|
|
1039
|
+
self.true_text = nil
|
|
1040
|
+
end
|
|
1041
|
+
|
|
1042
|
+
if attributes.key?(:'false_text')
|
|
1043
|
+
self.false_text = attributes[:'false_text']
|
|
1044
|
+
else
|
|
1045
|
+
self.false_text = nil
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
if attributes.key?(:'condition')
|
|
1049
|
+
self.condition = attributes[:'condition']
|
|
1050
|
+
else
|
|
1051
|
+
self.condition = nil
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
if attributes.key?(:'string_condition_type')
|
|
1055
|
+
self.string_condition_type = attributes[:'string_condition_type']
|
|
1056
|
+
else
|
|
1057
|
+
self.string_condition_type = nil
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
if attributes.key?(:'number_condition_type')
|
|
1061
|
+
self.number_condition_type = attributes[:'number_condition_type']
|
|
1062
|
+
else
|
|
1063
|
+
self.number_condition_type = nil
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
if attributes.key?(:'number_condition_range_min')
|
|
1067
|
+
self.number_condition_range_min = attributes[:'number_condition_range_min']
|
|
1068
|
+
else
|
|
1069
|
+
self.number_condition_range_min = nil
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
if attributes.key?(:'number_condition_range_max')
|
|
1073
|
+
self.number_condition_range_max = attributes[:'number_condition_range_max']
|
|
1074
|
+
else
|
|
1075
|
+
self.number_condition_range_max = nil
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
if attributes.key?(:'number_condition_range_exclusive_min')
|
|
1079
|
+
self.number_condition_range_exclusive_min = attributes[:'number_condition_range_exclusive_min']
|
|
1080
|
+
else
|
|
1081
|
+
self.number_condition_range_exclusive_min = nil
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
if attributes.key?(:'number_condition_range_exclusive_max')
|
|
1085
|
+
self.number_condition_range_exclusive_max = attributes[:'number_condition_range_exclusive_max']
|
|
1086
|
+
else
|
|
1087
|
+
self.number_condition_range_exclusive_max = nil
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
if attributes.key?(:'invert_boolean_condition')
|
|
1091
|
+
self.invert_boolean_condition = attributes[:'invert_boolean_condition']
|
|
1092
|
+
else
|
|
1093
|
+
self.invert_boolean_condition = nil
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
if attributes.key?(:'currency')
|
|
1097
|
+
self.currency = attributes[:'currency']
|
|
1098
|
+
else
|
|
1099
|
+
self.currency = nil
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
if attributes.key?(:'decimal_places')
|
|
1103
|
+
self.decimal_places = attributes[:'decimal_places']
|
|
1104
|
+
else
|
|
1105
|
+
self.decimal_places = nil
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
if attributes.key?(:'image_scale_type')
|
|
1109
|
+
self.image_scale_type = attributes[:'image_scale_type']
|
|
1110
|
+
else
|
|
1111
|
+
self.image_scale_type = nil
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
if attributes.key?(:'image_gravity')
|
|
1115
|
+
self.image_gravity = attributes[:'image_gravity']
|
|
1116
|
+
else
|
|
1117
|
+
self.image_gravity = nil
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
if attributes.key?(:'dependencies')
|
|
1121
|
+
self.dependencies = attributes[:'dependencies']
|
|
1122
|
+
else
|
|
1123
|
+
self.dependencies = nil
|
|
1124
|
+
end
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
1128
|
+
# @return Array for valid properties with the reasons
|
|
1129
|
+
def list_invalid_properties
|
|
1130
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
1131
|
+
invalid_properties = Array.new
|
|
1132
|
+
if @id.nil?
|
|
1133
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
1134
|
+
end
|
|
1135
|
+
|
|
1136
|
+
if @page.nil?
|
|
1137
|
+
invalid_properties.push('invalid value for "page", page cannot be nil.')
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
if @type.nil?
|
|
1141
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1144
|
+
if @static.nil?
|
|
1145
|
+
invalid_properties.push('invalid value for "static", static cannot be nil.')
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
if @editable.nil?
|
|
1149
|
+
invalid_properties.push('invalid value for "editable", editable cannot be nil.')
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
if @title.nil?
|
|
1153
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
if @description.nil?
|
|
1157
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
if @placeholder.nil?
|
|
1161
|
+
invalid_properties.push('invalid value for "placeholder", placeholder cannot be nil.')
|
|
1162
|
+
end
|
|
1163
|
+
|
|
1164
|
+
if @metadata.nil?
|
|
1165
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
if @required.nil?
|
|
1169
|
+
invalid_properties.push('invalid value for "required", required cannot be nil.')
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
if @combined_field_names.nil?
|
|
1173
|
+
invalid_properties.push('invalid value for "combined_field_names", combined_field_names cannot be nil.')
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1176
|
+
if @combined_field_type.nil?
|
|
1177
|
+
invalid_properties.push('invalid value for "combined_field_type", combined_field_type cannot be nil.')
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
if @combined_field_separator.nil?
|
|
1181
|
+
invalid_properties.push('invalid value for "combined_field_separator", combined_field_separator cannot be nil.')
|
|
1182
|
+
end
|
|
1183
|
+
|
|
1184
|
+
if @combined_field_format.nil?
|
|
1185
|
+
invalid_properties.push('invalid value for "combined_field_format", combined_field_format cannot be nil.')
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
if @integer.nil?
|
|
1189
|
+
invalid_properties.push('invalid value for "integer", integer cannot be nil.')
|
|
1190
|
+
end
|
|
1191
|
+
|
|
1192
|
+
if @exclusive_minimum.nil?
|
|
1193
|
+
invalid_properties.push('invalid value for "exclusive_minimum", exclusive_minimum cannot be nil.')
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
if @exclusive_maximum.nil?
|
|
1197
|
+
invalid_properties.push('invalid value for "exclusive_maximum", exclusive_maximum cannot be nil.')
|
|
1198
|
+
end
|
|
1199
|
+
|
|
1200
|
+
if @signature_allow_draw.nil?
|
|
1201
|
+
invalid_properties.push('invalid value for "signature_allow_draw", signature_allow_draw cannot be nil.')
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
if @signature_allow_type.nil?
|
|
1205
|
+
invalid_properties.push('invalid value for "signature_allow_type", signature_allow_type cannot be nil.')
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
if @barcode_symbology.nil?
|
|
1209
|
+
invalid_properties.push('invalid value for "barcode_symbology", barcode_symbology cannot be nil.')
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
if @hidden.nil?
|
|
1213
|
+
invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1216
|
+
if @x.nil?
|
|
1217
|
+
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
if @y.nil?
|
|
1221
|
+
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
if @width.nil?
|
|
1225
|
+
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
|
1226
|
+
end
|
|
1227
|
+
|
|
1228
|
+
if @height.nil?
|
|
1229
|
+
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
if @rotation.nil?
|
|
1233
|
+
invalid_properties.push('invalid value for "rotation", rotation cannot be nil.')
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
if @display_type.nil?
|
|
1237
|
+
invalid_properties.push('invalid value for "display_type", display_type cannot be nil.')
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
if @opacity.nil?
|
|
1241
|
+
invalid_properties.push('invalid value for "opacity", opacity cannot be nil.')
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
if @character_spacing.nil?
|
|
1245
|
+
invalid_properties.push('invalid value for "character_spacing", character_spacing cannot be nil.')
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
if @bold.nil?
|
|
1249
|
+
invalid_properties.push('invalid value for "bold", bold cannot be nil.')
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
if @uppercase.nil?
|
|
1253
|
+
invalid_properties.push('invalid value for "uppercase", uppercase cannot be nil.')
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
if @strikethrough.nil?
|
|
1257
|
+
invalid_properties.push('invalid value for "strikethrough", strikethrough cannot be nil.')
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
if @keep_leading_spaces.nil?
|
|
1261
|
+
invalid_properties.push('invalid value for "keep_leading_spaces", keep_leading_spaces cannot be nil.')
|
|
1262
|
+
end
|
|
1263
|
+
|
|
1264
|
+
if @overflow.nil?
|
|
1265
|
+
invalid_properties.push('invalid value for "overflow", overflow cannot be nil.')
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
if @multiline.nil?
|
|
1269
|
+
invalid_properties.push('invalid value for "multiline", multiline cannot be nil.')
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1272
|
+
if @min_length.nil?
|
|
1273
|
+
invalid_properties.push('invalid value for "min_length", min_length cannot be nil.')
|
|
1274
|
+
end
|
|
1275
|
+
|
|
1276
|
+
if @auto_calculate_max_length.nil?
|
|
1277
|
+
invalid_properties.push('invalid value for "auto_calculate_max_length", auto_calculate_max_length cannot be nil.')
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
if @color_field_required.nil?
|
|
1281
|
+
invalid_properties.push('invalid value for "color_field_required", color_field_required cannot be nil.')
|
|
1282
|
+
end
|
|
1283
|
+
|
|
1284
|
+
if @background_color_field_required.nil?
|
|
1285
|
+
invalid_properties.push('invalid value for "background_color_field_required", background_color_field_required cannot be nil.')
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
if @alignment.nil?
|
|
1289
|
+
invalid_properties.push('invalid value for "alignment", alignment cannot be nil.')
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1292
|
+
if @v_alignment.nil?
|
|
1293
|
+
invalid_properties.push('invalid value for "v_alignment", v_alignment cannot be nil.')
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
if @comb.nil?
|
|
1297
|
+
invalid_properties.push('invalid value for "comb", comb cannot be nil.')
|
|
1298
|
+
end
|
|
1299
|
+
|
|
1300
|
+
if @comb_number_of_cells.nil?
|
|
1301
|
+
invalid_properties.push('invalid value for "comb_number_of_cells", comb_number_of_cells cannot be nil.')
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
if @comb_value_offset.nil?
|
|
1305
|
+
invalid_properties.push('invalid value for "comb_value_offset", comb_value_offset cannot be nil.')
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
if @shape_type.nil?
|
|
1309
|
+
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
if @shape_sides.nil?
|
|
1313
|
+
invalid_properties.push('invalid value for "shape_sides", shape_sides cannot be nil.')
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
if @shape_border_width.nil?
|
|
1317
|
+
invalid_properties.push('invalid value for "shape_border_width", shape_border_width cannot be nil.')
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
if @shape_border_color.nil?
|
|
1321
|
+
invalid_properties.push('invalid value for "shape_border_color", shape_border_color cannot be nil.')
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
if @shape_border_color_field_required.nil?
|
|
1325
|
+
invalid_properties.push('invalid value for "shape_border_color_field_required", shape_border_color_field_required cannot be nil.')
|
|
1326
|
+
end
|
|
1327
|
+
|
|
1328
|
+
if @shape_fill_color_field_required.nil?
|
|
1329
|
+
invalid_properties.push('invalid value for "shape_fill_color_field_required", shape_fill_color_field_required cannot be nil.')
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
if @check_character.nil?
|
|
1333
|
+
invalid_properties.push('invalid value for "check_character", check_character cannot be nil.')
|
|
1334
|
+
end
|
|
1335
|
+
|
|
1336
|
+
if @check_color_field_required.nil?
|
|
1337
|
+
invalid_properties.push('invalid value for "check_color_field_required", check_color_field_required cannot be nil.')
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
if @qrcode_color_field_required.nil?
|
|
1341
|
+
invalid_properties.push('invalid value for "qrcode_color_field_required", qrcode_color_field_required cannot be nil.')
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1344
|
+
if @string_condition_type.nil?
|
|
1345
|
+
invalid_properties.push('invalid value for "string_condition_type", string_condition_type cannot be nil.')
|
|
1346
|
+
end
|
|
1347
|
+
|
|
1348
|
+
if @number_condition_type.nil?
|
|
1349
|
+
invalid_properties.push('invalid value for "number_condition_type", number_condition_type cannot be nil.')
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
if @number_condition_range_exclusive_min.nil?
|
|
1353
|
+
invalid_properties.push('invalid value for "number_condition_range_exclusive_min", number_condition_range_exclusive_min cannot be nil.')
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1356
|
+
if @number_condition_range_exclusive_max.nil?
|
|
1357
|
+
invalid_properties.push('invalid value for "number_condition_range_exclusive_max", number_condition_range_exclusive_max cannot be nil.')
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
if @invert_boolean_condition.nil?
|
|
1361
|
+
invalid_properties.push('invalid value for "invert_boolean_condition", invert_boolean_condition cannot be nil.')
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
if @currency.nil?
|
|
1365
|
+
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
|
1366
|
+
end
|
|
1367
|
+
|
|
1368
|
+
if @image_scale_type.nil?
|
|
1369
|
+
invalid_properties.push('invalid value for "image_scale_type", image_scale_type cannot be nil.')
|
|
1370
|
+
end
|
|
1371
|
+
|
|
1372
|
+
if @image_gravity.nil?
|
|
1373
|
+
invalid_properties.push('invalid value for "image_gravity", image_gravity cannot be nil.')
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
invalid_properties
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
# Check to see if the all the properties in the model are valid
|
|
1380
|
+
# @return true if the model is valid
|
|
1381
|
+
def valid?
|
|
1382
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
1383
|
+
return false if @id.nil?
|
|
1384
|
+
return false if @page.nil?
|
|
1385
|
+
return false if @type.nil?
|
|
1386
|
+
return false if @static.nil?
|
|
1387
|
+
return false if @editable.nil?
|
|
1388
|
+
return false if @title.nil?
|
|
1389
|
+
return false if @description.nil?
|
|
1390
|
+
return false if @placeholder.nil?
|
|
1391
|
+
return false if @metadata.nil?
|
|
1392
|
+
return false if @required.nil?
|
|
1393
|
+
return false if @combined_field_names.nil?
|
|
1394
|
+
return false if @combined_field_type.nil?
|
|
1395
|
+
return false if @combined_field_separator.nil?
|
|
1396
|
+
return false if @combined_field_format.nil?
|
|
1397
|
+
return false if @integer.nil?
|
|
1398
|
+
return false if @exclusive_minimum.nil?
|
|
1399
|
+
return false if @exclusive_maximum.nil?
|
|
1400
|
+
return false if @signature_allow_draw.nil?
|
|
1401
|
+
return false if @signature_allow_type.nil?
|
|
1402
|
+
return false if @barcode_symbology.nil?
|
|
1403
|
+
return false if @hidden.nil?
|
|
1404
|
+
return false if @x.nil?
|
|
1405
|
+
return false if @y.nil?
|
|
1406
|
+
return false if @width.nil?
|
|
1407
|
+
return false if @height.nil?
|
|
1408
|
+
return false if @rotation.nil?
|
|
1409
|
+
return false if @display_type.nil?
|
|
1410
|
+
return false if @opacity.nil?
|
|
1411
|
+
return false if @character_spacing.nil?
|
|
1412
|
+
return false if @bold.nil?
|
|
1413
|
+
return false if @uppercase.nil?
|
|
1414
|
+
return false if @strikethrough.nil?
|
|
1415
|
+
return false if @keep_leading_spaces.nil?
|
|
1416
|
+
return false if @overflow.nil?
|
|
1417
|
+
return false if @multiline.nil?
|
|
1418
|
+
return false if @min_length.nil?
|
|
1419
|
+
return false if @auto_calculate_max_length.nil?
|
|
1420
|
+
return false if @color_field_required.nil?
|
|
1421
|
+
return false if @background_color_field_required.nil?
|
|
1422
|
+
return false if @alignment.nil?
|
|
1423
|
+
return false if @v_alignment.nil?
|
|
1424
|
+
return false if @comb.nil?
|
|
1425
|
+
return false if @comb_number_of_cells.nil?
|
|
1426
|
+
return false if @comb_value_offset.nil?
|
|
1427
|
+
return false if @shape_type.nil?
|
|
1428
|
+
return false if @shape_sides.nil?
|
|
1429
|
+
return false if @shape_border_width.nil?
|
|
1430
|
+
return false if @shape_border_color.nil?
|
|
1431
|
+
return false if @shape_border_color_field_required.nil?
|
|
1432
|
+
return false if @shape_fill_color_field_required.nil?
|
|
1433
|
+
return false if @check_character.nil?
|
|
1434
|
+
return false if @check_color_field_required.nil?
|
|
1435
|
+
return false if @qrcode_color_field_required.nil?
|
|
1436
|
+
return false if @string_condition_type.nil?
|
|
1437
|
+
return false if @number_condition_type.nil?
|
|
1438
|
+
return false if @number_condition_range_exclusive_min.nil?
|
|
1439
|
+
return false if @number_condition_range_exclusive_max.nil?
|
|
1440
|
+
return false if @invert_boolean_condition.nil?
|
|
1441
|
+
return false if @currency.nil?
|
|
1442
|
+
return false if @image_scale_type.nil?
|
|
1443
|
+
return false if @image_gravity.nil?
|
|
1444
|
+
true
|
|
1445
|
+
end
|
|
1446
|
+
|
|
1447
|
+
# Custom attribute writer method with validation
|
|
1448
|
+
# @param [Object] id Value to be assigned
|
|
1449
|
+
def id=(id)
|
|
1450
|
+
if id.nil?
|
|
1451
|
+
fail ArgumentError, 'id cannot be nil'
|
|
1452
|
+
end
|
|
1453
|
+
|
|
1454
|
+
@id = id
|
|
1455
|
+
end
|
|
1456
|
+
|
|
1457
|
+
# Custom attribute writer method with validation
|
|
1458
|
+
# @param [Object] page Value to be assigned
|
|
1459
|
+
def page=(page)
|
|
1460
|
+
if page.nil?
|
|
1461
|
+
fail ArgumentError, 'page cannot be nil'
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1464
|
+
@page = page
|
|
1465
|
+
end
|
|
1466
|
+
|
|
1467
|
+
# Custom attribute writer method with validation
|
|
1468
|
+
# @param [Object] type Value to be assigned
|
|
1469
|
+
def type=(type)
|
|
1470
|
+
if type.nil?
|
|
1471
|
+
fail ArgumentError, 'type cannot be nil'
|
|
1472
|
+
end
|
|
1473
|
+
|
|
1474
|
+
@type = type
|
|
1475
|
+
end
|
|
1476
|
+
|
|
1477
|
+
# Custom attribute writer method with validation
|
|
1478
|
+
# @param [Object] static Value to be assigned
|
|
1479
|
+
def static=(static)
|
|
1480
|
+
if static.nil?
|
|
1481
|
+
fail ArgumentError, 'static cannot be nil'
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
@static = static
|
|
1485
|
+
end
|
|
1486
|
+
|
|
1487
|
+
# Custom attribute writer method with validation
|
|
1488
|
+
# @param [Object] editable Value to be assigned
|
|
1489
|
+
def editable=(editable)
|
|
1490
|
+
if editable.nil?
|
|
1491
|
+
fail ArgumentError, 'editable cannot be nil'
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
@editable = editable
|
|
1495
|
+
end
|
|
1496
|
+
|
|
1497
|
+
# Custom attribute writer method with validation
|
|
1498
|
+
# @param [Object] title Value to be assigned
|
|
1499
|
+
def title=(title)
|
|
1500
|
+
if title.nil?
|
|
1501
|
+
fail ArgumentError, 'title cannot be nil'
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
@title = title
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
# Custom attribute writer method with validation
|
|
1508
|
+
# @param [Object] description Value to be assigned
|
|
1509
|
+
def description=(description)
|
|
1510
|
+
if description.nil?
|
|
1511
|
+
fail ArgumentError, 'description cannot be nil'
|
|
1512
|
+
end
|
|
1513
|
+
|
|
1514
|
+
@description = description
|
|
1515
|
+
end
|
|
1516
|
+
|
|
1517
|
+
# Custom attribute writer method with validation
|
|
1518
|
+
# @param [Object] placeholder Value to be assigned
|
|
1519
|
+
def placeholder=(placeholder)
|
|
1520
|
+
if placeholder.nil?
|
|
1521
|
+
fail ArgumentError, 'placeholder cannot be nil'
|
|
1522
|
+
end
|
|
1523
|
+
|
|
1524
|
+
@placeholder = placeholder
|
|
1525
|
+
end
|
|
1526
|
+
|
|
1527
|
+
# Custom attribute writer method with validation
|
|
1528
|
+
# @param [Object] metadata Value to be assigned
|
|
1529
|
+
def metadata=(metadata)
|
|
1530
|
+
if metadata.nil?
|
|
1531
|
+
fail ArgumentError, 'metadata cannot be nil'
|
|
1532
|
+
end
|
|
1533
|
+
|
|
1534
|
+
@metadata = metadata
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
# Custom attribute writer method with validation
|
|
1538
|
+
# @param [Object] required Value to be assigned
|
|
1539
|
+
def required=(required)
|
|
1540
|
+
if required.nil?
|
|
1541
|
+
fail ArgumentError, 'required cannot be nil'
|
|
1542
|
+
end
|
|
1543
|
+
|
|
1544
|
+
@required = required
|
|
1545
|
+
end
|
|
1546
|
+
|
|
1547
|
+
# Custom attribute writer method with validation
|
|
1548
|
+
# @param [Object] combined_field_names Value to be assigned
|
|
1549
|
+
def combined_field_names=(combined_field_names)
|
|
1550
|
+
if combined_field_names.nil?
|
|
1551
|
+
fail ArgumentError, 'combined_field_names cannot be nil'
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1554
|
+
@combined_field_names = combined_field_names
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1557
|
+
# Custom attribute writer method with validation
|
|
1558
|
+
# @param [Object] combined_field_type Value to be assigned
|
|
1559
|
+
def combined_field_type=(combined_field_type)
|
|
1560
|
+
if combined_field_type.nil?
|
|
1561
|
+
fail ArgumentError, 'combined_field_type cannot be nil'
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1564
|
+
@combined_field_type = combined_field_type
|
|
1565
|
+
end
|
|
1566
|
+
|
|
1567
|
+
# Custom attribute writer method with validation
|
|
1568
|
+
# @param [Object] combined_field_separator Value to be assigned
|
|
1569
|
+
def combined_field_separator=(combined_field_separator)
|
|
1570
|
+
if combined_field_separator.nil?
|
|
1571
|
+
fail ArgumentError, 'combined_field_separator cannot be nil'
|
|
1572
|
+
end
|
|
1573
|
+
|
|
1574
|
+
@combined_field_separator = combined_field_separator
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
# Custom attribute writer method with validation
|
|
1578
|
+
# @param [Object] combined_field_format Value to be assigned
|
|
1579
|
+
def combined_field_format=(combined_field_format)
|
|
1580
|
+
if combined_field_format.nil?
|
|
1581
|
+
fail ArgumentError, 'combined_field_format cannot be nil'
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
@combined_field_format = combined_field_format
|
|
1585
|
+
end
|
|
1586
|
+
|
|
1587
|
+
# Custom attribute writer method with validation
|
|
1588
|
+
# @param [Object] integer Value to be assigned
|
|
1589
|
+
def integer=(integer)
|
|
1590
|
+
if integer.nil?
|
|
1591
|
+
fail ArgumentError, 'integer cannot be nil'
|
|
1592
|
+
end
|
|
1593
|
+
|
|
1594
|
+
@integer = integer
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
# Custom attribute writer method with validation
|
|
1598
|
+
# @param [Object] exclusive_minimum Value to be assigned
|
|
1599
|
+
def exclusive_minimum=(exclusive_minimum)
|
|
1600
|
+
if exclusive_minimum.nil?
|
|
1601
|
+
fail ArgumentError, 'exclusive_minimum cannot be nil'
|
|
1602
|
+
end
|
|
1603
|
+
|
|
1604
|
+
@exclusive_minimum = exclusive_minimum
|
|
1605
|
+
end
|
|
1606
|
+
|
|
1607
|
+
# Custom attribute writer method with validation
|
|
1608
|
+
# @param [Object] exclusive_maximum Value to be assigned
|
|
1609
|
+
def exclusive_maximum=(exclusive_maximum)
|
|
1610
|
+
if exclusive_maximum.nil?
|
|
1611
|
+
fail ArgumentError, 'exclusive_maximum cannot be nil'
|
|
1612
|
+
end
|
|
1613
|
+
|
|
1614
|
+
@exclusive_maximum = exclusive_maximum
|
|
1615
|
+
end
|
|
1616
|
+
|
|
1617
|
+
# Custom attribute writer method with validation
|
|
1618
|
+
# @param [Object] signature_allow_draw Value to be assigned
|
|
1619
|
+
def signature_allow_draw=(signature_allow_draw)
|
|
1620
|
+
if signature_allow_draw.nil?
|
|
1621
|
+
fail ArgumentError, 'signature_allow_draw cannot be nil'
|
|
1622
|
+
end
|
|
1623
|
+
|
|
1624
|
+
@signature_allow_draw = signature_allow_draw
|
|
1625
|
+
end
|
|
1626
|
+
|
|
1627
|
+
# Custom attribute writer method with validation
|
|
1628
|
+
# @param [Object] signature_allow_type Value to be assigned
|
|
1629
|
+
def signature_allow_type=(signature_allow_type)
|
|
1630
|
+
if signature_allow_type.nil?
|
|
1631
|
+
fail ArgumentError, 'signature_allow_type cannot be nil'
|
|
1632
|
+
end
|
|
1633
|
+
|
|
1634
|
+
@signature_allow_type = signature_allow_type
|
|
1635
|
+
end
|
|
1636
|
+
|
|
1637
|
+
# Custom attribute writer method with validation
|
|
1638
|
+
# @param [Object] barcode_symbology Value to be assigned
|
|
1639
|
+
def barcode_symbology=(barcode_symbology)
|
|
1640
|
+
if barcode_symbology.nil?
|
|
1641
|
+
fail ArgumentError, 'barcode_symbology cannot be nil'
|
|
1642
|
+
end
|
|
1643
|
+
|
|
1644
|
+
@barcode_symbology = barcode_symbology
|
|
1645
|
+
end
|
|
1646
|
+
|
|
1647
|
+
# Custom attribute writer method with validation
|
|
1648
|
+
# @param [Object] hidden Value to be assigned
|
|
1649
|
+
def hidden=(hidden)
|
|
1650
|
+
if hidden.nil?
|
|
1651
|
+
fail ArgumentError, 'hidden cannot be nil'
|
|
1652
|
+
end
|
|
1653
|
+
|
|
1654
|
+
@hidden = hidden
|
|
1655
|
+
end
|
|
1656
|
+
|
|
1657
|
+
# Custom attribute writer method with validation
|
|
1658
|
+
# @param [Object] x Value to be assigned
|
|
1659
|
+
def x=(x)
|
|
1660
|
+
if x.nil?
|
|
1661
|
+
fail ArgumentError, 'x cannot be nil'
|
|
1662
|
+
end
|
|
1663
|
+
|
|
1664
|
+
@x = x
|
|
1665
|
+
end
|
|
1666
|
+
|
|
1667
|
+
# Custom attribute writer method with validation
|
|
1668
|
+
# @param [Object] y Value to be assigned
|
|
1669
|
+
def y=(y)
|
|
1670
|
+
if y.nil?
|
|
1671
|
+
fail ArgumentError, 'y cannot be nil'
|
|
1672
|
+
end
|
|
1673
|
+
|
|
1674
|
+
@y = y
|
|
1675
|
+
end
|
|
1676
|
+
|
|
1677
|
+
# Custom attribute writer method with validation
|
|
1678
|
+
# @param [Object] width Value to be assigned
|
|
1679
|
+
def width=(width)
|
|
1680
|
+
if width.nil?
|
|
1681
|
+
fail ArgumentError, 'width cannot be nil'
|
|
1682
|
+
end
|
|
1683
|
+
|
|
1684
|
+
@width = width
|
|
1685
|
+
end
|
|
1686
|
+
|
|
1687
|
+
# Custom attribute writer method with validation
|
|
1688
|
+
# @param [Object] height Value to be assigned
|
|
1689
|
+
def height=(height)
|
|
1690
|
+
if height.nil?
|
|
1691
|
+
fail ArgumentError, 'height cannot be nil'
|
|
1692
|
+
end
|
|
1693
|
+
|
|
1694
|
+
@height = height
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
# Custom attribute writer method with validation
|
|
1698
|
+
# @param [Object] rotation Value to be assigned
|
|
1699
|
+
def rotation=(rotation)
|
|
1700
|
+
if rotation.nil?
|
|
1701
|
+
fail ArgumentError, 'rotation cannot be nil'
|
|
1702
|
+
end
|
|
1703
|
+
|
|
1704
|
+
@rotation = rotation
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
# Custom attribute writer method with validation
|
|
1708
|
+
# @param [Object] display_type Value to be assigned
|
|
1709
|
+
def display_type=(display_type)
|
|
1710
|
+
if display_type.nil?
|
|
1711
|
+
fail ArgumentError, 'display_type cannot be nil'
|
|
1712
|
+
end
|
|
1713
|
+
|
|
1714
|
+
@display_type = display_type
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
# Custom attribute writer method with validation
|
|
1718
|
+
# @param [Object] opacity Value to be assigned
|
|
1719
|
+
def opacity=(opacity)
|
|
1720
|
+
if opacity.nil?
|
|
1721
|
+
fail ArgumentError, 'opacity cannot be nil'
|
|
1722
|
+
end
|
|
1723
|
+
|
|
1724
|
+
@opacity = opacity
|
|
1725
|
+
end
|
|
1726
|
+
|
|
1727
|
+
# Custom attribute writer method with validation
|
|
1728
|
+
# @param [Object] character_spacing Value to be assigned
|
|
1729
|
+
def character_spacing=(character_spacing)
|
|
1730
|
+
if character_spacing.nil?
|
|
1731
|
+
fail ArgumentError, 'character_spacing cannot be nil'
|
|
1732
|
+
end
|
|
1733
|
+
|
|
1734
|
+
@character_spacing = character_spacing
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1737
|
+
# Custom attribute writer method with validation
|
|
1738
|
+
# @param [Object] bold Value to be assigned
|
|
1739
|
+
def bold=(bold)
|
|
1740
|
+
if bold.nil?
|
|
1741
|
+
fail ArgumentError, 'bold cannot be nil'
|
|
1742
|
+
end
|
|
1743
|
+
|
|
1744
|
+
@bold = bold
|
|
1745
|
+
end
|
|
1746
|
+
|
|
1747
|
+
# Custom attribute writer method with validation
|
|
1748
|
+
# @param [Object] uppercase Value to be assigned
|
|
1749
|
+
def uppercase=(uppercase)
|
|
1750
|
+
if uppercase.nil?
|
|
1751
|
+
fail ArgumentError, 'uppercase cannot be nil'
|
|
1752
|
+
end
|
|
1753
|
+
|
|
1754
|
+
@uppercase = uppercase
|
|
1755
|
+
end
|
|
1756
|
+
|
|
1757
|
+
# Custom attribute writer method with validation
|
|
1758
|
+
# @param [Object] strikethrough Value to be assigned
|
|
1759
|
+
def strikethrough=(strikethrough)
|
|
1760
|
+
if strikethrough.nil?
|
|
1761
|
+
fail ArgumentError, 'strikethrough cannot be nil'
|
|
1762
|
+
end
|
|
1763
|
+
|
|
1764
|
+
@strikethrough = strikethrough
|
|
1765
|
+
end
|
|
1766
|
+
|
|
1767
|
+
# Custom attribute writer method with validation
|
|
1768
|
+
# @param [Object] keep_leading_spaces Value to be assigned
|
|
1769
|
+
def keep_leading_spaces=(keep_leading_spaces)
|
|
1770
|
+
if keep_leading_spaces.nil?
|
|
1771
|
+
fail ArgumentError, 'keep_leading_spaces cannot be nil'
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1774
|
+
@keep_leading_spaces = keep_leading_spaces
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
# Custom attribute writer method with validation
|
|
1778
|
+
# @param [Object] overflow Value to be assigned
|
|
1779
|
+
def overflow=(overflow)
|
|
1780
|
+
if overflow.nil?
|
|
1781
|
+
fail ArgumentError, 'overflow cannot be nil'
|
|
1782
|
+
end
|
|
1783
|
+
|
|
1784
|
+
@overflow = overflow
|
|
1785
|
+
end
|
|
1786
|
+
|
|
1787
|
+
# Custom attribute writer method with validation
|
|
1788
|
+
# @param [Object] multiline Value to be assigned
|
|
1789
|
+
def multiline=(multiline)
|
|
1790
|
+
if multiline.nil?
|
|
1791
|
+
fail ArgumentError, 'multiline cannot be nil'
|
|
1792
|
+
end
|
|
1793
|
+
|
|
1794
|
+
@multiline = multiline
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
# Custom attribute writer method with validation
|
|
1798
|
+
# @param [Object] min_length Value to be assigned
|
|
1799
|
+
def min_length=(min_length)
|
|
1800
|
+
if min_length.nil?
|
|
1801
|
+
fail ArgumentError, 'min_length cannot be nil'
|
|
1802
|
+
end
|
|
1803
|
+
|
|
1804
|
+
@min_length = min_length
|
|
1805
|
+
end
|
|
1806
|
+
|
|
1807
|
+
# Custom attribute writer method with validation
|
|
1808
|
+
# @param [Object] auto_calculate_max_length Value to be assigned
|
|
1809
|
+
def auto_calculate_max_length=(auto_calculate_max_length)
|
|
1810
|
+
if auto_calculate_max_length.nil?
|
|
1811
|
+
fail ArgumentError, 'auto_calculate_max_length cannot be nil'
|
|
1812
|
+
end
|
|
1813
|
+
|
|
1814
|
+
@auto_calculate_max_length = auto_calculate_max_length
|
|
1815
|
+
end
|
|
1816
|
+
|
|
1817
|
+
# Custom attribute writer method with validation
|
|
1818
|
+
# @param [Object] color_field_required Value to be assigned
|
|
1819
|
+
def color_field_required=(color_field_required)
|
|
1820
|
+
if color_field_required.nil?
|
|
1821
|
+
fail ArgumentError, 'color_field_required cannot be nil'
|
|
1822
|
+
end
|
|
1823
|
+
|
|
1824
|
+
@color_field_required = color_field_required
|
|
1825
|
+
end
|
|
1826
|
+
|
|
1827
|
+
# Custom attribute writer method with validation
|
|
1828
|
+
# @param [Object] background_color_field_required Value to be assigned
|
|
1829
|
+
def background_color_field_required=(background_color_field_required)
|
|
1830
|
+
if background_color_field_required.nil?
|
|
1831
|
+
fail ArgumentError, 'background_color_field_required cannot be nil'
|
|
1832
|
+
end
|
|
1833
|
+
|
|
1834
|
+
@background_color_field_required = background_color_field_required
|
|
1835
|
+
end
|
|
1836
|
+
|
|
1837
|
+
# Custom attribute writer method with validation
|
|
1838
|
+
# @param [Object] alignment Value to be assigned
|
|
1839
|
+
def alignment=(alignment)
|
|
1840
|
+
if alignment.nil?
|
|
1841
|
+
fail ArgumentError, 'alignment cannot be nil'
|
|
1842
|
+
end
|
|
1843
|
+
|
|
1844
|
+
@alignment = alignment
|
|
1845
|
+
end
|
|
1846
|
+
|
|
1847
|
+
# Custom attribute writer method with validation
|
|
1848
|
+
# @param [Object] v_alignment Value to be assigned
|
|
1849
|
+
def v_alignment=(v_alignment)
|
|
1850
|
+
if v_alignment.nil?
|
|
1851
|
+
fail ArgumentError, 'v_alignment cannot be nil'
|
|
1852
|
+
end
|
|
1853
|
+
|
|
1854
|
+
@v_alignment = v_alignment
|
|
1855
|
+
end
|
|
1856
|
+
|
|
1857
|
+
# Custom attribute writer method with validation
|
|
1858
|
+
# @param [Object] comb Value to be assigned
|
|
1859
|
+
def comb=(comb)
|
|
1860
|
+
if comb.nil?
|
|
1861
|
+
fail ArgumentError, 'comb cannot be nil'
|
|
1862
|
+
end
|
|
1863
|
+
|
|
1864
|
+
@comb = comb
|
|
1865
|
+
end
|
|
1866
|
+
|
|
1867
|
+
# Custom attribute writer method with validation
|
|
1868
|
+
# @param [Object] comb_number_of_cells Value to be assigned
|
|
1869
|
+
def comb_number_of_cells=(comb_number_of_cells)
|
|
1870
|
+
if comb_number_of_cells.nil?
|
|
1871
|
+
fail ArgumentError, 'comb_number_of_cells cannot be nil'
|
|
1872
|
+
end
|
|
1873
|
+
|
|
1874
|
+
@comb_number_of_cells = comb_number_of_cells
|
|
1875
|
+
end
|
|
1876
|
+
|
|
1877
|
+
# Custom attribute writer method with validation
|
|
1878
|
+
# @param [Object] comb_value_offset Value to be assigned
|
|
1879
|
+
def comb_value_offset=(comb_value_offset)
|
|
1880
|
+
if comb_value_offset.nil?
|
|
1881
|
+
fail ArgumentError, 'comb_value_offset cannot be nil'
|
|
1882
|
+
end
|
|
1883
|
+
|
|
1884
|
+
@comb_value_offset = comb_value_offset
|
|
1885
|
+
end
|
|
1886
|
+
|
|
1887
|
+
# Custom attribute writer method with validation
|
|
1888
|
+
# @param [Object] shape_type Value to be assigned
|
|
1889
|
+
def shape_type=(shape_type)
|
|
1890
|
+
if shape_type.nil?
|
|
1891
|
+
fail ArgumentError, 'shape_type cannot be nil'
|
|
1892
|
+
end
|
|
1893
|
+
|
|
1894
|
+
@shape_type = shape_type
|
|
1895
|
+
end
|
|
1896
|
+
|
|
1897
|
+
# Custom attribute writer method with validation
|
|
1898
|
+
# @param [Object] shape_sides Value to be assigned
|
|
1899
|
+
def shape_sides=(shape_sides)
|
|
1900
|
+
if shape_sides.nil?
|
|
1901
|
+
fail ArgumentError, 'shape_sides cannot be nil'
|
|
1902
|
+
end
|
|
1903
|
+
|
|
1904
|
+
@shape_sides = shape_sides
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
# Custom attribute writer method with validation
|
|
1908
|
+
# @param [Object] shape_border_width Value to be assigned
|
|
1909
|
+
def shape_border_width=(shape_border_width)
|
|
1910
|
+
if shape_border_width.nil?
|
|
1911
|
+
fail ArgumentError, 'shape_border_width cannot be nil'
|
|
1912
|
+
end
|
|
1913
|
+
|
|
1914
|
+
@shape_border_width = shape_border_width
|
|
1915
|
+
end
|
|
1916
|
+
|
|
1917
|
+
# Custom attribute writer method with validation
|
|
1918
|
+
# @param [Object] shape_border_color Value to be assigned
|
|
1919
|
+
def shape_border_color=(shape_border_color)
|
|
1920
|
+
if shape_border_color.nil?
|
|
1921
|
+
fail ArgumentError, 'shape_border_color cannot be nil'
|
|
1922
|
+
end
|
|
1923
|
+
|
|
1924
|
+
@shape_border_color = shape_border_color
|
|
1925
|
+
end
|
|
1926
|
+
|
|
1927
|
+
# Custom attribute writer method with validation
|
|
1928
|
+
# @param [Object] shape_border_color_field_required Value to be assigned
|
|
1929
|
+
def shape_border_color_field_required=(shape_border_color_field_required)
|
|
1930
|
+
if shape_border_color_field_required.nil?
|
|
1931
|
+
fail ArgumentError, 'shape_border_color_field_required cannot be nil'
|
|
1932
|
+
end
|
|
1933
|
+
|
|
1934
|
+
@shape_border_color_field_required = shape_border_color_field_required
|
|
1935
|
+
end
|
|
1936
|
+
|
|
1937
|
+
# Custom attribute writer method with validation
|
|
1938
|
+
# @param [Object] shape_fill_color_field_required Value to be assigned
|
|
1939
|
+
def shape_fill_color_field_required=(shape_fill_color_field_required)
|
|
1940
|
+
if shape_fill_color_field_required.nil?
|
|
1941
|
+
fail ArgumentError, 'shape_fill_color_field_required cannot be nil'
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1944
|
+
@shape_fill_color_field_required = shape_fill_color_field_required
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
# Custom attribute writer method with validation
|
|
1948
|
+
# @param [Object] check_character Value to be assigned
|
|
1949
|
+
def check_character=(check_character)
|
|
1950
|
+
if check_character.nil?
|
|
1951
|
+
fail ArgumentError, 'check_character cannot be nil'
|
|
1952
|
+
end
|
|
1953
|
+
|
|
1954
|
+
@check_character = check_character
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1957
|
+
# Custom attribute writer method with validation
|
|
1958
|
+
# @param [Object] check_color_field_required Value to be assigned
|
|
1959
|
+
def check_color_field_required=(check_color_field_required)
|
|
1960
|
+
if check_color_field_required.nil?
|
|
1961
|
+
fail ArgumentError, 'check_color_field_required cannot be nil'
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
@check_color_field_required = check_color_field_required
|
|
1965
|
+
end
|
|
1966
|
+
|
|
1967
|
+
# Custom attribute writer method with validation
|
|
1968
|
+
# @param [Object] qrcode_color_field_required Value to be assigned
|
|
1969
|
+
def qrcode_color_field_required=(qrcode_color_field_required)
|
|
1970
|
+
if qrcode_color_field_required.nil?
|
|
1971
|
+
fail ArgumentError, 'qrcode_color_field_required cannot be nil'
|
|
1972
|
+
end
|
|
1973
|
+
|
|
1974
|
+
@qrcode_color_field_required = qrcode_color_field_required
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# Custom attribute writer method with validation
|
|
1978
|
+
# @param [Object] string_condition_type Value to be assigned
|
|
1979
|
+
def string_condition_type=(string_condition_type)
|
|
1980
|
+
if string_condition_type.nil?
|
|
1981
|
+
fail ArgumentError, 'string_condition_type cannot be nil'
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1984
|
+
@string_condition_type = string_condition_type
|
|
1985
|
+
end
|
|
1986
|
+
|
|
1987
|
+
# Custom attribute writer method with validation
|
|
1988
|
+
# @param [Object] number_condition_type Value to be assigned
|
|
1989
|
+
def number_condition_type=(number_condition_type)
|
|
1990
|
+
if number_condition_type.nil?
|
|
1991
|
+
fail ArgumentError, 'number_condition_type cannot be nil'
|
|
1992
|
+
end
|
|
1993
|
+
|
|
1994
|
+
@number_condition_type = number_condition_type
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1997
|
+
# Custom attribute writer method with validation
|
|
1998
|
+
# @param [Object] number_condition_range_exclusive_min Value to be assigned
|
|
1999
|
+
def number_condition_range_exclusive_min=(number_condition_range_exclusive_min)
|
|
2000
|
+
if number_condition_range_exclusive_min.nil?
|
|
2001
|
+
fail ArgumentError, 'number_condition_range_exclusive_min cannot be nil'
|
|
2002
|
+
end
|
|
2003
|
+
|
|
2004
|
+
@number_condition_range_exclusive_min = number_condition_range_exclusive_min
|
|
2005
|
+
end
|
|
2006
|
+
|
|
2007
|
+
# Custom attribute writer method with validation
|
|
2008
|
+
# @param [Object] number_condition_range_exclusive_max Value to be assigned
|
|
2009
|
+
def number_condition_range_exclusive_max=(number_condition_range_exclusive_max)
|
|
2010
|
+
if number_condition_range_exclusive_max.nil?
|
|
2011
|
+
fail ArgumentError, 'number_condition_range_exclusive_max cannot be nil'
|
|
2012
|
+
end
|
|
2013
|
+
|
|
2014
|
+
@number_condition_range_exclusive_max = number_condition_range_exclusive_max
|
|
2015
|
+
end
|
|
2016
|
+
|
|
2017
|
+
# Custom attribute writer method with validation
|
|
2018
|
+
# @param [Object] invert_boolean_condition Value to be assigned
|
|
2019
|
+
def invert_boolean_condition=(invert_boolean_condition)
|
|
2020
|
+
if invert_boolean_condition.nil?
|
|
2021
|
+
fail ArgumentError, 'invert_boolean_condition cannot be nil'
|
|
2022
|
+
end
|
|
2023
|
+
|
|
2024
|
+
@invert_boolean_condition = invert_boolean_condition
|
|
2025
|
+
end
|
|
2026
|
+
|
|
2027
|
+
# Custom attribute writer method with validation
|
|
2028
|
+
# @param [Object] currency Value to be assigned
|
|
2029
|
+
def currency=(currency)
|
|
2030
|
+
if currency.nil?
|
|
2031
|
+
fail ArgumentError, 'currency cannot be nil'
|
|
2032
|
+
end
|
|
2033
|
+
|
|
2034
|
+
@currency = currency
|
|
2035
|
+
end
|
|
2036
|
+
|
|
2037
|
+
# Custom attribute writer method with validation
|
|
2038
|
+
# @param [Object] image_scale_type Value to be assigned
|
|
2039
|
+
def image_scale_type=(image_scale_type)
|
|
2040
|
+
if image_scale_type.nil?
|
|
2041
|
+
fail ArgumentError, 'image_scale_type cannot be nil'
|
|
2042
|
+
end
|
|
2043
|
+
|
|
2044
|
+
@image_scale_type = image_scale_type
|
|
2045
|
+
end
|
|
2046
|
+
|
|
2047
|
+
# Custom attribute writer method with validation
|
|
2048
|
+
# @param [Object] image_gravity Value to be assigned
|
|
2049
|
+
def image_gravity=(image_gravity)
|
|
2050
|
+
if image_gravity.nil?
|
|
2051
|
+
fail ArgumentError, 'image_gravity cannot be nil'
|
|
2052
|
+
end
|
|
2053
|
+
|
|
2054
|
+
@image_gravity = image_gravity
|
|
2055
|
+
end
|
|
2056
|
+
|
|
2057
|
+
# Checks equality by comparing each attribute.
|
|
2058
|
+
# @param [Object] Object to be compared
|
|
2059
|
+
def ==(o)
|
|
2060
|
+
return true if self.equal?(o)
|
|
2061
|
+
self.class == o.class &&
|
|
2062
|
+
id == o.id &&
|
|
2063
|
+
name == o.name &&
|
|
2064
|
+
page == o.page &&
|
|
2065
|
+
acroform_name == o.acroform_name &&
|
|
2066
|
+
type == o.type &&
|
|
2067
|
+
static == o.static &&
|
|
2068
|
+
editable == o.editable &&
|
|
2069
|
+
default == o.default &&
|
|
2070
|
+
title == o.title &&
|
|
2071
|
+
description == o.description &&
|
|
2072
|
+
placeholder == o.placeholder &&
|
|
2073
|
+
metadata == o.metadata &&
|
|
2074
|
+
required == o.required &&
|
|
2075
|
+
option_list == o.option_list &&
|
|
2076
|
+
combined_field_names == o.combined_field_names &&
|
|
2077
|
+
combined_field_type == o.combined_field_type &&
|
|
2078
|
+
combined_field_separator == o.combined_field_separator &&
|
|
2079
|
+
combined_field_format == o.combined_field_format &&
|
|
2080
|
+
integer == o.integer &&
|
|
2081
|
+
minimum == o.minimum &&
|
|
2082
|
+
maximum == o.maximum &&
|
|
2083
|
+
exclusive_minimum == o.exclusive_minimum &&
|
|
2084
|
+
exclusive_maximum == o.exclusive_maximum &&
|
|
2085
|
+
include_time == o.include_time &&
|
|
2086
|
+
signature_allow_draw == o.signature_allow_draw &&
|
|
2087
|
+
signature_allow_type == o.signature_allow_type &&
|
|
2088
|
+
barcode_symbology == o.barcode_symbology &&
|
|
2089
|
+
hidden == o.hidden &&
|
|
2090
|
+
x == o.x &&
|
|
2091
|
+
y == o.y &&
|
|
2092
|
+
width == o.width &&
|
|
2093
|
+
height == o.height &&
|
|
2094
|
+
rotation == o.rotation &&
|
|
2095
|
+
display_type == o.display_type &&
|
|
2096
|
+
opacity == o.opacity &&
|
|
2097
|
+
date_time_format == o.date_time_format &&
|
|
2098
|
+
typeface == o.typeface &&
|
|
2099
|
+
font_size == o.font_size &&
|
|
2100
|
+
character_spacing == o.character_spacing &&
|
|
2101
|
+
bold == o.bold &&
|
|
2102
|
+
uppercase == o.uppercase &&
|
|
2103
|
+
strikethrough == o.strikethrough &&
|
|
2104
|
+
keep_leading_spaces == o.keep_leading_spaces &&
|
|
2105
|
+
overflow == o.overflow &&
|
|
2106
|
+
multiline == o.multiline &&
|
|
2107
|
+
multiline_lines == o.multiline_lines &&
|
|
2108
|
+
min_length == o.min_length &&
|
|
2109
|
+
max_length == o.max_length &&
|
|
2110
|
+
auto_calculate_max_length == o.auto_calculate_max_length &&
|
|
2111
|
+
color == o.color &&
|
|
2112
|
+
color_field_name == o.color_field_name &&
|
|
2113
|
+
color_field_required == o.color_field_required &&
|
|
2114
|
+
background_color == o.background_color &&
|
|
2115
|
+
background_color_field_name == o.background_color_field_name &&
|
|
2116
|
+
background_color_field_required == o.background_color_field_required &&
|
|
2117
|
+
alignment == o.alignment &&
|
|
2118
|
+
v_alignment == o.v_alignment &&
|
|
2119
|
+
comb == o.comb &&
|
|
2120
|
+
comb_number_of_cells == o.comb_number_of_cells &&
|
|
2121
|
+
comb_value_offset == o.comb_value_offset &&
|
|
2122
|
+
shape_type == o.shape_type &&
|
|
2123
|
+
shape_sides == o.shape_sides &&
|
|
2124
|
+
shape_border_width == o.shape_border_width &&
|
|
2125
|
+
shape_border_color == o.shape_border_color &&
|
|
2126
|
+
shape_border_color_field_name == o.shape_border_color_field_name &&
|
|
2127
|
+
shape_border_color_field_required == o.shape_border_color_field_required &&
|
|
2128
|
+
shape_fill_color == o.shape_fill_color &&
|
|
2129
|
+
shape_fill_color_field_name == o.shape_fill_color_field_name &&
|
|
2130
|
+
shape_fill_color_field_required == o.shape_fill_color_field_required &&
|
|
2131
|
+
check_character == o.check_character &&
|
|
2132
|
+
check_color == o.check_color &&
|
|
2133
|
+
check_color_field_name == o.check_color_field_name &&
|
|
2134
|
+
check_color_field_required == o.check_color_field_required &&
|
|
2135
|
+
qrcode_color == o.qrcode_color &&
|
|
2136
|
+
qrcode_color_field_name == o.qrcode_color_field_name &&
|
|
2137
|
+
qrcode_color_field_required == o.qrcode_color_field_required &&
|
|
2138
|
+
true_text == o.true_text &&
|
|
2139
|
+
false_text == o.false_text &&
|
|
2140
|
+
condition == o.condition &&
|
|
2141
|
+
string_condition_type == o.string_condition_type &&
|
|
2142
|
+
number_condition_type == o.number_condition_type &&
|
|
2143
|
+
number_condition_range_min == o.number_condition_range_min &&
|
|
2144
|
+
number_condition_range_max == o.number_condition_range_max &&
|
|
2145
|
+
number_condition_range_exclusive_min == o.number_condition_range_exclusive_min &&
|
|
2146
|
+
number_condition_range_exclusive_max == o.number_condition_range_exclusive_max &&
|
|
2147
|
+
invert_boolean_condition == o.invert_boolean_condition &&
|
|
2148
|
+
currency == o.currency &&
|
|
2149
|
+
decimal_places == o.decimal_places &&
|
|
2150
|
+
image_scale_type == o.image_scale_type &&
|
|
2151
|
+
image_gravity == o.image_gravity &&
|
|
2152
|
+
dependencies == o.dependencies
|
|
2153
|
+
end
|
|
2154
|
+
|
|
2155
|
+
# @see the `==` method
|
|
2156
|
+
# @param [Object] Object to be compared
|
|
2157
|
+
def eql?(o)
|
|
2158
|
+
self == o
|
|
2159
|
+
end
|
|
2160
|
+
|
|
2161
|
+
# Calculates hash code according to all attributes.
|
|
2162
|
+
# @return [Integer] Hash code
|
|
2163
|
+
def hash
|
|
2164
|
+
[id, name, page, acroform_name, type, static, editable, default, title, description, placeholder, metadata, required, option_list, combined_field_names, combined_field_type, combined_field_separator, combined_field_format, integer, minimum, maximum, exclusive_minimum, exclusive_maximum, include_time, signature_allow_draw, signature_allow_type, barcode_symbology, hidden, x, y, width, height, rotation, display_type, opacity, date_time_format, typeface, font_size, character_spacing, bold, uppercase, strikethrough, keep_leading_spaces, overflow, multiline, multiline_lines, min_length, max_length, auto_calculate_max_length, color, color_field_name, color_field_required, background_color, background_color_field_name, background_color_field_required, alignment, v_alignment, comb, comb_number_of_cells, comb_value_offset, shape_type, shape_sides, shape_border_width, shape_border_color, shape_border_color_field_name, shape_border_color_field_required, shape_fill_color, shape_fill_color_field_name, shape_fill_color_field_required, check_character, check_color, check_color_field_name, check_color_field_required, qrcode_color, qrcode_color_field_name, qrcode_color_field_required, true_text, false_text, condition, string_condition_type, number_condition_type, number_condition_range_min, number_condition_range_max, number_condition_range_exclusive_min, number_condition_range_exclusive_max, invert_boolean_condition, currency, decimal_places, image_scale_type, image_gravity, dependencies].hash
|
|
2165
|
+
end
|
|
2166
|
+
|
|
2167
|
+
# Builds the object from hash
|
|
2168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
2169
|
+
# @return [Object] Returns the model itself
|
|
2170
|
+
def self.build_from_hash(attributes)
|
|
2171
|
+
return nil unless attributes.is_a?(Hash)
|
|
2172
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
2173
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
2174
|
+
map = acceptable_attribute_map
|
|
2175
|
+
transformed_hash = {}
|
|
2176
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
2177
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
2178
|
+
transformed_hash["#{key}"] = nil
|
|
2179
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
2180
|
+
# check to ensure the input is an array given that the attribute
|
|
2181
|
+
# is documented as an array but the input is not
|
|
2182
|
+
if attributes[map[key]].is_a?(Array)
|
|
2183
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
2184
|
+
end
|
|
2185
|
+
elsif !attributes[map[key]].nil?
|
|
2186
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
2187
|
+
end
|
|
2188
|
+
end
|
|
2189
|
+
# Responses can include enum values added after this client was released, so the enum setters
|
|
2190
|
+
# accept any value while the model is built from a response
|
|
2191
|
+
allocate.tap do |model|
|
|
2192
|
+
model.instance_variable_set(:@_skip_enum_validation, true)
|
|
2193
|
+
model.send(:initialize, transformed_hash)
|
|
2194
|
+
model.remove_instance_variable(:@_skip_enum_validation)
|
|
2195
|
+
end
|
|
2196
|
+
end
|
|
2197
|
+
|
|
2198
|
+
# Returns the object in the form of hash
|
|
2199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
2200
|
+
def to_hash
|
|
2201
|
+
hash = {}
|
|
2202
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
2203
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
2204
|
+
value = self.send(attr)
|
|
2205
|
+
if value.nil?
|
|
2206
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
2207
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
2208
|
+
end
|
|
2209
|
+
|
|
2210
|
+
hash[param] = _to_hash(value)
|
|
2211
|
+
end
|
|
2212
|
+
hash
|
|
2213
|
+
end
|
|
2214
|
+
|
|
2215
|
+
end
|
|
2216
|
+
|
|
2217
|
+
end
|