groupdocs_signature_cloud 21.5 → 21.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/border_line.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/brush.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/color.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +309 -0
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/error.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/error_details.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/file_info.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/file_version.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/files_list.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +445 -0
- data/lib/groupdocs_signature_cloud/models/format.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/image_appearance.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/info_result.rb +34 -4
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +37 -4
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/options_base.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/padding.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/page_info.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +359 -0
- data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +395 -0
- data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +355 -0
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/save_options.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/search_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/search_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +34 -6
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +31 -3
- data/lib/groupdocs_signature_cloud/models/signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +455 -0
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/update_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/update_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +18 -0
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +20 -2
- data/lib/groupdocs_signature_cloud/version.rb +1 -1
- data/lib/groupdocs_signature_cloud.rb +12 -0
- metadata +14 -2
@@ -178,6 +178,24 @@ module GroupDocsSignatureCloud
|
|
178
178
|
ttype = type
|
179
179
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
180
180
|
ttype = value[:signatureType] + 'Signature'
|
181
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
182
|
+
type = value[:type]
|
183
|
+
if type == 'Checkbox'
|
184
|
+
ttype = 'CheckboxFormFieldSignature'
|
185
|
+
end
|
186
|
+
if type == 'Text'
|
187
|
+
ttype = 'TextFormFieldSignature'
|
188
|
+
end
|
189
|
+
if type == 'Combobox'
|
190
|
+
ttype = 'ComboboxFormFieldSignature'
|
191
|
+
end
|
192
|
+
if type == 'DigitalSignature'
|
193
|
+
ttype = 'DigitalFormFieldSignature'
|
194
|
+
end
|
195
|
+
if type == 'Radio'
|
196
|
+
ttype = 'RadioButtonFormFieldSignature'
|
197
|
+
end
|
198
|
+
end
|
181
199
|
end
|
182
200
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
183
201
|
temp_model.build_from_hash(value)
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Left X position of Signature on Document Page in Measure values (pixels or percent see MeasureType LocationMeasureType property)
|
47
50
|
attr_accessor :left
|
48
51
|
|
@@ -149,6 +152,7 @@ module GroupDocsSignatureCloud
|
|
149
152
|
:'page' => :'Page',
|
150
153
|
:'all_pages' => :'AllPages',
|
151
154
|
:'pages_setup' => :'PagesSetup',
|
155
|
+
:'appearance' => :'Appearance',
|
152
156
|
:'left' => :'Left',
|
153
157
|
:'top' => :'Top',
|
154
158
|
:'width' => :'Width',
|
@@ -185,6 +189,7 @@ module GroupDocsSignatureCloud
|
|
185
189
|
:'page' => :'Integer',
|
186
190
|
:'all_pages' => :'BOOLEAN',
|
187
191
|
:'pages_setup' => :'PagesSetup',
|
192
|
+
:'appearance' => :'SignatureAppearance',
|
188
193
|
:'left' => :'Integer',
|
189
194
|
:'top' => :'Integer',
|
190
195
|
:'width' => :'Integer',
|
@@ -238,6 +243,10 @@ module GroupDocsSignatureCloud
|
|
238
243
|
self.pages_setup = attributes[:'PagesSetup']
|
239
244
|
end
|
240
245
|
|
246
|
+
if attributes.key?(:'Appearance')
|
247
|
+
self.appearance = attributes[:'Appearance']
|
248
|
+
end
|
249
|
+
|
241
250
|
if attributes.key?(:'Left')
|
242
251
|
self.left = attributes[:'Left']
|
243
252
|
end
|
@@ -427,7 +436,7 @@ module GroupDocsSignatureCloud
|
|
427
436
|
# @return true if the model is valid
|
428
437
|
def valid?
|
429
438
|
return false if @signature_type.nil?
|
430
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
439
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
431
440
|
return false unless signature_type_validator.valid?(@signature_type)
|
432
441
|
return false if @all_pages.nil?
|
433
442
|
return false if @left.nil?
|
@@ -470,7 +479,7 @@ module GroupDocsSignatureCloud
|
|
470
479
|
# Custom attribute writer method checking allowed values (enum).
|
471
480
|
# @param [Object] signature_type Object to be assigned
|
472
481
|
def signature_type=(signature_type)
|
473
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
482
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
474
483
|
if signature_type.to_i == 0
|
475
484
|
unless validator.valid?(signature_type)
|
476
485
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -616,6 +625,7 @@ module GroupDocsSignatureCloud
|
|
616
625
|
page == other.page &&
|
617
626
|
all_pages == other.all_pages &&
|
618
627
|
pages_setup == other.pages_setup &&
|
628
|
+
appearance == other.appearance &&
|
619
629
|
left == other.left &&
|
620
630
|
top == other.top &&
|
621
631
|
width == other.width &&
|
@@ -653,7 +663,7 @@ module GroupDocsSignatureCloud
|
|
653
663
|
# Calculates hash code according to all attributes.
|
654
664
|
# @return [Fixnum] Hash code
|
655
665
|
def hash
|
656
|
-
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, barcode_type, transparency, code_text_alignment, inner_margins].hash
|
666
|
+
[signature_type, page, all_pages, pages_setup, appearance, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, barcode_type, transparency, code_text_alignment, inner_margins].hash
|
657
667
|
end
|
658
668
|
|
659
669
|
# Downcases first letter.
|
@@ -727,6 +737,24 @@ module GroupDocsSignatureCloud
|
|
727
737
|
ttype = type
|
728
738
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
729
739
|
ttype = value[:signatureType] + 'Signature'
|
740
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
741
|
+
type = value[:type]
|
742
|
+
if type == 'Checkbox'
|
743
|
+
ttype = 'CheckboxFormFieldSignature'
|
744
|
+
end
|
745
|
+
if type == 'Text'
|
746
|
+
ttype = 'TextFormFieldSignature'
|
747
|
+
end
|
748
|
+
if type == 'Combobox'
|
749
|
+
ttype = 'ComboboxFormFieldSignature'
|
750
|
+
end
|
751
|
+
if type == 'DigitalSignature'
|
752
|
+
ttype = 'DigitalFormFieldSignature'
|
753
|
+
end
|
754
|
+
if type == 'Radio'
|
755
|
+
ttype = 'RadioButtonFormFieldSignature'
|
756
|
+
end
|
757
|
+
end
|
730
758
|
end
|
731
759
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
732
760
|
temp_model.build_from_hash(value)
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified
|
47
50
|
attr_accessor :image_file_path
|
48
51
|
|
@@ -134,6 +137,7 @@ module GroupDocsSignatureCloud
|
|
134
137
|
:'page' => :'Page',
|
135
138
|
:'all_pages' => :'AllPages',
|
136
139
|
:'pages_setup' => :'PagesSetup',
|
140
|
+
:'appearance' => :'Appearance',
|
137
141
|
:'image_file_path' => :'ImageFilePath',
|
138
142
|
:'left' => :'Left',
|
139
143
|
:'top' => :'Top',
|
@@ -165,6 +169,7 @@ module GroupDocsSignatureCloud
|
|
165
169
|
:'page' => :'Integer',
|
166
170
|
:'all_pages' => :'BOOLEAN',
|
167
171
|
:'pages_setup' => :'PagesSetup',
|
172
|
+
:'appearance' => :'SignatureAppearance',
|
168
173
|
:'image_file_path' => :'String',
|
169
174
|
:'left' => :'Integer',
|
170
175
|
:'top' => :'Integer',
|
@@ -213,6 +218,10 @@ module GroupDocsSignatureCloud
|
|
213
218
|
self.pages_setup = attributes[:'PagesSetup']
|
214
219
|
end
|
215
220
|
|
221
|
+
if attributes.key?(:'Appearance')
|
222
|
+
self.appearance = attributes[:'Appearance']
|
223
|
+
end
|
224
|
+
|
216
225
|
if attributes.key?(:'ImageFilePath')
|
217
226
|
self.image_file_path = attributes[:'ImageFilePath']
|
218
227
|
end
|
@@ -370,7 +379,7 @@ module GroupDocsSignatureCloud
|
|
370
379
|
# @return true if the model is valid
|
371
380
|
def valid?
|
372
381
|
return false if @signature_type.nil?
|
373
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
382
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
374
383
|
return false unless signature_type_validator.valid?(@signature_type)
|
375
384
|
return false if @all_pages.nil?
|
376
385
|
return false if @left.nil?
|
@@ -404,7 +413,7 @@ module GroupDocsSignatureCloud
|
|
404
413
|
# Custom attribute writer method checking allowed values (enum).
|
405
414
|
# @param [Object] signature_type Object to be assigned
|
406
415
|
def signature_type=(signature_type)
|
407
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
416
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
408
417
|
if signature_type.to_i == 0
|
409
418
|
unless validator.valid?(signature_type)
|
410
419
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -508,6 +517,7 @@ module GroupDocsSignatureCloud
|
|
508
517
|
page == other.page &&
|
509
518
|
all_pages == other.all_pages &&
|
510
519
|
pages_setup == other.pages_setup &&
|
520
|
+
appearance == other.appearance &&
|
511
521
|
image_file_path == other.image_file_path &&
|
512
522
|
left == other.left &&
|
513
523
|
top == other.top &&
|
@@ -540,7 +550,7 @@ module GroupDocsSignatureCloud
|
|
540
550
|
# Calculates hash code according to all attributes.
|
541
551
|
# @return [Fixnum] Hash code
|
542
552
|
def hash
|
543
|
-
[signature_type, page, all_pages, pages_setup, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, reason, contact, location, visible, password, certificate_file_path, x_ad_es_type].hash
|
553
|
+
[signature_type, page, all_pages, pages_setup, appearance, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, reason, contact, location, visible, password, certificate_file_path, x_ad_es_type].hash
|
544
554
|
end
|
545
555
|
|
546
556
|
# Downcases first letter.
|
@@ -614,6 +624,24 @@ module GroupDocsSignatureCloud
|
|
614
624
|
ttype = type
|
615
625
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
616
626
|
ttype = value[:signatureType] + 'Signature'
|
627
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
628
|
+
type = value[:type]
|
629
|
+
if type == 'Checkbox'
|
630
|
+
ttype = 'CheckboxFormFieldSignature'
|
631
|
+
end
|
632
|
+
if type == 'Text'
|
633
|
+
ttype = 'TextFormFieldSignature'
|
634
|
+
end
|
635
|
+
if type == 'Combobox'
|
636
|
+
ttype = 'ComboboxFormFieldSignature'
|
637
|
+
end
|
638
|
+
if type == 'DigitalSignature'
|
639
|
+
ttype = 'DigitalFormFieldSignature'
|
640
|
+
end
|
641
|
+
if type == 'Radio'
|
642
|
+
ttype = 'RadioButtonFormFieldSignature'
|
643
|
+
end
|
644
|
+
end
|
617
645
|
end
|
618
646
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
619
647
|
temp_model.build_from_hash(value)
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified
|
47
50
|
attr_accessor :image_file_path
|
48
51
|
|
@@ -113,6 +116,7 @@ module GroupDocsSignatureCloud
|
|
113
116
|
:'page' => :'Page',
|
114
117
|
:'all_pages' => :'AllPages',
|
115
118
|
:'pages_setup' => :'PagesSetup',
|
119
|
+
:'appearance' => :'Appearance',
|
116
120
|
:'image_file_path' => :'ImageFilePath',
|
117
121
|
:'left' => :'Left',
|
118
122
|
:'top' => :'Top',
|
@@ -137,6 +141,7 @@ module GroupDocsSignatureCloud
|
|
137
141
|
:'page' => :'Integer',
|
138
142
|
:'all_pages' => :'BOOLEAN',
|
139
143
|
:'pages_setup' => :'PagesSetup',
|
144
|
+
:'appearance' => :'SignatureAppearance',
|
140
145
|
:'image_file_path' => :'String',
|
141
146
|
:'left' => :'Integer',
|
142
147
|
:'top' => :'Integer',
|
@@ -178,6 +183,10 @@ module GroupDocsSignatureCloud
|
|
178
183
|
self.pages_setup = attributes[:'PagesSetup']
|
179
184
|
end
|
180
185
|
|
186
|
+
if attributes.key?(:'Appearance')
|
187
|
+
self.appearance = attributes[:'Appearance']
|
188
|
+
end
|
189
|
+
|
181
190
|
if attributes.key?(:'ImageFilePath')
|
182
191
|
self.image_file_path = attributes[:'ImageFilePath']
|
183
192
|
end
|
@@ -299,7 +308,7 @@ module GroupDocsSignatureCloud
|
|
299
308
|
# @return true if the model is valid
|
300
309
|
def valid?
|
301
310
|
return false if @signature_type.nil?
|
302
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
311
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
303
312
|
return false unless signature_type_validator.valid?(@signature_type)
|
304
313
|
return false if @all_pages.nil?
|
305
314
|
return false if @left.nil?
|
@@ -329,7 +338,7 @@ module GroupDocsSignatureCloud
|
|
329
338
|
# Custom attribute writer method checking allowed values (enum).
|
330
339
|
# @param [Object] signature_type Object to be assigned
|
331
340
|
def signature_type=(signature_type)
|
332
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
341
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
333
342
|
if signature_type.to_i == 0
|
334
343
|
unless validator.valid?(signature_type)
|
335
344
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -419,6 +428,7 @@ module GroupDocsSignatureCloud
|
|
419
428
|
page == other.page &&
|
420
429
|
all_pages == other.all_pages &&
|
421
430
|
pages_setup == other.pages_setup &&
|
431
|
+
appearance == other.appearance &&
|
422
432
|
image_file_path == other.image_file_path &&
|
423
433
|
left == other.left &&
|
424
434
|
top == other.top &&
|
@@ -444,7 +454,7 @@ module GroupDocsSignatureCloud
|
|
444
454
|
# Calculates hash code according to all attributes.
|
445
455
|
# @return [Fixnum] Hash code
|
446
456
|
def hash
|
447
|
-
[signature_type, page, all_pages, pages_setup, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border].hash
|
457
|
+
[signature_type, page, all_pages, pages_setup, appearance, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border].hash
|
448
458
|
end
|
449
459
|
|
450
460
|
# Downcases first letter.
|
@@ -518,6 +528,24 @@ module GroupDocsSignatureCloud
|
|
518
528
|
ttype = type
|
519
529
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
520
530
|
ttype = value[:signatureType] + 'Signature'
|
531
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
532
|
+
type = value[:type]
|
533
|
+
if type == 'Checkbox'
|
534
|
+
ttype = 'CheckboxFormFieldSignature'
|
535
|
+
end
|
536
|
+
if type == 'Text'
|
537
|
+
ttype = 'TextFormFieldSignature'
|
538
|
+
end
|
539
|
+
if type == 'Combobox'
|
540
|
+
ttype = 'ComboboxFormFieldSignature'
|
541
|
+
end
|
542
|
+
if type == 'DigitalSignature'
|
543
|
+
ttype = 'DigitalFormFieldSignature'
|
544
|
+
end
|
545
|
+
if type == 'Radio'
|
546
|
+
ttype = 'RadioButtonFormFieldSignature'
|
547
|
+
end
|
548
|
+
end
|
521
549
|
end
|
522
550
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
523
551
|
temp_model.build_from_hash(value)
|
@@ -42,6 +42,9 @@ module GroupDocsSignatureCloud
|
|
42
42
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
|
+
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -70,7 +73,8 @@ module GroupDocsSignatureCloud
|
|
70
73
|
:'signature_type' => :'SignatureType',
|
71
74
|
:'page' => :'Page',
|
72
75
|
:'all_pages' => :'AllPages',
|
73
|
-
:'pages_setup' => :'PagesSetup'
|
76
|
+
:'pages_setup' => :'PagesSetup',
|
77
|
+
:'appearance' => :'Appearance'
|
74
78
|
}
|
75
79
|
end
|
76
80
|
|
@@ -80,7 +84,8 @@ module GroupDocsSignatureCloud
|
|
80
84
|
:'signature_type' => :'String',
|
81
85
|
:'page' => :'Integer',
|
82
86
|
:'all_pages' => :'BOOLEAN',
|
83
|
-
:'pages_setup' => :'PagesSetup'
|
87
|
+
:'pages_setup' => :'PagesSetup',
|
88
|
+
:'appearance' => :'SignatureAppearance'
|
84
89
|
}
|
85
90
|
end
|
86
91
|
|
@@ -108,6 +113,10 @@ module GroupDocsSignatureCloud
|
|
108
113
|
self.pages_setup = attributes[:'PagesSetup']
|
109
114
|
end
|
110
115
|
|
116
|
+
if attributes.key?(:'Appearance')
|
117
|
+
self.appearance = attributes[:'Appearance']
|
118
|
+
end
|
119
|
+
|
111
120
|
end
|
112
121
|
|
113
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,7 +138,7 @@ module GroupDocsSignatureCloud
|
|
129
138
|
# @return true if the model is valid
|
130
139
|
def valid?
|
131
140
|
return false if @signature_type.nil?
|
132
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
141
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
133
142
|
return false unless signature_type_validator.valid?(@signature_type)
|
134
143
|
return false if @all_pages.nil?
|
135
144
|
return true
|
@@ -138,7 +147,7 @@ module GroupDocsSignatureCloud
|
|
138
147
|
# Custom attribute writer method checking allowed values (enum).
|
139
148
|
# @param [Object] signature_type Object to be assigned
|
140
149
|
def signature_type=(signature_type)
|
141
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
150
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
142
151
|
if signature_type.to_i == 0
|
143
152
|
unless validator.valid?(signature_type)
|
144
153
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -157,7 +166,8 @@ module GroupDocsSignatureCloud
|
|
157
166
|
signature_type == other.signature_type &&
|
158
167
|
page == other.page &&
|
159
168
|
all_pages == other.all_pages &&
|
160
|
-
pages_setup == other.pages_setup
|
169
|
+
pages_setup == other.pages_setup &&
|
170
|
+
appearance == other.appearance
|
161
171
|
end
|
162
172
|
|
163
173
|
# @see the `==` method
|
@@ -169,7 +179,7 @@ module GroupDocsSignatureCloud
|
|
169
179
|
# Calculates hash code according to all attributes.
|
170
180
|
# @return [Fixnum] Hash code
|
171
181
|
def hash
|
172
|
-
[signature_type, page, all_pages, pages_setup].hash
|
182
|
+
[signature_type, page, all_pages, pages_setup, appearance].hash
|
173
183
|
end
|
174
184
|
|
175
185
|
# Downcases first letter.
|
@@ -243,6 +253,24 @@ module GroupDocsSignatureCloud
|
|
243
253
|
ttype = type
|
244
254
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
245
255
|
ttype = value[:signatureType] + 'Signature'
|
256
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
257
|
+
type = value[:type]
|
258
|
+
if type == 'Checkbox'
|
259
|
+
ttype = 'CheckboxFormFieldSignature'
|
260
|
+
end
|
261
|
+
if type == 'Text'
|
262
|
+
ttype = 'TextFormFieldSignature'
|
263
|
+
end
|
264
|
+
if type == 'Combobox'
|
265
|
+
ttype = 'ComboboxFormFieldSignature'
|
266
|
+
end
|
267
|
+
if type == 'DigitalSignature'
|
268
|
+
ttype = 'DigitalFormFieldSignature'
|
269
|
+
end
|
270
|
+
if type == 'Radio'
|
271
|
+
ttype = 'RadioButtonFormFieldSignature'
|
272
|
+
end
|
273
|
+
end
|
246
274
|
end
|
247
275
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
248
276
|
temp_model.build_from_hash(value)
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Left X position of Signature on Document Page in Measure values (pixels or percent see MeasureType LocationMeasureType property)
|
47
50
|
attr_accessor :left
|
48
51
|
|
@@ -152,6 +155,7 @@ module GroupDocsSignatureCloud
|
|
152
155
|
:'page' => :'Page',
|
153
156
|
:'all_pages' => :'AllPages',
|
154
157
|
:'pages_setup' => :'PagesSetup',
|
158
|
+
:'appearance' => :'Appearance',
|
155
159
|
:'left' => :'Left',
|
156
160
|
:'top' => :'Top',
|
157
161
|
:'width' => :'Width',
|
@@ -189,6 +193,7 @@ module GroupDocsSignatureCloud
|
|
189
193
|
:'page' => :'Integer',
|
190
194
|
:'all_pages' => :'BOOLEAN',
|
191
195
|
:'pages_setup' => :'PagesSetup',
|
196
|
+
:'appearance' => :'SignatureAppearance',
|
192
197
|
:'left' => :'Integer',
|
193
198
|
:'top' => :'Integer',
|
194
199
|
:'width' => :'Integer',
|
@@ -243,6 +248,10 @@ module GroupDocsSignatureCloud
|
|
243
248
|
self.pages_setup = attributes[:'PagesSetup']
|
244
249
|
end
|
245
250
|
|
251
|
+
if attributes.key?(:'Appearance')
|
252
|
+
self.appearance = attributes[:'Appearance']
|
253
|
+
end
|
254
|
+
|
246
255
|
if attributes.key?(:'Left')
|
247
256
|
self.left = attributes[:'Left']
|
248
257
|
end
|
@@ -440,7 +449,7 @@ module GroupDocsSignatureCloud
|
|
440
449
|
# @return true if the model is valid
|
441
450
|
def valid?
|
442
451
|
return false if @signature_type.nil?
|
443
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
452
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
444
453
|
return false unless signature_type_validator.valid?(@signature_type)
|
445
454
|
return false if @all_pages.nil?
|
446
455
|
return false if @left.nil?
|
@@ -484,7 +493,7 @@ module GroupDocsSignatureCloud
|
|
484
493
|
# Custom attribute writer method checking allowed values (enum).
|
485
494
|
# @param [Object] signature_type Object to be assigned
|
486
495
|
def signature_type=(signature_type)
|
487
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
496
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
488
497
|
if signature_type.to_i == 0
|
489
498
|
unless validator.valid?(signature_type)
|
490
499
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -630,6 +639,7 @@ module GroupDocsSignatureCloud
|
|
630
639
|
page == other.page &&
|
631
640
|
all_pages == other.all_pages &&
|
632
641
|
pages_setup == other.pages_setup &&
|
642
|
+
appearance == other.appearance &&
|
633
643
|
left == other.left &&
|
634
644
|
top == other.top &&
|
635
645
|
width == other.width &&
|
@@ -668,7 +678,7 @@ module GroupDocsSignatureCloud
|
|
668
678
|
# Calculates hash code according to all attributes.
|
669
679
|
# @return [Fixnum] Hash code
|
670
680
|
def hash
|
671
|
-
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, qr_code_type, transparency, code_text_alignment, inner_margins, logo_file_path].hash
|
681
|
+
[signature_type, page, all_pages, pages_setup, appearance, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, native, qr_code_type, transparency, code_text_alignment, inner_margins, logo_file_path].hash
|
672
682
|
end
|
673
683
|
|
674
684
|
# Downcases first letter.
|
@@ -742,6 +752,24 @@ module GroupDocsSignatureCloud
|
|
742
752
|
ttype = type
|
743
753
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
744
754
|
ttype = value[:signatureType] + 'Signature'
|
755
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
756
|
+
type = value[:type]
|
757
|
+
if type == 'Checkbox'
|
758
|
+
ttype = 'CheckboxFormFieldSignature'
|
759
|
+
end
|
760
|
+
if type == 'Text'
|
761
|
+
ttype = 'TextFormFieldSignature'
|
762
|
+
end
|
763
|
+
if type == 'Combobox'
|
764
|
+
ttype = 'ComboboxFormFieldSignature'
|
765
|
+
end
|
766
|
+
if type == 'DigitalSignature'
|
767
|
+
ttype = 'DigitalFormFieldSignature'
|
768
|
+
end
|
769
|
+
if type == 'Radio'
|
770
|
+
ttype = 'RadioButtonFormFieldSignature'
|
771
|
+
end
|
772
|
+
end
|
745
773
|
end
|
746
774
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
747
775
|
temp_model.build_from_hash(value)
|
@@ -215,6 +215,24 @@ module GroupDocsSignatureCloud
|
|
215
215
|
ttype = type
|
216
216
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
217
217
|
ttype = value[:signatureType] + 'Signature'
|
218
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
219
|
+
type = value[:type]
|
220
|
+
if type == 'Checkbox'
|
221
|
+
ttype = 'CheckboxFormFieldSignature'
|
222
|
+
end
|
223
|
+
if type == 'Text'
|
224
|
+
ttype = 'TextFormFieldSignature'
|
225
|
+
end
|
226
|
+
if type == 'Combobox'
|
227
|
+
ttype = 'ComboboxFormFieldSignature'
|
228
|
+
end
|
229
|
+
if type == 'DigitalSignature'
|
230
|
+
ttype = 'DigitalFormFieldSignature'
|
231
|
+
end
|
232
|
+
if type == 'Radio'
|
233
|
+
ttype = 'RadioButtonFormFieldSignature'
|
234
|
+
end
|
235
|
+
end
|
218
236
|
end
|
219
237
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
220
238
|
temp_model.build_from_hash(value)
|
@@ -188,6 +188,24 @@ module GroupDocsSignatureCloud
|
|
188
188
|
ttype = type
|
189
189
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
190
190
|
ttype = value[:signatureType] + 'Signature'
|
191
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
192
|
+
type = value[:type]
|
193
|
+
if type == 'Checkbox'
|
194
|
+
ttype = 'CheckboxFormFieldSignature'
|
195
|
+
end
|
196
|
+
if type == 'Text'
|
197
|
+
ttype = 'TextFormFieldSignature'
|
198
|
+
end
|
199
|
+
if type == 'Combobox'
|
200
|
+
ttype = 'ComboboxFormFieldSignature'
|
201
|
+
end
|
202
|
+
if type == 'DigitalSignature'
|
203
|
+
ttype = 'DigitalFormFieldSignature'
|
204
|
+
end
|
205
|
+
if type == 'Radio'
|
206
|
+
ttype = 'RadioButtonFormFieldSignature'
|
207
|
+
end
|
208
|
+
end
|
191
209
|
end
|
192
210
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
193
211
|
temp_model.build_from_hash(value)
|
@@ -43,6 +43,9 @@ module GroupDocsSignatureCloud
|
|
43
43
|
# Options to specify pages for processing
|
44
44
|
attr_accessor :pages_setup
|
45
45
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
47
|
+
attr_accessor :appearance
|
48
|
+
|
46
49
|
# Gets or sets the signature image file name. This property is used only if ImageStream is not specified
|
47
50
|
attr_accessor :image_file_path
|
48
51
|
|
@@ -131,6 +134,7 @@ module GroupDocsSignatureCloud
|
|
131
134
|
:'page' => :'Page',
|
132
135
|
:'all_pages' => :'AllPages',
|
133
136
|
:'pages_setup' => :'PagesSetup',
|
137
|
+
:'appearance' => :'Appearance',
|
134
138
|
:'image_file_path' => :'ImageFilePath',
|
135
139
|
:'left' => :'Left',
|
136
140
|
:'top' => :'Top',
|
@@ -161,6 +165,7 @@ module GroupDocsSignatureCloud
|
|
161
165
|
:'page' => :'Integer',
|
162
166
|
:'all_pages' => :'BOOLEAN',
|
163
167
|
:'pages_setup' => :'PagesSetup',
|
168
|
+
:'appearance' => :'SignatureAppearance',
|
164
169
|
:'image_file_path' => :'String',
|
165
170
|
:'left' => :'Integer',
|
166
171
|
:'top' => :'Integer',
|
@@ -208,6 +213,10 @@ module GroupDocsSignatureCloud
|
|
208
213
|
self.pages_setup = attributes[:'PagesSetup']
|
209
214
|
end
|
210
215
|
|
216
|
+
if attributes.key?(:'Appearance')
|
217
|
+
self.appearance = attributes[:'Appearance']
|
218
|
+
end
|
219
|
+
|
211
220
|
if attributes.key?(:'ImageFilePath')
|
212
221
|
self.image_file_path = attributes[:'ImageFilePath']
|
213
222
|
end
|
@@ -365,7 +374,7 @@ module GroupDocsSignatureCloud
|
|
365
374
|
# @return true if the model is valid
|
366
375
|
def valid?
|
367
376
|
return false if @signature_type.nil?
|
368
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
377
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
369
378
|
return false unless signature_type_validator.valid?(@signature_type)
|
370
379
|
return false if @all_pages.nil?
|
371
380
|
return false if @left.nil?
|
@@ -401,7 +410,7 @@ module GroupDocsSignatureCloud
|
|
401
410
|
# Custom attribute writer method checking allowed values (enum).
|
402
411
|
# @param [Object] signature_type Object to be assigned
|
403
412
|
def signature_type=(signature_type)
|
404
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
413
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
405
414
|
if signature_type.to_i == 0
|
406
415
|
unless validator.valid?(signature_type)
|
407
416
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
@@ -519,6 +528,7 @@ module GroupDocsSignatureCloud
|
|
519
528
|
page == other.page &&
|
520
529
|
all_pages == other.all_pages &&
|
521
530
|
pages_setup == other.pages_setup &&
|
531
|
+
appearance == other.appearance &&
|
522
532
|
image_file_path == other.image_file_path &&
|
523
533
|
left == other.left &&
|
524
534
|
top == other.top &&
|
@@ -550,7 +560,7 @@ module GroupDocsSignatureCloud
|
|
550
560
|
# Calculates hash code according to all attributes.
|
551
561
|
# @return [Fixnum] Hash code
|
552
562
|
def hash
|
553
|
-
[signature_type, page, all_pages, pages_setup, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, outer_lines, inner_lines, background_color, background_brush, background_color_crop_type, background_image_crop_type].hash
|
563
|
+
[signature_type, page, all_pages, pages_setup, appearance, image_file_path, left, top, width, height, location_measure_type, size_measure_type, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, transparency, border, outer_lines, inner_lines, background_color, background_brush, background_color_crop_type, background_image_crop_type].hash
|
554
564
|
end
|
555
565
|
|
556
566
|
# Downcases first letter.
|
@@ -624,6 +634,24 @@ module GroupDocsSignatureCloud
|
|
624
634
|
ttype = type
|
625
635
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
626
636
|
ttype = value[:signatureType] + 'Signature'
|
637
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
638
|
+
type = value[:type]
|
639
|
+
if type == 'Checkbox'
|
640
|
+
ttype = 'CheckboxFormFieldSignature'
|
641
|
+
end
|
642
|
+
if type == 'Text'
|
643
|
+
ttype = 'TextFormFieldSignature'
|
644
|
+
end
|
645
|
+
if type == 'Combobox'
|
646
|
+
ttype = 'ComboboxFormFieldSignature'
|
647
|
+
end
|
648
|
+
if type == 'DigitalSignature'
|
649
|
+
ttype = 'DigitalFormFieldSignature'
|
650
|
+
end
|
651
|
+
if type == 'Radio'
|
652
|
+
ttype = 'RadioButtonFormFieldSignature'
|
653
|
+
end
|
654
|
+
end
|
627
655
|
end
|
628
656
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
629
657
|
temp_model.build_from_hash(value)
|