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
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="signature.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
|
@@ -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"])
|
210
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
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"])
|
225
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
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}."
|
@@ -333,6 +333,24 @@ module GroupDocsSignatureCloud
|
|
333
333
|
ttype = type
|
334
334
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
335
335
|
ttype = value[:signatureType] + 'Signature'
|
336
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
337
|
+
type = value[:type]
|
338
|
+
if type == 'Checkbox'
|
339
|
+
ttype = 'CheckboxFormFieldSignature'
|
340
|
+
end
|
341
|
+
if type == 'Text'
|
342
|
+
ttype = 'TextFormFieldSignature'
|
343
|
+
end
|
344
|
+
if type == 'Combobox'
|
345
|
+
ttype = 'ComboboxFormFieldSignature'
|
346
|
+
end
|
347
|
+
if type == 'DigitalSignature'
|
348
|
+
ttype = 'DigitalFormFieldSignature'
|
349
|
+
end
|
350
|
+
if type == 'Radio'
|
351
|
+
ttype = 'RadioButtonFormFieldSignature'
|
352
|
+
end
|
353
|
+
end
|
336
354
|
end
|
337
355
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
338
356
|
temp_model.build_from_hash(value)
|
@@ -0,0 +1,279 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="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
|
+
# Appearance is a base class for keeping additional information for various options
|
32
|
+
class SignatureAppearance
|
33
|
+
|
34
|
+
# Specifies the type of appearance
|
35
|
+
attr_accessor :appearance_type
|
36
|
+
class EnumAttributeValidator
|
37
|
+
attr_reader :datatype
|
38
|
+
attr_reader :allowable_values
|
39
|
+
|
40
|
+
def initialize(datatype, allowable_values)
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
42
|
+
case datatype.to_s
|
43
|
+
when /Integer/i
|
44
|
+
value.to_i
|
45
|
+
when /Float/i
|
46
|
+
value.to_f
|
47
|
+
else
|
48
|
+
value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def valid?(value)
|
54
|
+
!value || allowable_values.include?(value)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
59
|
+
def self.attribute_map
|
60
|
+
{
|
61
|
+
:'appearance_type' => :'AppearanceType'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.swagger_types
|
67
|
+
{
|
68
|
+
:'appearance_type' => :'String'
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
return unless attributes.is_a?(Hash)
|
76
|
+
|
77
|
+
# convert string to symbol for hash key
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
|
+
|
80
|
+
if attributes.key?(:'AppearanceType')
|
81
|
+
self.appearance_type = attributes[:'AppearanceType']
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properies with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = []
|
90
|
+
if @appearance_type.nil?
|
91
|
+
invalid_properties.push("invalid value for 'appearance_type', appearance_type cannot be nil.")
|
92
|
+
end
|
93
|
+
|
94
|
+
return invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
return false if @appearance_type.nil?
|
101
|
+
appearance_type_validator = EnumAttributeValidator.new('String', ["Undefined", "PdfTextAnnotation", "PdfTextSticker", "Image", "DigitalSignature", "PdfDigitalSignature"])
|
102
|
+
return false unless appearance_type_validator.valid?(@appearance_type)
|
103
|
+
return true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method checking allowed values (enum).
|
107
|
+
# @param [Object] appearance_type Object to be assigned
|
108
|
+
def appearance_type=(appearance_type)
|
109
|
+
validator = EnumAttributeValidator.new('String', ["Undefined", "PdfTextAnnotation", "PdfTextSticker", "Image", "DigitalSignature", "PdfDigitalSignature"])
|
110
|
+
if appearance_type.to_i == 0
|
111
|
+
unless validator.valid?(appearance_type)
|
112
|
+
raise ArgumentError, "invalid value for 'appearance_type', must be one of #{validator.allowable_values}."
|
113
|
+
end
|
114
|
+
@appearance_type = appearance_type
|
115
|
+
else
|
116
|
+
@appearance_type = validator.allowable_values[appearance_type.to_i]
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Checks equality by comparing each attribute.
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def ==(other)
|
123
|
+
return true if self.equal?(other)
|
124
|
+
self.class == other.class &&
|
125
|
+
appearance_type == other.appearance_type
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(other)
|
131
|
+
self == other
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Fixnum] Hash code
|
136
|
+
def hash
|
137
|
+
[appearance_type].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Downcases first letter.
|
141
|
+
# @return downcased string
|
142
|
+
def uncap(str)
|
143
|
+
str[0, 1].downcase + str[1..-1]
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def build_from_hash(attributes)
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
151
|
+
self.class.swagger_types.each_pair do |key, type|
|
152
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
153
|
+
value = attributes[pname]
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if value.is_a?(Array)
|
158
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
elsif !value.nil?
|
161
|
+
self.send("#{key}=", _deserialize(type, value))
|
162
|
+
end
|
163
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
164
|
+
end
|
165
|
+
|
166
|
+
self
|
167
|
+
end
|
168
|
+
|
169
|
+
# Deserializes the data based on type
|
170
|
+
# @param string type Data type
|
171
|
+
# @param string value Value to be deserialized
|
172
|
+
# @return [Object] Deserialized data
|
173
|
+
def _deserialize(type, value)
|
174
|
+
case type.to_sym
|
175
|
+
when :DateTime
|
176
|
+
Date.parse value
|
177
|
+
when :Date
|
178
|
+
Date.parse value
|
179
|
+
when :String
|
180
|
+
value.to_s
|
181
|
+
when :Integer
|
182
|
+
value.to_i
|
183
|
+
when :Float
|
184
|
+
value.to_f
|
185
|
+
when :BOOLEAN
|
186
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
187
|
+
true
|
188
|
+
else
|
189
|
+
false
|
190
|
+
end
|
191
|
+
when :Object
|
192
|
+
# generic object (usually a Hash), return directly
|
193
|
+
value
|
194
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
195
|
+
inner_type = Regexp.last_match[:inner_type]
|
196
|
+
value.map { |v| _deserialize(inner_type, v) }
|
197
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
198
|
+
k_type = Regexp.last_match[:k_type]
|
199
|
+
v_type = Regexp.last_match[:v_type]
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each do |k, v|
|
202
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
else
|
206
|
+
# model
|
207
|
+
# Signature type fix
|
208
|
+
ttype = type
|
209
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
210
|
+
ttype = value[:signatureType] + 'Signature'
|
211
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
212
|
+
type = value[:type]
|
213
|
+
if type == 'Checkbox'
|
214
|
+
ttype = 'CheckboxFormFieldSignature'
|
215
|
+
end
|
216
|
+
if type == 'Text'
|
217
|
+
ttype = 'TextFormFieldSignature'
|
218
|
+
end
|
219
|
+
if type == 'Combobox'
|
220
|
+
ttype = 'ComboboxFormFieldSignature'
|
221
|
+
end
|
222
|
+
if type == 'DigitalSignature'
|
223
|
+
ttype = 'DigitalFormFieldSignature'
|
224
|
+
end
|
225
|
+
if type == 'Radio'
|
226
|
+
ttype = 'RadioButtonFormFieldSignature'
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
231
|
+
temp_model.build_from_hash(value)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# Returns the string representation of the object
|
236
|
+
# @return [String] String presentation of the object
|
237
|
+
def to_s
|
238
|
+
to_hash.to_s
|
239
|
+
end
|
240
|
+
|
241
|
+
# to_body is an alias to to_hash (backward compatibility)
|
242
|
+
# @return [Hash] Returns the object in the form of hash
|
243
|
+
def to_body
|
244
|
+
to_hash
|
245
|
+
end
|
246
|
+
|
247
|
+
# Returns the object in the form of hash
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
249
|
+
def to_hash
|
250
|
+
hash = {}
|
251
|
+
self.class.attribute_map.each_pair do |attr, param|
|
252
|
+
value = self.send(attr)
|
253
|
+
next if value.nil?
|
254
|
+
hash[param] = _to_hash(value)
|
255
|
+
end
|
256
|
+
hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Outputs non-array value in the form of hash
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
261
|
+
# @param [Object] value Any valid value
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
263
|
+
def _to_hash(value)
|
264
|
+
if value.is_a?(Array)
|
265
|
+
value.compact.map { |v| _to_hash(v) }
|
266
|
+
elsif value.is_a?(Hash)
|
267
|
+
{}.tap do |hash|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
269
|
+
end
|
270
|
+
elsif value.respond_to? :to_hash
|
271
|
+
value.to_hash
|
272
|
+
else
|
273
|
+
value
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="signature_font.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
|
@@ -226,6 +226,24 @@ module GroupDocsSignatureCloud
|
|
226
226
|
ttype = type
|
227
227
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
228
228
|
ttype = value[:signatureType] + 'Signature'
|
229
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
230
|
+
type = value[:type]
|
231
|
+
if type == 'Checkbox'
|
232
|
+
ttype = 'CheckboxFormFieldSignature'
|
233
|
+
end
|
234
|
+
if type == 'Text'
|
235
|
+
ttype = 'TextFormFieldSignature'
|
236
|
+
end
|
237
|
+
if type == 'Combobox'
|
238
|
+
ttype = 'ComboboxFormFieldSignature'
|
239
|
+
end
|
240
|
+
if type == 'DigitalSignature'
|
241
|
+
ttype = 'DigitalFormFieldSignature'
|
242
|
+
end
|
243
|
+
if type == 'Radio'
|
244
|
+
ttype = 'RadioButtonFormFieldSignature'
|
245
|
+
end
|
246
|
+
end
|
229
247
|
end
|
230
248
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
231
249
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="solid_brush.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
|
@@ -176,6 +176,24 @@ module GroupDocsSignatureCloud
|
|
176
176
|
ttype = type
|
177
177
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
178
178
|
ttype = value[:signatureType] + 'Signature'
|
179
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
180
|
+
type = value[:type]
|
181
|
+
if type == 'Checkbox'
|
182
|
+
ttype = 'CheckboxFormFieldSignature'
|
183
|
+
end
|
184
|
+
if type == 'Text'
|
185
|
+
ttype = 'TextFormFieldSignature'
|
186
|
+
end
|
187
|
+
if type == 'Combobox'
|
188
|
+
ttype = 'ComboboxFormFieldSignature'
|
189
|
+
end
|
190
|
+
if type == 'DigitalSignature'
|
191
|
+
ttype = 'DigitalFormFieldSignature'
|
192
|
+
end
|
193
|
+
if type == 'Radio'
|
194
|
+
ttype = 'RadioButtonFormFieldSignature'
|
195
|
+
end
|
196
|
+
end
|
179
197
|
end
|
180
198
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
181
199
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="stamp_line.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
|
@@ -313,6 +313,24 @@ module GroupDocsSignatureCloud
|
|
313
313
|
ttype = type
|
314
314
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
315
315
|
ttype = value[:signatureType] + 'Signature'
|
316
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
317
|
+
type = value[:type]
|
318
|
+
if type == 'Checkbox'
|
319
|
+
ttype = 'CheckboxFormFieldSignature'
|
320
|
+
end
|
321
|
+
if type == 'Text'
|
322
|
+
ttype = 'TextFormFieldSignature'
|
323
|
+
end
|
324
|
+
if type == 'Combobox'
|
325
|
+
ttype = 'ComboboxFormFieldSignature'
|
326
|
+
end
|
327
|
+
if type == 'DigitalSignature'
|
328
|
+
ttype = 'DigitalFormFieldSignature'
|
329
|
+
end
|
330
|
+
if type == 'Radio'
|
331
|
+
ttype = 'RadioButtonFormFieldSignature'
|
332
|
+
end
|
333
|
+
end
|
316
334
|
end
|
317
335
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
318
336
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_exist.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
|
@@ -171,6 +171,24 @@ module GroupDocsSignatureCloud
|
|
171
171
|
ttype = type
|
172
172
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
173
173
|
ttype = value[:signatureType] + 'Signature'
|
174
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
175
|
+
type = value[:type]
|
176
|
+
if type == 'Checkbox'
|
177
|
+
ttype = 'CheckboxFormFieldSignature'
|
178
|
+
end
|
179
|
+
if type == 'Text'
|
180
|
+
ttype = 'TextFormFieldSignature'
|
181
|
+
end
|
182
|
+
if type == 'Combobox'
|
183
|
+
ttype = 'ComboboxFormFieldSignature'
|
184
|
+
end
|
185
|
+
if type == 'DigitalSignature'
|
186
|
+
ttype = 'DigitalFormFieldSignature'
|
187
|
+
end
|
188
|
+
if type == 'Radio'
|
189
|
+
ttype = 'RadioButtonFormFieldSignature'
|
190
|
+
end
|
191
|
+
end
|
174
192
|
end
|
175
193
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
176
194
|
temp_model.build_from_hash(value)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_file.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
|
@@ -216,6 +216,24 @@ module GroupDocsSignatureCloud
|
|
216
216
|
ttype = type
|
217
217
|
if value.is_a?(Hash) and !value[:signatureType].nil?
|
218
218
|
ttype = value[:signatureType] + 'Signature'
|
219
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
220
|
+
type = value[:type]
|
221
|
+
if type == 'Checkbox'
|
222
|
+
ttype = 'CheckboxFormFieldSignature'
|
223
|
+
end
|
224
|
+
if type == 'Text'
|
225
|
+
ttype = 'TextFormFieldSignature'
|
226
|
+
end
|
227
|
+
if type == 'Combobox'
|
228
|
+
ttype = 'ComboboxFormFieldSignature'
|
229
|
+
end
|
230
|
+
if type == 'DigitalSignature'
|
231
|
+
ttype = 'DigitalFormFieldSignature'
|
232
|
+
end
|
233
|
+
if type == 'Radio'
|
234
|
+
ttype = 'RadioButtonFormFieldSignature'
|
235
|
+
end
|
236
|
+
end
|
219
237
|
end
|
220
238
|
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
221
239
|
temp_model.build_from_hash(value)
|