groupdocs_signature_cloud 25.6 → 26.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/groupdocs_signature_cloud/api_client.rb +1 -0
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/metadata_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/options_base.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +14 -4
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/search_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_image_digital_options.rb +333 -0
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/update_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_image_digital_options.rb +343 -0
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +2 -2
- data/lib/groupdocs_signature_cloud/version.rb +1 -1
- data/lib/groupdocs_signature_cloud.rb +2 -0
- metadata +42 -12
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="sign_image_digital_options.rb">
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
|
+
# </copyright>
|
|
6
|
+
# <summary>
|
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
# furnished to do so, subject to the following conditions:
|
|
13
|
+
#
|
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
# copies or substantial portions of the Software.
|
|
16
|
+
#
|
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
# SOFTWARE.
|
|
24
|
+
# </summary>
|
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
#
|
|
27
|
+
|
|
28
|
+
require 'date'
|
|
29
|
+
|
|
30
|
+
module GroupDocsSignatureCloud
|
|
31
|
+
# Represents the ImageDigital sign options
|
|
32
|
+
class SignImageDigitalOptions
|
|
33
|
+
|
|
34
|
+
# Specifies the signature type of processing
|
|
35
|
+
attr_accessor :signature_type
|
|
36
|
+
|
|
37
|
+
# Gets or sets a document page number for processing. Value is optional
|
|
38
|
+
attr_accessor :page
|
|
39
|
+
|
|
40
|
+
# Process all document pages. Type of processing depends on SignatureType For Images Document Type it can be used only for multi-frames images like .tiff
|
|
41
|
+
attr_accessor :all_pages
|
|
42
|
+
|
|
43
|
+
# Options to specify pages for processing
|
|
44
|
+
attr_accessor :pages_setup
|
|
45
|
+
|
|
46
|
+
# Specifies Appearance with additional properties for this options instance
|
|
47
|
+
attr_accessor :appearance
|
|
48
|
+
# Gets or sets the password used to embed the signature.
|
|
49
|
+
attr_accessor :password
|
|
50
|
+
class EnumAttributeValidator
|
|
51
|
+
attr_reader :datatype
|
|
52
|
+
attr_reader :allowable_values
|
|
53
|
+
|
|
54
|
+
def initialize(datatype, allowable_values)
|
|
55
|
+
@allowable_values = allowable_values.map do |value|
|
|
56
|
+
case datatype.to_s
|
|
57
|
+
when /Integer/i
|
|
58
|
+
value.to_i
|
|
59
|
+
when /Float/i
|
|
60
|
+
value.to_f
|
|
61
|
+
else
|
|
62
|
+
value
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def valid?(value)
|
|
68
|
+
!value || allowable_values.include?(value)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
|
+
def self.attribute_map
|
|
74
|
+
{
|
|
75
|
+
:'signature_type' => :'SignatureType',
|
|
76
|
+
:'page' => :'Page',
|
|
77
|
+
:'all_pages' => :'AllPages',
|
|
78
|
+
:'pages_setup' => :'PagesSetup',
|
|
79
|
+
:'appearance' => :'Appearance',
|
|
80
|
+
:'password' => :'Password'
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Attribute type mapping.
|
|
85
|
+
def self.swagger_types
|
|
86
|
+
{
|
|
87
|
+
:'signature_type' => :'String',
|
|
88
|
+
:'page' => :'Integer',
|
|
89
|
+
:'all_pages' => :'BOOLEAN',
|
|
90
|
+
:'pages_setup' => :'PagesSetup',
|
|
91
|
+
:'appearance' => :'SignatureAppearance',
|
|
92
|
+
:'password' => :'String'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Initializes the object
|
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
98
|
+
def initialize(attributes = {})
|
|
99
|
+
return unless attributes.is_a?(Hash)
|
|
100
|
+
|
|
101
|
+
# convert string to symbol for hash key
|
|
102
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'SignatureType')
|
|
105
|
+
self.signature_type = attributes[:'SignatureType']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'Page')
|
|
109
|
+
self.page = attributes[:'Page']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'AllPages')
|
|
113
|
+
self.all_pages = attributes[:'AllPages']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'PagesSetup')
|
|
117
|
+
self.pages_setup = attributes[:'PagesSetup']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'Appearance')
|
|
121
|
+
self.appearance = attributes[:'Appearance']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'Password')
|
|
125
|
+
self.password = attributes[:'Password']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
131
|
+
# @return Array for valid properies with the reasons
|
|
132
|
+
def list_invalid_properties
|
|
133
|
+
invalid_properties = []
|
|
134
|
+
if @signature_type.nil?
|
|
135
|
+
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @all_pages.nil?
|
|
139
|
+
invalid_properties.push("invalid value for 'all_pages', all_pages cannot be nil.")
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
return invalid_properties
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Check to see if the all the properties in the model are valid
|
|
146
|
+
# @return true if the model is valid
|
|
147
|
+
def valid?
|
|
148
|
+
return false if @signature_type.nil?
|
|
149
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
150
|
+
return false unless signature_type_validator.valid?(@signature_type)
|
|
151
|
+
return false if @all_pages.nil?
|
|
152
|
+
return true
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
156
|
+
# @param [Object] signature_type Object to be assigned
|
|
157
|
+
def signature_type=(signature_type)
|
|
158
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
159
|
+
if signature_type.to_i == 0
|
|
160
|
+
unless validator.valid?(signature_type)
|
|
161
|
+
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
162
|
+
end
|
|
163
|
+
@signature_type = signature_type
|
|
164
|
+
else
|
|
165
|
+
@signature_type = validator.allowable_values[signature_type.to_i]
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Checks equality by comparing each attribute.
|
|
170
|
+
# @param [Object] Object to be compared
|
|
171
|
+
def ==(other)
|
|
172
|
+
return true if self.equal?(other)
|
|
173
|
+
self.class == other.class &&
|
|
174
|
+
signature_type == other.signature_type &&
|
|
175
|
+
page == other.page &&
|
|
176
|
+
all_pages == other.all_pages &&
|
|
177
|
+
pages_setup == other.pages_setup &&
|
|
178
|
+
appearance == other.appearance &&
|
|
179
|
+
password == other.password
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @see the `==` method
|
|
183
|
+
# @param [Object] Object to be compared
|
|
184
|
+
def eql?(other)
|
|
185
|
+
self == other
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Calculates hash code according to all attributes.
|
|
189
|
+
# @return [Fixnum] Hash code
|
|
190
|
+
def hash
|
|
191
|
+
[signature_type, page, all_pages, pages_setup, appearance, password].hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Downcases first letter.
|
|
195
|
+
# @return downcased string
|
|
196
|
+
def uncap(str)
|
|
197
|
+
str[0, 1].downcase + str[1..-1]
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Builds the object from hash
|
|
201
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
202
|
+
# @return [Object] Returns the model itself
|
|
203
|
+
def build_from_hash(attributes)
|
|
204
|
+
return nil unless attributes.is_a?(Hash)
|
|
205
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
206
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
|
207
|
+
value = attributes[pname]
|
|
208
|
+
if type =~ /\AArray<(.*)>/i
|
|
209
|
+
# check to ensure the input is an array given that the the attribute
|
|
210
|
+
# is documented as an array but the input is not
|
|
211
|
+
if value.is_a?(Array)
|
|
212
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
|
213
|
+
end
|
|
214
|
+
elsif !value.nil?
|
|
215
|
+
self.send("#{key}=", _deserialize(type, value))
|
|
216
|
+
end
|
|
217
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
self
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Deserializes the data based on type
|
|
224
|
+
# @param string type Data type
|
|
225
|
+
# @param string value Value to be deserialized
|
|
226
|
+
# @return [Object] Deserialized data
|
|
227
|
+
def _deserialize(type, value)
|
|
228
|
+
case type.to_sym
|
|
229
|
+
when :DateTime
|
|
230
|
+
Date.parse value
|
|
231
|
+
when :Date
|
|
232
|
+
Date.parse value
|
|
233
|
+
when :String
|
|
234
|
+
value.to_s
|
|
235
|
+
when :Integer
|
|
236
|
+
value.to_i
|
|
237
|
+
when :Float
|
|
238
|
+
value.to_f
|
|
239
|
+
when :BOOLEAN
|
|
240
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
241
|
+
true
|
|
242
|
+
else
|
|
243
|
+
false
|
|
244
|
+
end
|
|
245
|
+
when :Object
|
|
246
|
+
# generic object (usually a Hash), return directly
|
|
247
|
+
value
|
|
248
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
249
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
250
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
251
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
252
|
+
k_type = Regexp.last_match[:k_type]
|
|
253
|
+
v_type = Regexp.last_match[:v_type]
|
|
254
|
+
{}.tap do |hash|
|
|
255
|
+
value.each do |k, v|
|
|
256
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
else
|
|
260
|
+
# model
|
|
261
|
+
# Signature type fix
|
|
262
|
+
ttype = type
|
|
263
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
|
264
|
+
ttype = value[:signatureType] + 'Signature'
|
|
265
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
|
266
|
+
type = value[:type]
|
|
267
|
+
if type == 'Checkbox'
|
|
268
|
+
ttype = 'CheckboxFormFieldSignature'
|
|
269
|
+
end
|
|
270
|
+
if type == 'Text'
|
|
271
|
+
ttype = 'TextFormFieldSignature'
|
|
272
|
+
end
|
|
273
|
+
if type == 'Combobox'
|
|
274
|
+
ttype = 'ComboboxFormFieldSignature'
|
|
275
|
+
end
|
|
276
|
+
if type == 'DigitalSignature'
|
|
277
|
+
ttype = 'DigitalFormFieldSignature'
|
|
278
|
+
end
|
|
279
|
+
if type == 'Radio'
|
|
280
|
+
ttype = 'RadioButtonFormFieldSignature'
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
|
285
|
+
temp_model.build_from_hash(value)
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Returns the string representation of the object
|
|
290
|
+
# @return [String] String presentation of the object
|
|
291
|
+
def to_s
|
|
292
|
+
to_hash.to_s
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
296
|
+
# @return [Hash] Returns the object in the form of hash
|
|
297
|
+
def to_body
|
|
298
|
+
to_hash
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Returns the object in the form of hash
|
|
302
|
+
# @return [Hash] Returns the object in the form of hash
|
|
303
|
+
def to_hash
|
|
304
|
+
hash = {}
|
|
305
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
306
|
+
value = self.send(attr)
|
|
307
|
+
next if value.nil?
|
|
308
|
+
hash[param] = _to_hash(value)
|
|
309
|
+
end
|
|
310
|
+
hash
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Outputs non-array value in the form of hash
|
|
314
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
315
|
+
# @param [Object] value Any valid value
|
|
316
|
+
# @return [Hash] Returns the value in the form of hash
|
|
317
|
+
def _to_hash(value)
|
|
318
|
+
if value.is_a?(Array)
|
|
319
|
+
value.compact.map { |v| _to_hash(v) }
|
|
320
|
+
elsif value.is_a?(Hash)
|
|
321
|
+
{}.tap do |hash|
|
|
322
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
323
|
+
end
|
|
324
|
+
elsif value.respond_to? :to_hash
|
|
325
|
+
value.to_hash
|
|
326
|
+
else
|
|
327
|
+
value
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
end
|
|
@@ -308,7 +308,7 @@ module GroupDocsSignatureCloud
|
|
|
308
308
|
# @return true if the model is valid
|
|
309
309
|
def valid?
|
|
310
310
|
return false if @signature_type.nil?
|
|
311
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
311
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
312
312
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
313
313
|
return false if @all_pages.nil?
|
|
314
314
|
return false if @left.nil?
|
|
@@ -338,7 +338,7 @@ module GroupDocsSignatureCloud
|
|
|
338
338
|
# Custom attribute writer method checking allowed values (enum).
|
|
339
339
|
# @param [Object] signature_type Object to be assigned
|
|
340
340
|
def signature_type=(signature_type)
|
|
341
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
341
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
342
342
|
if signature_type.to_i == 0
|
|
343
343
|
unless validator.valid?(signature_type)
|
|
344
344
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -138,7 +138,7 @@ module GroupDocsSignatureCloud
|
|
|
138
138
|
# @return true if the model is valid
|
|
139
139
|
def valid?
|
|
140
140
|
return false if @signature_type.nil?
|
|
141
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
141
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
142
142
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
143
143
|
return false if @all_pages.nil?
|
|
144
144
|
return true
|
|
@@ -147,7 +147,7 @@ module GroupDocsSignatureCloud
|
|
|
147
147
|
# Custom attribute writer method checking allowed values (enum).
|
|
148
148
|
# @param [Object] signature_type Object to be assigned
|
|
149
149
|
def signature_type=(signature_type)
|
|
150
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
150
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
151
151
|
if signature_type.to_i == 0
|
|
152
152
|
unless validator.valid?(signature_type)
|
|
153
153
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -449,7 +449,7 @@ module GroupDocsSignatureCloud
|
|
|
449
449
|
# @return true if the model is valid
|
|
450
450
|
def valid?
|
|
451
451
|
return false if @signature_type.nil?
|
|
452
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
452
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
453
453
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
454
454
|
return false if @all_pages.nil?
|
|
455
455
|
return false if @left.nil?
|
|
@@ -493,7 +493,7 @@ module GroupDocsSignatureCloud
|
|
|
493
493
|
# Custom attribute writer method checking allowed values (enum).
|
|
494
494
|
# @param [Object] signature_type Object to be assigned
|
|
495
495
|
def signature_type=(signature_type)
|
|
496
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
496
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
497
497
|
if signature_type.to_i == 0
|
|
498
498
|
unless validator.valid?(signature_type)
|
|
499
499
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -374,7 +374,7 @@ module GroupDocsSignatureCloud
|
|
|
374
374
|
# @return true if the model is valid
|
|
375
375
|
def valid?
|
|
376
376
|
return false if @signature_type.nil?
|
|
377
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
377
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
378
378
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
379
379
|
return false if @all_pages.nil?
|
|
380
380
|
return false if @left.nil?
|
|
@@ -410,7 +410,7 @@ module GroupDocsSignatureCloud
|
|
|
410
410
|
# Custom attribute writer method checking allowed values (enum).
|
|
411
411
|
# @param [Object] signature_type Object to be assigned
|
|
412
412
|
def signature_type=(signature_type)
|
|
413
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
413
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
414
414
|
if signature_type.to_i == 0
|
|
415
415
|
unless validator.valid?(signature_type)
|
|
416
416
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -396,7 +396,7 @@ module GroupDocsSignatureCloud
|
|
|
396
396
|
# @return true if the model is valid
|
|
397
397
|
def valid?
|
|
398
398
|
return false if @signature_type.nil?
|
|
399
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
399
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
400
400
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
401
401
|
return false if @all_pages.nil?
|
|
402
402
|
return false if @left.nil?
|
|
@@ -436,7 +436,7 @@ module GroupDocsSignatureCloud
|
|
|
436
436
|
# Custom attribute writer method checking allowed values (enum).
|
|
437
437
|
# @param [Object] signature_type Object to be assigned
|
|
438
438
|
def signature_type=(signature_type)
|
|
439
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
439
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
440
440
|
if signature_type.to_i == 0
|
|
441
441
|
unless validator.valid?(signature_type)
|
|
442
442
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -207,7 +207,7 @@ module GroupDocsSignatureCloud
|
|
|
207
207
|
# @return true if the model is valid
|
|
208
208
|
def valid?
|
|
209
209
|
return false if @signature_type.nil?
|
|
210
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
210
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
211
211
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
212
212
|
return false if @is_signature.nil?
|
|
213
213
|
return false if @created_on.nil?
|
|
@@ -222,7 +222,7 @@ module GroupDocsSignatureCloud
|
|
|
222
222
|
# Custom attribute writer method checking allowed values (enum).
|
|
223
223
|
# @param [Object] signature_type Object to be assigned
|
|
224
224
|
def signature_type=(signature_type)
|
|
225
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
225
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
226
226
|
if signature_type.to_i == 0
|
|
227
227
|
unless validator.valid?(signature_type)
|
|
228
228
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -238,7 +238,7 @@ module GroupDocsSignatureCloud
|
|
|
238
238
|
# @return true if the model is valid
|
|
239
239
|
def valid?
|
|
240
240
|
return false if @signature_type.nil?
|
|
241
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
241
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
242
242
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
243
243
|
return false if @is_signature.nil?
|
|
244
244
|
return false if @created_on.nil?
|
|
@@ -256,7 +256,7 @@ module GroupDocsSignatureCloud
|
|
|
256
256
|
# Custom attribute writer method checking allowed values (enum).
|
|
257
257
|
# @param [Object] signature_type Object to be assigned
|
|
258
258
|
def signature_type=(signature_type)
|
|
259
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
259
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
260
260
|
if signature_type.to_i == 0
|
|
261
261
|
unless validator.valid?(signature_type)
|
|
262
262
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -225,7 +225,7 @@ module GroupDocsSignatureCloud
|
|
|
225
225
|
# @return true if the model is valid
|
|
226
226
|
def valid?
|
|
227
227
|
return false if @signature_type.nil?
|
|
228
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
228
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
229
229
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
230
230
|
return false if @is_signature.nil?
|
|
231
231
|
return false if @created_on.nil?
|
|
@@ -240,7 +240,7 @@ module GroupDocsSignatureCloud
|
|
|
240
240
|
# Custom attribute writer method checking allowed values (enum).
|
|
241
241
|
# @param [Object] signature_type Object to be assigned
|
|
242
242
|
def signature_type=(signature_type)
|
|
243
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
243
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
244
244
|
if signature_type.to_i == 0
|
|
245
245
|
unless validator.valid?(signature_type)
|
|
246
246
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -181,7 +181,7 @@ module GroupDocsSignatureCloud
|
|
|
181
181
|
# @return true if the model is valid
|
|
182
182
|
def valid?
|
|
183
183
|
return false if @signature_type.nil?
|
|
184
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
184
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
185
185
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
186
186
|
return false if @left.nil?
|
|
187
187
|
return false if @top.nil?
|
|
@@ -194,7 +194,7 @@ module GroupDocsSignatureCloud
|
|
|
194
194
|
# Custom attribute writer method checking allowed values (enum).
|
|
195
195
|
# @param [Object] signature_type Object to be assigned
|
|
196
196
|
def signature_type=(signature_type)
|
|
197
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
197
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
198
198
|
if signature_type.to_i == 0
|
|
199
199
|
unless validator.valid?(signature_type)
|
|
200
200
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -160,7 +160,7 @@ module GroupDocsSignatureCloud
|
|
|
160
160
|
# @return true if the model is valid
|
|
161
161
|
def valid?
|
|
162
162
|
return false if @signature_type.nil?
|
|
163
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
163
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
164
164
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
165
165
|
return false if @all_pages.nil?
|
|
166
166
|
return false if @match_type.nil?
|
|
@@ -172,7 +172,7 @@ module GroupDocsSignatureCloud
|
|
|
172
172
|
# Custom attribute writer method checking allowed values (enum).
|
|
173
173
|
# @param [Object] signature_type Object to be assigned
|
|
174
174
|
def signature_type=(signature_type)
|
|
175
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
175
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
176
176
|
if signature_type.to_i == 0
|
|
177
177
|
unless validator.valid?(signature_type)
|
|
178
178
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -201,7 +201,7 @@ module GroupDocsSignatureCloud
|
|
|
201
201
|
# @return true if the model is valid
|
|
202
202
|
def valid?
|
|
203
203
|
return false if @signature_type.nil?
|
|
204
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
204
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
205
205
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
206
206
|
return false if @all_pages.nil?
|
|
207
207
|
return true
|
|
@@ -210,7 +210,7 @@ module GroupDocsSignatureCloud
|
|
|
210
210
|
# Custom attribute writer method checking allowed values (enum).
|
|
211
211
|
# @param [Object] signature_type Object to be assigned
|
|
212
212
|
def signature_type=(signature_type)
|
|
213
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
213
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
214
214
|
if signature_type.to_i == 0
|
|
215
215
|
unless validator.valid?(signature_type)
|
|
216
216
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|