appnigma-sdk 0.2.0 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +90 -69
- data/lib/appnigma/client.rb +21 -28
- data/lib/appnigma/constants.rb +1 -0
- data/lib/appnigma/crm.rb +63 -6
- data/lib/appnigma/errors.rb +15 -0
- data/lib/appnigma/generated/api/default_api.rb +523 -61
- data/lib/appnigma/generated/api_client.rb +1 -1
- data/lib/appnigma/generated/api_error.rb +1 -1
- data/lib/appnigma/generated/api_model_base.rb +1 -1
- data/lib/appnigma/generated/configuration.rb +1 -1
- data/lib/appnigma/generated/models/action_entry.rb +341 -0
- data/lib/appnigma/generated/models/connection_status.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_input.rb +1 -1
- data/lib/appnigma/generated/models/create_connection_link_output.rb +2 -2
- data/lib/appnigma/generated/models/crm_company.rb +1 -1
- data/lib/appnigma/generated/models/crm_company_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_company_list_output.rb +1 -1
- data/lib/appnigma/generated/models/{post_output.rb → crm_company_write_output.rb} +20 -46
- data/lib/appnigma/generated/models/crm_contact.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact_list_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_contact_write_output.rb +177 -0
- data/lib/appnigma/generated/models/crm_create_input.rb +256 -0
- data/lib/appnigma/generated/models/crm_custom_field.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal.rb +1 -1
- data/lib/appnigma/generated/models/{post_input.rb → crm_deal_create_input.rb} +48 -81
- data/lib/appnigma/generated/models/crm_deal_get_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal_list_output.rb +1 -1
- data/lib/appnigma/generated/models/crm_deal_write_output.rb +177 -0
- data/lib/appnigma/generated/models/crm_email.rb +1 -1
- data/lib/appnigma/generated/models/crm_get_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_labelled.rb +1 -1
- data/lib/appnigma/generated/models/crm_list_input.rb +1 -1
- data/lib/appnigma/generated/models/crm_phone.rb +1 -1
- data/lib/appnigma/generated/models/{pull_input.rb → crm_update_input.rb} +66 -100
- data/lib/appnigma/generated/models/function_entry.rb +1 -1
- data/lib/appnigma/generated/models/function_owner.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of.rb +1 -1
- data/lib/appnigma/generated/models/function_owner_one_of1.rb +1 -1
- data/lib/appnigma/generated/models/get_connection_output.rb +1 -1
- data/lib/appnigma/generated/models/get_guide_output.rb +1 -1
- data/lib/appnigma/generated/models/json_value.rb +1 -1
- data/lib/appnigma/generated/models/{pull_output_records_inner.rb → list_actions_output.rb} +21 -47
- data/lib/appnigma/generated/models/list_functions_output.rb +1 -1
- data/lib/appnigma/generated/models/list_platforms_output.rb +179 -0
- data/lib/appnigma/generated/models/platform_entry.rb +269 -0
- data/lib/appnigma/generated/models/platform_entry_coverage_inner.rb +219 -0
- data/lib/appnigma/generated/models/platform_request_input.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_input_body.rb +1 -1
- data/lib/appnigma/generated/models/platform_request_output.rb +1 -1
- data/lib/appnigma/generated/models/ran_as.rb +4 -6
- data/lib/appnigma/generated/models/run_action_input.rb +277 -0
- data/lib/appnigma/generated/models/{pull_output.rb → run_action_output.rb} +21 -34
- data/lib/appnigma/generated/models/run_input.rb +3 -3
- data/lib/appnigma/generated/models/run_output.rb +1 -1
- data/lib/appnigma/generated/models/sdk_error.rb +1 -1
- data/lib/appnigma/generated/models/sdk_error_error.rb +3 -3
- data/lib/appnigma/generated/models/sdk_error_error_details.rb +32 -3
- data/lib/appnigma/generated/models/sdk_problem.rb +1 -1
- data/lib/appnigma/generated/version.rb +1 -1
- data/lib/appnigma/generated.rb +14 -7
- data/lib/appnigma/names.rb +9 -0
- data/lib/appnigma/platforms.rb +18 -0
- data/lib/appnigma/retry.rb +3 -3
- data/lib/appnigma/transport.rb +10 -4
- data/lib/appnigma/version.rb +2 -2
- metadata +15 -7
- 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:
|
|
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,52 +14,26 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Appnigma::Generated
|
|
17
|
-
class
|
|
18
|
-
# Your own id for the end customer
|
|
17
|
+
class CrmDealCreateInput < ApiModelBase
|
|
18
|
+
# Your own id for the end customer.
|
|
19
19
|
attr_accessor :end_customer_id
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# The platform key, such as hubspot.
|
|
22
22
|
attr_accessor :platform
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :object
|
|
26
|
-
|
|
27
|
-
# The record's properties, by the platform's own property names. It must include the uniqueBy property with a non-empty text value.
|
|
24
|
+
# The fields to set, in the shapes they are read in, each optional; a stage or a pipeline is written as its id. null clears a value; a field left out is left alone.
|
|
28
25
|
attr_accessor :record
|
|
29
26
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
32
|
-
|
|
33
|
-
class EnumAttributeValidator
|
|
34
|
-
attr_reader :datatype
|
|
35
|
-
attr_reader :allowable_values
|
|
36
|
-
|
|
37
|
-
def initialize(datatype, allowable_values)
|
|
38
|
-
@allowable_values = allowable_values.map do |value|
|
|
39
|
-
case datatype.to_s
|
|
40
|
-
when /Integer/i
|
|
41
|
-
value.to_i
|
|
42
|
-
when /Float/i
|
|
43
|
-
value.to_f
|
|
44
|
-
else
|
|
45
|
-
value
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
def valid?(value)
|
|
51
|
-
!value || allowable_values.include?(value)
|
|
52
|
-
end
|
|
53
|
-
end
|
|
27
|
+
# A key of your own, such as your invoice id. The same key updates the same deal instead of making a second.
|
|
28
|
+
attr_accessor :match_key
|
|
54
29
|
|
|
55
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
31
|
def self.attribute_map
|
|
57
32
|
{
|
|
58
33
|
:'end_customer_id' => :'endCustomerId',
|
|
59
34
|
:'platform' => :'platform',
|
|
60
|
-
:'object' => :'object',
|
|
61
35
|
:'record' => :'record',
|
|
62
|
-
:'
|
|
36
|
+
:'match_key' => :'matchKey'
|
|
63
37
|
}
|
|
64
38
|
end
|
|
65
39
|
|
|
@@ -78,9 +52,8 @@ module Appnigma::Generated
|
|
|
78
52
|
{
|
|
79
53
|
:'end_customer_id' => :'String',
|
|
80
54
|
:'platform' => :'String',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
83
|
-
:'unique_by' => :'String'
|
|
55
|
+
:'record' => :'Hash<String, JsonValue>',
|
|
56
|
+
:'match_key' => :'String'
|
|
84
57
|
}
|
|
85
58
|
end
|
|
86
59
|
|
|
@@ -104,14 +77,14 @@ module Appnigma::Generated
|
|
|
104
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
78
|
def initialize(attributes = {})
|
|
106
79
|
if (!attributes.is_a?(Hash))
|
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::CrmDealCreateInput` initialize method"
|
|
108
81
|
end
|
|
109
82
|
|
|
110
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
111
84
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
112
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
113
86
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
114
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::CrmDealCreateInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
115
88
|
end
|
|
116
89
|
h[k.to_sym] = v
|
|
117
90
|
}
|
|
@@ -128,12 +101,6 @@ module Appnigma::Generated
|
|
|
128
101
|
self.platform = nil
|
|
129
102
|
end
|
|
130
103
|
|
|
131
|
-
if attributes.key?(:'object')
|
|
132
|
-
self.object = attributes[:'object']
|
|
133
|
-
else
|
|
134
|
-
self.object = nil
|
|
135
|
-
end
|
|
136
|
-
|
|
137
104
|
if attributes.key?(:'record')
|
|
138
105
|
if (value = attributes[:'record']).is_a?(Hash)
|
|
139
106
|
self.record = value
|
|
@@ -142,8 +109,8 @@ module Appnigma::Generated
|
|
|
142
109
|
self.record = nil
|
|
143
110
|
end
|
|
144
111
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
112
|
+
if attributes.key?(:'match_key')
|
|
113
|
+
self.match_key = attributes[:'match_key']
|
|
147
114
|
end
|
|
148
115
|
end
|
|
149
116
|
|
|
@@ -165,16 +132,21 @@ module Appnigma::Generated
|
|
|
165
132
|
invalid_properties.push('invalid value for "platform", platform cannot be nil.')
|
|
166
133
|
end
|
|
167
134
|
|
|
168
|
-
|
|
169
|
-
|
|
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}.")
|
|
170
138
|
end
|
|
171
139
|
|
|
172
140
|
if @record.nil?
|
|
173
141
|
invalid_properties.push('invalid value for "record", record cannot be nil.')
|
|
174
142
|
end
|
|
175
143
|
|
|
176
|
-
if !@
|
|
177
|
-
invalid_properties.push('invalid value for "
|
|
144
|
+
if !@match_key.nil? && @match_key.to_s.length > 200
|
|
145
|
+
invalid_properties.push('invalid value for "match_key", the character length must be smaller than or equal to 200.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if !@match_key.nil? && @match_key.to_s.length < 1
|
|
149
|
+
invalid_properties.push('invalid value for "match_key", the character length must be greater than or equal to 1.')
|
|
178
150
|
end
|
|
179
151
|
|
|
180
152
|
invalid_properties
|
|
@@ -187,13 +159,10 @@ module Appnigma::Generated
|
|
|
187
159
|
return false if @end_customer_id.nil?
|
|
188
160
|
return false if @end_customer_id !~ Regexp.new(/^[A-Za-z0-9._-]{1,100}$/)
|
|
189
161
|
return false if @platform.nil?
|
|
190
|
-
|
|
191
|
-
return false unless platform_validator.valid?(@platform)
|
|
192
|
-
return false if @object.nil?
|
|
193
|
-
object_validator = EnumAttributeValidator.new('String', ["contact", "company", "deal"])
|
|
194
|
-
return false unless object_validator.valid?(@object)
|
|
162
|
+
return false if @platform !~ Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
195
163
|
return false if @record.nil?
|
|
196
|
-
return false if !@
|
|
164
|
+
return false if !@match_key.nil? && @match_key.to_s.length > 200
|
|
165
|
+
return false if !@match_key.nil? && @match_key.to_s.length < 1
|
|
197
166
|
true
|
|
198
167
|
end
|
|
199
168
|
|
|
@@ -212,24 +181,19 @@ module Appnigma::Generated
|
|
|
212
181
|
@end_customer_id = end_customer_id
|
|
213
182
|
end
|
|
214
183
|
|
|
215
|
-
# Custom attribute writer method
|
|
216
|
-
# @param [Object] platform
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] platform Value to be assigned
|
|
217
186
|
def platform=(platform)
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
187
|
+
if platform.nil?
|
|
188
|
+
fail ArgumentError, 'platform cannot be nil'
|
|
221
189
|
end
|
|
222
|
-
@platform = platform
|
|
223
|
-
end
|
|
224
190
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
validator = EnumAttributeValidator.new('String', ["contact", "company", "deal"])
|
|
229
|
-
unless validator.valid?(object)
|
|
230
|
-
fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
|
|
191
|
+
pattern = Regexp.new(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
192
|
+
if platform !~ pattern
|
|
193
|
+
fail ArgumentError, "invalid value for \"platform\", must conform to the pattern #{pattern}."
|
|
231
194
|
end
|
|
232
|
-
|
|
195
|
+
|
|
196
|
+
@platform = platform
|
|
233
197
|
end
|
|
234
198
|
|
|
235
199
|
# Custom attribute writer method with validation
|
|
@@ -243,17 +207,21 @@ module Appnigma::Generated
|
|
|
243
207
|
end
|
|
244
208
|
|
|
245
209
|
# Custom attribute writer method with validation
|
|
246
|
-
# @param [Object]
|
|
247
|
-
def
|
|
248
|
-
if
|
|
249
|
-
fail ArgumentError, '
|
|
210
|
+
# @param [Object] match_key Value to be assigned
|
|
211
|
+
def match_key=(match_key)
|
|
212
|
+
if match_key.nil?
|
|
213
|
+
fail ArgumentError, 'match_key cannot be nil'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if match_key.to_s.length > 200
|
|
217
|
+
fail ArgumentError, 'invalid value for "match_key", the character length must be smaller than or equal to 200.'
|
|
250
218
|
end
|
|
251
219
|
|
|
252
|
-
if
|
|
253
|
-
fail ArgumentError, 'invalid value for "
|
|
220
|
+
if match_key.to_s.length < 1
|
|
221
|
+
fail ArgumentError, 'invalid value for "match_key", the character length must be greater than or equal to 1.'
|
|
254
222
|
end
|
|
255
223
|
|
|
256
|
-
@
|
|
224
|
+
@match_key = match_key
|
|
257
225
|
end
|
|
258
226
|
|
|
259
227
|
# Checks equality by comparing each attribute.
|
|
@@ -263,9 +231,8 @@ module Appnigma::Generated
|
|
|
263
231
|
self.class == o.class &&
|
|
264
232
|
end_customer_id == o.end_customer_id &&
|
|
265
233
|
platform == o.platform &&
|
|
266
|
-
object == o.object &&
|
|
267
234
|
record == o.record &&
|
|
268
|
-
|
|
235
|
+
match_key == o.match_key
|
|
269
236
|
end
|
|
270
237
|
|
|
271
238
|
# @see the `==` method
|
|
@@ -277,7 +244,7 @@ module Appnigma::Generated
|
|
|
277
244
|
# Calculates hash code according to all attributes.
|
|
278
245
|
# @return [Integer] Hash code
|
|
279
246
|
def hash
|
|
280
|
-
[end_customer_id, platform,
|
|
247
|
+
[end_customer_id, platform, record, match_key].hash
|
|
281
248
|
end
|
|
282
249
|
|
|
283
250
|
# 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:
|
|
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:
|
|
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,177 @@
|
|
|
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 CrmDealWriteOutput < ApiModelBase
|
|
18
|
+
attr_accessor :record
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'record' => :'record'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'record' => :'CrmDeal'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns attribute type mapping
|
|
51
|
+
def self.acceptable_openapi_types
|
|
52
|
+
openapi_types
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns the nullable attributes
|
|
56
|
+
def self.acceptable_openapi_nullable
|
|
57
|
+
openapi_nullable
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Appnigma::Generated::CrmDealWriteOutput` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Appnigma::Generated::CrmDealWriteOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'record')
|
|
77
|
+
self.record = attributes[:'record']
|
|
78
|
+
else
|
|
79
|
+
self.record = nil
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
|
+
# @return Array for valid properties with the reasons
|
|
85
|
+
def list_invalid_properties
|
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
if @record.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "record", record cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
invalid_properties
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
def valid?
|
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
99
|
+
return false if @record.nil?
|
|
100
|
+
true
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Custom attribute writer method with validation
|
|
104
|
+
# @param [Object] record Value to be assigned
|
|
105
|
+
def record=(record)
|
|
106
|
+
if record.nil?
|
|
107
|
+
fail ArgumentError, 'record cannot be nil'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
@record = record
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Checks equality by comparing each attribute.
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def ==(o)
|
|
116
|
+
return true if self.equal?(o)
|
|
117
|
+
self.class == o.class &&
|
|
118
|
+
record == o.record
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @see the `==` method
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def eql?(o)
|
|
124
|
+
self == o
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Calculates hash code according to all attributes.
|
|
128
|
+
# @return [Integer] Hash code
|
|
129
|
+
def hash
|
|
130
|
+
[record].hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def self.build_from_hash(attributes)
|
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
|
138
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
139
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
140
|
+
map = acceptable_attribute_map
|
|
141
|
+
transformed_hash = {}
|
|
142
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = nil
|
|
145
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
146
|
+
# check to ensure the input is an array given that the attribute
|
|
147
|
+
# is documented as an array but the input is not
|
|
148
|
+
if attributes[map[key]].is_a?(Array)
|
|
149
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
150
|
+
end
|
|
151
|
+
elsif !attributes[map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
new(transformed_hash)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Returns the object in the form of hash
|
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
|
160
|
+
def to_hash
|
|
161
|
+
hash = {}
|
|
162
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
163
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
164
|
+
value = self.send(attr)
|
|
165
|
+
if value.nil?
|
|
166
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
167
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
hash[param] = _to_hash(value)
|
|
171
|
+
end
|
|
172
|
+
hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|