groupdocs_signature_cloud 19.5 → 20.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_signature_cloud.rb +9 -1
  3. data/lib/groupdocs_signature_cloud/api/file_api.rb +7 -7
  4. data/lib/groupdocs_signature_cloud/api/folder_api.rb +7 -7
  5. data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
  6. data/lib/groupdocs_signature_cloud/api/sign_api.rb +198 -4
  7. data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
  8. data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
  9. data/lib/groupdocs_signature_cloud/api_error.rb +1 -1
  10. data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
  11. data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +140 -36
  12. data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
  13. data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
  14. data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
  15. data/lib/groupdocs_signature_cloud/models/border_line.rb +22 -7
  16. data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
  17. data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
  18. data/lib/groupdocs_signature_cloud/models/delete_options.rb +271 -0
  19. data/lib/groupdocs_signature_cloud/models/delete_result.rb +258 -0
  20. data/lib/groupdocs_signature_cloud/models/delete_settings.rb +231 -0
  21. data/lib/groupdocs_signature_cloud/models/digital_signature.rb +127 -64
  22. data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
  23. data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
  24. data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
  25. data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
  26. data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
  27. data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
  28. data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
  29. data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
  30. data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
  31. data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
  32. data/lib/groupdocs_signature_cloud/models/image_signature.rb +411 -0
  33. data/lib/groupdocs_signature_cloud/models/info_result.rb +1 -1
  34. data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
  35. data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
  36. data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
  37. data/lib/groupdocs_signature_cloud/models/options_base.rb +2 -33
  38. data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
  39. data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
  40. data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
  41. data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +140 -36
  42. data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
  43. data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
  44. data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
  45. data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
  46. data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +2 -33
  47. data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +2 -33
  48. data/lib/groupdocs_signature_cloud/models/search_options.rb +2 -33
  49. data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +2 -33
  50. data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
  51. data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
  52. data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +33 -125
  53. data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +114 -59
  54. data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +32 -53
  55. data/lib/groupdocs_signature_cloud/models/sign_options.rb +2 -33
  56. data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +42 -134
  57. data/lib/groupdocs_signature_cloud/models/sign_result.rb +29 -5
  58. data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
  59. data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +32 -53
  60. data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +31 -108
  61. data/lib/groupdocs_signature_cloud/models/signature.rb +130 -36
  62. data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
  63. data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
  64. data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
  65. data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
  66. data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
  67. data/lib/groupdocs_signature_cloud/models/text_signature.rb +406 -0
  68. data/lib/groupdocs_signature_cloud/models/texture_brush.rb +9 -9
  69. data/lib/groupdocs_signature_cloud/models/update_options.rb +356 -0
  70. data/lib/groupdocs_signature_cloud/models/update_result.rb +258 -0
  71. data/lib/groupdocs_signature_cloud/models/update_settings.rb +231 -0
  72. data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +2 -33
  73. data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +8 -39
  74. data/lib/groupdocs_signature_cloud/models/verify_options.rb +2 -33
  75. data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +2 -33
  76. data/lib/groupdocs_signature_cloud/models/verify_result.rb +1 -1
  77. data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
  78. data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +2 -33
  79. data/lib/groupdocs_signature_cloud/version.rb +2 -2
  80. metadata +10 -2
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="sign_options.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -31,9 +31,6 @@ module GroupDocsSignatureCloud
31
31
  # Base container class for signature options data
32
32
  class SignOptions
33
33
 
34
- # Specifies the type of document to process
35
- attr_accessor :document_type
36
-
37
34
  # Specifies the signature type of processing
38
35
  attr_accessor :signature_type
39
36
 
@@ -70,7 +67,6 @@ module GroupDocsSignatureCloud
70
67
  # Attribute mapping from ruby-style variable name to JSON key.
71
68
  def self.attribute_map
72
69
  {
73
- :'document_type' => :'DocumentType',
74
70
  :'signature_type' => :'SignatureType',
75
71
  :'page' => :'Page',
76
72
  :'all_pages' => :'AllPages',
@@ -81,7 +77,6 @@ module GroupDocsSignatureCloud
81
77
  # Attribute type mapping.
82
78
  def self.swagger_types
83
79
  {
84
- :'document_type' => :'String',
85
80
  :'signature_type' => :'String',
86
81
  :'page' => :'Integer',
87
82
  :'all_pages' => :'BOOLEAN',
@@ -97,10 +92,6 @@ module GroupDocsSignatureCloud
97
92
  # convert string to symbol for hash key
98
93
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
99
94
 
100
- if attributes.key?(:'DocumentType')
101
- self.document_type = attributes[:'DocumentType']
102
- end
103
-
104
95
  if attributes.key?(:'SignatureType')
105
96
  self.signature_type = attributes[:'SignatureType']
106
97
  end
@@ -123,10 +114,6 @@ module GroupDocsSignatureCloud
123
114
  # @return Array for valid properies with the reasons
124
115
  def list_invalid_properties
125
116
  invalid_properties = []
126
- if @document_type.nil?
127
- invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
128
- end
129
-
130
117
  if @signature_type.nil?
131
118
  invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
132
119
  end
@@ -141,9 +128,6 @@ module GroupDocsSignatureCloud
141
128
  # Check to see if the all the properties in the model are valid
142
129
  # @return true if the model is valid
143
130
  def valid?
144
- return false if @document_type.nil?
145
- document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
146
- return false unless document_type_validator.valid?(@document_type)
147
131
  return false if @signature_type.nil?
148
132
  signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
149
133
  return false unless signature_type_validator.valid?(@signature_type)
@@ -151,20 +135,6 @@ module GroupDocsSignatureCloud
151
135
  return true
152
136
  end
153
137
 
154
- # Custom attribute writer method checking allowed values (enum).
155
- # @param [Object] document_type Object to be assigned
156
- def document_type=(document_type)
157
- validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
158
- if document_type.to_i == 0
159
- unless validator.valid?(document_type)
160
- raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
161
- end
162
- @document_type = document_type
163
- else
164
- @document_type = validator.allowable_values[document_type.to_i]
165
- end
166
- end
167
-
168
138
  # Custom attribute writer method checking allowed values (enum).
169
139
  # @param [Object] signature_type Object to be assigned
170
140
  def signature_type=(signature_type)
@@ -184,7 +154,6 @@ module GroupDocsSignatureCloud
184
154
  def ==(other)
185
155
  return true if self.equal?(other)
186
156
  self.class == other.class &&
187
- document_type == other.document_type &&
188
157
  signature_type == other.signature_type &&
189
158
  page == other.page &&
190
159
  all_pages == other.all_pages &&
@@ -200,7 +169,7 @@ module GroupDocsSignatureCloud
200
169
  # Calculates hash code according to all attributes.
201
170
  # @return [Fixnum] Hash code
202
171
  def hash
203
- [document_type, signature_type, page, all_pages, pages_setup].hash
172
+ [signature_type, page, all_pages, pages_setup].hash
204
173
  end
205
174
 
206
175
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="sign_qr_code_options.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -31,9 +31,6 @@ module GroupDocsSignatureCloud
31
31
  # Represents the QR-code signature options
32
32
  class SignQRCodeOptions
33
33
 
34
- # Specifies the type of document to process
35
- attr_accessor :document_type
36
-
37
34
  # Specifies the signature type of processing
38
35
  attr_accessor :signature_type
39
36
 
@@ -91,23 +88,14 @@ module GroupDocsSignatureCloud
91
88
  # Gets or sets the fore color of signature
92
89
  attr_accessor :fore_color
93
90
 
94
- # Gets or sets the border color of signature
95
- attr_accessor :border_color
96
-
97
91
  # Gets or sets the background color of signature
98
92
  attr_accessor :background_color
99
93
 
100
94
  # Gets or sets the signature background brush. Value by default is null. If this property has a value it will be used instead BackgroundBrush property. For Spreadsheet documents TextStamp implementation RadialGradientBrush is not applicable, it is replaced by LinearGradientBrush. Spreadsheets, Images, Presentations It is not used for Watermark implementation. PDF For Stamp implementation LinearGradientBrush (ColorStart) and RadialGradientBrush (ColorInner) are used as SolidBrush. PDF It is not used for Annotation, Sticker, TextToFormField and Watermark implementations. Presentations For TextStamp implementation RadialGradientBrush is not applicable, it is replaced by LinearGradientBrush. Word Processing For TextStamp implementation LinearGradientBrush (ColorStart) and RadialGradientBrush (ColorInner) are used as SolidBrush. Word Processing It is not used for TextToFormField and Watermark implementations
101
95
  attr_accessor :background_brush
102
96
 
103
- # Gets or sets the signature border visibility It is not suitable for PDF
104
- attr_accessor :border_visiblity
105
-
106
- # Gets or sets the signature border style It is not suitable for PDF
107
- attr_accessor :border_dash_style
108
-
109
- # Gets or sets the signature border transparency (value from 0.0 (opaque) through 1.0 (clear)) It is not suitable for PDF
110
- attr_accessor :border_transparency
97
+ # Gets or sets the signature border properties
98
+ attr_accessor :border
111
99
 
112
100
  # Horizontal alignment of text inside a signature
113
101
  attr_accessor :text_horizontal_alignment
@@ -115,14 +103,14 @@ module GroupDocsSignatureCloud
115
103
  # Vertical alignment of text inside a signature
116
104
  attr_accessor :text_vertical_alignment
117
105
 
106
+ # Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
107
+ attr_accessor :z_order
108
+
118
109
  # Get or set QRCode type. Value should be one from supported QRCode types list
119
110
  attr_accessor :qr_code_type
120
111
 
121
- # Gets or sets the weight of the signature border
122
- attr_accessor :border_weight
123
-
124
- # Gets or sets the signature opacity (value from 0.0 (clear) through 1.0 (opaque)) By default the value is 1.0
125
- attr_accessor :opacity
112
+ # Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)). Default value is 0 (opaque).
113
+ attr_accessor :transparency
126
114
 
127
115
  # Gets or sets the alignment of text in the result QR-code Default value is None
128
116
  attr_accessor :code_text_alignment
@@ -131,7 +119,7 @@ module GroupDocsSignatureCloud
131
119
  attr_accessor :inner_margins
132
120
 
133
121
  # Gets or sets the QR-code logo image file name. This property in use only if LogoStream is not specified. Using of this property could cause problems with verification. Use it carefully
134
- attr_accessor :logo_guid
122
+ attr_accessor :logo_file_path
135
123
  class EnumAttributeValidator
136
124
  attr_reader :datatype
137
125
  attr_reader :allowable_values
@@ -157,7 +145,6 @@ module GroupDocsSignatureCloud
157
145
  # Attribute mapping from ruby-style variable name to JSON key.
158
146
  def self.attribute_map
159
147
  {
160
- :'document_type' => :'DocumentType',
161
148
  :'signature_type' => :'SignatureType',
162
149
  :'page' => :'Page',
163
150
  :'all_pages' => :'AllPages',
@@ -177,27 +164,23 @@ module GroupDocsSignatureCloud
177
164
  :'text' => :'Text',
178
165
  :'font' => :'Font',
179
166
  :'fore_color' => :'ForeColor',
180
- :'border_color' => :'BorderColor',
181
167
  :'background_color' => :'BackgroundColor',
182
168
  :'background_brush' => :'BackgroundBrush',
183
- :'border_visiblity' => :'BorderVisiblity',
184
- :'border_dash_style' => :'BorderDashStyle',
185
- :'border_transparency' => :'BorderTransparency',
169
+ :'border' => :'Border',
186
170
  :'text_horizontal_alignment' => :'TextHorizontalAlignment',
187
171
  :'text_vertical_alignment' => :'TextVerticalAlignment',
172
+ :'z_order' => :'ZOrder',
188
173
  :'qr_code_type' => :'QRCodeType',
189
- :'border_weight' => :'BorderWeight',
190
- :'opacity' => :'Opacity',
174
+ :'transparency' => :'Transparency',
191
175
  :'code_text_alignment' => :'CodeTextAlignment',
192
176
  :'inner_margins' => :'InnerMargins',
193
- :'logo_guid' => :'LogoGuid'
177
+ :'logo_file_path' => :'LogoFilePath'
194
178
  }
195
179
  end
196
180
 
197
181
  # Attribute type mapping.
198
182
  def self.swagger_types
199
183
  {
200
- :'document_type' => :'String',
201
184
  :'signature_type' => :'String',
202
185
  :'page' => :'Integer',
203
186
  :'all_pages' => :'BOOLEAN',
@@ -217,20 +200,17 @@ module GroupDocsSignatureCloud
217
200
  :'text' => :'String',
218
201
  :'font' => :'SignatureFont',
219
202
  :'fore_color' => :'Color',
220
- :'border_color' => :'Color',
221
203
  :'background_color' => :'Color',
222
204
  :'background_brush' => :'Brush',
223
- :'border_visiblity' => :'BOOLEAN',
224
- :'border_dash_style' => :'String',
225
- :'border_transparency' => :'Float',
205
+ :'border' => :'BorderLine',
226
206
  :'text_horizontal_alignment' => :'String',
227
207
  :'text_vertical_alignment' => :'String',
208
+ :'z_order' => :'Integer',
228
209
  :'qr_code_type' => :'String',
229
- :'border_weight' => :'Float',
230
- :'opacity' => :'Float',
210
+ :'transparency' => :'Float',
231
211
  :'code_text_alignment' => :'String',
232
212
  :'inner_margins' => :'Padding',
233
- :'logo_guid' => :'String'
213
+ :'logo_file_path' => :'String'
234
214
  }
235
215
  end
236
216
 
@@ -242,10 +222,6 @@ module GroupDocsSignatureCloud
242
222
  # convert string to symbol for hash key
243
223
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
244
224
 
245
- if attributes.key?(:'DocumentType')
246
- self.document_type = attributes[:'DocumentType']
247
- end
248
-
249
225
  if attributes.key?(:'SignatureType')
250
226
  self.signature_type = attributes[:'SignatureType']
251
227
  end
@@ -322,10 +298,6 @@ module GroupDocsSignatureCloud
322
298
  self.fore_color = attributes[:'ForeColor']
323
299
  end
324
300
 
325
- if attributes.key?(:'BorderColor')
326
- self.border_color = attributes[:'BorderColor']
327
- end
328
-
329
301
  if attributes.key?(:'BackgroundColor')
330
302
  self.background_color = attributes[:'BackgroundColor']
331
303
  end
@@ -334,16 +306,8 @@ module GroupDocsSignatureCloud
334
306
  self.background_brush = attributes[:'BackgroundBrush']
335
307
  end
336
308
 
337
- if attributes.key?(:'BorderVisiblity')
338
- self.border_visiblity = attributes[:'BorderVisiblity']
339
- end
340
-
341
- if attributes.key?(:'BorderDashStyle')
342
- self.border_dash_style = attributes[:'BorderDashStyle']
343
- end
344
-
345
- if attributes.key?(:'BorderTransparency')
346
- self.border_transparency = attributes[:'BorderTransparency']
309
+ if attributes.key?(:'Border')
310
+ self.border = attributes[:'Border']
347
311
  end
348
312
 
349
313
  if attributes.key?(:'TextHorizontalAlignment')
@@ -354,16 +318,16 @@ module GroupDocsSignatureCloud
354
318
  self.text_vertical_alignment = attributes[:'TextVerticalAlignment']
355
319
  end
356
320
 
357
- if attributes.key?(:'QRCodeType')
358
- self.qr_code_type = attributes[:'QRCodeType']
321
+ if attributes.key?(:'ZOrder')
322
+ self.z_order = attributes[:'ZOrder']
359
323
  end
360
324
 
361
- if attributes.key?(:'BorderWeight')
362
- self.border_weight = attributes[:'BorderWeight']
325
+ if attributes.key?(:'QRCodeType')
326
+ self.qr_code_type = attributes[:'QRCodeType']
363
327
  end
364
328
 
365
- if attributes.key?(:'Opacity')
366
- self.opacity = attributes[:'Opacity']
329
+ if attributes.key?(:'Transparency')
330
+ self.transparency = attributes[:'Transparency']
367
331
  end
368
332
 
369
333
  if attributes.key?(:'CodeTextAlignment')
@@ -374,8 +338,8 @@ module GroupDocsSignatureCloud
374
338
  self.inner_margins = attributes[:'InnerMargins']
375
339
  end
376
340
 
377
- if attributes.key?(:'LogoGuid')
378
- self.logo_guid = attributes[:'LogoGuid']
341
+ if attributes.key?(:'LogoFilePath')
342
+ self.logo_file_path = attributes[:'LogoFilePath']
379
343
  end
380
344
 
381
345
  end
@@ -384,10 +348,6 @@ module GroupDocsSignatureCloud
384
348
  # @return Array for valid properies with the reasons
385
349
  def list_invalid_properties
386
350
  invalid_properties = []
387
- if @document_type.nil?
388
- invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
389
- end
390
-
391
351
  if @signature_type.nil?
392
352
  invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
393
353
  end
@@ -440,18 +400,6 @@ module GroupDocsSignatureCloud
440
400
  invalid_properties.push("invalid value for 'margin_measure_type', margin_measure_type cannot be nil.")
441
401
  end
442
402
 
443
- if @border_visiblity.nil?
444
- invalid_properties.push("invalid value for 'border_visiblity', border_visiblity cannot be nil.")
445
- end
446
-
447
- if @border_dash_style.nil?
448
- invalid_properties.push("invalid value for 'border_dash_style', border_dash_style cannot be nil.")
449
- end
450
-
451
- if @border_transparency.nil?
452
- invalid_properties.push("invalid value for 'border_transparency', border_transparency cannot be nil.")
453
- end
454
-
455
403
  if @text_horizontal_alignment.nil?
456
404
  invalid_properties.push("invalid value for 'text_horizontal_alignment', text_horizontal_alignment cannot be nil.")
457
405
  end
@@ -460,12 +408,12 @@ module GroupDocsSignatureCloud
460
408
  invalid_properties.push("invalid value for 'text_vertical_alignment', text_vertical_alignment cannot be nil.")
461
409
  end
462
410
 
463
- if @border_weight.nil?
464
- invalid_properties.push("invalid value for 'border_weight', border_weight cannot be nil.")
411
+ if @z_order.nil?
412
+ invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
465
413
  end
466
414
 
467
- if @opacity.nil?
468
- invalid_properties.push("invalid value for 'opacity', opacity cannot be nil.")
415
+ if @transparency.nil?
416
+ invalid_properties.push("invalid value for 'transparency', transparency cannot be nil.")
469
417
  end
470
418
 
471
419
  if @code_text_alignment.nil?
@@ -478,9 +426,6 @@ module GroupDocsSignatureCloud
478
426
  # Check to see if the all the properties in the model are valid
479
427
  # @return true if the model is valid
480
428
  def valid?
481
- return false if @document_type.nil?
482
- document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
483
- return false unless document_type_validator.valid?(@document_type)
484
429
  return false if @signature_type.nil?
485
430
  signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
486
431
  return false unless signature_type_validator.valid?(@signature_type)
@@ -500,47 +445,28 @@ module GroupDocsSignatureCloud
500
445
  return false unless stretch_validator.valid?(@stretch)
501
446
  return false if @rotation_angle.nil?
502
447
  return false if @horizontal_alignment.nil?
503
- horizontal_alignment_validator = EnumAttributeValidator.new('String', ["Default", "None", "Left", "Center", "Right"])
448
+ horizontal_alignment_validator = EnumAttributeValidator.new('String', ["None", "Left", "Center", "Right"])
504
449
  return false unless horizontal_alignment_validator.valid?(@horizontal_alignment)
505
450
  return false if @vertical_alignment.nil?
506
- vertical_alignment_validator = EnumAttributeValidator.new('String', ["Default", "None", "Top", "Center", "Bottom"])
451
+ vertical_alignment_validator = EnumAttributeValidator.new('String', ["None", "Top", "Center", "Bottom"])
507
452
  return false unless vertical_alignment_validator.valid?(@vertical_alignment)
508
453
  return false if @margin_measure_type.nil?
509
454
  margin_measure_type_validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
510
455
  return false unless margin_measure_type_validator.valid?(@margin_measure_type)
511
- return false if @border_visiblity.nil?
512
- return false if @border_dash_style.nil?
513
- border_dash_style_validator = EnumAttributeValidator.new('String', ["Dash", "DashDot", "DashDotDot", "DashLongDash", "DashLongDashDot", "RoundDot", "Solid", "SquareDot"])
514
- return false unless border_dash_style_validator.valid?(@border_dash_style)
515
- return false if @border_transparency.nil?
516
456
  return false if @text_horizontal_alignment.nil?
517
457
  text_horizontal_alignment_validator = EnumAttributeValidator.new('String', ["Left", "Center", "Right"])
518
458
  return false unless text_horizontal_alignment_validator.valid?(@text_horizontal_alignment)
519
459
  return false if @text_vertical_alignment.nil?
520
460
  text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
521
461
  return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
522
- return false if @border_weight.nil?
523
- return false if @opacity.nil?
462
+ return false if @z_order.nil?
463
+ return false if @transparency.nil?
524
464
  return false if @code_text_alignment.nil?
525
465
  code_text_alignment_validator = EnumAttributeValidator.new('String', ["None", "Above", "Below", "Right"])
526
466
  return false unless code_text_alignment_validator.valid?(@code_text_alignment)
527
467
  return true
528
468
  end
529
469
 
530
- # Custom attribute writer method checking allowed values (enum).
531
- # @param [Object] document_type Object to be assigned
532
- def document_type=(document_type)
533
- validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
534
- if document_type.to_i == 0
535
- unless validator.valid?(document_type)
536
- raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
537
- end
538
- @document_type = document_type
539
- else
540
- @document_type = validator.allowable_values[document_type.to_i]
541
- end
542
- end
543
-
544
470
  # Custom attribute writer method checking allowed values (enum).
545
471
  # @param [Object] signature_type Object to be assigned
546
472
  def signature_type=(signature_type)
@@ -600,7 +526,7 @@ module GroupDocsSignatureCloud
600
526
  # Custom attribute writer method checking allowed values (enum).
601
527
  # @param [Object] horizontal_alignment Object to be assigned
602
528
  def horizontal_alignment=(horizontal_alignment)
603
- validator = EnumAttributeValidator.new('String', ["Default", "None", "Left", "Center", "Right"])
529
+ validator = EnumAttributeValidator.new('String', ["None", "Left", "Center", "Right"])
604
530
  if horizontal_alignment.to_i == 0
605
531
  unless validator.valid?(horizontal_alignment)
606
532
  raise ArgumentError, "invalid value for 'horizontal_alignment', must be one of #{validator.allowable_values}."
@@ -614,7 +540,7 @@ module GroupDocsSignatureCloud
614
540
  # Custom attribute writer method checking allowed values (enum).
615
541
  # @param [Object] vertical_alignment Object to be assigned
616
542
  def vertical_alignment=(vertical_alignment)
617
- validator = EnumAttributeValidator.new('String', ["Default", "None", "Top", "Center", "Bottom"])
543
+ validator = EnumAttributeValidator.new('String', ["None", "Top", "Center", "Bottom"])
618
544
  if vertical_alignment.to_i == 0
619
545
  unless validator.valid?(vertical_alignment)
620
546
  raise ArgumentError, "invalid value for 'vertical_alignment', must be one of #{validator.allowable_values}."
@@ -639,20 +565,6 @@ module GroupDocsSignatureCloud
639
565
  end
640
566
  end
641
567
 
642
- # Custom attribute writer method checking allowed values (enum).
643
- # @param [Object] border_dash_style Object to be assigned
644
- def border_dash_style=(border_dash_style)
645
- validator = EnumAttributeValidator.new('String', ["Dash", "DashDot", "DashDotDot", "DashLongDash", "DashLongDashDot", "RoundDot", "Solid", "SquareDot"])
646
- if border_dash_style.to_i == 0
647
- unless validator.valid?(border_dash_style)
648
- raise ArgumentError, "invalid value for 'border_dash_style', must be one of #{validator.allowable_values}."
649
- end
650
- @border_dash_style = border_dash_style
651
- else
652
- @border_dash_style = validator.allowable_values[border_dash_style.to_i]
653
- end
654
- end
655
-
656
568
  # Custom attribute writer method checking allowed values (enum).
657
569
  # @param [Object] text_horizontal_alignment Object to be assigned
658
570
  def text_horizontal_alignment=(text_horizontal_alignment)
@@ -700,7 +612,6 @@ module GroupDocsSignatureCloud
700
612
  def ==(other)
701
613
  return true if self.equal?(other)
702
614
  self.class == other.class &&
703
- document_type == other.document_type &&
704
615
  signature_type == other.signature_type &&
705
616
  page == other.page &&
706
617
  all_pages == other.all_pages &&
@@ -720,20 +631,17 @@ module GroupDocsSignatureCloud
720
631
  text == other.text &&
721
632
  font == other.font &&
722
633
  fore_color == other.fore_color &&
723
- border_color == other.border_color &&
724
634
  background_color == other.background_color &&
725
635
  background_brush == other.background_brush &&
726
- border_visiblity == other.border_visiblity &&
727
- border_dash_style == other.border_dash_style &&
728
- border_transparency == other.border_transparency &&
636
+ border == other.border &&
729
637
  text_horizontal_alignment == other.text_horizontal_alignment &&
730
638
  text_vertical_alignment == other.text_vertical_alignment &&
639
+ z_order == other.z_order &&
731
640
  qr_code_type == other.qr_code_type &&
732
- border_weight == other.border_weight &&
733
- opacity == other.opacity &&
641
+ transparency == other.transparency &&
734
642
  code_text_alignment == other.code_text_alignment &&
735
643
  inner_margins == other.inner_margins &&
736
- logo_guid == other.logo_guid
644
+ logo_file_path == other.logo_file_path
737
645
  end
738
646
 
739
647
  # @see the `==` method
@@ -745,7 +653,7 @@ module GroupDocsSignatureCloud
745
653
  # Calculates hash code according to all attributes.
746
654
  # @return [Fixnum] Hash code
747
655
  def hash
748
- [document_type, 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, border_color, background_color, background_brush, border_visiblity, border_dash_style, border_transparency, text_horizontal_alignment, text_vertical_alignment, qr_code_type, border_weight, opacity, code_text_alignment, inner_margins, logo_guid].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, qr_code_type, transparency, code_text_alignment, inner_margins, logo_file_path].hash
749
657
  end
750
658
 
751
659
  # Downcases first letter.