groupdocs_signature_cloud 20.7 → 22.6
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/api/file_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_signature_cloud/api/license_api.rb +169 -0
- data/lib/groupdocs_signature_cloud/api/preview_api.rb +217 -0
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
- data/lib/groupdocs_signature_cloud/api_error.rb +18 -5
- data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/border_line.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/color.rb +38 -5
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/consumption_result.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +35 -7
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +309 -0
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/error.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/error_details.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_info.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_version.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/files_list.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +445 -0
- data/lib/groupdocs_signature_cloud/models/format.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/image_appearance.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/info_result.rb +36 -6
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +38 -5
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/padding.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/page_info.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +339 -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 +277 -0
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +356 -0
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/save_options.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/search_result.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +47 -4
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +35 -7
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +47 -4
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +32 -4
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +50 -7
- data/lib/groupdocs_signature_cloud/models/signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +455 -0
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/update_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/update_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +20 -2
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +19 -1
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +21 -3
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- data/lib/groupdocs_signature_cloud.rb +21 -1
- metadata +26 -20
@@ -0,0 +1,309 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="digital_signature_appearance.rb">
|
4
|
+
# Copyright (c) 2003-2022 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
|
+
# Describes appearance of Signature Line for Digital Signature. One Signature Line could be applied for only one Digital Signature. Signature Line always is on the first page. This feature may be useful for .docx, .doc, .odt and .xlsx file formats.
|
32
|
+
class DigitalSignatureAppearance
|
33
|
+
|
34
|
+
# Specifies the type of appearance
|
35
|
+
attr_accessor :appearance_type
|
36
|
+
|
37
|
+
# Gets or sets a email that will be displayed in signature line.
|
38
|
+
attr_accessor :email
|
39
|
+
|
40
|
+
# Gets or sets signer name for signature line.
|
41
|
+
attr_accessor :signer
|
42
|
+
|
43
|
+
# Gets or sets a title for signature line.
|
44
|
+
attr_accessor :title
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
68
|
+
def self.attribute_map
|
69
|
+
{
|
70
|
+
:'appearance_type' => :'AppearanceType',
|
71
|
+
:'email' => :'Email',
|
72
|
+
:'signer' => :'Signer',
|
73
|
+
:'title' => :'Title'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# Attribute type mapping.
|
78
|
+
def self.swagger_types
|
79
|
+
{
|
80
|
+
:'appearance_type' => :'String',
|
81
|
+
:'email' => :'String',
|
82
|
+
:'signer' => :'String',
|
83
|
+
:'title' => :'String'
|
84
|
+
}
|
85
|
+
end
|
86
|
+
|
87
|
+
# Initializes the object
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
def initialize(attributes = {})
|
90
|
+
return unless attributes.is_a?(Hash)
|
91
|
+
|
92
|
+
# convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
|
+
|
95
|
+
if attributes.key?(:'AppearanceType')
|
96
|
+
self.appearance_type = attributes[:'AppearanceType']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'Email')
|
100
|
+
self.email = attributes[:'Email']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'Signer')
|
104
|
+
self.signer = attributes[:'Signer']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'Title')
|
108
|
+
self.title = attributes[:'Title']
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
114
|
+
# @return Array for valid properies with the reasons
|
115
|
+
def list_invalid_properties
|
116
|
+
invalid_properties = []
|
117
|
+
if @appearance_type.nil?
|
118
|
+
invalid_properties.push("invalid value for 'appearance_type', appearance_type cannot be nil.")
|
119
|
+
end
|
120
|
+
|
121
|
+
return invalid_properties
|
122
|
+
end
|
123
|
+
|
124
|
+
# Check to see if the all the properties in the model are valid
|
125
|
+
# @return true if the model is valid
|
126
|
+
def valid?
|
127
|
+
return false if @appearance_type.nil?
|
128
|
+
appearance_type_validator = EnumAttributeValidator.new('String', ["Undefined", "PdfTextAnnotation", "PdfTextSticker", "Image", "DigitalSignature", "PdfDigitalSignature"])
|
129
|
+
return false unless appearance_type_validator.valid?(@appearance_type)
|
130
|
+
return true
|
131
|
+
end
|
132
|
+
|
133
|
+
# Custom attribute writer method checking allowed values (enum).
|
134
|
+
# @param [Object] appearance_type Object to be assigned
|
135
|
+
def appearance_type=(appearance_type)
|
136
|
+
validator = EnumAttributeValidator.new('String', ["Undefined", "PdfTextAnnotation", "PdfTextSticker", "Image", "DigitalSignature", "PdfDigitalSignature"])
|
137
|
+
if appearance_type.to_i == 0
|
138
|
+
unless validator.valid?(appearance_type)
|
139
|
+
raise ArgumentError, "invalid value for 'appearance_type', must be one of #{validator.allowable_values}."
|
140
|
+
end
|
141
|
+
@appearance_type = appearance_type
|
142
|
+
else
|
143
|
+
@appearance_type = validator.allowable_values[appearance_type.to_i]
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# Checks equality by comparing each attribute.
|
148
|
+
# @param [Object] Object to be compared
|
149
|
+
def ==(other)
|
150
|
+
return true if self.equal?(other)
|
151
|
+
self.class == other.class &&
|
152
|
+
appearance_type == other.appearance_type &&
|
153
|
+
email == other.email &&
|
154
|
+
signer == other.signer &&
|
155
|
+
title == other.title
|
156
|
+
end
|
157
|
+
|
158
|
+
# @see the `==` method
|
159
|
+
# @param [Object] Object to be compared
|
160
|
+
def eql?(other)
|
161
|
+
self == other
|
162
|
+
end
|
163
|
+
|
164
|
+
# Calculates hash code according to all attributes.
|
165
|
+
# @return [Fixnum] Hash code
|
166
|
+
def hash
|
167
|
+
[appearance_type, email, signer, title].hash
|
168
|
+
end
|
169
|
+
|
170
|
+
# Downcases first letter.
|
171
|
+
# @return downcased string
|
172
|
+
def uncap(str)
|
173
|
+
str[0, 1].downcase + str[1..-1]
|
174
|
+
end
|
175
|
+
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def build_from_hash(attributes)
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
181
|
+
self.class.swagger_types.each_pair do |key, type|
|
182
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
183
|
+
value = attributes[pname]
|
184
|
+
if type =~ /\AArray<(.*)>/i
|
185
|
+
# check to ensure the input is an array given that the the attribute
|
186
|
+
# is documented as an array but the input is not
|
187
|
+
if value.is_a?(Array)
|
188
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
189
|
+
end
|
190
|
+
elsif !value.nil?
|
191
|
+
self.send("#{key}=", _deserialize(type, value))
|
192
|
+
end
|
193
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
194
|
+
end
|
195
|
+
|
196
|
+
self
|
197
|
+
end
|
198
|
+
|
199
|
+
# Deserializes the data based on type
|
200
|
+
# @param string type Data type
|
201
|
+
# @param string value Value to be deserialized
|
202
|
+
# @return [Object] Deserialized data
|
203
|
+
def _deserialize(type, value)
|
204
|
+
case type.to_sym
|
205
|
+
when :DateTime
|
206
|
+
Date.parse value
|
207
|
+
when :Date
|
208
|
+
Date.parse value
|
209
|
+
when :String
|
210
|
+
value.to_s
|
211
|
+
when :Integer
|
212
|
+
value.to_i
|
213
|
+
when :Float
|
214
|
+
value.to_f
|
215
|
+
when :BOOLEAN
|
216
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
217
|
+
true
|
218
|
+
else
|
219
|
+
false
|
220
|
+
end
|
221
|
+
when :Object
|
222
|
+
# generic object (usually a Hash), return directly
|
223
|
+
value
|
224
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
225
|
+
inner_type = Regexp.last_match[:inner_type]
|
226
|
+
value.map { |v| _deserialize(inner_type, v) }
|
227
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
228
|
+
k_type = Regexp.last_match[:k_type]
|
229
|
+
v_type = Regexp.last_match[:v_type]
|
230
|
+
{}.tap do |hash|
|
231
|
+
value.each do |k, v|
|
232
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
else
|
236
|
+
# model
|
237
|
+
# Signature type fix
|
238
|
+
ttype = type
|
239
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
240
|
+
ttype = value[:signatureType] + 'Signature'
|
241
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
242
|
+
type = value[:type]
|
243
|
+
if type == 'Checkbox'
|
244
|
+
ttype = 'CheckboxFormFieldSignature'
|
245
|
+
end
|
246
|
+
if type == 'Text'
|
247
|
+
ttype = 'TextFormFieldSignature'
|
248
|
+
end
|
249
|
+
if type == 'Combobox'
|
250
|
+
ttype = 'ComboboxFormFieldSignature'
|
251
|
+
end
|
252
|
+
if type == 'DigitalSignature'
|
253
|
+
ttype = 'DigitalFormFieldSignature'
|
254
|
+
end
|
255
|
+
if type == 'Radio'
|
256
|
+
ttype = 'RadioButtonFormFieldSignature'
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
261
|
+
temp_model.build_from_hash(value)
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the string representation of the object
|
266
|
+
# @return [String] String presentation of the object
|
267
|
+
def to_s
|
268
|
+
to_hash.to_s
|
269
|
+
end
|
270
|
+
|
271
|
+
# to_body is an alias to to_hash (backward compatibility)
|
272
|
+
# @return [Hash] Returns the object in the form of hash
|
273
|
+
def to_body
|
274
|
+
to_hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# Returns the object in the form of hash
|
278
|
+
# @return [Hash] Returns the object in the form of hash
|
279
|
+
def to_hash
|
280
|
+
hash = {}
|
281
|
+
self.class.attribute_map.each_pair do |attr, param|
|
282
|
+
value = self.send(attr)
|
283
|
+
next if value.nil?
|
284
|
+
hash[param] = _to_hash(value)
|
285
|
+
end
|
286
|
+
hash
|
287
|
+
end
|
288
|
+
|
289
|
+
# Outputs non-array value in the form of hash
|
290
|
+
# For object, use to_hash. Otherwise, just return the value
|
291
|
+
# @param [Object] value Any valid value
|
292
|
+
# @return [Hash] Returns the value in the form of hash
|
293
|
+
def _to_hash(value)
|
294
|
+
if value.is_a?(Array)
|
295
|
+
value.compact.map { |v| _to_hash(v) }
|
296
|
+
elsif value.is_a?(Hash)
|
297
|
+
{}.tap do |hash|
|
298
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
299
|
+
end
|
300
|
+
elsif value.respond_to? :to_hash
|
301
|
+
value.to_hash
|
302
|
+
else
|
303
|
+
value
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
end
|
308
|
+
|
309
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -186,6 +186,24 @@ module GroupDocsSignatureCloud
|
|
186
186
|
ttype = type
|
187
187
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
188
188
|
ttype = value[:signatureType] + 'Signature'
|
189
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
190
|
+
type = value[:type]
|
191
|
+
if type == 'Checkbox'
|
192
|
+
ttype = 'CheckboxFormFieldSignature'
|
193
|
+
end
|
194
|
+
if type == 'Text'
|
195
|
+
ttype = 'TextFormFieldSignature'
|
196
|
+
end
|
197
|
+
if type == 'Combobox'
|
198
|
+
ttype = 'ComboboxFormFieldSignature'
|
199
|
+
end
|
200
|
+
if type == 'DigitalSignature'
|
201
|
+
ttype = 'DigitalFormFieldSignature'
|
202
|
+
end
|
203
|
+
if type == 'Radio'
|
204
|
+
ttype = 'RadioButtonFormFieldSignature'
|
205
|
+
end
|
206
|
+
end
|
189
207
|
end
|
190
208
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
191
209
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="error.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -196,6 +196,24 @@ module GroupDocsSignatureCloud
|
|
196
196
|
ttype = type
|
197
197
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
198
198
|
ttype = value[:signatureType] + 'Signature'
|
199
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
200
|
+
type = value[:type]
|
201
|
+
if type == 'Checkbox'
|
202
|
+
ttype = 'CheckboxFormFieldSignature'
|
203
|
+
end
|
204
|
+
if type == 'Text'
|
205
|
+
ttype = 'TextFormFieldSignature'
|
206
|
+
end
|
207
|
+
if type == 'Combobox'
|
208
|
+
ttype = 'ComboboxFormFieldSignature'
|
209
|
+
end
|
210
|
+
if type == 'DigitalSignature'
|
211
|
+
ttype = 'DigitalFormFieldSignature'
|
212
|
+
end
|
213
|
+
if type == 'Radio'
|
214
|
+
ttype = 'RadioButtonFormFieldSignature'
|
215
|
+
end
|
216
|
+
end
|
199
217
|
end
|
200
218
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
201
219
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="error_details.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -181,6 +181,24 @@ module GroupDocsSignatureCloud
|
|
181
181
|
ttype = type
|
182
182
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
183
183
|
ttype = value[:signatureType] + 'Signature'
|
184
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
185
|
+
type = value[:type]
|
186
|
+
if type == 'Checkbox'
|
187
|
+
ttype = 'CheckboxFormFieldSignature'
|
188
|
+
end
|
189
|
+
if type == 'Text'
|
190
|
+
ttype = 'TextFormFieldSignature'
|
191
|
+
end
|
192
|
+
if type == 'Combobox'
|
193
|
+
ttype = 'ComboboxFormFieldSignature'
|
194
|
+
end
|
195
|
+
if type == 'DigitalSignature'
|
196
|
+
ttype = 'DigitalFormFieldSignature'
|
197
|
+
end
|
198
|
+
if type == 'Radio'
|
199
|
+
ttype = 'RadioButtonFormFieldSignature'
|
200
|
+
end
|
201
|
+
end
|
184
202
|
end
|
185
203
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
186
204
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_info.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -196,6 +196,24 @@ module GroupDocsSignatureCloud
|
|
196
196
|
ttype = type
|
197
197
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
198
198
|
ttype = value[:signatureType] + 'Signature'
|
199
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
200
|
+
type = value[:type]
|
201
|
+
if type == 'Checkbox'
|
202
|
+
ttype = 'CheckboxFormFieldSignature'
|
203
|
+
end
|
204
|
+
if type == 'Text'
|
205
|
+
ttype = 'TextFormFieldSignature'
|
206
|
+
end
|
207
|
+
if type == 'Combobox'
|
208
|
+
ttype = 'ComboboxFormFieldSignature'
|
209
|
+
end
|
210
|
+
if type == 'DigitalSignature'
|
211
|
+
ttype = 'DigitalFormFieldSignature'
|
212
|
+
end
|
213
|
+
if type == 'Radio'
|
214
|
+
ttype = 'RadioButtonFormFieldSignature'
|
215
|
+
end
|
216
|
+
end
|
199
217
|
end
|
200
218
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
201
219
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_version.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -241,6 +241,24 @@ module GroupDocsSignatureCloud
|
|
241
241
|
ttype = type
|
242
242
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
243
243
|
ttype = value[:signatureType] + 'Signature'
|
244
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
245
|
+
type = value[:type]
|
246
|
+
if type == 'Checkbox'
|
247
|
+
ttype = 'CheckboxFormFieldSignature'
|
248
|
+
end
|
249
|
+
if type == 'Text'
|
250
|
+
ttype = 'TextFormFieldSignature'
|
251
|
+
end
|
252
|
+
if type == 'Combobox'
|
253
|
+
ttype = 'ComboboxFormFieldSignature'
|
254
|
+
end
|
255
|
+
if type == 'DigitalSignature'
|
256
|
+
ttype = 'DigitalFormFieldSignature'
|
257
|
+
end
|
258
|
+
if type == 'Radio'
|
259
|
+
ttype = 'RadioButtonFormFieldSignature'
|
260
|
+
end
|
261
|
+
end
|
244
262
|
end
|
245
263
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
246
264
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_versions.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -168,6 +168,24 @@ module GroupDocsSignatureCloud
|
|
168
168
|
ttype = type
|
169
169
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
170
170
|
ttype = value[:signatureType] + 'Signature'
|
171
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
172
|
+
type = value[:type]
|
173
|
+
if type == 'Checkbox'
|
174
|
+
ttype = 'CheckboxFormFieldSignature'
|
175
|
+
end
|
176
|
+
if type == 'Text'
|
177
|
+
ttype = 'TextFormFieldSignature'
|
178
|
+
end
|
179
|
+
if type == 'Combobox'
|
180
|
+
ttype = 'ComboboxFormFieldSignature'
|
181
|
+
end
|
182
|
+
if type == 'DigitalSignature'
|
183
|
+
ttype = 'DigitalFormFieldSignature'
|
184
|
+
end
|
185
|
+
if type == 'Radio'
|
186
|
+
ttype = 'RadioButtonFormFieldSignature'
|
187
|
+
end
|
188
|
+
end
|
171
189
|
end
|
172
190
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
173
191
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_list.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -168,6 +168,24 @@ module GroupDocsSignatureCloud
|
|
168
168
|
ttype = type
|
169
169
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
170
170
|
ttype = value[:signatureType] + 'Signature'
|
171
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
172
|
+
type = value[:type]
|
173
|
+
if type == 'Checkbox'
|
174
|
+
ttype = 'CheckboxFormFieldSignature'
|
175
|
+
end
|
176
|
+
if type == 'Text'
|
177
|
+
ttype = 'TextFormFieldSignature'
|
178
|
+
end
|
179
|
+
if type == 'Combobox'
|
180
|
+
ttype = 'ComboboxFormFieldSignature'
|
181
|
+
end
|
182
|
+
if type == 'DigitalSignature'
|
183
|
+
ttype = 'DigitalFormFieldSignature'
|
184
|
+
end
|
185
|
+
if type == 'Radio'
|
186
|
+
ttype = 'RadioButtonFormFieldSignature'
|
187
|
+
end
|
188
|
+
end
|
171
189
|
end
|
172
190
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
173
191
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -180,6 +180,24 @@ module GroupDocsSignatureCloud
|
|
180
180
|
ttype = type
|
181
181
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
182
182
|
ttype = value[:signatureType] + 'Signature'
|
183
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
184
|
+
type = value[:type]
|
185
|
+
if type == 'Checkbox'
|
186
|
+
ttype = 'CheckboxFormFieldSignature'
|
187
|
+
end
|
188
|
+
if type == 'Text'
|
189
|
+
ttype = 'TextFormFieldSignature'
|
190
|
+
end
|
191
|
+
if type == 'Combobox'
|
192
|
+
ttype = 'ComboboxFormFieldSignature'
|
193
|
+
end
|
194
|
+
if type == 'DigitalSignature'
|
195
|
+
ttype = 'DigitalFormFieldSignature'
|
196
|
+
end
|
197
|
+
if type == 'Radio'
|
198
|
+
ttype = 'RadioButtonFormFieldSignature'
|
199
|
+
end
|
200
|
+
end
|
183
201
|
end
|
184
202
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
185
203
|
temp_model.build_from_hash(value)
|