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="info_result.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="info_settings.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="linear_gradient_brush.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="object_exist.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="options_base.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 all possible options data
32
32
  class OptionsBase
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="padding.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_info.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="pages_setup.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="qr_code_signature.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,17 +31,44 @@ module GroupDocsSignatureCloud
31
31
  # Contains QRCode signature properties
32
32
  class QRCodeSignature
33
33
 
34
- # Specifies the type of document to process (Image, Pdf, Presentation, Spreadsheet, WordProcessing)
35
- attr_accessor :document_type
36
-
37
34
  # Specifies the signature type (Text, Image, Digital, Barcode, QRCode, Stamp)
38
35
  attr_accessor :signature_type
39
36
 
37
+ # Specifies the page signature was found on
38
+ attr_accessor :page_number
39
+
40
+ # Unique signature identifier to modify signature in the document over Update or Delete methods. This property will be set automatically after Sign or Search method being called. If this property was saved before it can be set manually to manipulate the signature.
41
+ attr_accessor :signature_id
42
+
43
+ # Get or set flag to indicate if this component is Signature or document content. This property is being used with Update method to set element as signature (true) or document element (false).
44
+ attr_accessor :is_signature
45
+
46
+ # Get or set the signature creation date
47
+ attr_accessor :created_on
48
+
49
+ # Get or set the signature modification date
50
+ attr_accessor :modified_on
51
+
52
+ # Specifies top position of signature
53
+ attr_accessor :top
54
+
55
+ # Specifies left position of signature
56
+ attr_accessor :left
57
+
58
+ # Specifies width of signature
59
+ attr_accessor :width
60
+
61
+ # Specifies height of signature
62
+ attr_accessor :height
63
+
40
64
  # Specifies the QRCode type
41
65
  attr_accessor :qr_code_type
42
66
 
43
67
  # Specifies text of Barcode
44
68
  attr_accessor :text
69
+
70
+ # Specifies the format of QR-code signature image.
71
+ attr_accessor :format
45
72
  class EnumAttributeValidator
46
73
  attr_reader :datatype
47
74
  attr_reader :allowable_values
@@ -67,20 +94,38 @@ module GroupDocsSignatureCloud
67
94
  # Attribute mapping from ruby-style variable name to JSON key.
68
95
  def self.attribute_map
69
96
  {
70
- :'document_type' => :'DocumentType',
71
97
  :'signature_type' => :'SignatureType',
98
+ :'page_number' => :'PageNumber',
99
+ :'signature_id' => :'SignatureId',
100
+ :'is_signature' => :'IsSignature',
101
+ :'created_on' => :'CreatedOn',
102
+ :'modified_on' => :'ModifiedOn',
103
+ :'top' => :'Top',
104
+ :'left' => :'Left',
105
+ :'width' => :'Width',
106
+ :'height' => :'Height',
72
107
  :'qr_code_type' => :'QrCodeType',
73
- :'text' => :'Text'
108
+ :'text' => :'Text',
109
+ :'format' => :'Format'
74
110
  }
75
111
  end
76
112
 
77
113
  # Attribute type mapping.
78
114
  def self.swagger_types
79
115
  {
80
- :'document_type' => :'String',
81
116
  :'signature_type' => :'String',
117
+ :'page_number' => :'Integer',
118
+ :'signature_id' => :'String',
119
+ :'is_signature' => :'BOOLEAN',
120
+ :'created_on' => :'DateTime',
121
+ :'modified_on' => :'DateTime',
122
+ :'top' => :'Integer',
123
+ :'left' => :'Integer',
124
+ :'width' => :'Integer',
125
+ :'height' => :'Integer',
82
126
  :'qr_code_type' => :'String',
83
- :'text' => :'String'
127
+ :'text' => :'String',
128
+ :'format' => :'String'
84
129
  }
85
130
  end
86
131
 
@@ -92,14 +137,46 @@ module GroupDocsSignatureCloud
92
137
  # convert string to symbol for hash key
93
138
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
94
139
 
95
- if attributes.key?(:'DocumentType')
96
- self.document_type = attributes[:'DocumentType']
97
- end
98
-
99
140
  if attributes.key?(:'SignatureType')
100
141
  self.signature_type = attributes[:'SignatureType']
101
142
  end
102
143
 
144
+ if attributes.key?(:'PageNumber')
145
+ self.page_number = attributes[:'PageNumber']
146
+ end
147
+
148
+ if attributes.key?(:'SignatureId')
149
+ self.signature_id = attributes[:'SignatureId']
150
+ end
151
+
152
+ if attributes.key?(:'IsSignature')
153
+ self.is_signature = attributes[:'IsSignature']
154
+ end
155
+
156
+ if attributes.key?(:'CreatedOn')
157
+ self.created_on = attributes[:'CreatedOn']
158
+ end
159
+
160
+ if attributes.key?(:'ModifiedOn')
161
+ self.modified_on = attributes[:'ModifiedOn']
162
+ end
163
+
164
+ if attributes.key?(:'Top')
165
+ self.top = attributes[:'Top']
166
+ end
167
+
168
+ if attributes.key?(:'Left')
169
+ self.left = attributes[:'Left']
170
+ end
171
+
172
+ if attributes.key?(:'Width')
173
+ self.width = attributes[:'Width']
174
+ end
175
+
176
+ if attributes.key?(:'Height')
177
+ self.height = attributes[:'Height']
178
+ end
179
+
103
180
  if attributes.key?(:'QrCodeType')
104
181
  self.qr_code_type = attributes[:'QrCodeType']
105
182
  end
@@ -108,49 +185,67 @@ module GroupDocsSignatureCloud
108
185
  self.text = attributes[:'Text']
109
186
  end
110
187
 
188
+ if attributes.key?(:'Format')
189
+ self.format = attributes[:'Format']
190
+ end
191
+
111
192
  end
112
193
 
113
194
  # Show invalid properties with the reasons. Usually used together with valid?
114
195
  # @return Array for valid properies with the reasons
115
196
  def list_invalid_properties
116
197
  invalid_properties = []
117
- if @document_type.nil?
118
- invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
119
- end
120
-
121
198
  if @signature_type.nil?
122
199
  invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
123
200
  end
124
201
 
202
+ if @is_signature.nil?
203
+ invalid_properties.push("invalid value for 'is_signature', is_signature cannot be nil.")
204
+ end
205
+
206
+ if @created_on.nil?
207
+ invalid_properties.push("invalid value for 'created_on', created_on cannot be nil.")
208
+ end
209
+
210
+ if @modified_on.nil?
211
+ invalid_properties.push("invalid value for 'modified_on', modified_on cannot be nil.")
212
+ end
213
+
214
+ if @top.nil?
215
+ invalid_properties.push("invalid value for 'top', top cannot be nil.")
216
+ end
217
+
218
+ if @left.nil?
219
+ invalid_properties.push("invalid value for 'left', left cannot be nil.")
220
+ end
221
+
222
+ if @width.nil?
223
+ invalid_properties.push("invalid value for 'width', width cannot be nil.")
224
+ end
225
+
226
+ if @height.nil?
227
+ invalid_properties.push("invalid value for 'height', height cannot be nil.")
228
+ end
229
+
125
230
  return invalid_properties
126
231
  end
127
232
 
128
233
  # Check to see if the all the properties in the model are valid
129
234
  # @return true if the model is valid
130
235
  def valid?
131
- return false if @document_type.nil?
132
- document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
133
- return false unless document_type_validator.valid?(@document_type)
134
236
  return false if @signature_type.nil?
135
237
  signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
136
238
  return false unless signature_type_validator.valid?(@signature_type)
239
+ return false if @is_signature.nil?
240
+ return false if @created_on.nil?
241
+ return false if @modified_on.nil?
242
+ return false if @top.nil?
243
+ return false if @left.nil?
244
+ return false if @width.nil?
245
+ return false if @height.nil?
137
246
  return true
138
247
  end
139
248
 
140
- # Custom attribute writer method checking allowed values (enum).
141
- # @param [Object] document_type Object to be assigned
142
- def document_type=(document_type)
143
- validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
144
- if document_type.to_i == 0
145
- unless validator.valid?(document_type)
146
- raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
147
- end
148
- @document_type = document_type
149
- else
150
- @document_type = validator.allowable_values[document_type.to_i]
151
- end
152
- end
153
-
154
249
  # Custom attribute writer method checking allowed values (enum).
155
250
  # @param [Object] signature_type Object to be assigned
156
251
  def signature_type=(signature_type)
@@ -170,10 +265,19 @@ module GroupDocsSignatureCloud
170
265
  def ==(other)
171
266
  return true if self.equal?(other)
172
267
  self.class == other.class &&
173
- document_type == other.document_type &&
174
268
  signature_type == other.signature_type &&
269
+ page_number == other.page_number &&
270
+ signature_id == other.signature_id &&
271
+ is_signature == other.is_signature &&
272
+ created_on == other.created_on &&
273
+ modified_on == other.modified_on &&
274
+ top == other.top &&
275
+ left == other.left &&
276
+ width == other.width &&
277
+ height == other.height &&
175
278
  qr_code_type == other.qr_code_type &&
176
- text == other.text
279
+ text == other.text &&
280
+ format == other.format
177
281
  end
178
282
 
179
283
  # @see the `==` method
@@ -185,7 +289,7 @@ module GroupDocsSignatureCloud
185
289
  # Calculates hash code according to all attributes.
186
290
  # @return [Fixnum] Hash code
187
291
  def hash
188
- [document_type, signature_type, qr_code_type, text].hash
292
+ [signature_type, page_number, signature_id, is_signature, created_on, modified_on, top, left, width, height, qr_code_type, text, format].hash
189
293
  end
190
294
 
191
295
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="qr_code_type.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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="qr_codes_result.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