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
@@ -14,12 +14,10 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Appnigma::Generated
17
- # Whose function answered, and its version. On run, the end customer's own function or yours.
18
17
  class RanAs < ApiModelBase
19
- # customer for your own function, end_customer for one written for this end customer, standard for the logic every customer gets
18
+ # The customer's function, or the end customer's own
20
19
  attr_accessor :owner
21
20
 
22
- # The version of the function that ran
23
21
  attr_accessor :version
24
22
 
25
23
  class EnumAttributeValidator
@@ -140,7 +138,7 @@ module Appnigma::Generated
140
138
  def valid?
141
139
  warn '[DEPRECATED] the `valid?` method is obsolete'
142
140
  return false if @owner.nil?
143
- owner_validator = EnumAttributeValidator.new('String', ["customer", "end_customer", "standard"])
141
+ owner_validator = EnumAttributeValidator.new('String', ["customer", "end_customer"])
144
142
  return false unless owner_validator.valid?(@owner)
145
143
  return false if @version.nil?
146
144
  return false if @version < 1
@@ -150,7 +148,7 @@ module Appnigma::Generated
150
148
  # Custom attribute writer method checking allowed values (enum).
151
149
  # @param [Object] owner Object to be assigned
152
150
  def owner=(owner)
153
- validator = EnumAttributeValidator.new('String', ["customer", "end_customer", "standard"])
151
+ validator = EnumAttributeValidator.new('String', ["customer", "end_customer"])
154
152
  unless validator.valid?(owner)
155
153
  fail ArgumentError, "invalid value for \"owner\", must be one of #{validator.allowable_values}."
156
154
  end
@@ -0,0 +1,277 @@
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 RunActionInput < ApiModelBase
18
+ # Your own id for the end customer.
19
+ attr_accessor :end_customer_id
20
+
21
+ # The platform the action runs on; it must be switched on for your company.
22
+ attr_accessor :platform
23
+
24
+ # The action's name, as actions.list names it.
25
+ attr_accessor :action
26
+
27
+ # What the action takes, in the shape of its input schema. Default {}.
28
+ attr_accessor :input
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'end_customer_id' => :'endCustomerId',
34
+ :'platform' => :'platform',
35
+ :'action' => :'action',
36
+ :'input' => :'input'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'end_customer_id' => :'String',
54
+ :'platform' => :'String',
55
+ :'action' => :'String',
56
+ :'input' => :'Hash<String, JsonValue>'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Returns attribute type mapping
67
+ def self.acceptable_openapi_types
68
+ openapi_types
69
+ end
70
+
71
+ # Returns the nullable attributes
72
+ def self.acceptable_openapi_nullable
73
+ openapi_nullable
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::RunActionInput` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::RunActionInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'end_customer_id')
93
+ self.end_customer_id = attributes[:'end_customer_id']
94
+ else
95
+ self.end_customer_id = nil
96
+ end
97
+
98
+ if attributes.key?(:'platform')
99
+ self.platform = attributes[:'platform']
100
+ else
101
+ self.platform = nil
102
+ end
103
+
104
+ if attributes.key?(:'action')
105
+ self.action = attributes[:'action']
106
+ else
107
+ self.action = nil
108
+ end
109
+
110
+ if attributes.key?(:'input')
111
+ if (value = attributes[:'input']).is_a?(Hash)
112
+ self.input = value
113
+ end
114
+ end
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
121
+ invalid_properties = Array.new
122
+ if @end_customer_id.nil?
123
+ invalid_properties.push('invalid value for "end_customer_id", end_customer_id cannot be nil.')
124
+ end
125
+
126
+ pattern = Regexp.new(/^[A-Za-z0-9._-]{1,100}$/)
127
+ if @end_customer_id !~ pattern
128
+ invalid_properties.push("invalid value for \"end_customer_id\", must conform to the pattern #{pattern}.")
129
+ end
130
+
131
+ if @platform.nil?
132
+ invalid_properties.push('invalid value for "platform", platform cannot be nil.')
133
+ end
134
+
135
+ pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
136
+ if @platform !~ pattern
137
+ invalid_properties.push("invalid value for \"platform\", must conform to the pattern #{pattern}.")
138
+ end
139
+
140
+ if @action.nil?
141
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
142
+ end
143
+
144
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9-]{0,63}$/)
145
+ if @action !~ pattern
146
+ invalid_properties.push("invalid value for \"action\", must conform to the pattern #{pattern}.")
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ warn '[DEPRECATED] the `valid?` method is obsolete'
156
+ return false if @end_customer_id.nil?
157
+ return false if @end_customer_id !~ Regexp.new(/^[A-Za-z0-9._-]{1,100}$/)
158
+ return false if @platform.nil?
159
+ return false if @platform !~ Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
160
+ return false if @action.nil?
161
+ return false if @action !~ Regexp.new(/^[a-z0-9][a-z0-9-]{0,63}$/)
162
+ true
163
+ end
164
+
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] end_customer_id Value to be assigned
167
+ def end_customer_id=(end_customer_id)
168
+ if end_customer_id.nil?
169
+ fail ArgumentError, 'end_customer_id cannot be nil'
170
+ end
171
+
172
+ pattern = Regexp.new(/^[A-Za-z0-9._-]{1,100}$/)
173
+ if end_customer_id !~ pattern
174
+ fail ArgumentError, "invalid value for \"end_customer_id\", must conform to the pattern #{pattern}."
175
+ end
176
+
177
+ @end_customer_id = end_customer_id
178
+ end
179
+
180
+ # Custom attribute writer method with validation
181
+ # @param [Object] platform Value to be assigned
182
+ def platform=(platform)
183
+ if platform.nil?
184
+ fail ArgumentError, 'platform cannot be nil'
185
+ end
186
+
187
+ pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
188
+ if platform !~ pattern
189
+ fail ArgumentError, "invalid value for \"platform\", must conform to the pattern #{pattern}."
190
+ end
191
+
192
+ @platform = platform
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] action Value to be assigned
197
+ def action=(action)
198
+ if action.nil?
199
+ fail ArgumentError, 'action cannot be nil'
200
+ end
201
+
202
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9-]{0,63}$/)
203
+ if action !~ pattern
204
+ fail ArgumentError, "invalid value for \"action\", must conform to the pattern #{pattern}."
205
+ end
206
+
207
+ @action = action
208
+ end
209
+
210
+ # Checks equality by comparing each attribute.
211
+ # @param [Object] Object to be compared
212
+ def ==(o)
213
+ return true if self.equal?(o)
214
+ self.class == o.class &&
215
+ end_customer_id == o.end_customer_id &&
216
+ platform == o.platform &&
217
+ action == o.action &&
218
+ input == o.input
219
+ end
220
+
221
+ # @see the `==` method
222
+ # @param [Object] Object to be compared
223
+ def eql?(o)
224
+ self == o
225
+ end
226
+
227
+ # Calculates hash code according to all attributes.
228
+ # @return [Integer] Hash code
229
+ def hash
230
+ [end_customer_id, platform, action, input].hash
231
+ end
232
+
233
+ # Builds the object from hash
234
+ # @param [Hash] attributes Model attributes in the form of hash
235
+ # @return [Object] Returns the model itself
236
+ def self.build_from_hash(attributes)
237
+ return nil unless attributes.is_a?(Hash)
238
+ attributes = attributes.transform_keys(&:to_sym)
239
+ # include attributes inherited from allOf parents (the nearest declaration wins)
240
+ map = acceptable_attribute_map
241
+ transformed_hash = {}
242
+ acceptable_openapi_types.each_pair do |key, type|
243
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
244
+ transformed_hash["#{key}"] = nil
245
+ elsif type =~ /\AArray<(.*)>/i
246
+ # check to ensure the input is an array given that the attribute
247
+ # is documented as an array but the input is not
248
+ if attributes[map[key]].is_a?(Array)
249
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
250
+ end
251
+ elsif !attributes[map[key]].nil?
252
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
253
+ end
254
+ end
255
+ new(transformed_hash)
256
+ end
257
+
258
+ # Returns the object in the form of hash
259
+ # @return [Hash] Returns the object in the form of hash
260
+ def to_hash
261
+ hash = {}
262
+ # include attributes inherited from allOf parents (the nearest declaration wins)
263
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
264
+ value = self.send(attr)
265
+ if value.nil?
266
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
267
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
268
+ end
269
+
270
+ hash[param] = _to_hash(value)
271
+ end
272
+ hash
273
+ end
274
+
275
+ end
276
+
277
+ 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
@@ -14,16 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Appnigma::Generated
17
- class PullOutput < ApiModelBase
18
- attr_accessor :records
19
-
20
- attr_accessor :_next
17
+ class RunActionOutput < ApiModelBase
18
+ # What the action answered, in the shape its output schema describes
19
+ attr_accessor :output
21
20
 
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
25
- :'records' => :'records',
26
- :'_next' => :'next'
24
+ :'output' => :'output'
27
25
  }
28
26
  end
29
27
 
@@ -40,15 +38,13 @@ module Appnigma::Generated
40
38
  # Attribute type mapping.
41
39
  def self.openapi_types
42
40
  {
43
- :'records' => :'Array<PullOutputRecordsInner>',
44
- :'_next' => :'String'
41
+ :'output' => :'Object'
45
42
  }
46
43
  end
47
44
 
48
45
  # List of attributes with nullable: true
49
46
  def self.openapi_nullable
50
47
  Set.new([
51
- :'_next'
52
48
  ])
53
49
  end
54
50
 
@@ -66,30 +62,22 @@ module Appnigma::Generated
66
62
  # @param [Hash] attributes Model attributes in the form of hash
67
63
  def initialize(attributes = {})
68
64
  if (!attributes.is_a?(Hash))
69
- fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::PullOutput` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::RunActionOutput` initialize method"
70
66
  end
71
67
 
72
68
  # check to see if the attribute exists and convert string to symbol for hash key
73
69
  acceptable_attribute_map = self.class.acceptable_attribute_map
74
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
75
71
  if (!acceptable_attribute_map.key?(k.to_sym))
76
- fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::PullOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::RunActionOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
73
  end
78
74
  h[k.to_sym] = v
79
75
  }
80
76
 
81
- if attributes.key?(:'records')
82
- if (value = attributes[:'records']).is_a?(Array)
83
- self.records = value
84
- end
85
- else
86
- self.records = nil
87
- end
88
-
89
- if attributes.key?(:'_next')
90
- self._next = attributes[:'_next']
77
+ if attributes.key?(:'output')
78
+ self.output = attributes[:'output']
91
79
  else
92
- self._next = nil
80
+ self.output = nil
93
81
  end
94
82
  end
95
83
 
@@ -98,8 +86,8 @@ module Appnigma::Generated
98
86
  def list_invalid_properties
99
87
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
88
  invalid_properties = Array.new
101
- if @records.nil?
102
- invalid_properties.push('invalid value for "records", records cannot be nil.')
89
+ if @output.nil?
90
+ invalid_properties.push('invalid value for "output", output cannot be nil.')
103
91
  end
104
92
 
105
93
  invalid_properties
@@ -109,18 +97,18 @@ module Appnigma::Generated
109
97
  # @return true if the model is valid
110
98
  def valid?
111
99
  warn '[DEPRECATED] the `valid?` method is obsolete'
112
- return false if @records.nil?
100
+ return false if @output.nil?
113
101
  true
114
102
  end
115
103
 
116
104
  # Custom attribute writer method with validation
117
- # @param [Object] records Value to be assigned
118
- def records=(records)
119
- if records.nil?
120
- fail ArgumentError, 'records cannot be nil'
105
+ # @param [Object] output Value to be assigned
106
+ def output=(output)
107
+ if output.nil?
108
+ fail ArgumentError, 'output cannot be nil'
121
109
  end
122
110
 
123
- @records = records
111
+ @output = output
124
112
  end
125
113
 
126
114
  # Checks equality by comparing each attribute.
@@ -128,8 +116,7 @@ module Appnigma::Generated
128
116
  def ==(o)
129
117
  return true if self.equal?(o)
130
118
  self.class == o.class &&
131
- records == o.records &&
132
- _next == o._next
119
+ output == o.output
133
120
  end
134
121
 
135
122
  # @see the `==` method
@@ -141,7 +128,7 @@ module Appnigma::Generated
141
128
  # Calculates hash code according to all attributes.
142
129
  # @return [Integer] Hash code
143
130
  def hash
144
- [records, _next].hash
131
+ [output].hash
145
132
  end
146
133
 
147
134
  # 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
@@ -27,7 +27,7 @@ module Appnigma::Generated
27
27
  # What the function takes, in the shape it declared.
28
28
  attr_accessor :input
29
29
 
30
- # Ignored. Each function has one live version, and that is the one that runs. SDKs before TypeScript 0.3.0 and Ruby 0.2.0 send it; whatever it holds, the call is not refused for it.
30
+ # Ignored: the live version always runs. Still taken, so a package from before 17.4 is not refused.
31
31
  attr_accessor :version
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -58,7 +58,7 @@ module Appnigma::Generated
58
58
  :'platform' => :'String',
59
59
  :'function_name' => :'String',
60
60
  :'input' => :'Hash<String, JsonValue>',
61
- :'version' => :'Object'
61
+ :'version' => :'JsonValue'
62
62
  }
63
63
  end
64
64
 
@@ -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
@@ -148,7 +148,7 @@ module Appnigma::Generated
148
148
  def valid?
149
149
  warn '[DEPRECATED] the `valid?` method is obsolete'
150
150
  return false if @code.nil?
151
- code_validator = EnumAttributeValidator.new('String', ["INVALID_INPUT", "SDK_KEY_MISSING", "SDK_KEY_INVALID", "SDK_KEY_CANCELLED", "MICROSERVER_NOT_ENABLED", "PLATFORM_NOT_ENABLED", "END_CUSTOMER_NOT_FOUND", "FUNCTION_NOT_FOUND", "FUNCTION_RETIRED", "RECORD_NOT_FOUND", "DATA_TYPE_NOT_AVAILABLE", "CONNECTION_NEEDS_RECONNECT", "RATE_LIMITED", "PLATFORM_RATE_LIMITED", "PLATFORM_ERROR", "TIMED_OUT", "LOGIC_FAILED", "INTERNAL_ERROR"])
151
+ code_validator = EnumAttributeValidator.new('String', ["INVALID_INPUT", "SDK_KEY_MISSING", "SDK_KEY_INVALID", "SDK_KEY_CANCELLED", "MICROSERVER_NOT_ENABLED", "PLATFORM_NOT_ENABLED", "END_CUSTOMER_NOT_FOUND", "FUNCTION_NOT_FOUND", "FUNCTION_RETIRED", "RECORD_NOT_FOUND", "ACTION_NOT_FOUND", "MISSING_SCOPES", "DATA_TYPE_NOT_AVAILABLE", "CONNECTION_NEEDS_RECONNECT", "RATE_LIMITED", "PLATFORM_RATE_LIMITED", "PLATFORM_REFUSED", "PLATFORM_ERROR", "TIMED_OUT", "LOGIC_FAILED", "INTERNAL_ERROR"])
152
152
  return false unless code_validator.valid?(@code)
153
153
  return false if @message.nil?
154
154
  return false if @details.nil?
@@ -158,7 +158,7 @@ module Appnigma::Generated
158
158
  # Custom attribute writer method checking allowed values (enum).
159
159
  # @param [Object] code Object to be assigned
160
160
  def code=(code)
161
- validator = EnumAttributeValidator.new('String', ["INVALID_INPUT", "SDK_KEY_MISSING", "SDK_KEY_INVALID", "SDK_KEY_CANCELLED", "MICROSERVER_NOT_ENABLED", "PLATFORM_NOT_ENABLED", "END_CUSTOMER_NOT_FOUND", "FUNCTION_NOT_FOUND", "FUNCTION_RETIRED", "RECORD_NOT_FOUND", "DATA_TYPE_NOT_AVAILABLE", "CONNECTION_NEEDS_RECONNECT", "RATE_LIMITED", "PLATFORM_RATE_LIMITED", "PLATFORM_ERROR", "TIMED_OUT", "LOGIC_FAILED", "INTERNAL_ERROR"])
161
+ validator = EnumAttributeValidator.new('String', ["INVALID_INPUT", "SDK_KEY_MISSING", "SDK_KEY_INVALID", "SDK_KEY_CANCELLED", "MICROSERVER_NOT_ENABLED", "PLATFORM_NOT_ENABLED", "END_CUSTOMER_NOT_FOUND", "FUNCTION_NOT_FOUND", "FUNCTION_RETIRED", "RECORD_NOT_FOUND", "ACTION_NOT_FOUND", "MISSING_SCOPES", "DATA_TYPE_NOT_AVAILABLE", "CONNECTION_NEEDS_RECONNECT", "RATE_LIMITED", "PLATFORM_RATE_LIMITED", "PLATFORM_REFUSED", "PLATFORM_ERROR", "TIMED_OUT", "LOGIC_FAILED", "INTERNAL_ERROR"])
162
162
  unless validator.valid?(code)
163
163
  fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
164
164
  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
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Appnigma::Generated
17
- # More about this error when there is more to say: problems on INVALID_INPUT, platform on END_CUSTOMER_NOT_FOUND, platforms on a FUNCTION_NOT_FOUND whose name exists on another platform, platform, functionName and retiredAt on FUNCTION_RETIRED, retryAfterSeconds on a 429.
17
+ # More about this error when there is more to say: problems on INVALID_INPUT, platform on END_CUSTOMER_NOT_FOUND, platforms on a FUNCTION_NOT_FOUND whose name exists on another platform, platform, functionName and retiredAt on FUNCTION_RETIRED, platform and action on ACTION_NOT_FOUND and MISSING_SCOPES, missing on MISSING_SCOPES, status (the platform's own) on PLATFORM_REFUSED and PLATFORM_ERROR, retryAfterSeconds on a 429.
18
18
  class SdkErrorErrorDetails < ApiModelBase
19
19
  attr_accessor :problems
20
20
 
@@ -26,6 +26,12 @@ module Appnigma::Generated
26
26
 
27
27
  attr_accessor :retired_at
28
28
 
29
+ attr_accessor :action
30
+
31
+ attr_accessor :missing
32
+
33
+ attr_accessor :status
34
+
29
35
  attr_accessor :retry_after_seconds
30
36
 
31
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,6 +42,9 @@ module Appnigma::Generated
36
42
  :'platforms' => :'platforms',
37
43
  :'function_name' => :'functionName',
38
44
  :'retired_at' => :'retiredAt',
45
+ :'action' => :'action',
46
+ :'missing' => :'missing',
47
+ :'status' => :'status',
39
48
  :'retry_after_seconds' => :'retryAfterSeconds'
40
49
  }
41
50
  end
@@ -58,6 +67,9 @@ module Appnigma::Generated
58
67
  :'platforms' => :'Array<String>',
59
68
  :'function_name' => :'String',
60
69
  :'retired_at' => :'Time',
70
+ :'action' => :'String',
71
+ :'missing' => :'Array<String>',
72
+ :'status' => :'Integer',
61
73
  :'retry_after_seconds' => :'Integer'
62
74
  }
63
75
  end
@@ -118,6 +130,20 @@ module Appnigma::Generated
118
130
  self.retired_at = attributes[:'retired_at']
119
131
  end
120
132
 
133
+ if attributes.key?(:'action')
134
+ self.action = attributes[:'action']
135
+ end
136
+
137
+ if attributes.key?(:'missing')
138
+ if (value = attributes[:'missing']).is_a?(Array)
139
+ self.missing = value
140
+ end
141
+ end
142
+
143
+ if attributes.key?(:'status')
144
+ self.status = attributes[:'status']
145
+ end
146
+
121
147
  if attributes.key?(:'retry_after_seconds')
122
148
  self.retry_after_seconds = attributes[:'retry_after_seconds']
123
149
  end
@@ -167,6 +193,9 @@ module Appnigma::Generated
167
193
  platforms == o.platforms &&
168
194
  function_name == o.function_name &&
169
195
  retired_at == o.retired_at &&
196
+ action == o.action &&
197
+ missing == o.missing &&
198
+ status == o.status &&
170
199
  retry_after_seconds == o.retry_after_seconds
171
200
  end
172
201
 
@@ -179,7 +208,7 @@ module Appnigma::Generated
179
208
  # Calculates hash code according to all attributes.
180
209
  # @return [Integer] Hash code
181
210
  def hash
182
- [problems, platform, platforms, function_name, retired_at, retry_after_seconds].hash
211
+ [problems, platform, platforms, function_name, retired_at, action, missing, status, retry_after_seconds].hash
183
212
  end
184
213
 
185
214
  # 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