groupdocs_signature_cloud 24.12 → 25.6

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_signature_cloud/api/file_api.rb +6 -6
  3. data/lib/groupdocs_signature_cloud/api/folder_api.rb +6 -6
  4. data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
  5. data/lib/groupdocs_signature_cloud/api/license_api.rb +1 -1
  6. data/lib/groupdocs_signature_cloud/api/preview_api.rb +2 -2
  7. data/lib/groupdocs_signature_cloud/api/sign_api.rb +6 -6
  8. data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_signature_cloud/api_client_error.rb +1 -1
  11. data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_signature_cloud/models/api_error.rb +267 -0
  13. data/lib/groupdocs_signature_cloud/models/api_error_response.rb +243 -0
  14. data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +1 -1
  15. data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
  16. data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
  17. data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
  18. data/lib/groupdocs_signature_cloud/models/border_line.rb +1 -1
  19. data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
  20. data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +1 -1
  21. data/lib/groupdocs_signature_cloud/models/color.rb +1 -1
  22. data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +1 -1
  23. data/lib/groupdocs_signature_cloud/models/consumption_result.rb +20 -5
  24. data/lib/groupdocs_signature_cloud/models/delete_options.rb +1 -1
  25. data/lib/groupdocs_signature_cloud/models/delete_result.rb +1 -1
  26. data/lib/groupdocs_signature_cloud/models/delete_settings.rb +1 -1
  27. data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +1 -1
  28. data/lib/groupdocs_signature_cloud/models/digital_signature.rb +1 -1
  29. data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +1 -1
  30. data/lib/groupdocs_signature_cloud/models/digital_vba.rb +1 -1
  31. data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
  32. data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
  33. data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
  34. data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
  35. data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
  36. data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
  37. data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
  38. data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
  39. data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +1 -1
  40. data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
  41. data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
  42. data/lib/groupdocs_signature_cloud/models/image_appearance.rb +1 -1
  43. data/lib/groupdocs_signature_cloud/models/image_signature.rb +1 -1
  44. data/lib/groupdocs_signature_cloud/models/info_result.rb +1 -1
  45. data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
  46. data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
  47. data/lib/groupdocs_signature_cloud/models/metadata_signature.rb +1 -1
  48. data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
  49. data/lib/groupdocs_signature_cloud/models/options_base.rb +1 -1
  50. data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
  51. data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
  52. data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
  53. data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +1 -1
  54. data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +1 -1
  55. data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +1 -1
  56. data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +1 -1
  57. data/lib/groupdocs_signature_cloud/models/preview_page.rb +1 -1
  58. data/lib/groupdocs_signature_cloud/models/preview_result.rb +1 -1
  59. data/lib/groupdocs_signature_cloud/models/preview_settings.rb +1 -1
  60. data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +1 -1
  61. data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
  62. data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
  63. data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
  64. data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +1 -1
  65. data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
  66. data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +1 -1
  67. data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +1 -1
  68. data/lib/groupdocs_signature_cloud/models/search_options.rb +1 -1
  69. data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +1 -1
  70. data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
  71. data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
  72. data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +1 -1
  73. data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +1 -1
  74. data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +1 -1
  75. data/lib/groupdocs_signature_cloud/models/sign_options.rb +1 -1
  76. data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +1 -1
  77. data/lib/groupdocs_signature_cloud/models/sign_result.rb +1 -1
  78. data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
  79. data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +1 -1
  80. data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +1 -1
  81. data/lib/groupdocs_signature_cloud/models/signature.rb +1 -1
  82. data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +1 -1
  83. data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
  84. data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
  85. data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
  86. data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
  87. data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
  88. data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +1 -1
  89. data/lib/groupdocs_signature_cloud/models/text_signature.rb +1 -1
  90. data/lib/groupdocs_signature_cloud/models/texture_brush.rb +1 -1
  91. data/lib/groupdocs_signature_cloud/models/time_stamp.rb +1 -1
  92. data/lib/groupdocs_signature_cloud/models/update_options.rb +1 -1
  93. data/lib/groupdocs_signature_cloud/models/update_result.rb +1 -1
  94. data/lib/groupdocs_signature_cloud/models/update_settings.rb +1 -1
  95. data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +1 -1
  96. data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +1 -1
  97. data/lib/groupdocs_signature_cloud/models/verify_options.rb +1 -1
  98. data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +1 -1
  99. data/lib/groupdocs_signature_cloud/models/verify_result.rb +1 -1
  100. data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
  101. data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +1 -1
  102. data/lib/groupdocs_signature_cloud/version.rb +2 -2
  103. data/lib/groupdocs_signature_cloud.rb +3 -1
  104. metadata +4 -2
@@ -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) 2003-2023 Aspose Pty Ltd
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="barcode_type.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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="color.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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="consumption_result.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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_result.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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_signature.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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_signature_appearance.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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) 2003-2023 Aspose Pty Ltd
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="files_list.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="files_upload_result.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="form_field_signature.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="format.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="formats_result.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="image_appearance.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="image_signature.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="info_result.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="info_settings.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="linear_gradient_brush.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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="metadata_signature.rb">
4
- # Copyright (c) 2003-2023 Aspose Pty Ltd
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