groupdocs_signature_cloud 19.5 → 20.7
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.rb +9 -1
- data/lib/groupdocs_signature_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +198 -4
- 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 +1 -1
- data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +140 -36
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/border_line.rb +22 -7
- data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +271 -0
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +258 -0
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +231 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +127 -64
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +411 -0
- data/lib/groupdocs_signature_cloud/models/info_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +140 -36
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/search_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +33 -125
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +114 -59
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +32 -53
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +42 -134
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +29 -5
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +32 -53
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +31 -108
- data/lib/groupdocs_signature_cloud/models/signature.rb +130 -36
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +406 -0
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +9 -9
- data/lib/groupdocs_signature_cloud/models/update_options.rb +356 -0
- data/lib/groupdocs_signature_cloud/models/update_result.rb +258 -0
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +231 -0
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +8 -39
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +2 -33
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- metadata +10 -2
@@ -0,0 +1,231 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="update_settings.rb">
|
4
|
+
# Copyright (c) 2003-2020 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
|
+
# Defines update sign document settings
|
32
|
+
class UpdateSettings
|
33
|
+
|
34
|
+
# File info
|
35
|
+
attr_accessor :file_info
|
36
|
+
|
37
|
+
# Gets or sets options to perform signatures update
|
38
|
+
attr_accessor :options
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'file_info' => :'FileInfo',
|
44
|
+
:'options' => :'Options'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
:'file_info' => :'FileInfo',
|
52
|
+
:'options' => :'Array<UpdateOptions>'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
return unless attributes.is_a?(Hash)
|
60
|
+
|
61
|
+
# convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
|
+
|
64
|
+
if attributes.key?(:'FileInfo')
|
65
|
+
self.file_info = attributes[:'FileInfo']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'Options')
|
69
|
+
if (value = attributes[:'Options']).is_a?(Array)
|
70
|
+
self.options = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properies with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = []
|
80
|
+
return invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
return true
|
87
|
+
end
|
88
|
+
|
89
|
+
# Checks equality by comparing each attribute.
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def ==(other)
|
92
|
+
return true if self.equal?(other)
|
93
|
+
self.class == other.class &&
|
94
|
+
file_info == other.file_info &&
|
95
|
+
options == other.options
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(other)
|
101
|
+
self == other
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Fixnum] Hash code
|
106
|
+
def hash
|
107
|
+
[file_info, options].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Downcases first letter.
|
111
|
+
# @return downcased string
|
112
|
+
def uncap(str)
|
113
|
+
str[0, 1].downcase + str[1..-1]
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
123
|
+
value = attributes[pname]
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if value.is_a?(Array)
|
128
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !value.nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, value))
|
132
|
+
end
|
133
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :DateTime
|
146
|
+
Date.parse value
|
147
|
+
when :Date
|
148
|
+
Date.parse value
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :BOOLEAN
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else
|
176
|
+
# model
|
177
|
+
# Signature type fix
|
178
|
+
ttype = type
|
179
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
180
|
+
ttype = value[:signatureType] + 'Signature'
|
181
|
+
end
|
182
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
183
|
+
temp_model.build_from_hash(value)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the string representation of the object
|
188
|
+
# @return [String] String presentation of the object
|
189
|
+
def to_s
|
190
|
+
to_hash.to_s
|
191
|
+
end
|
192
|
+
|
193
|
+
# to_body is an alias to to_hash (backward compatibility)
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_body
|
196
|
+
to_hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Returns the object in the form of hash
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_hash
|
202
|
+
hash = {}
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
204
|
+
value = self.send(attr)
|
205
|
+
next if value.nil?
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="verify_barcode_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
# Defines options to verify Barcode signature within a document
|
32
32
|
class VerifyBarcodeOptions
|
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
|
|
@@ -79,7 +76,6 @@ module GroupDocsSignatureCloud
|
|
79
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
77
|
def self.attribute_map
|
81
78
|
{
|
82
|
-
:'document_type' => :'DocumentType',
|
83
79
|
:'signature_type' => :'SignatureType',
|
84
80
|
:'page' => :'Page',
|
85
81
|
:'all_pages' => :'AllPages',
|
@@ -93,7 +89,6 @@ module GroupDocsSignatureCloud
|
|
93
89
|
# Attribute type mapping.
|
94
90
|
def self.swagger_types
|
95
91
|
{
|
96
|
-
:'document_type' => :'String',
|
97
92
|
:'signature_type' => :'String',
|
98
93
|
:'page' => :'Integer',
|
99
94
|
:'all_pages' => :'BOOLEAN',
|
@@ -112,10 +107,6 @@ module GroupDocsSignatureCloud
|
|
112
107
|
# convert string to symbol for hash key
|
113
108
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
114
109
|
|
115
|
-
if attributes.key?(:'DocumentType')
|
116
|
-
self.document_type = attributes[:'DocumentType']
|
117
|
-
end
|
118
|
-
|
119
110
|
if attributes.key?(:'SignatureType')
|
120
111
|
self.signature_type = attributes[:'SignatureType']
|
121
112
|
end
|
@@ -150,10 +141,6 @@ module GroupDocsSignatureCloud
|
|
150
141
|
# @return Array for valid properies with the reasons
|
151
142
|
def list_invalid_properties
|
152
143
|
invalid_properties = []
|
153
|
-
if @document_type.nil?
|
154
|
-
invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
|
155
|
-
end
|
156
|
-
|
157
144
|
if @signature_type.nil?
|
158
145
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
159
146
|
end
|
@@ -172,9 +159,6 @@ module GroupDocsSignatureCloud
|
|
172
159
|
# Check to see if the all the properties in the model are valid
|
173
160
|
# @return true if the model is valid
|
174
161
|
def valid?
|
175
|
-
return false if @document_type.nil?
|
176
|
-
document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
177
|
-
return false unless document_type_validator.valid?(@document_type)
|
178
162
|
return false if @signature_type.nil?
|
179
163
|
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
180
164
|
return false unless signature_type_validator.valid?(@signature_type)
|
@@ -185,20 +169,6 @@ module GroupDocsSignatureCloud
|
|
185
169
|
return true
|
186
170
|
end
|
187
171
|
|
188
|
-
# Custom attribute writer method checking allowed values (enum).
|
189
|
-
# @param [Object] document_type Object to be assigned
|
190
|
-
def document_type=(document_type)
|
191
|
-
validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
192
|
-
if document_type.to_i == 0
|
193
|
-
unless validator.valid?(document_type)
|
194
|
-
raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
|
195
|
-
end
|
196
|
-
@document_type = document_type
|
197
|
-
else
|
198
|
-
@document_type = validator.allowable_values[document_type.to_i]
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
172
|
# Custom attribute writer method checking allowed values (enum).
|
203
173
|
# @param [Object] signature_type Object to be assigned
|
204
174
|
def signature_type=(signature_type)
|
@@ -232,7 +202,6 @@ module GroupDocsSignatureCloud
|
|
232
202
|
def ==(other)
|
233
203
|
return true if self.equal?(other)
|
234
204
|
self.class == other.class &&
|
235
|
-
document_type == other.document_type &&
|
236
205
|
signature_type == other.signature_type &&
|
237
206
|
page == other.page &&
|
238
207
|
all_pages == other.all_pages &&
|
@@ -251,7 +220,7 @@ module GroupDocsSignatureCloud
|
|
251
220
|
# Calculates hash code according to all attributes.
|
252
221
|
# @return [Fixnum] Hash code
|
253
222
|
def hash
|
254
|
-
[
|
223
|
+
[signature_type, page, all_pages, pages_setup, text, match_type, barcode_type].hash
|
255
224
|
end
|
256
225
|
|
257
226
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="verify_digital_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
# Defines options to verify Digital signature within a document
|
32
32
|
class VerifyDigitalOptions
|
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
|
|
@@ -50,7 +47,7 @@ module GroupDocsSignatureCloud
|
|
50
47
|
attr_accessor :password
|
51
48
|
|
52
49
|
# File Guid of Digital Certificate
|
53
|
-
attr_accessor :
|
50
|
+
attr_accessor :certificate_file_path
|
54
51
|
|
55
52
|
# Comments of Digital Signature to validate Suitable for Spreadsheet and Words Processing document types
|
56
53
|
attr_accessor :comments
|
@@ -94,13 +91,12 @@ module GroupDocsSignatureCloud
|
|
94
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
95
92
|
def self.attribute_map
|
96
93
|
{
|
97
|
-
:'document_type' => :'DocumentType',
|
98
94
|
:'signature_type' => :'SignatureType',
|
99
95
|
:'page' => :'Page',
|
100
96
|
:'all_pages' => :'AllPages',
|
101
97
|
:'pages_setup' => :'PagesSetup',
|
102
98
|
:'password' => :'Password',
|
103
|
-
:'
|
99
|
+
:'certificate_file_path' => :'CertificateFilePath',
|
104
100
|
:'comments' => :'Comments',
|
105
101
|
:'sign_date_time_from' => :'SignDateTimeFrom',
|
106
102
|
:'sign_date_time_to' => :'SignDateTimeTo',
|
@@ -113,13 +109,12 @@ module GroupDocsSignatureCloud
|
|
113
109
|
# Attribute type mapping.
|
114
110
|
def self.swagger_types
|
115
111
|
{
|
116
|
-
:'document_type' => :'String',
|
117
112
|
:'signature_type' => :'String',
|
118
113
|
:'page' => :'Integer',
|
119
114
|
:'all_pages' => :'BOOLEAN',
|
120
115
|
:'pages_setup' => :'PagesSetup',
|
121
116
|
:'password' => :'String',
|
122
|
-
:'
|
117
|
+
:'certificate_file_path' => :'String',
|
123
118
|
:'comments' => :'String',
|
124
119
|
:'sign_date_time_from' => :'DateTime',
|
125
120
|
:'sign_date_time_to' => :'DateTime',
|
@@ -137,10 +132,6 @@ module GroupDocsSignatureCloud
|
|
137
132
|
# convert string to symbol for hash key
|
138
133
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
139
134
|
|
140
|
-
if attributes.key?(:'DocumentType')
|
141
|
-
self.document_type = attributes[:'DocumentType']
|
142
|
-
end
|
143
|
-
|
144
135
|
if attributes.key?(:'SignatureType')
|
145
136
|
self.signature_type = attributes[:'SignatureType']
|
146
137
|
end
|
@@ -161,8 +152,8 @@ module GroupDocsSignatureCloud
|
|
161
152
|
self.password = attributes[:'Password']
|
162
153
|
end
|
163
154
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
155
|
+
if attributes.key?(:'CertificateFilePath')
|
156
|
+
self.certificate_file_path = attributes[:'CertificateFilePath']
|
166
157
|
end
|
167
158
|
|
168
159
|
if attributes.key?(:'Comments')
|
@@ -195,10 +186,6 @@ module GroupDocsSignatureCloud
|
|
195
186
|
# @return Array for valid properies with the reasons
|
196
187
|
def list_invalid_properties
|
197
188
|
invalid_properties = []
|
198
|
-
if @document_type.nil?
|
199
|
-
invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
|
200
|
-
end
|
201
|
-
|
202
189
|
if @signature_type.nil?
|
203
190
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
204
191
|
end
|
@@ -213,9 +200,6 @@ module GroupDocsSignatureCloud
|
|
213
200
|
# Check to see if the all the properties in the model are valid
|
214
201
|
# @return true if the model is valid
|
215
202
|
def valid?
|
216
|
-
return false if @document_type.nil?
|
217
|
-
document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
218
|
-
return false unless document_type_validator.valid?(@document_type)
|
219
203
|
return false if @signature_type.nil?
|
220
204
|
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
221
205
|
return false unless signature_type_validator.valid?(@signature_type)
|
@@ -223,20 +207,6 @@ module GroupDocsSignatureCloud
|
|
223
207
|
return true
|
224
208
|
end
|
225
209
|
|
226
|
-
# Custom attribute writer method checking allowed values (enum).
|
227
|
-
# @param [Object] document_type Object to be assigned
|
228
|
-
def document_type=(document_type)
|
229
|
-
validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
230
|
-
if document_type.to_i == 0
|
231
|
-
unless validator.valid?(document_type)
|
232
|
-
raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
|
233
|
-
end
|
234
|
-
@document_type = document_type
|
235
|
-
else
|
236
|
-
@document_type = validator.allowable_values[document_type.to_i]
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
210
|
# Custom attribute writer method checking allowed values (enum).
|
241
211
|
# @param [Object] signature_type Object to be assigned
|
242
212
|
def signature_type=(signature_type)
|
@@ -256,13 +226,12 @@ module GroupDocsSignatureCloud
|
|
256
226
|
def ==(other)
|
257
227
|
return true if self.equal?(other)
|
258
228
|
self.class == other.class &&
|
259
|
-
document_type == other.document_type &&
|
260
229
|
signature_type == other.signature_type &&
|
261
230
|
page == other.page &&
|
262
231
|
all_pages == other.all_pages &&
|
263
232
|
pages_setup == other.pages_setup &&
|
264
233
|
password == other.password &&
|
265
|
-
|
234
|
+
certificate_file_path == other.certificate_file_path &&
|
266
235
|
comments == other.comments &&
|
267
236
|
sign_date_time_from == other.sign_date_time_from &&
|
268
237
|
sign_date_time_to == other.sign_date_time_to &&
|
@@ -280,7 +249,7 @@ module GroupDocsSignatureCloud
|
|
280
249
|
# Calculates hash code according to all attributes.
|
281
250
|
# @return [Fixnum] Hash code
|
282
251
|
def hash
|
283
|
-
[
|
252
|
+
[signature_type, page, all_pages, pages_setup, password, certificate_file_path, comments, sign_date_time_from, sign_date_time_to, reason, contact, location].hash
|
284
253
|
end
|
285
254
|
|
286
255
|
# Downcases first letter.
|