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
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="radial_gradient_brush.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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="save_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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_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 Search barcode signature within a document
|
32
32
|
class SearchBarcodeOptions
|
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, barcode_type, text, match_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="search_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 search Digital signature within a document
|
32
32
|
class SearchDigitalOptions
|
33
33
|
|
34
|
-
# Specifies the type of document to process
|
35
|
-
attr_accessor :document_type
|
36
|
-
|
37
34
|
# Specifies the signature type of processing
|
38
35
|
attr_accessor :signature_type
|
39
36
|
|
@@ -70,7 +67,6 @@ module GroupDocsSignatureCloud
|
|
70
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
68
|
def self.attribute_map
|
72
69
|
{
|
73
|
-
:'document_type' => :'DocumentType',
|
74
70
|
:'signature_type' => :'SignatureType',
|
75
71
|
:'page' => :'Page',
|
76
72
|
:'all_pages' => :'AllPages',
|
@@ -81,7 +77,6 @@ module GroupDocsSignatureCloud
|
|
81
77
|
# Attribute type mapping.
|
82
78
|
def self.swagger_types
|
83
79
|
{
|
84
|
-
:'document_type' => :'String',
|
85
80
|
:'signature_type' => :'String',
|
86
81
|
:'page' => :'Integer',
|
87
82
|
:'all_pages' => :'BOOLEAN',
|
@@ -97,10 +92,6 @@ module GroupDocsSignatureCloud
|
|
97
92
|
# convert string to symbol for hash key
|
98
93
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
99
94
|
|
100
|
-
if attributes.key?(:'DocumentType')
|
101
|
-
self.document_type = attributes[:'DocumentType']
|
102
|
-
end
|
103
|
-
|
104
95
|
if attributes.key?(:'SignatureType')
|
105
96
|
self.signature_type = attributes[:'SignatureType']
|
106
97
|
end
|
@@ -123,10 +114,6 @@ module GroupDocsSignatureCloud
|
|
123
114
|
# @return Array for valid properies with the reasons
|
124
115
|
def list_invalid_properties
|
125
116
|
invalid_properties = []
|
126
|
-
if @document_type.nil?
|
127
|
-
invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
|
128
|
-
end
|
129
|
-
|
130
117
|
if @signature_type.nil?
|
131
118
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
132
119
|
end
|
@@ -141,9 +128,6 @@ module GroupDocsSignatureCloud
|
|
141
128
|
# Check to see if the all the properties in the model are valid
|
142
129
|
# @return true if the model is valid
|
143
130
|
def valid?
|
144
|
-
return false if @document_type.nil?
|
145
|
-
document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
146
|
-
return false unless document_type_validator.valid?(@document_type)
|
147
131
|
return false if @signature_type.nil?
|
148
132
|
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
149
133
|
return false unless signature_type_validator.valid?(@signature_type)
|
@@ -151,20 +135,6 @@ module GroupDocsSignatureCloud
|
|
151
135
|
return true
|
152
136
|
end
|
153
137
|
|
154
|
-
# Custom attribute writer method checking allowed values (enum).
|
155
|
-
# @param [Object] document_type Object to be assigned
|
156
|
-
def document_type=(document_type)
|
157
|
-
validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
158
|
-
if document_type.to_i == 0
|
159
|
-
unless validator.valid?(document_type)
|
160
|
-
raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
|
161
|
-
end
|
162
|
-
@document_type = document_type
|
163
|
-
else
|
164
|
-
@document_type = validator.allowable_values[document_type.to_i]
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
138
|
# Custom attribute writer method checking allowed values (enum).
|
169
139
|
# @param [Object] signature_type Object to be assigned
|
170
140
|
def signature_type=(signature_type)
|
@@ -184,7 +154,6 @@ module GroupDocsSignatureCloud
|
|
184
154
|
def ==(other)
|
185
155
|
return true if self.equal?(other)
|
186
156
|
self.class == other.class &&
|
187
|
-
document_type == other.document_type &&
|
188
157
|
signature_type == other.signature_type &&
|
189
158
|
page == other.page &&
|
190
159
|
all_pages == other.all_pages &&
|
@@ -200,7 +169,7 @@ module GroupDocsSignatureCloud
|
|
200
169
|
# Calculates hash code according to all attributes.
|
201
170
|
# @return [Fixnum] Hash code
|
202
171
|
def hash
|
203
|
-
[
|
172
|
+
[signature_type, page, all_pages, pages_setup].hash
|
204
173
|
end
|
205
174
|
|
206
175
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_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 for signature Search within a document
|
32
32
|
class SearchOptions
|
33
33
|
|
34
|
-
# Specifies the type of document to process
|
35
|
-
attr_accessor :document_type
|
36
|
-
|
37
34
|
# Specifies the signature type of processing
|
38
35
|
attr_accessor :signature_type
|
39
36
|
|
@@ -70,7 +67,6 @@ module GroupDocsSignatureCloud
|
|
70
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
68
|
def self.attribute_map
|
72
69
|
{
|
73
|
-
:'document_type' => :'DocumentType',
|
74
70
|
:'signature_type' => :'SignatureType',
|
75
71
|
:'page' => :'Page',
|
76
72
|
:'all_pages' => :'AllPages',
|
@@ -81,7 +77,6 @@ module GroupDocsSignatureCloud
|
|
81
77
|
# Attribute type mapping.
|
82
78
|
def self.swagger_types
|
83
79
|
{
|
84
|
-
:'document_type' => :'String',
|
85
80
|
:'signature_type' => :'String',
|
86
81
|
:'page' => :'Integer',
|
87
82
|
:'all_pages' => :'BOOLEAN',
|
@@ -97,10 +92,6 @@ module GroupDocsSignatureCloud
|
|
97
92
|
# convert string to symbol for hash key
|
98
93
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
99
94
|
|
100
|
-
if attributes.key?(:'DocumentType')
|
101
|
-
self.document_type = attributes[:'DocumentType']
|
102
|
-
end
|
103
|
-
|
104
95
|
if attributes.key?(:'SignatureType')
|
105
96
|
self.signature_type = attributes[:'SignatureType']
|
106
97
|
end
|
@@ -123,10 +114,6 @@ module GroupDocsSignatureCloud
|
|
123
114
|
# @return Array for valid properies with the reasons
|
124
115
|
def list_invalid_properties
|
125
116
|
invalid_properties = []
|
126
|
-
if @document_type.nil?
|
127
|
-
invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
|
128
|
-
end
|
129
|
-
|
130
117
|
if @signature_type.nil?
|
131
118
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
132
119
|
end
|
@@ -141,9 +128,6 @@ module GroupDocsSignatureCloud
|
|
141
128
|
# Check to see if the all the properties in the model are valid
|
142
129
|
# @return true if the model is valid
|
143
130
|
def valid?
|
144
|
-
return false if @document_type.nil?
|
145
|
-
document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
146
|
-
return false unless document_type_validator.valid?(@document_type)
|
147
131
|
return false if @signature_type.nil?
|
148
132
|
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
149
133
|
return false unless signature_type_validator.valid?(@signature_type)
|
@@ -151,20 +135,6 @@ module GroupDocsSignatureCloud
|
|
151
135
|
return true
|
152
136
|
end
|
153
137
|
|
154
|
-
# Custom attribute writer method checking allowed values (enum).
|
155
|
-
# @param [Object] document_type Object to be assigned
|
156
|
-
def document_type=(document_type)
|
157
|
-
validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
158
|
-
if document_type.to_i == 0
|
159
|
-
unless validator.valid?(document_type)
|
160
|
-
raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
|
161
|
-
end
|
162
|
-
@document_type = document_type
|
163
|
-
else
|
164
|
-
@document_type = validator.allowable_values[document_type.to_i]
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
138
|
# Custom attribute writer method checking allowed values (enum).
|
169
139
|
# @param [Object] signature_type Object to be assigned
|
170
140
|
def signature_type=(signature_type)
|
@@ -184,7 +154,6 @@ module GroupDocsSignatureCloud
|
|
184
154
|
def ==(other)
|
185
155
|
return true if self.equal?(other)
|
186
156
|
self.class == other.class &&
|
187
|
-
document_type == other.document_type &&
|
188
157
|
signature_type == other.signature_type &&
|
189
158
|
page == other.page &&
|
190
159
|
all_pages == other.all_pages &&
|
@@ -200,7 +169,7 @@ module GroupDocsSignatureCloud
|
|
200
169
|
# Calculates hash code according to all attributes.
|
201
170
|
# @return [Fixnum] Hash code
|
202
171
|
def hash
|
203
|
-
[
|
172
|
+
[signature_type, page, all_pages, pages_setup].hash
|
204
173
|
end
|
205
174
|
|
206
175
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_qr_code_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 search QR-Code signature of document
|
32
32
|
class SearchQRCodeOptions
|
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, qr_code_type, text, match_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="search_result.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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="search_settings.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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="sign_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
|
# Represents the Barcode signature options
|
32
32
|
class SignBarcodeOptions
|
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
|
|
@@ -91,23 +88,14 @@ module GroupDocsSignatureCloud
|
|
91
88
|
# Gets or sets the fore color of signature
|
92
89
|
attr_accessor :fore_color
|
93
90
|
|
94
|
-
# Gets or sets the border color of signature
|
95
|
-
attr_accessor :border_color
|
96
|
-
|
97
91
|
# Gets or sets the background color of signature
|
98
92
|
attr_accessor :background_color
|
99
93
|
|
100
94
|
# Gets or sets the signature background brush. Value by default is null. If this property has a value it will be used instead BackgroundBrush property. For Spreadsheet documents TextStamp implementation RadialGradientBrush is not applicable, it is replaced by LinearGradientBrush. Spreadsheets, Images, Presentations It is not used for Watermark implementation. PDF For Stamp implementation LinearGradientBrush (ColorStart) and RadialGradientBrush (ColorInner) are used as SolidBrush. PDF It is not used for Annotation, Sticker, TextToFormField and Watermark implementations. Presentations For TextStamp implementation RadialGradientBrush is not applicable, it is replaced by LinearGradientBrush. Word Processing For TextStamp implementation LinearGradientBrush (ColorStart) and RadialGradientBrush (ColorInner) are used as SolidBrush. Word Processing It is not used for TextToFormField and Watermark implementations
|
101
95
|
attr_accessor :background_brush
|
102
96
|
|
103
|
-
# Gets or sets the signature border
|
104
|
-
attr_accessor :
|
105
|
-
|
106
|
-
# Gets or sets the signature border style It is not suitable for PDF
|
107
|
-
attr_accessor :border_dash_style
|
108
|
-
|
109
|
-
# Gets or sets the signature border transparency (value from 0.0 (opaque) through 1.0 (clear)) It is not suitable for PDF
|
110
|
-
attr_accessor :border_transparency
|
97
|
+
# Gets or sets the signature border properties
|
98
|
+
attr_accessor :border
|
111
99
|
|
112
100
|
# Horizontal alignment of text inside a signature
|
113
101
|
attr_accessor :text_horizontal_alignment
|
@@ -115,14 +103,14 @@ module GroupDocsSignatureCloud
|
|
115
103
|
# Vertical alignment of text inside a signature
|
116
104
|
attr_accessor :text_vertical_alignment
|
117
105
|
|
106
|
+
# Gets or sets the Z-order position of text signature. Determines the display order of overlapping signatures.
|
107
|
+
attr_accessor :z_order
|
108
|
+
|
118
109
|
# Get or set Barcode type. Pick one from supported barcode types list
|
119
110
|
attr_accessor :barcode_type
|
120
111
|
|
121
|
-
# Gets or sets the
|
122
|
-
attr_accessor :
|
123
|
-
|
124
|
-
# Gets or sets the signature opacity (value from 0.0 (clear) through 1.0 (opaque)). By default the value is 1.0
|
125
|
-
attr_accessor :opacity
|
112
|
+
# Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)). Default value is 0 (opaque).
|
113
|
+
attr_accessor :transparency
|
126
114
|
|
127
115
|
# Gets or sets the alignment of text in the result Barcode Default value is None
|
128
116
|
attr_accessor :code_text_alignment
|
@@ -154,7 +142,6 @@ module GroupDocsSignatureCloud
|
|
154
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
155
143
|
def self.attribute_map
|
156
144
|
{
|
157
|
-
:'document_type' => :'DocumentType',
|
158
145
|
:'signature_type' => :'SignatureType',
|
159
146
|
:'page' => :'Page',
|
160
147
|
:'all_pages' => :'AllPages',
|
@@ -174,17 +161,14 @@ module GroupDocsSignatureCloud
|
|
174
161
|
:'text' => :'Text',
|
175
162
|
:'font' => :'Font',
|
176
163
|
:'fore_color' => :'ForeColor',
|
177
|
-
:'border_color' => :'BorderColor',
|
178
164
|
:'background_color' => :'BackgroundColor',
|
179
165
|
:'background_brush' => :'BackgroundBrush',
|
180
|
-
:'
|
181
|
-
:'border_dash_style' => :'BorderDashStyle',
|
182
|
-
:'border_transparency' => :'BorderTransparency',
|
166
|
+
:'border' => :'Border',
|
183
167
|
:'text_horizontal_alignment' => :'TextHorizontalAlignment',
|
184
168
|
:'text_vertical_alignment' => :'TextVerticalAlignment',
|
169
|
+
:'z_order' => :'ZOrder',
|
185
170
|
:'barcode_type' => :'BarcodeType',
|
186
|
-
:'
|
187
|
-
:'opacity' => :'Opacity',
|
171
|
+
:'transparency' => :'Transparency',
|
188
172
|
:'code_text_alignment' => :'CodeTextAlignment',
|
189
173
|
:'inner_margins' => :'InnerMargins'
|
190
174
|
}
|
@@ -193,7 +177,6 @@ module GroupDocsSignatureCloud
|
|
193
177
|
# Attribute type mapping.
|
194
178
|
def self.swagger_types
|
195
179
|
{
|
196
|
-
:'document_type' => :'String',
|
197
180
|
:'signature_type' => :'String',
|
198
181
|
:'page' => :'Integer',
|
199
182
|
:'all_pages' => :'BOOLEAN',
|
@@ -213,17 +196,14 @@ module GroupDocsSignatureCloud
|
|
213
196
|
:'text' => :'String',
|
214
197
|
:'font' => :'SignatureFont',
|
215
198
|
:'fore_color' => :'Color',
|
216
|
-
:'border_color' => :'Color',
|
217
199
|
:'background_color' => :'Color',
|
218
200
|
:'background_brush' => :'Brush',
|
219
|
-
:'
|
220
|
-
:'border_dash_style' => :'String',
|
221
|
-
:'border_transparency' => :'Float',
|
201
|
+
:'border' => :'BorderLine',
|
222
202
|
:'text_horizontal_alignment' => :'String',
|
223
203
|
:'text_vertical_alignment' => :'String',
|
204
|
+
:'z_order' => :'Integer',
|
224
205
|
:'barcode_type' => :'String',
|
225
|
-
:'
|
226
|
-
:'opacity' => :'Float',
|
206
|
+
:'transparency' => :'Float',
|
227
207
|
:'code_text_alignment' => :'String',
|
228
208
|
:'inner_margins' => :'Padding'
|
229
209
|
}
|
@@ -237,10 +217,6 @@ module GroupDocsSignatureCloud
|
|
237
217
|
# convert string to symbol for hash key
|
238
218
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
239
219
|
|
240
|
-
if attributes.key?(:'DocumentType')
|
241
|
-
self.document_type = attributes[:'DocumentType']
|
242
|
-
end
|
243
|
-
|
244
220
|
if attributes.key?(:'SignatureType')
|
245
221
|
self.signature_type = attributes[:'SignatureType']
|
246
222
|
end
|
@@ -317,10 +293,6 @@ module GroupDocsSignatureCloud
|
|
317
293
|
self.fore_color = attributes[:'ForeColor']
|
318
294
|
end
|
319
295
|
|
320
|
-
if attributes.key?(:'BorderColor')
|
321
|
-
self.border_color = attributes[:'BorderColor']
|
322
|
-
end
|
323
|
-
|
324
296
|
if attributes.key?(:'BackgroundColor')
|
325
297
|
self.background_color = attributes[:'BackgroundColor']
|
326
298
|
end
|
@@ -329,16 +301,8 @@ module GroupDocsSignatureCloud
|
|
329
301
|
self.background_brush = attributes[:'BackgroundBrush']
|
330
302
|
end
|
331
303
|
|
332
|
-
if attributes.key?(:'
|
333
|
-
self.
|
334
|
-
end
|
335
|
-
|
336
|
-
if attributes.key?(:'BorderDashStyle')
|
337
|
-
self.border_dash_style = attributes[:'BorderDashStyle']
|
338
|
-
end
|
339
|
-
|
340
|
-
if attributes.key?(:'BorderTransparency')
|
341
|
-
self.border_transparency = attributes[:'BorderTransparency']
|
304
|
+
if attributes.key?(:'Border')
|
305
|
+
self.border = attributes[:'Border']
|
342
306
|
end
|
343
307
|
|
344
308
|
if attributes.key?(:'TextHorizontalAlignment')
|
@@ -349,16 +313,16 @@ module GroupDocsSignatureCloud
|
|
349
313
|
self.text_vertical_alignment = attributes[:'TextVerticalAlignment']
|
350
314
|
end
|
351
315
|
|
352
|
-
if attributes.key?(:'
|
353
|
-
self.
|
316
|
+
if attributes.key?(:'ZOrder')
|
317
|
+
self.z_order = attributes[:'ZOrder']
|
354
318
|
end
|
355
319
|
|
356
|
-
if attributes.key?(:'
|
357
|
-
self.
|
320
|
+
if attributes.key?(:'BarcodeType')
|
321
|
+
self.barcode_type = attributes[:'BarcodeType']
|
358
322
|
end
|
359
323
|
|
360
|
-
if attributes.key?(:'
|
361
|
-
self.
|
324
|
+
if attributes.key?(:'Transparency')
|
325
|
+
self.transparency = attributes[:'Transparency']
|
362
326
|
end
|
363
327
|
|
364
328
|
if attributes.key?(:'CodeTextAlignment')
|
@@ -375,10 +339,6 @@ module GroupDocsSignatureCloud
|
|
375
339
|
# @return Array for valid properies with the reasons
|
376
340
|
def list_invalid_properties
|
377
341
|
invalid_properties = []
|
378
|
-
if @document_type.nil?
|
379
|
-
invalid_properties.push("invalid value for 'document_type', document_type cannot be nil.")
|
380
|
-
end
|
381
|
-
|
382
342
|
if @signature_type.nil?
|
383
343
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
384
344
|
end
|
@@ -431,18 +391,6 @@ module GroupDocsSignatureCloud
|
|
431
391
|
invalid_properties.push("invalid value for 'margin_measure_type', margin_measure_type cannot be nil.")
|
432
392
|
end
|
433
393
|
|
434
|
-
if @border_visiblity.nil?
|
435
|
-
invalid_properties.push("invalid value for 'border_visiblity', border_visiblity cannot be nil.")
|
436
|
-
end
|
437
|
-
|
438
|
-
if @border_dash_style.nil?
|
439
|
-
invalid_properties.push("invalid value for 'border_dash_style', border_dash_style cannot be nil.")
|
440
|
-
end
|
441
|
-
|
442
|
-
if @border_transparency.nil?
|
443
|
-
invalid_properties.push("invalid value for 'border_transparency', border_transparency cannot be nil.")
|
444
|
-
end
|
445
|
-
|
446
394
|
if @text_horizontal_alignment.nil?
|
447
395
|
invalid_properties.push("invalid value for 'text_horizontal_alignment', text_horizontal_alignment cannot be nil.")
|
448
396
|
end
|
@@ -451,8 +399,8 @@ module GroupDocsSignatureCloud
|
|
451
399
|
invalid_properties.push("invalid value for 'text_vertical_alignment', text_vertical_alignment cannot be nil.")
|
452
400
|
end
|
453
401
|
|
454
|
-
if @
|
455
|
-
invalid_properties.push("invalid value for '
|
402
|
+
if @z_order.nil?
|
403
|
+
invalid_properties.push("invalid value for 'z_order', z_order cannot be nil.")
|
456
404
|
end
|
457
405
|
|
458
406
|
if @code_text_alignment.nil?
|
@@ -465,9 +413,6 @@ module GroupDocsSignatureCloud
|
|
465
413
|
# Check to see if the all the properties in the model are valid
|
466
414
|
# @return true if the model is valid
|
467
415
|
def valid?
|
468
|
-
return false if @document_type.nil?
|
469
|
-
document_type_validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
470
|
-
return false unless document_type_validator.valid?(@document_type)
|
471
416
|
return false if @signature_type.nil?
|
472
417
|
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp"])
|
473
418
|
return false unless signature_type_validator.valid?(@signature_type)
|
@@ -487,46 +432,27 @@ module GroupDocsSignatureCloud
|
|
487
432
|
return false unless stretch_validator.valid?(@stretch)
|
488
433
|
return false if @rotation_angle.nil?
|
489
434
|
return false if @horizontal_alignment.nil?
|
490
|
-
horizontal_alignment_validator = EnumAttributeValidator.new('String', ["
|
435
|
+
horizontal_alignment_validator = EnumAttributeValidator.new('String', ["None", "Left", "Center", "Right"])
|
491
436
|
return false unless horizontal_alignment_validator.valid?(@horizontal_alignment)
|
492
437
|
return false if @vertical_alignment.nil?
|
493
|
-
vertical_alignment_validator = EnumAttributeValidator.new('String', ["
|
438
|
+
vertical_alignment_validator = EnumAttributeValidator.new('String', ["None", "Top", "Center", "Bottom"])
|
494
439
|
return false unless vertical_alignment_validator.valid?(@vertical_alignment)
|
495
440
|
return false if @margin_measure_type.nil?
|
496
441
|
margin_measure_type_validator = EnumAttributeValidator.new('String', ["Pixels", "Percents", "Millimeters"])
|
497
442
|
return false unless margin_measure_type_validator.valid?(@margin_measure_type)
|
498
|
-
return false if @border_visiblity.nil?
|
499
|
-
return false if @border_dash_style.nil?
|
500
|
-
border_dash_style_validator = EnumAttributeValidator.new('String', ["Dash", "DashDot", "DashDotDot", "DashLongDash", "DashLongDashDot", "RoundDot", "Solid", "SquareDot"])
|
501
|
-
return false unless border_dash_style_validator.valid?(@border_dash_style)
|
502
|
-
return false if @border_transparency.nil?
|
503
443
|
return false if @text_horizontal_alignment.nil?
|
504
444
|
text_horizontal_alignment_validator = EnumAttributeValidator.new('String', ["Left", "Center", "Right"])
|
505
445
|
return false unless text_horizontal_alignment_validator.valid?(@text_horizontal_alignment)
|
506
446
|
return false if @text_vertical_alignment.nil?
|
507
447
|
text_vertical_alignment_validator = EnumAttributeValidator.new('String', ["Top", "Center", "Bottom"])
|
508
448
|
return false unless text_vertical_alignment_validator.valid?(@text_vertical_alignment)
|
509
|
-
return false if @
|
449
|
+
return false if @z_order.nil?
|
510
450
|
return false if @code_text_alignment.nil?
|
511
451
|
code_text_alignment_validator = EnumAttributeValidator.new('String', ["None", "Above", "Below", "Right"])
|
512
452
|
return false unless code_text_alignment_validator.valid?(@code_text_alignment)
|
513
453
|
return true
|
514
454
|
end
|
515
455
|
|
516
|
-
# Custom attribute writer method checking allowed values (enum).
|
517
|
-
# @param [Object] document_type Object to be assigned
|
518
|
-
def document_type=(document_type)
|
519
|
-
validator = EnumAttributeValidator.new('String', ["Image", "Pdf", "Presentation", "Spreadsheet", "WordProcessing"])
|
520
|
-
if document_type.to_i == 0
|
521
|
-
unless validator.valid?(document_type)
|
522
|
-
raise ArgumentError, "invalid value for 'document_type', must be one of #{validator.allowable_values}."
|
523
|
-
end
|
524
|
-
@document_type = document_type
|
525
|
-
else
|
526
|
-
@document_type = validator.allowable_values[document_type.to_i]
|
527
|
-
end
|
528
|
-
end
|
529
|
-
|
530
456
|
# Custom attribute writer method checking allowed values (enum).
|
531
457
|
# @param [Object] signature_type Object to be assigned
|
532
458
|
def signature_type=(signature_type)
|
@@ -586,7 +512,7 @@ module GroupDocsSignatureCloud
|
|
586
512
|
# Custom attribute writer method checking allowed values (enum).
|
587
513
|
# @param [Object] horizontal_alignment Object to be assigned
|
588
514
|
def horizontal_alignment=(horizontal_alignment)
|
589
|
-
validator = EnumAttributeValidator.new('String', ["
|
515
|
+
validator = EnumAttributeValidator.new('String', ["None", "Left", "Center", "Right"])
|
590
516
|
if horizontal_alignment.to_i == 0
|
591
517
|
unless validator.valid?(horizontal_alignment)
|
592
518
|
raise ArgumentError, "invalid value for 'horizontal_alignment', must be one of #{validator.allowable_values}."
|
@@ -600,7 +526,7 @@ module GroupDocsSignatureCloud
|
|
600
526
|
# Custom attribute writer method checking allowed values (enum).
|
601
527
|
# @param [Object] vertical_alignment Object to be assigned
|
602
528
|
def vertical_alignment=(vertical_alignment)
|
603
|
-
validator = EnumAttributeValidator.new('String', ["
|
529
|
+
validator = EnumAttributeValidator.new('String', ["None", "Top", "Center", "Bottom"])
|
604
530
|
if vertical_alignment.to_i == 0
|
605
531
|
unless validator.valid?(vertical_alignment)
|
606
532
|
raise ArgumentError, "invalid value for 'vertical_alignment', must be one of #{validator.allowable_values}."
|
@@ -625,20 +551,6 @@ module GroupDocsSignatureCloud
|
|
625
551
|
end
|
626
552
|
end
|
627
553
|
|
628
|
-
# Custom attribute writer method checking allowed values (enum).
|
629
|
-
# @param [Object] border_dash_style Object to be assigned
|
630
|
-
def border_dash_style=(border_dash_style)
|
631
|
-
validator = EnumAttributeValidator.new('String', ["Dash", "DashDot", "DashDotDot", "DashLongDash", "DashLongDashDot", "RoundDot", "Solid", "SquareDot"])
|
632
|
-
if border_dash_style.to_i == 0
|
633
|
-
unless validator.valid?(border_dash_style)
|
634
|
-
raise ArgumentError, "invalid value for 'border_dash_style', must be one of #{validator.allowable_values}."
|
635
|
-
end
|
636
|
-
@border_dash_style = border_dash_style
|
637
|
-
else
|
638
|
-
@border_dash_style = validator.allowable_values[border_dash_style.to_i]
|
639
|
-
end
|
640
|
-
end
|
641
|
-
|
642
554
|
# Custom attribute writer method checking allowed values (enum).
|
643
555
|
# @param [Object] text_horizontal_alignment Object to be assigned
|
644
556
|
def text_horizontal_alignment=(text_horizontal_alignment)
|
@@ -686,7 +598,6 @@ module GroupDocsSignatureCloud
|
|
686
598
|
def ==(other)
|
687
599
|
return true if self.equal?(other)
|
688
600
|
self.class == other.class &&
|
689
|
-
document_type == other.document_type &&
|
690
601
|
signature_type == other.signature_type &&
|
691
602
|
page == other.page &&
|
692
603
|
all_pages == other.all_pages &&
|
@@ -706,17 +617,14 @@ module GroupDocsSignatureCloud
|
|
706
617
|
text == other.text &&
|
707
618
|
font == other.font &&
|
708
619
|
fore_color == other.fore_color &&
|
709
|
-
border_color == other.border_color &&
|
710
620
|
background_color == other.background_color &&
|
711
621
|
background_brush == other.background_brush &&
|
712
|
-
|
713
|
-
border_dash_style == other.border_dash_style &&
|
714
|
-
border_transparency == other.border_transparency &&
|
622
|
+
border == other.border &&
|
715
623
|
text_horizontal_alignment == other.text_horizontal_alignment &&
|
716
624
|
text_vertical_alignment == other.text_vertical_alignment &&
|
625
|
+
z_order == other.z_order &&
|
717
626
|
barcode_type == other.barcode_type &&
|
718
|
-
|
719
|
-
opacity == other.opacity &&
|
627
|
+
transparency == other.transparency &&
|
720
628
|
code_text_alignment == other.code_text_alignment &&
|
721
629
|
inner_margins == other.inner_margins
|
722
630
|
end
|
@@ -730,7 +638,7 @@ module GroupDocsSignatureCloud
|
|
730
638
|
# Calculates hash code according to all attributes.
|
731
639
|
# @return [Fixnum] Hash code
|
732
640
|
def hash
|
733
|
-
[
|
641
|
+
[signature_type, page, all_pages, pages_setup, left, top, width, height, location_measure_type, size_measure_type, stretch, rotation_angle, horizontal_alignment, vertical_alignment, margin, margin_measure_type, text, font, fore_color, background_color, background_brush, border, text_horizontal_alignment, text_vertical_alignment, z_order, barcode_type, transparency, code_text_alignment, inner_margins].hash
|
734
642
|
end
|
735
643
|
|
736
644
|
# Downcases first letter.
|