talon_one 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15fffb96da51fa185c0e2a56d384a9c78373bbf8
4
- data.tar.gz: 151a716d442978d6a94d0b1d987bd195c77091b0
3
+ metadata.gz: d8dddff4255fff87364a365197e0d5689fb2d67e
4
+ data.tar.gz: 7064f60371ade8c050b03ec07a91105831f5a4b3
5
5
  SHA512:
6
- metadata.gz: 8e4370ebf69b3d129f28bb0214168d0494e283af934e4c379a3ce3af34fba79ae2958ae26bd55eaa0d4a707565c420f997088281ac7a0de698e6e46a920e03fa
7
- data.tar.gz: 9faef93333b717d5bba8544a0073b479a39f75e3a472ea9884fbd68632f5a33dfe29a9c9452633a32878961605b58c728c7570fb81e1d3be8ba6bdfc5eaa9e64
6
+ metadata.gz: b290d2b10e5503255658fe788aa6cefc707c5ce3b1c70375ca898914ce3bf4c491d8b004955f30afa0ba674840157ec7ed6046989697b1bd7797d125fd7371c4
7
+ data.tar.gz: af957c86655992704903cd89b6d98a812882f818ddab287c20f2296805e1eeaae44fe0d0ebac385d1fb481d02442cce966386d4ba55ef1dfa66ad8f0e606f88e
data/README.md CHANGED
@@ -7,7 +7,7 @@ The Talon.One API is used to manage applications and campaigns, as well as to in
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.1.1
10
+ - Package version: 1.1.2
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build talon_one.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./talon_one-1.1.1.gem
26
+ gem install ./talon_one-1.1.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./talon_one-1.1.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./talon_one-1.1.2.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'talon_one', '~> 1.1.1'
34
+ gem 'talon_one', '~> 1.1.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -316,6 +316,7 @@ Class | Method | HTTP request | Description
316
316
  - [TalonOne::InlineResponse2008](docs/InlineResponse2008.md)
317
317
  - [TalonOne::InlineResponse2009](docs/InlineResponse2009.md)
318
318
  - [TalonOne::IntegrationEntity](docs/IntegrationEntity.md)
319
+ - [TalonOne::IntegrationEvent](docs/IntegrationEvent.md)
319
320
  - [TalonOne::IntegrationProfileEntity](docs/IntegrationProfileEntity.md)
320
321
  - [TalonOne::IntegrationState](docs/IntegrationState.md)
321
322
  - [TalonOne::LedgerEntry](docs/LedgerEntry.md)
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
7
7
  **created** | **DateTime** | The exact moment this entity was created. |
8
8
  **application_id** | **Integer** | The ID of the application that owns this entity. |
9
9
  **profile_id** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | [optional]
10
- **session_id** | **String** | The ID of the session that this event occurred in. |
11
10
  **type** | **String** | A string representing the event. Must not be a reserved event name. |
12
11
  **attributes** | **Object** | Arbitrary additional JSON data associated with the event. |
12
+ **session_id** | **String** | The ID of the session that this event occurred in. | [optional]
13
13
  **effects** | **Array<Object>** | An array of \"effects\" that must be applied in response to this event. Example effects include `addItemToCart` or `setDiscount`. |
14
14
  **ledger_entries** | [**Array<LedgerEntry>**](LedgerEntry.md) | Ledger entries for the event. |
15
15
  **meta** | [**Meta**](Meta.md) | | [optional]
@@ -0,0 +1,10 @@
1
+ # TalonOne::IntegrationEvent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **profile_id** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | [optional]
7
+ **type** | **String** | A string representing the event. Must not be a reserved event name. |
8
+ **attributes** | **Object** | Arbitrary additional JSON data associated with the event. |
9
+
10
+
@@ -4,8 +4,8 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **profile_id** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | [optional]
7
- **session_id** | **String** | The ID of the session that this event occurred in. |
8
7
  **type** | **String** | A string representing the event. Must not be a reserved event name. |
9
8
  **attributes** | **Object** | Arbitrary additional JSON data associated with the event. |
9
+ **session_id** | **String** | The ID of the session that this event occurred in. |
10
10
 
11
11
 
@@ -106,6 +106,7 @@ require 'talon_one/models/inline_response_200_7'
106
106
  require 'talon_one/models/inline_response_200_8'
107
107
  require 'talon_one/models/inline_response_200_9'
108
108
  require 'talon_one/models/integration_entity'
109
+ require 'talon_one/models/integration_event'
109
110
  require 'talon_one/models/integration_profile_entity'
110
111
  require 'talon_one/models/integration_state'
111
112
  require 'talon_one/models/ledger_entry'
@@ -27,15 +27,15 @@ module TalonOne
27
27
  # ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID.
28
28
  attr_accessor :profile_id
29
29
 
30
- # The ID of the session that this event occurred in.
31
- attr_accessor :session_id
32
-
33
30
  # A string representing the event. Must not be a reserved event name.
34
31
  attr_accessor :type
35
32
 
36
33
  # Arbitrary additional JSON data associated with the event.
37
34
  attr_accessor :attributes
38
35
 
36
+ # The ID of the session that this event occurred in.
37
+ attr_accessor :session_id
38
+
39
39
  # An array of \"effects\" that must be applied in response to this event. Example effects include `addItemToCart` or `setDiscount`.
40
40
  attr_accessor :effects
41
41
 
@@ -51,9 +51,9 @@ module TalonOne
51
51
  :'created' => :'created',
52
52
  :'application_id' => :'applicationId',
53
53
  :'profile_id' => :'profileId',
54
- :'session_id' => :'sessionId',
55
54
  :'type' => :'type',
56
55
  :'attributes' => :'attributes',
56
+ :'session_id' => :'sessionId',
57
57
  :'effects' => :'effects',
58
58
  :'ledger_entries' => :'ledgerEntries',
59
59
  :'meta' => :'meta'
@@ -67,9 +67,9 @@ module TalonOne
67
67
  :'created' => :'DateTime',
68
68
  :'application_id' => :'Integer',
69
69
  :'profile_id' => :'String',
70
- :'session_id' => :'String',
71
70
  :'type' => :'String',
72
71
  :'attributes' => :'Object',
72
+ :'session_id' => :'String',
73
73
  :'effects' => :'Array<Object>',
74
74
  :'ledger_entries' => :'Array<LedgerEntry>',
75
75
  :'meta' => :'Meta'
@@ -100,10 +100,6 @@ module TalonOne
100
100
  self.profile_id = attributes[:'profileId']
101
101
  end
102
102
 
103
- if attributes.has_key?(:'sessionId')
104
- self.session_id = attributes[:'sessionId']
105
- end
106
-
107
103
  if attributes.has_key?(:'type')
108
104
  self.type = attributes[:'type']
109
105
  end
@@ -112,6 +108,10 @@ module TalonOne
112
108
  self.attributes = attributes[:'attributes']
113
109
  end
114
110
 
111
+ if attributes.has_key?(:'sessionId')
112
+ self.session_id = attributes[:'sessionId']
113
+ end
114
+
115
115
  if attributes.has_key?(:'effects')
116
116
  if (value = attributes[:'effects']).is_a?(Array)
117
117
  self.effects = value
@@ -145,14 +145,6 @@ module TalonOne
145
145
  invalid_properties.push('invalid value for "application_id", application_id cannot be nil.')
146
146
  end
147
147
 
148
- if @session_id.nil?
149
- invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
150
- end
151
-
152
- if @session_id.to_s.length < 1
153
- invalid_properties.push('invalid value for "session_id", the character length must be great than or equal to 1.')
154
- end
155
-
156
148
  if @type.nil?
157
149
  invalid_properties.push('invalid value for "type", type cannot be nil.')
158
150
  end
@@ -182,8 +174,6 @@ module TalonOne
182
174
  return false if @id.nil?
183
175
  return false if @created.nil?
184
176
  return false if @application_id.nil?
185
- return false if @session_id.nil?
186
- return false if @session_id.to_s.length < 1
187
177
  return false if @type.nil?
188
178
  return false if @type.to_s.length < 1
189
179
  return false if @attributes.nil?
@@ -192,20 +182,6 @@ module TalonOne
192
182
  true
193
183
  end
194
184
 
195
- # Custom attribute writer method with validation
196
- # @param [Object] session_id Value to be assigned
197
- def session_id=(session_id)
198
- if session_id.nil?
199
- fail ArgumentError, 'session_id cannot be nil'
200
- end
201
-
202
- if session_id.to_s.length < 1
203
- fail ArgumentError, 'invalid value for "session_id", the character length must be great than or equal to 1.'
204
- end
205
-
206
- @session_id = session_id
207
- end
208
-
209
185
  # Custom attribute writer method with validation
210
186
  # @param [Object] type Value to be assigned
211
187
  def type=(type)
@@ -229,9 +205,9 @@ module TalonOne
229
205
  created == o.created &&
230
206
  application_id == o.application_id &&
231
207
  profile_id == o.profile_id &&
232
- session_id == o.session_id &&
233
208
  type == o.type &&
234
209
  attributes == o.attributes &&
210
+ session_id == o.session_id &&
235
211
  effects == o.effects &&
236
212
  ledger_entries == o.ledger_entries &&
237
213
  meta == o.meta
@@ -246,7 +222,7 @@ module TalonOne
246
222
  # Calculates hash code according to all attributes.
247
223
  # @return [Fixnum] Hash code
248
224
  def hash
249
- [id, created, application_id, profile_id, session_id, type, attributes, effects, ledger_entries, meta].hash
225
+ [id, created, application_id, profile_id, type, attributes, session_id, effects, ledger_entries, meta].hash
250
226
  end
251
227
 
252
228
  # Builds the object from hash
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TalonOne
16
+ #
17
+ class IntegrationEvent
18
+ # ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID.
19
+ attr_accessor :profile_id
20
+
21
+ # A string representing the event. Must not be a reserved event name.
22
+ attr_accessor :type
23
+
24
+ # Arbitrary additional JSON data associated with the event.
25
+ attr_accessor :attributes
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'profile_id' => :'profileId',
31
+ :'type' => :'type',
32
+ :'attributes' => :'attributes'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'profile_id' => :'String',
40
+ :'type' => :'String',
41
+ :'attributes' => :'Object'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'profileId')
54
+ self.profile_id = attributes[:'profileId']
55
+ end
56
+
57
+ if attributes.has_key?(:'type')
58
+ self.type = attributes[:'type']
59
+ end
60
+
61
+ if attributes.has_key?(:'attributes')
62
+ self.attributes = attributes[:'attributes']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ if @type.nil?
71
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
72
+ end
73
+
74
+ if @type.to_s.length < 1
75
+ invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.')
76
+ end
77
+
78
+ if @attributes.nil?
79
+ invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ return false if @type.nil?
89
+ return false if @type.to_s.length < 1
90
+ return false if @attributes.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] type Value to be assigned
96
+ def type=(type)
97
+ if type.nil?
98
+ fail ArgumentError, 'type cannot be nil'
99
+ end
100
+
101
+ if type.to_s.length < 1
102
+ fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.'
103
+ end
104
+
105
+ @type = type
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ profile_id == o.profile_id &&
114
+ type == o.type &&
115
+ attributes == o.attributes
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Fixnum] Hash code
126
+ def hash
127
+ [profile_id, type, attributes].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.swagger_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :BOOLEAN
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ temp_model = TalonOne.const_get(type).new
188
+ temp_model.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ next if value.nil?
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+ end
234
+ end
@@ -18,22 +18,22 @@ module TalonOne
18
18
  # ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID.
19
19
  attr_accessor :profile_id
20
20
 
21
- # The ID of the session that this event occurred in.
22
- attr_accessor :session_id
23
-
24
21
  # A string representing the event. Must not be a reserved event name.
25
22
  attr_accessor :type
26
23
 
27
24
  # Arbitrary additional JSON data associated with the event.
28
25
  attr_accessor :attributes
29
26
 
27
+ # The ID of the session that this event occurred in.
28
+ attr_accessor :session_id
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'profile_id' => :'profileId',
34
- :'session_id' => :'sessionId',
35
34
  :'type' => :'type',
36
- :'attributes' => :'attributes'
35
+ :'attributes' => :'attributes',
36
+ :'session_id' => :'sessionId'
37
37
  }
38
38
  end
39
39
 
@@ -41,9 +41,9 @@ module TalonOne
41
41
  def self.swagger_types
42
42
  {
43
43
  :'profile_id' => :'String',
44
- :'session_id' => :'String',
45
44
  :'type' => :'String',
46
- :'attributes' => :'Object'
45
+ :'attributes' => :'Object',
46
+ :'session_id' => :'String'
47
47
  }
48
48
  end
49
49
 
@@ -59,10 +59,6 @@ module TalonOne
59
59
  self.profile_id = attributes[:'profileId']
60
60
  end
61
61
 
62
- if attributes.has_key?(:'sessionId')
63
- self.session_id = attributes[:'sessionId']
64
- end
65
-
66
62
  if attributes.has_key?(:'type')
67
63
  self.type = attributes[:'type']
68
64
  end
@@ -70,20 +66,16 @@ module TalonOne
70
66
  if attributes.has_key?(:'attributes')
71
67
  self.attributes = attributes[:'attributes']
72
68
  end
69
+
70
+ if attributes.has_key?(:'sessionId')
71
+ self.session_id = attributes[:'sessionId']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
- if @session_id.nil?
80
- invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
81
- end
82
-
83
- if @session_id.to_s.length < 1
84
- invalid_properties.push('invalid value for "session_id", the character length must be great than or equal to 1.')
85
- end
86
-
87
79
  if @type.nil?
88
80
  invalid_properties.push('invalid value for "type", type cannot be nil.')
89
81
  end
@@ -96,34 +88,28 @@ module TalonOne
96
88
  invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
97
89
  end
98
90
 
91
+ if @session_id.nil?
92
+ invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
93
+ end
94
+
95
+ if @session_id.to_s.length < 1
96
+ invalid_properties.push('invalid value for "session_id", the character length must be great than or equal to 1.')
97
+ end
98
+
99
99
  invalid_properties
100
100
  end
101
101
 
102
102
  # Check to see if the all the properties in the model are valid
103
103
  # @return true if the model is valid
104
104
  def valid?
105
- return false if @session_id.nil?
106
- return false if @session_id.to_s.length < 1
107
105
  return false if @type.nil?
108
106
  return false if @type.to_s.length < 1
109
107
  return false if @attributes.nil?
108
+ return false if @session_id.nil?
109
+ return false if @session_id.to_s.length < 1
110
110
  true
111
111
  end
112
112
 
113
- # Custom attribute writer method with validation
114
- # @param [Object] session_id Value to be assigned
115
- def session_id=(session_id)
116
- if session_id.nil?
117
- fail ArgumentError, 'session_id cannot be nil'
118
- end
119
-
120
- if session_id.to_s.length < 1
121
- fail ArgumentError, 'invalid value for "session_id", the character length must be great than or equal to 1.'
122
- end
123
-
124
- @session_id = session_id
125
- end
126
-
127
113
  # Custom attribute writer method with validation
128
114
  # @param [Object] type Value to be assigned
129
115
  def type=(type)
@@ -138,15 +124,29 @@ module TalonOne
138
124
  @type = type
139
125
  end
140
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] session_id Value to be assigned
129
+ def session_id=(session_id)
130
+ if session_id.nil?
131
+ fail ArgumentError, 'session_id cannot be nil'
132
+ end
133
+
134
+ if session_id.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "session_id", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @session_id = session_id
139
+ end
140
+
141
141
  # Checks equality by comparing each attribute.
142
142
  # @param [Object] Object to be compared
143
143
  def ==(o)
144
144
  return true if self.equal?(o)
145
145
  self.class == o.class &&
146
146
  profile_id == o.profile_id &&
147
- session_id == o.session_id &&
148
147
  type == o.type &&
149
- attributes == o.attributes
148
+ attributes == o.attributes &&
149
+ session_id == o.session_id
150
150
  end
151
151
 
152
152
  # @see the `==` method
@@ -158,7 +158,7 @@ module TalonOne
158
158
  # Calculates hash code according to all attributes.
159
159
  # @return [Fixnum] Hash code
160
160
  def hash
161
- [profile_id, session_id, type, attributes].hash
161
+ [profile_id, type, attributes, session_id].hash
162
162
  end
163
163
 
164
164
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.7
11
11
  =end
12
12
 
13
13
  module TalonOne
14
- VERSION = '1.1.1'
14
+ VERSION = '1.1.2'
15
15
  end
@@ -56,19 +56,19 @@ describe 'Event' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "session_id"' do
59
+ describe 'test attribute "type"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "type"' do
65
+ describe 'test attribute "attributes"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "attributes"' do
71
+ describe 'test attribute "session_id"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TalonOne::IntegrationEvent
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'IntegrationEvent' do
21
+ before do
22
+ # run before each test
23
+ @instance = TalonOne::IntegrationEvent.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of IntegrationEvent' do
31
+ it 'should create an instance of IntegrationEvent' do
32
+ expect(@instance).to be_instance_of(TalonOne::IntegrationEvent)
33
+ end
34
+ end
35
+ describe 'test attribute "profile_id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "type"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "attributes"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -38,19 +38,19 @@ describe 'NewEvent' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "session_id"' do
41
+ describe 'test attribute "type"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "type"' do
47
+ describe 'test attribute "attributes"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "attributes"' do
53
+ describe 'test attribute "session_id"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talon_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Talon.One GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -220,9 +220,6 @@ files:
220
220
  - docs/ApplicationEvent.md
221
221
  - docs/ApplicationSession.md
222
222
  - docs/ApplicationSessionEntity.md
223
- - docs/ApplicationStorage.md
224
- - docs/ApplicationStorageData.md
225
- - docs/ApplicationStorageTuple.md
226
223
  - docs/Attribute.md
227
224
  - docs/AttributeQuery.md
228
225
  - docs/Binding.md
@@ -297,6 +294,7 @@ files:
297
294
  - docs/InlineResponse2009.md
298
295
  - docs/IntegrationApi.md
299
296
  - docs/IntegrationEntity.md
297
+ - docs/IntegrationEvent.md
300
298
  - docs/IntegrationProfileEntity.md
301
299
  - docs/IntegrationState.md
302
300
  - docs/LedgerEntry.md
@@ -322,9 +320,6 @@ files:
322
320
  - docs/NewAccountSignUp.md
323
321
  - docs/NewApplication.md
324
322
  - docs/NewApplicationAPIKey.md
325
- - docs/NewApplicationStorage.md
326
- - docs/NewApplicationStorageData.md
327
- - docs/NewApplicationStorageTuple.md
328
323
  - docs/NewAttribute.md
329
324
  - docs/NewCampaign.md
330
325
  - docs/NewCampaignSet.md
@@ -464,6 +459,7 @@ files:
464
459
  - lib/talon_one/models/inline_response_200_8.rb
465
460
  - lib/talon_one/models/inline_response_200_9.rb
466
461
  - lib/talon_one/models/integration_entity.rb
462
+ - lib/talon_one/models/integration_event.rb
467
463
  - lib/talon_one/models/integration_profile_entity.rb
468
464
  - lib/talon_one/models/integration_state.rb
469
465
  - lib/talon_one/models/ledger_entry.rb
@@ -625,6 +621,7 @@ files:
625
621
  - spec/models/inline_response_200_9_spec.rb
626
622
  - spec/models/inline_response_200_spec.rb
627
623
  - spec/models/integration_entity_spec.rb
624
+ - spec/models/integration_event_spec.rb
628
625
  - spec/models/integration_profile_entity_spec.rb
629
626
  - spec/models/integration_state_spec.rb
630
627
  - spec/models/ledger_entry_spec.rb
@@ -695,6 +692,7 @@ files:
695
692
  - spec/spec_helper.rb
696
693
  - talon_one-1.0.0.gem
697
694
  - talon_one-1.1.0.gem
695
+ - talon_one-1.1.1.gem
698
696
  - talon_one.gemspec
699
697
  homepage: https://github.com/talon-one/talon_one.rb/
700
698
  licenses:
@@ -771,6 +769,7 @@ test_files:
771
769
  - spec/models/new_campaign_set_spec.rb
772
770
  - spec/models/inline_response_200_3_spec.rb
773
771
  - spec/models/inline_response_200_19_spec.rb
772
+ - spec/models/integration_event_spec.rb
774
773
  - spec/models/new_referral_spec.rb
775
774
  - spec/models/coupon_search_spec.rb
776
775
  - spec/models/environment_spec.rb
@@ -1,15 +0,0 @@
1
- # TalonOne::ApplicationStorage
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | Unique ID for this entity. |
7
- **created** | **DateTime** | The exact moment this entity was created. |
8
- **modified** | **DateTime** | The exact moment this entity was last modified. |
9
- **application_id** | **Integer** | The ID of the application that owns this entity. |
10
- **name** | **String** | Identifier for the information to be saved, e.g. \&quot;Loyalty points for SKU\&quot;. |
11
- **datatype** | **Object** | A JSON Schema describing the information to be saved in the storage |
12
- **description** | **String** | Description of the application store | [optional]
13
- **used_at** | **Array&lt;String&gt;** | array of rulesets where the application storage is used |
14
-
15
-
@@ -1,7 +0,0 @@
1
- # TalonOne::ApplicationStorageData
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
7
-
@@ -1,13 +0,0 @@
1
- # TalonOne::ApplicationStorageTuple
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **Integer** | Unique ID for this entity. |
7
- **created** | **DateTime** | The exact moment this entity was created. |
8
- **modified** | **DateTime** | The exact moment this entity was last modified. |
9
- **key** | **String** | Key information that will map to a value, e.g. SKU number \&quot;LEV-JN-SL-36-GN\&quot;. |
10
- **value** | **Object** | |
11
- **storage_id** | **Integer** | ID of the storage in which the data resides |
12
-
13
-
@@ -1,10 +0,0 @@
1
- # TalonOne::NewApplicationStorage
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | Identifier for the information to be saved, e.g. \&quot;Loyalty points for SKU\&quot;. |
7
- **datatype** | **Object** | A JSON Schema describing the information to be saved in the storage |
8
- **description** | **String** | Description of the application store | [optional]
9
-
10
-
@@ -1,7 +0,0 @@
1
- # TalonOne::NewApplicationStorageData
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
-
7
-
@@ -1,9 +0,0 @@
1
- # TalonOne::NewApplicationStorageTuple
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **key** | **String** | Key information that will map to a value, e.g. SKU number \&quot;LEV-JN-SL-36-GN\&quot;. |
7
- **value** | **Object** | |
8
-
9
-