ultracart_api 3.10.67 → 3.10.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,310 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class HitSessionUtm
17
+ attr_accessor :fb_ad_id
18
+
19
+ attr_accessor :fbclid
20
+
21
+ attr_accessor :gbraid
22
+
23
+ attr_accessor :gclid
24
+
25
+ attr_accessor :msclkid
26
+
27
+ attr_accessor :ttclid
28
+
29
+ attr_accessor :uc_message_id
30
+
31
+ attr_accessor :utm_campaign
32
+
33
+ attr_accessor :utm_content
34
+
35
+ attr_accessor :utm_id
36
+
37
+ attr_accessor :utm_medium
38
+
39
+ attr_accessor :utm_source
40
+
41
+ attr_accessor :utm_term
42
+
43
+ attr_accessor :vmcid
44
+
45
+ attr_accessor :wbraid
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'fb_ad_id' => :'fb_ad_id',
51
+ :'fbclid' => :'fbclid',
52
+ :'gbraid' => :'gbraid',
53
+ :'gclid' => :'gclid',
54
+ :'msclkid' => :'msclkid',
55
+ :'ttclid' => :'ttclid',
56
+ :'uc_message_id' => :'uc_message_id',
57
+ :'utm_campaign' => :'utm_campaign',
58
+ :'utm_content' => :'utm_content',
59
+ :'utm_id' => :'utm_id',
60
+ :'utm_medium' => :'utm_medium',
61
+ :'utm_source' => :'utm_source',
62
+ :'utm_term' => :'utm_term',
63
+ :'vmcid' => :'vmcid',
64
+ :'wbraid' => :'wbraid'
65
+ }
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.swagger_types
70
+ {
71
+ :'fb_ad_id' => :'String',
72
+ :'fbclid' => :'String',
73
+ :'gbraid' => :'String',
74
+ :'gclid' => :'String',
75
+ :'msclkid' => :'String',
76
+ :'ttclid' => :'String',
77
+ :'uc_message_id' => :'String',
78
+ :'utm_campaign' => :'String',
79
+ :'utm_content' => :'String',
80
+ :'utm_id' => :'String',
81
+ :'utm_medium' => :'String',
82
+ :'utm_source' => :'String',
83
+ :'utm_term' => :'String',
84
+ :'vmcid' => :'String',
85
+ :'wbraid' => :'String'
86
+ }
87
+ end
88
+
89
+ # Initializes the object
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ def initialize(attributes = {})
92
+ return unless attributes.is_a?(Hash)
93
+
94
+ # convert string to symbol for hash key
95
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
96
+
97
+ if attributes.has_key?(:'fb_ad_id')
98
+ self.fb_ad_id = attributes[:'fb_ad_id']
99
+ end
100
+
101
+ if attributes.has_key?(:'fbclid')
102
+ self.fbclid = attributes[:'fbclid']
103
+ end
104
+
105
+ if attributes.has_key?(:'gbraid')
106
+ self.gbraid = attributes[:'gbraid']
107
+ end
108
+
109
+ if attributes.has_key?(:'gclid')
110
+ self.gclid = attributes[:'gclid']
111
+ end
112
+
113
+ if attributes.has_key?(:'msclkid')
114
+ self.msclkid = attributes[:'msclkid']
115
+ end
116
+
117
+ if attributes.has_key?(:'ttclid')
118
+ self.ttclid = attributes[:'ttclid']
119
+ end
120
+
121
+ if attributes.has_key?(:'uc_message_id')
122
+ self.uc_message_id = attributes[:'uc_message_id']
123
+ end
124
+
125
+ if attributes.has_key?(:'utm_campaign')
126
+ self.utm_campaign = attributes[:'utm_campaign']
127
+ end
128
+
129
+ if attributes.has_key?(:'utm_content')
130
+ self.utm_content = attributes[:'utm_content']
131
+ end
132
+
133
+ if attributes.has_key?(:'utm_id')
134
+ self.utm_id = attributes[:'utm_id']
135
+ end
136
+
137
+ if attributes.has_key?(:'utm_medium')
138
+ self.utm_medium = attributes[:'utm_medium']
139
+ end
140
+
141
+ if attributes.has_key?(:'utm_source')
142
+ self.utm_source = attributes[:'utm_source']
143
+ end
144
+
145
+ if attributes.has_key?(:'utm_term')
146
+ self.utm_term = attributes[:'utm_term']
147
+ end
148
+
149
+ if attributes.has_key?(:'vmcid')
150
+ self.vmcid = attributes[:'vmcid']
151
+ end
152
+
153
+ if attributes.has_key?(:'wbraid')
154
+ self.wbraid = attributes[:'wbraid']
155
+ end
156
+ end
157
+
158
+ # Show invalid properties with the reasons. Usually used together with valid?
159
+ # @return Array for valid properties with the reasons
160
+ def list_invalid_properties
161
+ invalid_properties = Array.new
162
+ invalid_properties
163
+ end
164
+
165
+ # Check to see if the all the properties in the model are valid
166
+ # @return true if the model is valid
167
+ def valid?
168
+ true
169
+ end
170
+
171
+ # Checks equality by comparing each attribute.
172
+ # @param [Object] Object to be compared
173
+ def ==(o)
174
+ return true if self.equal?(o)
175
+ self.class == o.class &&
176
+ fb_ad_id == o.fb_ad_id &&
177
+ fbclid == o.fbclid &&
178
+ gbraid == o.gbraid &&
179
+ gclid == o.gclid &&
180
+ msclkid == o.msclkid &&
181
+ ttclid == o.ttclid &&
182
+ uc_message_id == o.uc_message_id &&
183
+ utm_campaign == o.utm_campaign &&
184
+ utm_content == o.utm_content &&
185
+ utm_id == o.utm_id &&
186
+ utm_medium == o.utm_medium &&
187
+ utm_source == o.utm_source &&
188
+ utm_term == o.utm_term &&
189
+ vmcid == o.vmcid &&
190
+ wbraid == o.wbraid
191
+ end
192
+
193
+ # @see the `==` method
194
+ # @param [Object] Object to be compared
195
+ def eql?(o)
196
+ self == o
197
+ end
198
+
199
+ # Calculates hash code according to all attributes.
200
+ # @return [Fixnum] Hash code
201
+ def hash
202
+ [fb_ad_id, fbclid, gbraid, gclid, msclkid, ttclid, uc_message_id, utm_campaign, utm_content, utm_id, utm_medium, utm_source, utm_term, vmcid, wbraid].hash
203
+ end
204
+
205
+ # Builds the object from hash
206
+ # @param [Hash] attributes Model attributes in the form of hash
207
+ # @return [Object] Returns the model itself
208
+ def build_from_hash(attributes)
209
+ return nil unless attributes.is_a?(Hash)
210
+ self.class.swagger_types.each_pair do |key, type|
211
+ if type =~ /\AArray<(.*)>/i
212
+ # check to ensure the input is an array given that the attribute
213
+ # is documented as an array but the input is not
214
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
215
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
216
+ end
217
+ elsif !attributes[self.class.attribute_map[key]].nil?
218
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
219
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
220
+ end
221
+
222
+ self
223
+ end
224
+
225
+ # Deserializes the data based on type
226
+ # @param string type Data type
227
+ # @param string value Value to be deserialized
228
+ # @return [Object] Deserialized data
229
+ def _deserialize(type, value)
230
+ case type.to_sym
231
+ when :DateTime
232
+ DateTime.parse(value)
233
+ when :Date
234
+ Date.parse(value)
235
+ when :String
236
+ value.to_s
237
+ when :Integer
238
+ value.to_i
239
+ when :Float
240
+ value.to_f
241
+ when :BOOLEAN
242
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
243
+ true
244
+ else
245
+ false
246
+ end
247
+ when :Object
248
+ # generic object (usually a Hash), return directly
249
+ value
250
+ when /\AArray<(?<inner_type>.+)>\z/
251
+ inner_type = Regexp.last_match[:inner_type]
252
+ value.map { |v| _deserialize(inner_type, v) }
253
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
254
+ k_type = Regexp.last_match[:k_type]
255
+ v_type = Regexp.last_match[:v_type]
256
+ {}.tap do |hash|
257
+ value.each do |k, v|
258
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
259
+ end
260
+ end
261
+ else # model
262
+ temp_model = UltracartClient.const_get(type).new
263
+ temp_model.build_from_hash(value)
264
+ end
265
+ end
266
+
267
+ # Returns the string representation of the object
268
+ # @return [String] String presentation of the object
269
+ def to_s
270
+ to_hash.to_s
271
+ end
272
+
273
+ # to_body is an alias to to_hash (backward compatibility)
274
+ # @return [Hash] Returns the object in the form of hash
275
+ def to_body
276
+ to_hash
277
+ end
278
+
279
+ # Returns the object in the form of hash
280
+ # @return [Hash] Returns the object in the form of hash
281
+ def to_hash
282
+ hash = {}
283
+ self.class.attribute_map.each_pair do |attr, param|
284
+ value = self.send(attr)
285
+ next if value.nil?
286
+ hash[param] = _to_hash(value)
287
+ end
288
+ hash
289
+ end
290
+
291
+ # Outputs non-array value in the form of hash
292
+ # For object, use to_hash. Otherwise, just return the value
293
+ # @param [Object] value Any valid value
294
+ # @return [Hash] Returns the value in the form of hash
295
+ def _to_hash(value)
296
+ if value.is_a?(Array)
297
+ value.compact.map { |v| _to_hash(v) }
298
+ elsif value.is_a?(Hash)
299
+ {}.tap do |hash|
300
+ value.each { |k, v| hash[k] = _to_hash(v) }
301
+ end
302
+ elsif value.respond_to? :to_hash
303
+ value.to_hash
304
+ else
305
+ value
306
+ end
307
+ end
308
+
309
+ end
310
+ end
@@ -79,8 +79,8 @@ module UltracartClient
79
79
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
80
80
  end
81
81
 
82
- if !@value.nil? && @value.to_s.length > 5000
83
- invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 5000.')
82
+ if !@value.nil? && @value.to_s.length > 1500
83
+ invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 1500.')
84
84
  end
85
85
 
86
86
  invalid_properties
@@ -90,7 +90,7 @@ module UltracartClient
90
90
  # @return true if the model is valid
91
91
  def valid?
92
92
  return false if !@name.nil? && @name.to_s.length > 100
93
- return false if !@value.nil? && @value.to_s.length > 5000
93
+ return false if !@value.nil? && @value.to_s.length > 1500
94
94
  true
95
95
  end
96
96
 
@@ -107,8 +107,8 @@ module UltracartClient
107
107
  # Custom attribute writer method with validation
108
108
  # @param [Object] value Value to be assigned
109
109
  def value=(value)
110
- if !value.nil? && value.to_s.length > 5000
111
- fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 5000.'
110
+ if !value.nil? && value.to_s.length > 1500
111
+ fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 1500.'
112
112
  end
113
113
 
114
114
  @value = value
@@ -85,7 +85,7 @@ module UltracartClient
85
85
  # Check to see if the all the properties in the model are valid
86
86
  # @return true if the model is valid
87
87
  def valid?
88
- uom_validator = EnumAttributeValidator.new('String', ['KG', 'LB', 'OZ'])
88
+ uom_validator = EnumAttributeValidator.new('String', ['KG', 'G', 'LB', 'OZ'])
89
89
  return false unless uom_validator.valid?(@uom)
90
90
  true
91
91
  end
@@ -93,7 +93,7 @@ module UltracartClient
93
93
  # Custom attribute writer method checking allowed values (enum).
94
94
  # @param [Object] uom Object to be assigned
95
95
  def uom=(uom)
96
- validator = EnumAttributeValidator.new('String', ['KG', 'LB', 'OZ'])
96
+ validator = EnumAttributeValidator.new('String', ['KG', 'G', 'LB', 'OZ'])
97
97
  unless validator.valid?(uom)
98
98
  fail ArgumentError, 'invalid value for "uom", must be one of #{validator.allowable_values}.'
99
99
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.67'
14
+ VERSION = '3.10.69'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -143,6 +143,7 @@ require 'ultracart_api/models/conversation_event_queue_position'
143
143
  require 'ultracart_api/models/conversation_event_rr_web'
144
144
  require 'ultracart_api/models/conversation_event_read_message'
145
145
  require 'ultracart_api/models/conversation_event_typing'
146
+ require 'ultracart_api/models/conversation_event_webchat_context'
146
147
  require 'ultracart_api/models/conversation_message'
147
148
  require 'ultracart_api/models/conversation_message_transport_status'
148
149
  require 'ultracart_api/models/conversation_messages_response'
@@ -154,6 +155,7 @@ require 'ultracart_api/models/conversation_start_request'
154
155
  require 'ultracart_api/models/conversation_start_response'
155
156
  require 'ultracart_api/models/conversation_summary'
156
157
  require 'ultracart_api/models/conversation_twilio_account'
158
+ require 'ultracart_api/models/conversation_webchat_context'
157
159
  require 'ultracart_api/models/conversation_webchat_queue_status'
158
160
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
159
161
  require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
@@ -406,6 +408,10 @@ require 'ultracart_api/models/group_response'
406
408
  require 'ultracart_api/models/group_user_membership'
407
409
  require 'ultracart_api/models/groups_response'
408
410
  require 'ultracart_api/models/http_header'
411
+ require 'ultracart_api/models/hit_page_view'
412
+ require 'ultracart_api/models/hit_page_view_meta_data'
413
+ require 'ultracart_api/models/hit_session_start'
414
+ require 'ultracart_api/models/hit_session_utm'
409
415
  require 'ultracart_api/models/integration_log'
410
416
  require 'ultracart_api/models/integration_log_file'
411
417
  require 'ultracart_api/models/integration_log_log'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.67
4
+ version: 3.10.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -353,6 +353,7 @@ files:
353
353
  - docs/ConversationEventRRWeb.md
354
354
  - docs/ConversationEventReadMessage.md
355
355
  - docs/ConversationEventTyping.md
356
+ - docs/ConversationEventWebchatContext.md
356
357
  - docs/ConversationMessage.md
357
358
  - docs/ConversationMessageTransportStatus.md
358
359
  - docs/ConversationMessagesResponse.md
@@ -364,6 +365,7 @@ files:
364
365
  - docs/ConversationStartResponse.md
365
366
  - docs/ConversationSummary.md
366
367
  - docs/ConversationTwilioAccount.md
368
+ - docs/ConversationWebchatContext.md
367
369
  - docs/ConversationWebchatQueueStatus.md
368
370
  - docs/ConversationWebchatQueueStatusAgent.md
369
371
  - docs/ConversationWebchatQueueStatusQueueEntry.md
@@ -620,6 +622,10 @@ files:
620
622
  - docs/GroupUserMembership.md
621
623
  - docs/GroupsResponse.md
622
624
  - docs/HTTPHeader.md
625
+ - docs/HitPageView.md
626
+ - docs/HitPageViewMetaData.md
627
+ - docs/HitSessionStart.md
628
+ - docs/HitSessionUtm.md
623
629
  - docs/IntegrationLog.md
624
630
  - docs/IntegrationLogApi.md
625
631
  - docs/IntegrationLogFile.md
@@ -1075,6 +1081,7 @@ files:
1075
1081
  - lib/ultracart_api/models/conversation_event_read_message.rb
1076
1082
  - lib/ultracart_api/models/conversation_event_rr_web.rb
1077
1083
  - lib/ultracart_api/models/conversation_event_typing.rb
1084
+ - lib/ultracart_api/models/conversation_event_webchat_context.rb
1078
1085
  - lib/ultracart_api/models/conversation_message.rb
1079
1086
  - lib/ultracart_api/models/conversation_message_transport_status.rb
1080
1087
  - lib/ultracart_api/models/conversation_messages_response.rb
@@ -1086,6 +1093,7 @@ files:
1086
1093
  - lib/ultracart_api/models/conversation_start_response.rb
1087
1094
  - lib/ultracart_api/models/conversation_summary.rb
1088
1095
  - lib/ultracart_api/models/conversation_twilio_account.rb
1096
+ - lib/ultracart_api/models/conversation_webchat_context.rb
1089
1097
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
1090
1098
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
1091
1099
  - lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb
@@ -1337,6 +1345,10 @@ files:
1337
1345
  - lib/ultracart_api/models/group_response.rb
1338
1346
  - lib/ultracart_api/models/group_user_membership.rb
1339
1347
  - lib/ultracart_api/models/groups_response.rb
1348
+ - lib/ultracart_api/models/hit_page_view.rb
1349
+ - lib/ultracart_api/models/hit_page_view_meta_data.rb
1350
+ - lib/ultracart_api/models/hit_session_start.rb
1351
+ - lib/ultracart_api/models/hit_session_utm.rb
1340
1352
  - lib/ultracart_api/models/http_header.rb
1341
1353
  - lib/ultracart_api/models/integration_log.rb
1342
1354
  - lib/ultracart_api/models/integration_log_file.rb