appnigma-sdk 0.2.1 → 1.0.0

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +90 -69
  4. data/lib/appnigma/client.rb +21 -28
  5. data/lib/appnigma/constants.rb +1 -0
  6. data/lib/appnigma/crm.rb +63 -6
  7. data/lib/appnigma/errors.rb +15 -0
  8. data/lib/appnigma/generated/api/default_api.rb +523 -61
  9. data/lib/appnigma/generated/api_client.rb +1 -1
  10. data/lib/appnigma/generated/api_error.rb +1 -1
  11. data/lib/appnigma/generated/api_model_base.rb +1 -1
  12. data/lib/appnigma/generated/configuration.rb +1 -1
  13. data/lib/appnigma/generated/models/action_entry.rb +341 -0
  14. data/lib/appnigma/generated/models/connection_status.rb +1 -1
  15. data/lib/appnigma/generated/models/create_connection_link_input.rb +1 -1
  16. data/lib/appnigma/generated/models/create_connection_link_output.rb +2 -2
  17. data/lib/appnigma/generated/models/crm_company.rb +1 -1
  18. data/lib/appnigma/generated/models/crm_company_get_output.rb +1 -1
  19. data/lib/appnigma/generated/models/crm_company_list_output.rb +1 -1
  20. data/lib/appnigma/generated/models/{post_output.rb → crm_company_write_output.rb} +20 -46
  21. data/lib/appnigma/generated/models/crm_contact.rb +1 -1
  22. data/lib/appnigma/generated/models/crm_contact_get_output.rb +1 -1
  23. data/lib/appnigma/generated/models/crm_contact_list_output.rb +1 -1
  24. data/lib/appnigma/generated/models/crm_contact_write_output.rb +177 -0
  25. data/lib/appnigma/generated/models/crm_create_input.rb +256 -0
  26. data/lib/appnigma/generated/models/crm_custom_field.rb +1 -1
  27. data/lib/appnigma/generated/models/crm_deal.rb +1 -1
  28. data/lib/appnigma/generated/models/{post_input.rb → crm_deal_create_input.rb} +48 -81
  29. data/lib/appnigma/generated/models/crm_deal_get_output.rb +1 -1
  30. data/lib/appnigma/generated/models/crm_deal_list_output.rb +1 -1
  31. data/lib/appnigma/generated/models/crm_deal_write_output.rb +177 -0
  32. data/lib/appnigma/generated/models/crm_email.rb +1 -1
  33. data/lib/appnigma/generated/models/crm_get_input.rb +1 -1
  34. data/lib/appnigma/generated/models/crm_labelled.rb +1 -1
  35. data/lib/appnigma/generated/models/crm_list_input.rb +1 -1
  36. data/lib/appnigma/generated/models/crm_phone.rb +1 -1
  37. data/lib/appnigma/generated/models/{pull_input.rb → crm_update_input.rb} +66 -100
  38. data/lib/appnigma/generated/models/function_entry.rb +1 -1
  39. data/lib/appnigma/generated/models/function_owner.rb +1 -1
  40. data/lib/appnigma/generated/models/function_owner_one_of.rb +1 -1
  41. data/lib/appnigma/generated/models/function_owner_one_of1.rb +1 -1
  42. data/lib/appnigma/generated/models/get_connection_output.rb +1 -1
  43. data/lib/appnigma/generated/models/get_guide_output.rb +1 -1
  44. data/lib/appnigma/generated/models/json_value.rb +1 -1
  45. data/lib/appnigma/generated/models/{pull_output_records_inner.rb → list_actions_output.rb} +21 -47
  46. data/lib/appnigma/generated/models/list_functions_output.rb +1 -1
  47. data/lib/appnigma/generated/models/list_platforms_output.rb +179 -0
  48. data/lib/appnigma/generated/models/platform_entry.rb +269 -0
  49. data/lib/appnigma/generated/models/platform_entry_coverage_inner.rb +219 -0
  50. data/lib/appnigma/generated/models/platform_request_input.rb +1 -1
  51. data/lib/appnigma/generated/models/platform_request_input_body.rb +1 -1
  52. data/lib/appnigma/generated/models/platform_request_output.rb +1 -1
  53. data/lib/appnigma/generated/models/ran_as.rb +4 -6
  54. data/lib/appnigma/generated/models/run_action_input.rb +277 -0
  55. data/lib/appnigma/generated/models/{pull_output.rb → run_action_output.rb} +21 -34
  56. data/lib/appnigma/generated/models/run_input.rb +3 -3
  57. data/lib/appnigma/generated/models/run_output.rb +1 -1
  58. data/lib/appnigma/generated/models/sdk_error.rb +1 -1
  59. data/lib/appnigma/generated/models/sdk_error_error.rb +3 -3
  60. data/lib/appnigma/generated/models/sdk_error_error_details.rb +32 -3
  61. data/lib/appnigma/generated/models/sdk_problem.rb +1 -1
  62. data/lib/appnigma/generated/version.rb +1 -1
  63. data/lib/appnigma/generated.rb +14 -7
  64. data/lib/appnigma/names.rb +9 -0
  65. data/lib/appnigma/platforms.rb +18 -0
  66. data/lib/appnigma/retry.rb +3 -3
  67. data/lib/appnigma/version.rb +2 -2
  68. metadata +15 -7
  69. data/lib/appnigma/generated/models/post_input_record_value.rb +0 -104
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -0,0 +1,341 @@
1
+ =begin
2
+ #Appnigma SDK API
3
+
4
+ #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
+
6
+ The version of the OpenAPI document: 3.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Appnigma::Generated
17
+ class ActionEntry < ApiModelBase
18
+ # The platform key the action runs on
19
+ attr_accessor :platform
20
+
21
+ # The action's name, such as get-call-transcript
22
+ attr_accessor :name
23
+
24
+ attr_accessor :description
25
+
26
+ # The action's own version, such as 1.0.2
27
+ attr_accessor :version
28
+
29
+ # What the end customer's connection must be given for the action to run
30
+ attr_accessor :scopes
31
+
32
+ # JSON Schema of what the action takes as input
33
+ attr_accessor :input
34
+
35
+ # JSON Schema of what the action answers
36
+ attr_accessor :output
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'platform' => :'platform',
42
+ :'name' => :'name',
43
+ :'description' => :'description',
44
+ :'version' => :'version',
45
+ :'scopes' => :'scopes',
46
+ :'input' => :'input',
47
+ :'output' => :'output'
48
+ }
49
+ end
50
+
51
+ # Returns attribute mapping this model knows about
52
+ def self.acceptable_attribute_map
53
+ attribute_map
54
+ end
55
+
56
+ # Returns all the JSON keys this model knows about
57
+ def self.acceptable_attributes
58
+ acceptable_attribute_map.values
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.openapi_types
63
+ {
64
+ :'platform' => :'String',
65
+ :'name' => :'String',
66
+ :'description' => :'String',
67
+ :'version' => :'String',
68
+ :'scopes' => :'Array<String>',
69
+ :'input' => :'Object',
70
+ :'output' => :'Object'
71
+ }
72
+ end
73
+
74
+ # List of attributes with nullable: true
75
+ def self.openapi_nullable
76
+ Set.new([
77
+ ])
78
+ end
79
+
80
+ # Returns attribute type mapping
81
+ def self.acceptable_openapi_types
82
+ openapi_types
83
+ end
84
+
85
+ # Returns the nullable attributes
86
+ def self.acceptable_openapi_nullable
87
+ openapi_nullable
88
+ end
89
+
90
+ # Initializes the object
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ def initialize(attributes = {})
93
+ if (!attributes.is_a?(Hash))
94
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::ActionEntry` initialize method"
95
+ end
96
+
97
+ # check to see if the attribute exists and convert string to symbol for hash key
98
+ acceptable_attribute_map = self.class.acceptable_attribute_map
99
+ attributes = attributes.each_with_object({}) { |(k, v), h|
100
+ if (!acceptable_attribute_map.key?(k.to_sym))
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::ActionEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
102
+ end
103
+ h[k.to_sym] = v
104
+ }
105
+
106
+ if attributes.key?(:'platform')
107
+ self.platform = attributes[:'platform']
108
+ else
109
+ self.platform = nil
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ else
115
+ self.name = nil
116
+ end
117
+
118
+ if attributes.key?(:'description')
119
+ self.description = attributes[:'description']
120
+ else
121
+ self.description = nil
122
+ end
123
+
124
+ if attributes.key?(:'version')
125
+ self.version = attributes[:'version']
126
+ else
127
+ self.version = nil
128
+ end
129
+
130
+ if attributes.key?(:'scopes')
131
+ if (value = attributes[:'scopes']).is_a?(Array)
132
+ self.scopes = value
133
+ end
134
+ else
135
+ self.scopes = nil
136
+ end
137
+
138
+ if attributes.key?(:'input')
139
+ self.input = attributes[:'input']
140
+ else
141
+ self.input = nil
142
+ end
143
+
144
+ if attributes.key?(:'output')
145
+ self.output = attributes[:'output']
146
+ else
147
+ self.output = nil
148
+ end
149
+ end
150
+
151
+ # Show invalid properties with the reasons. Usually used together with valid?
152
+ # @return Array for valid properties with the reasons
153
+ def list_invalid_properties
154
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
155
+ invalid_properties = Array.new
156
+ if @platform.nil?
157
+ invalid_properties.push('invalid value for "platform", platform cannot be nil.')
158
+ end
159
+
160
+ if @name.nil?
161
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
162
+ end
163
+
164
+ if @description.nil?
165
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
166
+ end
167
+
168
+ if @version.nil?
169
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
170
+ end
171
+
172
+ if @scopes.nil?
173
+ invalid_properties.push('invalid value for "scopes", scopes cannot be nil.')
174
+ end
175
+
176
+ if @input.nil?
177
+ invalid_properties.push('invalid value for "input", input cannot be nil.')
178
+ end
179
+
180
+ if @output.nil?
181
+ invalid_properties.push('invalid value for "output", output cannot be nil.')
182
+ end
183
+
184
+ invalid_properties
185
+ end
186
+
187
+ # Check to see if the all the properties in the model are valid
188
+ # @return true if the model is valid
189
+ def valid?
190
+ warn '[DEPRECATED] the `valid?` method is obsolete'
191
+ return false if @platform.nil?
192
+ return false if @name.nil?
193
+ return false if @description.nil?
194
+ return false if @version.nil?
195
+ return false if @scopes.nil?
196
+ return false if @input.nil?
197
+ return false if @output.nil?
198
+ true
199
+ end
200
+
201
+ # Custom attribute writer method with validation
202
+ # @param [Object] platform Value to be assigned
203
+ def platform=(platform)
204
+ if platform.nil?
205
+ fail ArgumentError, 'platform cannot be nil'
206
+ end
207
+
208
+ @platform = platform
209
+ end
210
+
211
+ # Custom attribute writer method with validation
212
+ # @param [Object] name Value to be assigned
213
+ def name=(name)
214
+ if name.nil?
215
+ fail ArgumentError, 'name cannot be nil'
216
+ end
217
+
218
+ @name = name
219
+ end
220
+
221
+ # Custom attribute writer method with validation
222
+ # @param [Object] description Value to be assigned
223
+ def description=(description)
224
+ if description.nil?
225
+ fail ArgumentError, 'description cannot be nil'
226
+ end
227
+
228
+ @description = description
229
+ end
230
+
231
+ # Custom attribute writer method with validation
232
+ # @param [Object] version Value to be assigned
233
+ def version=(version)
234
+ if version.nil?
235
+ fail ArgumentError, 'version cannot be nil'
236
+ end
237
+
238
+ @version = version
239
+ end
240
+
241
+ # Custom attribute writer method with validation
242
+ # @param [Object] scopes Value to be assigned
243
+ def scopes=(scopes)
244
+ if scopes.nil?
245
+ fail ArgumentError, 'scopes cannot be nil'
246
+ end
247
+
248
+ @scopes = scopes
249
+ end
250
+
251
+ # Custom attribute writer method with validation
252
+ # @param [Object] input Value to be assigned
253
+ def input=(input)
254
+ if input.nil?
255
+ fail ArgumentError, 'input cannot be nil'
256
+ end
257
+
258
+ @input = input
259
+ end
260
+
261
+ # Custom attribute writer method with validation
262
+ # @param [Object] output Value to be assigned
263
+ def output=(output)
264
+ if output.nil?
265
+ fail ArgumentError, 'output cannot be nil'
266
+ end
267
+
268
+ @output = output
269
+ end
270
+
271
+ # Checks equality by comparing each attribute.
272
+ # @param [Object] Object to be compared
273
+ def ==(o)
274
+ return true if self.equal?(o)
275
+ self.class == o.class &&
276
+ platform == o.platform &&
277
+ name == o.name &&
278
+ description == o.description &&
279
+ version == o.version &&
280
+ scopes == o.scopes &&
281
+ input == o.input &&
282
+ output == o.output
283
+ end
284
+
285
+ # @see the `==` method
286
+ # @param [Object] Object to be compared
287
+ def eql?(o)
288
+ self == o
289
+ end
290
+
291
+ # Calculates hash code according to all attributes.
292
+ # @return [Integer] Hash code
293
+ def hash
294
+ [platform, name, description, version, scopes, input, output].hash
295
+ end
296
+
297
+ # Builds the object from hash
298
+ # @param [Hash] attributes Model attributes in the form of hash
299
+ # @return [Object] Returns the model itself
300
+ def self.build_from_hash(attributes)
301
+ return nil unless attributes.is_a?(Hash)
302
+ attributes = attributes.transform_keys(&:to_sym)
303
+ # include attributes inherited from allOf parents (the nearest declaration wins)
304
+ map = acceptable_attribute_map
305
+ transformed_hash = {}
306
+ acceptable_openapi_types.each_pair do |key, type|
307
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
308
+ transformed_hash["#{key}"] = nil
309
+ elsif type =~ /\AArray<(.*)>/i
310
+ # check to ensure the input is an array given that the attribute
311
+ # is documented as an array but the input is not
312
+ if attributes[map[key]].is_a?(Array)
313
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
314
+ end
315
+ elsif !attributes[map[key]].nil?
316
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
317
+ end
318
+ end
319
+ new(transformed_hash)
320
+ end
321
+
322
+ # Returns the object in the form of hash
323
+ # @return [Hash] Returns the object in the form of hash
324
+ def to_hash
325
+ hash = {}
326
+ # include attributes inherited from allOf parents (the nearest declaration wins)
327
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
328
+ value = self.send(attr)
329
+ if value.nil?
330
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
331
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
332
+ end
333
+
334
+ hash[param] = _to_hash(value)
335
+ end
336
+ hash
337
+ end
338
+
339
+ end
340
+
341
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Appnigma::Generated
17
17
  class CreateConnectionLinkOutput < ApiModelBase
18
- # Send the end customer here. It works once and lasts 15 minutes; opening it does not spend it, pressing Connect on the page does.
18
+ # Send the end customer here. It works once and lasts 15 minutes; opening it does not spend it, finishing the connection does.
19
19
  attr_accessor :url
20
20
 
21
21
  # ISO 8601, in UTC
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -14,16 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Appnigma::Generated
17
- class PostOutput < ApiModelBase
18
- attr_accessor :id
19
-
20
- attr_accessor :created
17
+ class CrmCompanyWriteOutput < ApiModelBase
18
+ attr_accessor :record
21
19
 
22
20
  # Attribute mapping from ruby-style variable name to JSON key.
23
21
  def self.attribute_map
24
22
  {
25
- :'id' => :'id',
26
- :'created' => :'created'
23
+ :'record' => :'record'
27
24
  }
28
25
  end
29
26
 
@@ -40,8 +37,7 @@ module Appnigma::Generated
40
37
  # Attribute type mapping.
41
38
  def self.openapi_types
42
39
  {
43
- :'id' => :'String',
44
- :'created' => :'Boolean'
40
+ :'record' => :'CrmCompany'
45
41
  }
46
42
  end
47
43
 
@@ -65,28 +61,22 @@ module Appnigma::Generated
65
61
  # @param [Hash] attributes Model attributes in the form of hash
66
62
  def initialize(attributes = {})
67
63
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::PostOutput` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::CrmCompanyWriteOutput` initialize method"
69
65
  end
70
66
 
71
67
  # check to see if the attribute exists and convert string to symbol for hash key
72
68
  acceptable_attribute_map = self.class.acceptable_attribute_map
73
69
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
70
  if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::PostOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::CrmCompanyWriteOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
72
  end
77
73
  h[k.to_sym] = v
78
74
  }
79
75
 
80
- if attributes.key?(:'id')
81
- self.id = attributes[:'id']
82
- else
83
- self.id = nil
84
- end
85
-
86
- if attributes.key?(:'created')
87
- self.created = attributes[:'created']
76
+ if attributes.key?(:'record')
77
+ self.record = attributes[:'record']
88
78
  else
89
- self.created = nil
79
+ self.record = nil
90
80
  end
91
81
  end
92
82
 
@@ -95,12 +85,8 @@ module Appnigma::Generated
95
85
  def list_invalid_properties
96
86
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
87
  invalid_properties = Array.new
98
- if @id.nil?
99
- invalid_properties.push('invalid value for "id", id cannot be nil.')
100
- end
101
-
102
- if @created.nil?
103
- invalid_properties.push('invalid value for "created", created cannot be nil.')
88
+ if @record.nil?
89
+ invalid_properties.push('invalid value for "record", record cannot be nil.')
104
90
  end
105
91
 
106
92
  invalid_properties
@@ -110,29 +96,18 @@ module Appnigma::Generated
110
96
  # @return true if the model is valid
111
97
  def valid?
112
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
113
- return false if @id.nil?
114
- return false if @created.nil?
99
+ return false if @record.nil?
115
100
  true
116
101
  end
117
102
 
118
103
  # Custom attribute writer method with validation
119
- # @param [Object] id Value to be assigned
120
- def id=(id)
121
- if id.nil?
122
- fail ArgumentError, 'id cannot be nil'
123
- end
124
-
125
- @id = id
126
- end
127
-
128
- # Custom attribute writer method with validation
129
- # @param [Object] created Value to be assigned
130
- def created=(created)
131
- if created.nil?
132
- fail ArgumentError, 'created cannot be nil'
104
+ # @param [Object] record Value to be assigned
105
+ def record=(record)
106
+ if record.nil?
107
+ fail ArgumentError, 'record cannot be nil'
133
108
  end
134
109
 
135
- @created = created
110
+ @record = record
136
111
  end
137
112
 
138
113
  # Checks equality by comparing each attribute.
@@ -140,8 +115,7 @@ module Appnigma::Generated
140
115
  def ==(o)
141
116
  return true if self.equal?(o)
142
117
  self.class == o.class &&
143
- id == o.id &&
144
- created == o.created
118
+ record == o.record
145
119
  end
146
120
 
147
121
  # @see the `==` method
@@ -153,7 +127,7 @@ module Appnigma::Generated
153
127
  # Calculates hash code according to all attributes.
154
128
  # @return [Integer] Hash code
155
129
  def hash
156
- [id, created].hash
130
+ [record].hash
157
131
  end
158
132
 
159
133
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The routes a customer's product calls through an Appnigma SDK. Every answer carries a request id in X-Request-Id; quote it when you write to support.
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.26.0