docspring 1.2.1 → 1.3.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.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/VERSION +1 -1
  3. data/CHANGELOG.md +4 -0
  4. data/Gemfile.lock +1 -1
  5. data/README.md +4 -4
  6. data/docs/CombinePdfsData.md +4 -4
  7. data/docs/CombinedSubmissionData.md +3 -3
  8. data/docs/CreateSubmissionDataRequestData.md +2 -2
  9. data/docs/HtmlTemplateData.md +2 -2
  10. data/docs/SubmissionBatchData.md +2 -2
  11. data/docs/SubmissionData.md +4 -4
  12. data/docs/SubmissionDataBatchRequest.md +2 -2
  13. data/docs/TemplateData.md +2 -2
  14. data/docs/TemplatestemplateIdaddFieldsFields.md +9 -9
  15. data/docs/UpdateSubmissionDataRequestData.md +9 -9
  16. data/docs/UploadTemplateData.md +2 -2
  17. data/docspring.gemspec +1 -1
  18. data/lib/docspring.rb +1 -1
  19. data/lib/docspring/api/pdf_api.rb +1 -1
  20. data/lib/docspring/api_client.rb +1 -1
  21. data/lib/docspring/api_error.rb +1 -1
  22. data/lib/docspring/configuration.rb +1 -1
  23. data/lib/docspring/models/add_fields_data.rb +1 -1
  24. data/lib/docspring/models/add_fields_template_response.rb +1 -1
  25. data/lib/docspring/models/authentication_error.rb +1 -1
  26. data/lib/docspring/models/authentication_success_response.rb +1 -1
  27. data/lib/docspring/models/combine_pdfs_data.rb +28 -28
  28. data/lib/docspring/models/combined_submission.rb +1 -1
  29. data/lib/docspring/models/combined_submission_action.rb +1 -6
  30. data/lib/docspring/models/combined_submission_data.rb +23 -23
  31. data/lib/docspring/models/create_combined_submission_response.rb +1 -1
  32. data/lib/docspring/models/create_custom_file_data.rb +1 -1
  33. data/lib/docspring/models/create_custom_file_response.rb +1 -1
  34. data/lib/docspring/models/create_folder_data.rb +1 -1
  35. data/lib/docspring/models/create_html_template_data.rb +1 -1
  36. data/lib/docspring/models/create_submission_batch_response.rb +1 -1
  37. data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
  38. data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
  39. data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
  40. data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
  41. data/lib/docspring/models/create_submission_response.rb +1 -1
  42. data/lib/docspring/models/create_template_from_upload_data.rb +1 -1
  43. data/lib/docspring/models/custom_file.rb +1 -1
  44. data/lib/docspring/models/error.rb +1 -1
  45. data/lib/docspring/models/folder.rb +1 -1
  46. data/lib/docspring/models/folders_folder.rb +1 -1
  47. data/lib/docspring/models/html_template_data.rb +20 -20
  48. data/lib/docspring/models/invalid_request.rb +1 -1
  49. data/lib/docspring/models/move_folder_data.rb +1 -1
  50. data/lib/docspring/models/move_template_data.rb +1 -1
  51. data/lib/docspring/models/pending_template.rb +1 -1
  52. data/lib/docspring/models/rename_folder_data.rb +1 -1
  53. data/lib/docspring/models/submission.rb +1 -1
  54. data/lib/docspring/models/submission_action.rb +1 -6
  55. data/lib/docspring/models/submission_batch.rb +1 -1
  56. data/lib/docspring/models/submission_batch_data.rb +16 -16
  57. data/lib/docspring/models/submission_data.rb +34 -34
  58. data/lib/docspring/models/submission_data_batch_request.rb +20 -20
  59. data/lib/docspring/models/submission_data_request.rb +1 -16
  60. data/lib/docspring/models/template.rb +1 -1
  61. data/lib/docspring/models/template_data.rb +20 -20
  62. data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +107 -107
  63. data/lib/docspring/models/update_data_request_response.rb +1 -1
  64. data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
  65. data/lib/docspring/models/update_template_data.rb +1 -1
  66. data/lib/docspring/models/update_template_response.rb +1 -1
  67. data/lib/docspring/models/upload_template_data.rb +20 -20
  68. data/lib/docspring/models/upload_template_data_document.rb +1 -1
  69. data/lib/docspring/models/upload_template_data_document_metadata.rb +1 -1
  70. data/lib/docspring/version.rb +2 -2
  71. data/spec/api/pdf_api_spec_original.skipped.rb +1 -1
  72. data/spec/api_client_spec.rb +1 -1
  73. data/spec/configuration_spec.rb +1 -1
  74. data/spec/models/add_fields_data_spec.rb +1 -1
  75. data/spec/models/add_fields_template_response_spec.rb +1 -1
  76. data/spec/models/authentication_error_spec.rb +1 -1
  77. data/spec/models/authentication_success_response_spec.rb +1 -1
  78. data/spec/models/combine_pdfs_data_spec.rb +5 -5
  79. data/spec/models/combined_submission_action_spec.rb +1 -1
  80. data/spec/models/combined_submission_data_spec.rb +5 -5
  81. data/spec/models/combined_submission_spec.rb +1 -1
  82. data/spec/models/create_combined_submission_response_spec.rb +1 -1
  83. data/spec/models/create_custom_file_data_spec.rb +1 -1
  84. data/spec/models/create_custom_file_response_spec.rb +1 -1
  85. data/spec/models/create_folder_data_spec.rb +1 -1
  86. data/spec/models/create_html_template_data_spec.rb +1 -1
  87. data/spec/models/create_submission_batch_response_spec.rb +1 -1
  88. data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
  89. data/spec/models/create_submission_data_request_data_spec.rb +9 -9
  90. data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
  91. data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
  92. data/spec/models/create_submission_response_spec.rb +1 -1
  93. data/spec/models/create_template_from_upload_data_spec.rb +1 -1
  94. data/spec/models/custom_file_spec.rb +1 -1
  95. data/spec/models/error_spec.rb +1 -1
  96. data/spec/models/folder_spec.rb +1 -1
  97. data/spec/models/folders_folder_spec.rb +1 -1
  98. data/spec/models/html_template_data_spec.rb +5 -5
  99. data/spec/models/invalid_request_spec.rb +1 -1
  100. data/spec/models/move_folder_data_spec.rb +1 -1
  101. data/spec/models/move_template_data_spec.rb +1 -1
  102. data/spec/models/pending_template_spec.rb +1 -1
  103. data/spec/models/rename_folder_data_spec.rb +1 -1
  104. data/spec/models/submission_action_spec.rb +1 -1
  105. data/spec/models/submission_batch_data_spec.rb +3 -3
  106. data/spec/models/submission_batch_spec.rb +1 -1
  107. data/spec/models/submission_data_batch_request_spec.rb +5 -5
  108. data/spec/models/submission_data_request_spec.rb +1 -1
  109. data/spec/models/submission_data_spec.rb +7 -7
  110. data/spec/models/submission_spec.rb +1 -1
  111. data/spec/models/template_data_spec.rb +5 -5
  112. data/spec/models/template_spec.rb +1 -1
  113. data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +27 -27
  114. data/spec/models/update_data_request_response_spec.rb +1 -1
  115. data/spec/models/update_submission_data_request_data_spec.rb +17 -17
  116. data/spec/models/update_template_data_spec.rb +1 -1
  117. data/spec/models/update_template_response_spec.rb +1 -1
  118. data/spec/models/upload_template_data_document_metadata_spec.rb +1 -1
  119. data/spec/models/upload_template_data_document_spec.rb +1 -1
  120. data/spec/models/upload_template_data_spec.rb +6 -6
  121. data/spec/spec_helper.rb +1 -1
  122. metadata +2 -2
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 3.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 3.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -20,10 +20,10 @@ module DocSpring
20
20
 
21
21
  attr_accessor :scss
22
22
 
23
- attr_accessor :expire_after
24
-
25
23
  attr_accessor :allow_additional_properties
26
24
 
25
+ attr_accessor :expire_after
26
+
27
27
  attr_accessor :description
28
28
 
29
29
  attr_accessor :public_submissions
@@ -40,10 +40,10 @@ module DocSpring
40
40
 
41
41
  attr_accessor :name
42
42
 
43
- attr_accessor :html
44
-
45
43
  attr_accessor :footer_html
46
44
 
45
+ attr_accessor :html
46
+
47
47
  attr_accessor :redirect_url
48
48
 
49
49
  class EnumAttributeValidator
@@ -74,8 +74,8 @@ module DocSpring
74
74
  :'expiration_interval' => :'expiration_interval',
75
75
  :'webhook_url' => :'webhook_url',
76
76
  :'scss' => :'scss',
77
- :'expire_after' => :'expire_after',
78
77
  :'allow_additional_properties' => :'allow_additional_properties',
78
+ :'expire_after' => :'expire_after',
79
79
  :'description' => :'description',
80
80
  :'public_submissions' => :'public_submissions',
81
81
  :'slack_webhook_url' => :'slack_webhook_url',
@@ -84,8 +84,8 @@ module DocSpring
84
84
  :'editable_submissions' => :'editable_submissions',
85
85
  :'expire_submissions' => :'expire_submissions',
86
86
  :'name' => :'name',
87
- :'html' => :'html',
88
87
  :'footer_html' => :'footer_html',
88
+ :'html' => :'html',
89
89
  :'redirect_url' => :'redirect_url'
90
90
  }
91
91
  end
@@ -96,8 +96,8 @@ module DocSpring
96
96
  :'expiration_interval' => :'String',
97
97
  :'webhook_url' => :'String',
98
98
  :'scss' => :'String',
99
- :'expire_after' => :'Float',
100
99
  :'allow_additional_properties' => :'BOOLEAN',
100
+ :'expire_after' => :'Float',
101
101
  :'description' => :'String',
102
102
  :'public_submissions' => :'BOOLEAN',
103
103
  :'slack_webhook_url' => :'String',
@@ -106,8 +106,8 @@ module DocSpring
106
106
  :'editable_submissions' => :'BOOLEAN',
107
107
  :'expire_submissions' => :'BOOLEAN',
108
108
  :'name' => :'String',
109
- :'html' => :'String',
110
109
  :'footer_html' => :'String',
110
+ :'html' => :'String',
111
111
  :'redirect_url' => :'String'
112
112
  }
113
113
  end
@@ -132,14 +132,14 @@ module DocSpring
132
132
  self.scss = attributes[:'scss']
133
133
  end
134
134
 
135
- if attributes.has_key?(:'expire_after')
136
- self.expire_after = attributes[:'expire_after']
137
- end
138
-
139
135
  if attributes.has_key?(:'allow_additional_properties')
140
136
  self.allow_additional_properties = attributes[:'allow_additional_properties']
141
137
  end
142
138
 
139
+ if attributes.has_key?(:'expire_after')
140
+ self.expire_after = attributes[:'expire_after']
141
+ end
142
+
143
143
  if attributes.has_key?(:'description')
144
144
  self.description = attributes[:'description']
145
145
  end
@@ -172,14 +172,14 @@ module DocSpring
172
172
  self.name = attributes[:'name']
173
173
  end
174
174
 
175
- if attributes.has_key?(:'html')
176
- self.html = attributes[:'html']
177
- end
178
-
179
175
  if attributes.has_key?(:'footer_html')
180
176
  self.footer_html = attributes[:'footer_html']
181
177
  end
182
178
 
179
+ if attributes.has_key?(:'html')
180
+ self.html = attributes[:'html']
181
+ end
182
+
183
183
  if attributes.has_key?(:'redirect_url')
184
184
  self.redirect_url = attributes[:'redirect_url']
185
185
  end
@@ -218,8 +218,8 @@ module DocSpring
218
218
  expiration_interval == o.expiration_interval &&
219
219
  webhook_url == o.webhook_url &&
220
220
  scss == o.scss &&
221
- expire_after == o.expire_after &&
222
221
  allow_additional_properties == o.allow_additional_properties &&
222
+ expire_after == o.expire_after &&
223
223
  description == o.description &&
224
224
  public_submissions == o.public_submissions &&
225
225
  slack_webhook_url == o.slack_webhook_url &&
@@ -228,8 +228,8 @@ module DocSpring
228
228
  editable_submissions == o.editable_submissions &&
229
229
  expire_submissions == o.expire_submissions &&
230
230
  name == o.name &&
231
- html == o.html &&
232
231
  footer_html == o.footer_html &&
232
+ html == o.html &&
233
233
  redirect_url == o.redirect_url
234
234
  end
235
235
 
@@ -242,7 +242,7 @@ module DocSpring
242
242
  # Calculates hash code according to all attributes.
243
243
  # @return [Fixnum] Hash code
244
244
  def hash
245
- [expiration_interval, webhook_url, scss, expire_after, allow_additional_properties, description, public_submissions, slack_webhook_url, header_html, public_web_form, editable_submissions, expire_submissions, name, html, footer_html, redirect_url].hash
245
+ [expiration_interval, webhook_url, scss, allow_additional_properties, expire_after, description, public_submissions, slack_webhook_url, header_html, public_web_form, editable_submissions, expire_submissions, name, footer_html, html, redirect_url].hash
246
246
  end
247
247
 
248
248
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 3.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class TemplatestemplateIdaddFieldsFields
17
- attr_accessor :uppercase
18
-
19
17
  attr_accessor :background_color_field_name
20
18
 
19
+ attr_accessor :uppercase
20
+
21
21
  attr_accessor :metadata
22
22
 
23
23
  attr_accessor :barcode_symbology
@@ -54,10 +54,10 @@ module DocSpring
54
54
 
55
55
  attr_accessor :invert_boolean_condition
56
56
 
57
- attr_accessor :static
58
-
59
57
  attr_accessor :shape_fill_color_field_name
60
58
 
59
+ attr_accessor :static
60
+
61
61
  attr_accessor :shape_border_color_field_name
62
62
 
63
63
  attr_accessor :v_alignment
@@ -70,16 +70,16 @@ module DocSpring
70
70
 
71
71
  attr_accessor :shape_border_color
72
72
 
73
- attr_accessor :typeface
74
-
75
73
  attr_accessor :comb
76
74
 
77
- attr_accessor :shape_type
75
+ attr_accessor :typeface
78
76
 
79
- attr_accessor :display_type
77
+ attr_accessor :shape_type
80
78
 
81
79
  attr_accessor :condition
82
80
 
81
+ attr_accessor :display_type
82
+
83
83
  attr_accessor :check_color
84
84
 
85
85
  attr_accessor :multiline_lines
@@ -106,10 +106,10 @@ module DocSpring
106
106
 
107
107
  attr_accessor :number_condition_range_min
108
108
 
109
- attr_accessor :hidden
110
-
111
109
  attr_accessor :color
112
110
 
111
+ attr_accessor :hidden
112
+
113
113
  attr_accessor :check_color_field_required
114
114
 
115
115
  attr_accessor :combined_field_format
@@ -138,10 +138,10 @@ module DocSpring
138
138
 
139
139
  attr_accessor :currency
140
140
 
141
- attr_accessor :strikethrough
142
-
143
141
  attr_accessor :false_text
144
142
 
143
+ attr_accessor :strikethrough
144
+
145
145
  attr_accessor :character_spacing
146
146
 
147
147
  attr_accessor :number_condition_range_max
@@ -162,24 +162,24 @@ module DocSpring
162
162
 
163
163
  attr_accessor :shape_fill_color_field_required
164
164
 
165
- attr_accessor :include_time
166
-
167
165
  attr_accessor :decimal_places
168
166
 
169
- attr_accessor :x
167
+ attr_accessor :include_time
170
168
 
171
169
  attr_accessor :width
172
170
 
171
+ attr_accessor :x
172
+
173
173
  attr_accessor :maximum
174
174
 
175
175
  attr_accessor :y
176
176
 
177
177
  attr_accessor :signature_allow_draw
178
178
 
179
- attr_accessor :opacity
180
-
181
179
  attr_accessor :number_condition_type
182
180
 
181
+ attr_accessor :opacity
182
+
183
183
  attr_accessor :minimum
184
184
 
185
185
  attr_accessor :signature_allow_type
@@ -209,8 +209,8 @@ module DocSpring
209
209
  # Attribute mapping from ruby-style variable name to JSON key.
210
210
  def self.attribute_map
211
211
  {
212
- :'uppercase' => :'uppercase',
213
212
  :'background_color_field_name' => :'backgroundColorFieldName',
213
+ :'uppercase' => :'uppercase',
214
214
  :'metadata' => :'metadata',
215
215
  :'barcode_symbology' => :'barcodeSymbology',
216
216
  :'min_length' => :'minLength',
@@ -229,19 +229,19 @@ module DocSpring
229
229
  :'height' => :'height',
230
230
  :'number_condition_range_exclusive_max' => :'numberConditionRangeExclusiveMax',
231
231
  :'invert_boolean_condition' => :'invertBooleanCondition',
232
- :'static' => :'static',
233
232
  :'shape_fill_color_field_name' => :'shapeFillColorFieldName',
233
+ :'static' => :'static',
234
234
  :'shape_border_color_field_name' => :'shapeBorderColorFieldName',
235
235
  :'v_alignment' => :'vAlignment',
236
236
  :'bold' => :'bold',
237
237
  :'shape_border_width' => :'shapeBorderWidth',
238
238
  :'comb_number_of_cells' => :'combNumberOfCells',
239
239
  :'shape_border_color' => :'shapeBorderColor',
240
- :'typeface' => :'typeface',
241
240
  :'comb' => :'comb',
241
+ :'typeface' => :'typeface',
242
242
  :'shape_type' => :'shapeType',
243
- :'display_type' => :'displayType',
244
243
  :'condition' => :'condition',
244
+ :'display_type' => :'displayType',
245
245
  :'check_color' => :'checkColor',
246
246
  :'multiline_lines' => :'multilineLines',
247
247
  :'multiline' => :'multiline',
@@ -255,8 +255,8 @@ module DocSpring
255
255
  :'color_field_name' => :'colorFieldName',
256
256
  :'qrcode_color_field_name' => :'qrcodeColorFieldName',
257
257
  :'number_condition_range_min' => :'numberConditionRangeMin',
258
- :'hidden' => :'hidden',
259
258
  :'color' => :'color',
259
+ :'hidden' => :'hidden',
260
260
  :'check_color_field_required' => :'checkColorFieldRequired',
261
261
  :'combined_field_format' => :'combinedFieldFormat',
262
262
  :'description' => :'description',
@@ -271,8 +271,8 @@ module DocSpring
271
271
  :'date_time_format' => :'dateTimeFormat',
272
272
  :'qrcode_color_field_required' => :'qrcodeColorFieldRequired',
273
273
  :'currency' => :'currency',
274
- :'strikethrough' => :'strikethrough',
275
274
  :'false_text' => :'falseText',
275
+ :'strikethrough' => :'strikethrough',
276
276
  :'character_spacing' => :'characterSpacing',
277
277
  :'number_condition_range_max' => :'numberConditionRangeMax',
278
278
  :'background_color' => :'backgroundColor',
@@ -283,15 +283,15 @@ module DocSpring
283
283
  :'shape_fill_color' => :'shapeFillColor',
284
284
  :'string_condition_type' => :'stringConditionType',
285
285
  :'shape_fill_color_field_required' => :'shapeFillColorFieldRequired',
286
- :'include_time' => :'includeTime',
287
286
  :'decimal_places' => :'decimalPlaces',
288
- :'x' => :'x',
287
+ :'include_time' => :'includeTime',
289
288
  :'width' => :'width',
289
+ :'x' => :'x',
290
290
  :'maximum' => :'maximum',
291
291
  :'y' => :'y',
292
292
  :'signature_allow_draw' => :'signatureAllowDraw',
293
- :'opacity' => :'opacity',
294
293
  :'number_condition_type' => :'numberConditionType',
294
+ :'opacity' => :'opacity',
295
295
  :'minimum' => :'minimum',
296
296
  :'signature_allow_type' => :'signatureAllowType'
297
297
  }
@@ -300,8 +300,8 @@ module DocSpring
300
300
  # Attribute type mapping.
301
301
  def self.openapi_types
302
302
  {
303
- :'uppercase' => :'BOOLEAN',
304
303
  :'background_color_field_name' => :'String',
304
+ :'uppercase' => :'BOOLEAN',
305
305
  :'metadata' => :'String',
306
306
  :'barcode_symbology' => :'String',
307
307
  :'min_length' => :'Float',
@@ -320,19 +320,19 @@ module DocSpring
320
320
  :'height' => :'Float',
321
321
  :'number_condition_range_exclusive_max' => :'BOOLEAN',
322
322
  :'invert_boolean_condition' => :'BOOLEAN',
323
- :'static' => :'BOOLEAN',
324
323
  :'shape_fill_color_field_name' => :'String',
324
+ :'static' => :'BOOLEAN',
325
325
  :'shape_border_color_field_name' => :'String',
326
326
  :'v_alignment' => :'String',
327
327
  :'bold' => :'BOOLEAN',
328
328
  :'shape_border_width' => :'Float',
329
329
  :'comb_number_of_cells' => :'Float',
330
330
  :'shape_border_color' => :'String',
331
- :'typeface' => :'String',
332
331
  :'comb' => :'BOOLEAN',
332
+ :'typeface' => :'String',
333
333
  :'shape_type' => :'String',
334
- :'display_type' => :'String',
335
334
  :'condition' => :'String',
335
+ :'display_type' => :'String',
336
336
  :'check_color' => :'String',
337
337
  :'multiline_lines' => :'Float',
338
338
  :'multiline' => :'BOOLEAN',
@@ -346,8 +346,8 @@ module DocSpring
346
346
  :'color_field_name' => :'String',
347
347
  :'qrcode_color_field_name' => :'String',
348
348
  :'number_condition_range_min' => :'Float',
349
- :'hidden' => :'BOOLEAN',
350
349
  :'color' => :'String',
350
+ :'hidden' => :'BOOLEAN',
351
351
  :'check_color_field_required' => :'BOOLEAN',
352
352
  :'combined_field_format' => :'String',
353
353
  :'description' => :'String',
@@ -362,8 +362,8 @@ module DocSpring
362
362
  :'date_time_format' => :'String',
363
363
  :'qrcode_color_field_required' => :'BOOLEAN',
364
364
  :'currency' => :'BOOLEAN',
365
- :'strikethrough' => :'BOOLEAN',
366
365
  :'false_text' => :'String',
366
+ :'strikethrough' => :'BOOLEAN',
367
367
  :'character_spacing' => :'Float',
368
368
  :'number_condition_range_max' => :'Float',
369
369
  :'background_color' => :'String',
@@ -374,15 +374,15 @@ module DocSpring
374
374
  :'shape_fill_color' => :'String',
375
375
  :'string_condition_type' => :'String',
376
376
  :'shape_fill_color_field_required' => :'BOOLEAN',
377
- :'include_time' => :'BOOLEAN',
378
377
  :'decimal_places' => :'Float',
379
- :'x' => :'Float',
378
+ :'include_time' => :'BOOLEAN',
380
379
  :'width' => :'Float',
380
+ :'x' => :'Float',
381
381
  :'maximum' => :'Float',
382
382
  :'y' => :'Float',
383
383
  :'signature_allow_draw' => :'BOOLEAN',
384
- :'opacity' => :'Float',
385
384
  :'number_condition_type' => :'String',
385
+ :'opacity' => :'Float',
386
386
  :'minimum' => :'Float',
387
387
  :'signature_allow_type' => :'BOOLEAN'
388
388
  }
@@ -396,14 +396,14 @@ module DocSpring
396
396
  # convert string to symbol for hash key
397
397
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
398
398
 
399
- if attributes.has_key?(:'uppercase')
400
- self.uppercase = attributes[:'uppercase']
401
- end
402
-
403
399
  if attributes.has_key?(:'backgroundColorFieldName')
404
400
  self.background_color_field_name = attributes[:'backgroundColorFieldName']
405
401
  end
406
402
 
403
+ if attributes.has_key?(:'uppercase')
404
+ self.uppercase = attributes[:'uppercase']
405
+ end
406
+
407
407
  if attributes.has_key?(:'metadata')
408
408
  self.metadata = attributes[:'metadata']
409
409
  end
@@ -476,14 +476,14 @@ module DocSpring
476
476
  self.invert_boolean_condition = attributes[:'invertBooleanCondition']
477
477
  end
478
478
 
479
- if attributes.has_key?(:'static')
480
- self.static = attributes[:'static']
481
- end
482
-
483
479
  if attributes.has_key?(:'shapeFillColorFieldName')
484
480
  self.shape_fill_color_field_name = attributes[:'shapeFillColorFieldName']
485
481
  end
486
482
 
483
+ if attributes.has_key?(:'static')
484
+ self.static = attributes[:'static']
485
+ end
486
+
487
487
  if attributes.has_key?(:'shapeBorderColorFieldName')
488
488
  self.shape_border_color_field_name = attributes[:'shapeBorderColorFieldName']
489
489
  end
@@ -508,26 +508,26 @@ module DocSpring
508
508
  self.shape_border_color = attributes[:'shapeBorderColor']
509
509
  end
510
510
 
511
- if attributes.has_key?(:'typeface')
512
- self.typeface = attributes[:'typeface']
513
- end
514
-
515
511
  if attributes.has_key?(:'comb')
516
512
  self.comb = attributes[:'comb']
517
513
  end
518
514
 
519
- if attributes.has_key?(:'shapeType')
520
- self.shape_type = attributes[:'shapeType']
515
+ if attributes.has_key?(:'typeface')
516
+ self.typeface = attributes[:'typeface']
521
517
  end
522
518
 
523
- if attributes.has_key?(:'displayType')
524
- self.display_type = attributes[:'displayType']
519
+ if attributes.has_key?(:'shapeType')
520
+ self.shape_type = attributes[:'shapeType']
525
521
  end
526
522
 
527
523
  if attributes.has_key?(:'condition')
528
524
  self.condition = attributes[:'condition']
529
525
  end
530
526
 
527
+ if attributes.has_key?(:'displayType')
528
+ self.display_type = attributes[:'displayType']
529
+ end
530
+
531
531
  if attributes.has_key?(:'checkColor')
532
532
  self.check_color = attributes[:'checkColor']
533
533
  end
@@ -580,14 +580,14 @@ module DocSpring
580
580
  self.number_condition_range_min = attributes[:'numberConditionRangeMin']
581
581
  end
582
582
 
583
- if attributes.has_key?(:'hidden')
584
- self.hidden = attributes[:'hidden']
585
- end
586
-
587
583
  if attributes.has_key?(:'color')
588
584
  self.color = attributes[:'color']
589
585
  end
590
586
 
587
+ if attributes.has_key?(:'hidden')
588
+ self.hidden = attributes[:'hidden']
589
+ end
590
+
591
591
  if attributes.has_key?(:'checkColorFieldRequired')
592
592
  self.check_color_field_required = attributes[:'checkColorFieldRequired']
593
593
  end
@@ -644,14 +644,14 @@ module DocSpring
644
644
  self.currency = attributes[:'currency']
645
645
  end
646
646
 
647
- if attributes.has_key?(:'strikethrough')
648
- self.strikethrough = attributes[:'strikethrough']
649
- end
650
-
651
647
  if attributes.has_key?(:'falseText')
652
648
  self.false_text = attributes[:'falseText']
653
649
  end
654
650
 
651
+ if attributes.has_key?(:'strikethrough')
652
+ self.strikethrough = attributes[:'strikethrough']
653
+ end
654
+
655
655
  if attributes.has_key?(:'characterSpacing')
656
656
  self.character_spacing = attributes[:'characterSpacing']
657
657
  end
@@ -692,22 +692,22 @@ module DocSpring
692
692
  self.shape_fill_color_field_required = attributes[:'shapeFillColorFieldRequired']
693
693
  end
694
694
 
695
- if attributes.has_key?(:'includeTime')
696
- self.include_time = attributes[:'includeTime']
697
- end
698
-
699
695
  if attributes.has_key?(:'decimalPlaces')
700
696
  self.decimal_places = attributes[:'decimalPlaces']
701
697
  end
702
698
 
703
- if attributes.has_key?(:'x')
704
- self.x = attributes[:'x']
699
+ if attributes.has_key?(:'includeTime')
700
+ self.include_time = attributes[:'includeTime']
705
701
  end
706
702
 
707
703
  if attributes.has_key?(:'width')
708
704
  self.width = attributes[:'width']
709
705
  end
710
706
 
707
+ if attributes.has_key?(:'x')
708
+ self.x = attributes[:'x']
709
+ end
710
+
711
711
  if attributes.has_key?(:'maximum')
712
712
  self.maximum = attributes[:'maximum']
713
713
  end
@@ -720,14 +720,14 @@ module DocSpring
720
720
  self.signature_allow_draw = attributes[:'signatureAllowDraw']
721
721
  end
722
722
 
723
- if attributes.has_key?(:'opacity')
724
- self.opacity = attributes[:'opacity']
725
- end
726
-
727
723
  if attributes.has_key?(:'numberConditionType')
728
724
  self.number_condition_type = attributes[:'numberConditionType']
729
725
  end
730
726
 
727
+ if attributes.has_key?(:'opacity')
728
+ self.opacity = attributes[:'opacity']
729
+ end
730
+
731
731
  if attributes.has_key?(:'minimum')
732
732
  self.minimum = attributes[:'minimum']
733
733
  end
@@ -781,14 +781,14 @@ module DocSpring
781
781
  invalid_properties.push('invalid value for "decimal_places", must be greater than or equal to 0.')
782
782
  end
783
783
 
784
- if !@x.nil? && @x < 0
785
- invalid_properties.push('invalid value for "x", must be greater than or equal to 0.')
786
- end
787
-
788
784
  if !@width.nil? && @width < 0
789
785
  invalid_properties.push('invalid value for "width", must be greater than or equal to 0.')
790
786
  end
791
787
 
788
+ if !@x.nil? && @x < 0
789
+ invalid_properties.push('invalid value for "x", must be greater than or equal to 0.')
790
+ end
791
+
792
792
  if !@y.nil? && @y < 0
793
793
  invalid_properties.push('invalid value for "y", must be greater than or equal to 0.')
794
794
  end
@@ -837,13 +837,13 @@ module DocSpring
837
837
  string_condition_type_validator = EnumAttributeValidator.new('String', ['equals', 'contains', 'starts_with', 'ends_with', 'regex'])
838
838
  return false unless string_condition_type_validator.valid?(@string_condition_type)
839
839
  return false if !@decimal_places.nil? && @decimal_places < 0
840
- return false if !@x.nil? && @x < 0
841
840
  return false if !@width.nil? && @width < 0
841
+ return false if !@x.nil? && @x < 0
842
842
  return false if !@y.nil? && @y < 0
843
- return false if !@opacity.nil? && @opacity > 1
844
- return false if !@opacity.nil? && @opacity < 0
845
843
  number_condition_type_validator = EnumAttributeValidator.new('String', ['equals', 'range', 'gte', 'gt', 'lte', 'lt'])
846
844
  return false unless number_condition_type_validator.valid?(@number_condition_type)
845
+ return false if !@opacity.nil? && @opacity > 1
846
+ return false if !@opacity.nil? && @opacity < 0
847
847
  true
848
848
  end
849
849
 
@@ -1041,16 +1041,6 @@ module DocSpring
1041
1041
  @decimal_places = decimal_places
1042
1042
  end
1043
1043
 
1044
- # Custom attribute writer method with validation
1045
- # @param [Object] x Value to be assigned
1046
- def x=(x)
1047
- if !x.nil? && x < 0
1048
- fail ArgumentError, 'invalid value for "x", must be greater than or equal to 0.'
1049
- end
1050
-
1051
- @x = x
1052
- end
1053
-
1054
1044
  # Custom attribute writer method with validation
1055
1045
  # @param [Object] width Value to be assigned
1056
1046
  def width=(width)
@@ -1061,6 +1051,16 @@ module DocSpring
1061
1051
  @width = width
1062
1052
  end
1063
1053
 
1054
+ # Custom attribute writer method with validation
1055
+ # @param [Object] x Value to be assigned
1056
+ def x=(x)
1057
+ if !x.nil? && x < 0
1058
+ fail ArgumentError, 'invalid value for "x", must be greater than or equal to 0.'
1059
+ end
1060
+
1061
+ @x = x
1062
+ end
1063
+
1064
1064
  # Custom attribute writer method with validation
1065
1065
  # @param [Object] y Value to be assigned
1066
1066
  def y=(y)
@@ -1071,6 +1071,16 @@ module DocSpring
1071
1071
  @y = y
1072
1072
  end
1073
1073
 
1074
+ # Custom attribute writer method checking allowed values (enum).
1075
+ # @param [Object] number_condition_type Object to be assigned
1076
+ def number_condition_type=(number_condition_type)
1077
+ validator = EnumAttributeValidator.new('String', ['equals', 'range', 'gte', 'gt', 'lte', 'lt'])
1078
+ unless validator.valid?(number_condition_type)
1079
+ fail ArgumentError, 'invalid value for "number_condition_type", must be one of #{validator.allowable_values}.'
1080
+ end
1081
+ @number_condition_type = number_condition_type
1082
+ end
1083
+
1074
1084
  # Custom attribute writer method with validation
1075
1085
  # @param [Object] opacity Value to be assigned
1076
1086
  def opacity=(opacity)
@@ -1085,23 +1095,13 @@ module DocSpring
1085
1095
  @opacity = opacity
1086
1096
  end
1087
1097
 
1088
- # Custom attribute writer method checking allowed values (enum).
1089
- # @param [Object] number_condition_type Object to be assigned
1090
- def number_condition_type=(number_condition_type)
1091
- validator = EnumAttributeValidator.new('String', ['equals', 'range', 'gte', 'gt', 'lte', 'lt'])
1092
- unless validator.valid?(number_condition_type)
1093
- fail ArgumentError, 'invalid value for "number_condition_type", must be one of #{validator.allowable_values}.'
1094
- end
1095
- @number_condition_type = number_condition_type
1096
- end
1097
-
1098
1098
  # Checks equality by comparing each attribute.
1099
1099
  # @param [Object] Object to be compared
1100
1100
  def ==(o)
1101
1101
  return true if self.equal?(o)
1102
1102
  self.class == o.class &&
1103
- uppercase == o.uppercase &&
1104
1103
  background_color_field_name == o.background_color_field_name &&
1104
+ uppercase == o.uppercase &&
1105
1105
  metadata == o.metadata &&
1106
1106
  barcode_symbology == o.barcode_symbology &&
1107
1107
  min_length == o.min_length &&
@@ -1120,19 +1120,19 @@ module DocSpring
1120
1120
  height == o.height &&
1121
1121
  number_condition_range_exclusive_max == o.number_condition_range_exclusive_max &&
1122
1122
  invert_boolean_condition == o.invert_boolean_condition &&
1123
- static == o.static &&
1124
1123
  shape_fill_color_field_name == o.shape_fill_color_field_name &&
1124
+ static == o.static &&
1125
1125
  shape_border_color_field_name == o.shape_border_color_field_name &&
1126
1126
  v_alignment == o.v_alignment &&
1127
1127
  bold == o.bold &&
1128
1128
  shape_border_width == o.shape_border_width &&
1129
1129
  comb_number_of_cells == o.comb_number_of_cells &&
1130
1130
  shape_border_color == o.shape_border_color &&
1131
- typeface == o.typeface &&
1132
1131
  comb == o.comb &&
1132
+ typeface == o.typeface &&
1133
1133
  shape_type == o.shape_type &&
1134
- display_type == o.display_type &&
1135
1134
  condition == o.condition &&
1135
+ display_type == o.display_type &&
1136
1136
  check_color == o.check_color &&
1137
1137
  multiline_lines == o.multiline_lines &&
1138
1138
  multiline == o.multiline &&
@@ -1146,8 +1146,8 @@ module DocSpring
1146
1146
  color_field_name == o.color_field_name &&
1147
1147
  qrcode_color_field_name == o.qrcode_color_field_name &&
1148
1148
  number_condition_range_min == o.number_condition_range_min &&
1149
- hidden == o.hidden &&
1150
1149
  color == o.color &&
1150
+ hidden == o.hidden &&
1151
1151
  check_color_field_required == o.check_color_field_required &&
1152
1152
  combined_field_format == o.combined_field_format &&
1153
1153
  description == o.description &&
@@ -1162,8 +1162,8 @@ module DocSpring
1162
1162
  date_time_format == o.date_time_format &&
1163
1163
  qrcode_color_field_required == o.qrcode_color_field_required &&
1164
1164
  currency == o.currency &&
1165
- strikethrough == o.strikethrough &&
1166
1165
  false_text == o.false_text &&
1166
+ strikethrough == o.strikethrough &&
1167
1167
  character_spacing == o.character_spacing &&
1168
1168
  number_condition_range_max == o.number_condition_range_max &&
1169
1169
  background_color == o.background_color &&
@@ -1174,15 +1174,15 @@ module DocSpring
1174
1174
  shape_fill_color == o.shape_fill_color &&
1175
1175
  string_condition_type == o.string_condition_type &&
1176
1176
  shape_fill_color_field_required == o.shape_fill_color_field_required &&
1177
- include_time == o.include_time &&
1178
1177
  decimal_places == o.decimal_places &&
1179
- x == o.x &&
1178
+ include_time == o.include_time &&
1180
1179
  width == o.width &&
1180
+ x == o.x &&
1181
1181
  maximum == o.maximum &&
1182
1182
  y == o.y &&
1183
1183
  signature_allow_draw == o.signature_allow_draw &&
1184
- opacity == o.opacity &&
1185
1184
  number_condition_type == o.number_condition_type &&
1185
+ opacity == o.opacity &&
1186
1186
  minimum == o.minimum &&
1187
1187
  signature_allow_type == o.signature_allow_type
1188
1188
  end
@@ -1196,7 +1196,7 @@ module DocSpring
1196
1196
  # Calculates hash code according to all attributes.
1197
1197
  # @return [Fixnum] Hash code
1198
1198
  def hash
1199
- [uppercase, background_color_field_name, metadata, barcode_symbology, min_length, integer, type, required, comb_value_offset, image_gravity, overflow, qrcode_color, color_field_required, background_color_field_required, id, image_scale_type, exclusive_minimum, height, number_condition_range_exclusive_max, invert_boolean_condition, static, shape_fill_color_field_name, shape_border_color_field_name, v_alignment, bold, shape_border_width, comb_number_of_cells, shape_border_color, typeface, comb, shape_type, display_type, condition, check_color, multiline_lines, multiline, true_text, name, font_size, page, alignment, max_length, auto_calculate_max_length, color_field_name, qrcode_color_field_name, number_condition_range_min, hidden, color, check_color_field_required, combined_field_format, description, shape_border_color_field_required, combined_field_names, title, number_condition_range_exclusive_min, combined_field_separator, exclusive_maximum, default, combined_field_type, date_time_format, qrcode_color_field_required, currency, strikethrough, false_text, character_spacing, number_condition_range_max, background_color, check_color_field_name, check_character, rotation, option_list, shape_fill_color, string_condition_type, shape_fill_color_field_required, include_time, decimal_places, x, width, maximum, y, signature_allow_draw, opacity, number_condition_type, minimum, signature_allow_type].hash
1199
+ [background_color_field_name, uppercase, metadata, barcode_symbology, min_length, integer, type, required, comb_value_offset, image_gravity, overflow, qrcode_color, color_field_required, background_color_field_required, id, image_scale_type, exclusive_minimum, height, number_condition_range_exclusive_max, invert_boolean_condition, shape_fill_color_field_name, static, shape_border_color_field_name, v_alignment, bold, shape_border_width, comb_number_of_cells, shape_border_color, comb, typeface, shape_type, condition, display_type, check_color, multiline_lines, multiline, true_text, name, font_size, page, alignment, max_length, auto_calculate_max_length, color_field_name, qrcode_color_field_name, number_condition_range_min, color, hidden, check_color_field_required, combined_field_format, description, shape_border_color_field_required, combined_field_names, title, number_condition_range_exclusive_min, combined_field_separator, exclusive_maximum, default, combined_field_type, date_time_format, qrcode_color_field_required, currency, false_text, strikethrough, character_spacing, number_condition_range_max, background_color, check_color_field_name, check_character, rotation, option_list, shape_fill_color, string_condition_type, shape_fill_color_field_required, decimal_places, include_time, width, x, maximum, y, signature_allow_draw, number_condition_type, opacity, minimum, signature_allow_type].hash
1200
1200
  end
1201
1201
 
1202
1202
  # Builds the object from hash