groupdocs_signature_cloud 24.12 → 26.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/groupdocs_signature_cloud/api/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 +1 -1
- data/lib/groupdocs_signature_cloud/api/preview_api.rb +2 -2
- 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 +2 -1
- data/lib/groupdocs_signature_cloud/api_client_error.rb +1 -1
- data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/api_error.rb +267 -0
- data/lib/groupdocs_signature_cloud/models/api_error_response.rb +243 -0
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +3 -3
- 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 +1 -1
- data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/consumption_result.rb +20 -5
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_vba.rb +1 -1
- 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/form_field_signature.rb +3 -3
- 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_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +3 -3
- 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/metadata_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +3 -3
- 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/pdf_digital_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +15 -5
- data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +3 -3
- 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/radio_button_form_field_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/search_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +3 -3
- 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 +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_image_digital_options.rb +333 -0
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +1 -1
- 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_form_field_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/update_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/verify_image_digital_options.rb +343 -0
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +3 -3
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +3 -3
- 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 +3 -3
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- data/lib/groupdocs_signature_cloud.rb +5 -1
- metadata +44 -12
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="api_error_response.rb">
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
|
+
# </copyright>
|
|
6
|
+
# <summary>
|
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
# furnished to do so, subject to the following conditions:
|
|
13
|
+
#
|
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
# copies or substantial portions of the Software.
|
|
16
|
+
#
|
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
# SOFTWARE.
|
|
24
|
+
# </summary>
|
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
#
|
|
27
|
+
|
|
28
|
+
require 'date'
|
|
29
|
+
|
|
30
|
+
module GroupDocsSignatureCloud
|
|
31
|
+
|
|
32
|
+
class ApiErrorResponse
|
|
33
|
+
attr_accessor :request_id
|
|
34
|
+
attr_accessor :error
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'request_id' => :'RequestId',
|
|
40
|
+
:'error' => :'Error'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.swagger_types
|
|
46
|
+
{
|
|
47
|
+
:'request_id' => :'String',
|
|
48
|
+
:'error' => :'ApiError'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
return unless attributes.is_a?(Hash)
|
|
56
|
+
|
|
57
|
+
# convert string to symbol for hash key
|
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'RequestId')
|
|
61
|
+
self.request_id = attributes[:'RequestId']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'Error')
|
|
65
|
+
self.error = attributes[:'Error']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
71
|
+
# @return Array for valid properies with the reasons
|
|
72
|
+
def list_invalid_properties
|
|
73
|
+
invalid_properties = []
|
|
74
|
+
return invalid_properties
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
def valid?
|
|
80
|
+
return true
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Checks equality by comparing each attribute.
|
|
84
|
+
# @param [Object] Object to be compared
|
|
85
|
+
def ==(other)
|
|
86
|
+
return true if self.equal?(other)
|
|
87
|
+
self.class == other.class &&
|
|
88
|
+
request_id == other.request_id &&
|
|
89
|
+
error == other.error
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# @see the `==` method
|
|
93
|
+
# @param [Object] Object to be compared
|
|
94
|
+
def eql?(other)
|
|
95
|
+
self == other
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Fixnum] Hash code
|
|
100
|
+
def hash
|
|
101
|
+
[request_id, error].hash
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Downcases first letter.
|
|
105
|
+
# @return downcased string
|
|
106
|
+
def uncap(str)
|
|
107
|
+
str[0, 1].downcase + str[1..-1]
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def build_from_hash(attributes)
|
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
|
115
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
116
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
|
117
|
+
value = attributes[pname]
|
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
|
119
|
+
# check to ensure the input is an array given that the the attribute
|
|
120
|
+
# is documented as an array but the input is not
|
|
121
|
+
if value.is_a?(Array)
|
|
122
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
|
123
|
+
end
|
|
124
|
+
elsif !value.nil?
|
|
125
|
+
self.send("#{key}=", _deserialize(type, value))
|
|
126
|
+
end
|
|
127
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
self
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Deserializes the data based on type
|
|
134
|
+
# @param string type Data type
|
|
135
|
+
# @param string value Value to be deserialized
|
|
136
|
+
# @return [Object] Deserialized data
|
|
137
|
+
def _deserialize(type, value)
|
|
138
|
+
case type.to_sym
|
|
139
|
+
when :DateTime
|
|
140
|
+
Date.parse value
|
|
141
|
+
when :Date
|
|
142
|
+
Date.parse value
|
|
143
|
+
when :String
|
|
144
|
+
value.to_s
|
|
145
|
+
when :Integer
|
|
146
|
+
value.to_i
|
|
147
|
+
when :Float
|
|
148
|
+
value.to_f
|
|
149
|
+
when :BOOLEAN
|
|
150
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
+
true
|
|
152
|
+
else
|
|
153
|
+
false
|
|
154
|
+
end
|
|
155
|
+
when :Object
|
|
156
|
+
# generic object (usually a Hash), return directly
|
|
157
|
+
value
|
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
|
164
|
+
{}.tap do |hash|
|
|
165
|
+
value.each do |k, v|
|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
else
|
|
170
|
+
# model
|
|
171
|
+
# Signature type fix
|
|
172
|
+
ttype = type
|
|
173
|
+
if value.is_a?(Hash) and !value[:signatureType].nil?
|
|
174
|
+
ttype = value[:signatureType] + 'Signature'
|
|
175
|
+
if value[:signatureType] == 'FormField' and !value[:type].nil?
|
|
176
|
+
type = value[:type]
|
|
177
|
+
if type == 'Checkbox'
|
|
178
|
+
ttype = 'CheckboxFormFieldSignature'
|
|
179
|
+
end
|
|
180
|
+
if type == 'Text'
|
|
181
|
+
ttype = 'TextFormFieldSignature'
|
|
182
|
+
end
|
|
183
|
+
if type == 'Combobox'
|
|
184
|
+
ttype = 'ComboboxFormFieldSignature'
|
|
185
|
+
end
|
|
186
|
+
if type == 'DigitalSignature'
|
|
187
|
+
ttype = 'DigitalFormFieldSignature'
|
|
188
|
+
end
|
|
189
|
+
if type == 'Radio'
|
|
190
|
+
ttype = 'RadioButtonFormFieldSignature'
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
temp_model = GroupDocsSignatureCloud.const_get(ttype).new
|
|
195
|
+
temp_model.build_from_hash(value)
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the string representation of the object
|
|
200
|
+
# @return [String] String presentation of the object
|
|
201
|
+
def to_s
|
|
202
|
+
to_hash.to_s
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_body
|
|
208
|
+
to_hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Returns the object in the form of hash
|
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
|
213
|
+
def to_hash
|
|
214
|
+
hash = {}
|
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
216
|
+
value = self.send(attr)
|
|
217
|
+
next if value.nil?
|
|
218
|
+
hash[param] = _to_hash(value)
|
|
219
|
+
end
|
|
220
|
+
hash
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Outputs non-array value in the form of hash
|
|
224
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
225
|
+
# @param [Object] value Any valid value
|
|
226
|
+
# @return [Hash] Returns the value in the form of hash
|
|
227
|
+
def _to_hash(value)
|
|
228
|
+
if value.is_a?(Array)
|
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
|
230
|
+
elsif value.is_a?(Hash)
|
|
231
|
+
{}.tap do |hash|
|
|
232
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
233
|
+
end
|
|
234
|
+
elsif value.respond_to? :to_hash
|
|
235
|
+
value.to_hash
|
|
236
|
+
else
|
|
237
|
+
value
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="barcode_signature.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -234,7 +234,7 @@ module GroupDocsSignatureCloud
|
|
|
234
234
|
# @return true if the model is valid
|
|
235
235
|
def valid?
|
|
236
236
|
return false if @signature_type.nil?
|
|
237
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
237
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
238
238
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
239
239
|
return false if @is_signature.nil?
|
|
240
240
|
return false if @created_on.nil?
|
|
@@ -249,7 +249,7 @@ module GroupDocsSignatureCloud
|
|
|
249
249
|
# Custom attribute writer method checking allowed values (enum).
|
|
250
250
|
# @param [Object] signature_type Object to be assigned
|
|
251
251
|
def signature_type=(signature_type)
|
|
252
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
252
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
253
253
|
if signature_type.to_i == 0
|
|
254
254
|
unless validator.valid?(signature_type)
|
|
255
255
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="barcode_type.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="barcodes_result.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="base_settings.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="border_line.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="brush.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="checkbox_form_field_signature.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -242,7 +242,7 @@ module GroupDocsSignatureCloud
|
|
|
242
242
|
# @return true if the model is valid
|
|
243
243
|
def valid?
|
|
244
244
|
return false if @signature_type.nil?
|
|
245
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
245
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
246
246
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
247
247
|
return false if @is_signature.nil?
|
|
248
248
|
return false if @created_on.nil?
|
|
@@ -261,7 +261,7 @@ module GroupDocsSignatureCloud
|
|
|
261
261
|
# Custom attribute writer method checking allowed values (enum).
|
|
262
262
|
# @param [Object] signature_type Object to be assigned
|
|
263
263
|
def signature_type=(signature_type)
|
|
264
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
264
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
265
265
|
if signature_type.to_i == 0
|
|
266
266
|
unless validator.valid?(signature_type)
|
|
267
267
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="color.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="combobox_form_field_signature.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -249,7 +249,7 @@ module GroupDocsSignatureCloud
|
|
|
249
249
|
# @return true if the model is valid
|
|
250
250
|
def valid?
|
|
251
251
|
return false if @signature_type.nil?
|
|
252
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
252
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
253
253
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
254
254
|
return false if @is_signature.nil?
|
|
255
255
|
return false if @created_on.nil?
|
|
@@ -267,7 +267,7 @@ module GroupDocsSignatureCloud
|
|
|
267
267
|
# Custom attribute writer method checking allowed values (enum).
|
|
268
268
|
# @param [Object] signature_type Object to be assigned
|
|
269
269
|
def signature_type=(signature_type)
|
|
270
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
270
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
271
271
|
if signature_type.to_i == 0
|
|
272
272
|
unless validator.valid?(signature_type)
|
|
273
273
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="consumption_result.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -37,11 +37,15 @@ module GroupDocsSignatureCloud
|
|
|
37
37
|
# Amount of MBs processed
|
|
38
38
|
attr_accessor :quantity
|
|
39
39
|
|
|
40
|
+
# Billed API calls number
|
|
41
|
+
attr_accessor :billed_api_calls
|
|
42
|
+
|
|
40
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
44
|
def self.attribute_map
|
|
42
45
|
{
|
|
43
46
|
:'credit' => :'Credit',
|
|
44
|
-
:'quantity' => :'Quantity'
|
|
47
|
+
:'quantity' => :'Quantity',
|
|
48
|
+
:'billed_api_calls' => :'BilledApiCalls'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -49,7 +53,8 @@ module GroupDocsSignatureCloud
|
|
|
49
53
|
def self.swagger_types
|
|
50
54
|
{
|
|
51
55
|
:'credit' => :'Float',
|
|
52
|
-
:'quantity' => :'Float'
|
|
56
|
+
:'quantity' => :'Float',
|
|
57
|
+
:'billed_api_calls' => :'Float'
|
|
53
58
|
}
|
|
54
59
|
end
|
|
55
60
|
|
|
@@ -69,6 +74,10 @@ module GroupDocsSignatureCloud
|
|
|
69
74
|
self.quantity = attributes[:'Quantity']
|
|
70
75
|
end
|
|
71
76
|
|
|
77
|
+
if attributes.key?(:'BilledApiCalls')
|
|
78
|
+
self.billed_api_calls = attributes[:'BilledApiCalls']
|
|
79
|
+
end
|
|
80
|
+
|
|
72
81
|
end
|
|
73
82
|
|
|
74
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -83,6 +92,10 @@ module GroupDocsSignatureCloud
|
|
|
83
92
|
invalid_properties.push("invalid value for 'quantity', quantity cannot be nil.")
|
|
84
93
|
end
|
|
85
94
|
|
|
95
|
+
if @billed_api_calls.nil?
|
|
96
|
+
invalid_properties.push("invalid value for 'billed_api_calls', billed_api_calls cannot be nil.")
|
|
97
|
+
end
|
|
98
|
+
|
|
86
99
|
return invalid_properties
|
|
87
100
|
end
|
|
88
101
|
|
|
@@ -91,6 +104,7 @@ module GroupDocsSignatureCloud
|
|
|
91
104
|
def valid?
|
|
92
105
|
return false if @credit.nil?
|
|
93
106
|
return false if @quantity.nil?
|
|
107
|
+
return false if @billed_api_calls.nil?
|
|
94
108
|
return true
|
|
95
109
|
end
|
|
96
110
|
|
|
@@ -100,7 +114,8 @@ module GroupDocsSignatureCloud
|
|
|
100
114
|
return true if self.equal?(other)
|
|
101
115
|
self.class == other.class &&
|
|
102
116
|
credit == other.credit &&
|
|
103
|
-
quantity == other.quantity
|
|
117
|
+
quantity == other.quantity &&
|
|
118
|
+
billed_api_calls == other.billed_api_calls
|
|
104
119
|
end
|
|
105
120
|
|
|
106
121
|
# @see the `==` method
|
|
@@ -112,7 +127,7 @@ module GroupDocsSignatureCloud
|
|
|
112
127
|
# Calculates hash code according to all attributes.
|
|
113
128
|
# @return [Fixnum] Hash code
|
|
114
129
|
def hash
|
|
115
|
-
[credit, quantity].hash
|
|
130
|
+
[credit, quantity, billed_api_calls].hash
|
|
116
131
|
end
|
|
117
132
|
|
|
118
133
|
# Downcases first letter.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="delete_options.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -107,7 +107,7 @@ module GroupDocsSignatureCloud
|
|
|
107
107
|
# @return true if the model is valid
|
|
108
108
|
def valid?
|
|
109
109
|
return false if @signature_type.nil?
|
|
110
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
110
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
111
111
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
112
112
|
return true
|
|
113
113
|
end
|
|
@@ -115,7 +115,7 @@ module GroupDocsSignatureCloud
|
|
|
115
115
|
# Custom attribute writer method checking allowed values (enum).
|
|
116
116
|
# @param [Object] signature_type Object to be assigned
|
|
117
117
|
def signature_type=(signature_type)
|
|
118
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
118
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
119
119
|
if signature_type.to_i == 0
|
|
120
120
|
unless validator.valid?(signature_type)
|
|
121
121
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="delete_result.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="delete_settings.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="digital_form_field_signature.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -242,7 +242,7 @@ module GroupDocsSignatureCloud
|
|
|
242
242
|
# @return true if the model is valid
|
|
243
243
|
def valid?
|
|
244
244
|
return false if @signature_type.nil?
|
|
245
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
245
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
246
246
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
247
247
|
return false if @is_signature.nil?
|
|
248
248
|
return false if @created_on.nil?
|
|
@@ -261,7 +261,7 @@ module GroupDocsSignatureCloud
|
|
|
261
261
|
# Custom attribute writer method checking allowed values (enum).
|
|
262
262
|
# @param [Object] signature_type Object to be assigned
|
|
263
263
|
def signature_type=(signature_type)
|
|
264
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
264
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
265
265
|
if signature_type.to_i == 0
|
|
266
266
|
unless validator.valid?(signature_type)
|
|
267
267
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="digital_signature.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -251,7 +251,7 @@ module GroupDocsSignatureCloud
|
|
|
251
251
|
# @return true if the model is valid
|
|
252
252
|
def valid?
|
|
253
253
|
return false if @signature_type.nil?
|
|
254
|
-
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
254
|
+
signature_type_validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
255
255
|
return false unless signature_type_validator.valid?(@signature_type)
|
|
256
256
|
return false if @is_signature.nil?
|
|
257
257
|
return false if @created_on.nil?
|
|
@@ -268,7 +268,7 @@ module GroupDocsSignatureCloud
|
|
|
268
268
|
# Custom attribute writer method checking allowed values (enum).
|
|
269
269
|
# @param [Object] signature_type Object to be assigned
|
|
270
270
|
def signature_type=(signature_type)
|
|
271
|
-
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata"])
|
|
271
|
+
validator = EnumAttributeValidator.new('String', ["None", "Text", "Image", "Digital", "Barcode", "QRCode", "Stamp", "FormField", "Metadata", "ImageDigital"])
|
|
272
272
|
if signature_type.to_i == 0
|
|
273
273
|
unless validator.valid?(signature_type)
|
|
274
274
|
raise ArgumentError, "invalid value for 'signature_type', must be one of #{validator.allowable_values}."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="digital_signature_appearance.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="digital_vba.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="disc_usage.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="error.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="error_details.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="file_info.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="file_version.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) 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="file_versions.rb">
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|