ultracart_api 3.1.16 → 3.1.40
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/README.md +25 -4
- data/docs/Coupon.md +1 -0
- data/docs/CouponPercentOffMsrpItems.md +11 -0
- data/docs/CustomerLoyalty.md +1 -0
- data/docs/EmailCampaign.md +2 -1
- data/docs/EmailFlow.md +2 -1
- data/docs/LibraryItemAttribute.md +0 -1
- data/docs/OrderApi.md +4 -0
- data/docs/OrderProcessPaymentRequest.md +1 -0
- data/docs/OrderQuery.md +3 -1
- data/docs/ScreenRecording.md +13 -0
- data/docs/ScreenRecordingAdPlatform.md +13 -0
- data/docs/ScreenRecordingFilter.md +12 -0
- data/docs/ScreenRecordingFilterValues.md +12 -2
- data/docs/ScreenRecordingFilterValuesPageView.md +12 -0
- data/docs/ScreenRecordingPageView.md +2 -0
- data/docs/ScreenRecordingPageViewEvent.md +1 -0
- data/docs/ScreenRecordingQueryResponse.md +3 -0
- data/docs/ScreenRecordingSegment.md +3 -0
- data/docs/ScreenRecordingSettings.md +5 -0
- data/docs/TaxJarConfig.md +1 -0
- data/lib/ultracart_api.rb +3 -0
- data/lib/ultracart_api/api/order_api.rb +6 -0
- data/lib/ultracart_api/models/coupon.rb +10 -1
- data/lib/ultracart_api/models/coupon_percent_off_msrp_items.rb +219 -0
- data/lib/ultracart_api/models/customer_loyalty.rb +11 -1
- data/lib/ultracart_api/models/email_campaign.rb +12 -2
- data/lib/ultracart_api/models/email_flow.rb +12 -2
- data/lib/ultracart_api/models/library_item_attribute.rb +1 -10
- data/lib/ultracart_api/models/order_process_payment_request.rb +11 -1
- data/lib/ultracart_api/models/order_query.rb +22 -2
- data/lib/ultracart_api/models/screen_recording.rb +128 -1
- data/lib/ultracart_api/models/screen_recording_ad_platform.rb +235 -0
- data/lib/ultracart_api/models/screen_recording_filter.rb +109 -1
- data/lib/ultracart_api/models/screen_recording_filter_values.rb +124 -18
- data/lib/ultracart_api/models/screen_recording_filter_values_page_view.rb +226 -0
- data/lib/ultracart_api/models/screen_recording_page_view.rb +21 -1
- data/lib/ultracart_api/models/screen_recording_page_view_event.rb +10 -1
- data/lib/ultracart_api/models/screen_recording_query_response.rb +30 -1
- data/lib/ultracart_api/models/screen_recording_segment.rb +30 -1
- data/lib/ultracart_api/models/screen_recording_settings.rb +49 -4
- data/lib/ultracart_api/models/tax_jar_config.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +8 -2
@@ -14,12 +14,16 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class OrderProcessPaymentRequest
|
17
|
+
# Specific amount to bill (optional). If not specified the total of the order is billed.
|
18
|
+
attr_accessor :amount
|
19
|
+
|
17
20
|
# Card verification number token from hosted fields used during credit card transaction processing (optional)
|
18
21
|
attr_accessor :card_verification_number_token
|
19
22
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
26
|
+
:'amount' => :'amount',
|
23
27
|
:'card_verification_number_token' => :'card_verification_number_token'
|
24
28
|
}
|
25
29
|
end
|
@@ -27,6 +31,7 @@ module UltracartClient
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.swagger_types
|
29
33
|
{
|
34
|
+
:'amount' => :'Float',
|
30
35
|
:'card_verification_number_token' => :'String'
|
31
36
|
}
|
32
37
|
end
|
@@ -39,6 +44,10 @@ module UltracartClient
|
|
39
44
|
# convert string to symbol for hash key
|
40
45
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
46
|
|
47
|
+
if attributes.has_key?(:'amount')
|
48
|
+
self.amount = attributes[:'amount']
|
49
|
+
end
|
50
|
+
|
42
51
|
if attributes.has_key?(:'card_verification_number_token')
|
43
52
|
self.card_verification_number_token = attributes[:'card_verification_number_token']
|
44
53
|
end
|
@@ -62,6 +71,7 @@ module UltracartClient
|
|
62
71
|
def ==(o)
|
63
72
|
return true if self.equal?(o)
|
64
73
|
self.class == o.class &&
|
74
|
+
amount == o.amount &&
|
65
75
|
card_verification_number_token == o.card_verification_number_token
|
66
76
|
end
|
67
77
|
|
@@ -74,7 +84,7 @@ module UltracartClient
|
|
74
84
|
# Calculates hash code according to all attributes.
|
75
85
|
# @return [Fixnum] Hash code
|
76
86
|
def hash
|
77
|
-
[card_verification_number_token].hash
|
87
|
+
[amount, card_verification_number_token].hash
|
78
88
|
end
|
79
89
|
|
80
90
|
# Builds the object from hash
|
@@ -110,12 +110,18 @@ module UltracartClient
|
|
110
110
|
# Screen branding theme code associated with the order (legacy checkout)
|
111
111
|
attr_accessor :screen_branding_theme_code
|
112
112
|
|
113
|
-
# Date/time that the order was
|
113
|
+
# Date/time that the order was shipped
|
114
114
|
attr_accessor :shipment_date_begin
|
115
115
|
|
116
116
|
# Date/time that the order was shipped
|
117
117
|
attr_accessor :shipment_date_end
|
118
118
|
|
119
|
+
# Date/time that the order should ship on
|
120
|
+
attr_accessor :shipped_on_date_begin
|
121
|
+
|
122
|
+
# Date/time that the order should ship on
|
123
|
+
attr_accessor :shipped_on_date_end
|
124
|
+
|
119
125
|
# State for United States otherwise region or province for other countries
|
120
126
|
attr_accessor :state_region
|
121
127
|
|
@@ -184,6 +190,8 @@ module UltracartClient
|
|
184
190
|
:'screen_branding_theme_code' => :'screen_branding_theme_code',
|
185
191
|
:'shipment_date_begin' => :'shipment_date_begin',
|
186
192
|
:'shipment_date_end' => :'shipment_date_end',
|
193
|
+
:'shipped_on_date_begin' => :'shipped_on_date_begin',
|
194
|
+
:'shipped_on_date_end' => :'shipped_on_date_end',
|
187
195
|
:'state_region' => :'state_region',
|
188
196
|
:'storefront_host_name' => :'storefront_host_name',
|
189
197
|
:'total' => :'total'
|
@@ -227,6 +235,8 @@ module UltracartClient
|
|
227
235
|
:'screen_branding_theme_code' => :'String',
|
228
236
|
:'shipment_date_begin' => :'String',
|
229
237
|
:'shipment_date_end' => :'String',
|
238
|
+
:'shipped_on_date_begin' => :'String',
|
239
|
+
:'shipped_on_date_end' => :'String',
|
230
240
|
:'state_region' => :'String',
|
231
241
|
:'storefront_host_name' => :'String',
|
232
242
|
:'total' => :'Float'
|
@@ -377,6 +387,14 @@ module UltracartClient
|
|
377
387
|
self.shipment_date_end = attributes[:'shipment_date_end']
|
378
388
|
end
|
379
389
|
|
390
|
+
if attributes.has_key?(:'shipped_on_date_begin')
|
391
|
+
self.shipped_on_date_begin = attributes[:'shipped_on_date_begin']
|
392
|
+
end
|
393
|
+
|
394
|
+
if attributes.has_key?(:'shipped_on_date_end')
|
395
|
+
self.shipped_on_date_end = attributes[:'shipped_on_date_end']
|
396
|
+
end
|
397
|
+
|
380
398
|
if attributes.has_key?(:'state_region')
|
381
399
|
self.state_region = attributes[:'state_region']
|
382
400
|
end
|
@@ -646,6 +664,8 @@ module UltracartClient
|
|
646
664
|
screen_branding_theme_code == o.screen_branding_theme_code &&
|
647
665
|
shipment_date_begin == o.shipment_date_begin &&
|
648
666
|
shipment_date_end == o.shipment_date_end &&
|
667
|
+
shipped_on_date_begin == o.shipped_on_date_begin &&
|
668
|
+
shipped_on_date_end == o.shipped_on_date_end &&
|
649
669
|
state_region == o.state_region &&
|
650
670
|
storefront_host_name == o.storefront_host_name &&
|
651
671
|
total == o.total
|
@@ -660,7 +680,7 @@ module UltracartClient
|
|
660
680
|
# Calculates hash code according to all attributes.
|
661
681
|
# @return [Fixnum] Hash code
|
662
682
|
def hash
|
663
|
-
[cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, custom_field_1, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6, custom_field_7, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, state_region, storefront_host_name, total].hash
|
683
|
+
[cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, custom_field_1, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6, custom_field_7, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, shipped_on_date_begin, shipped_on_date_end, state_region, storefront_host_name, total].hash
|
664
684
|
end
|
665
685
|
|
666
686
|
# Builds the object from hash
|
@@ -14,14 +14,36 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ScreenRecording
|
17
|
+
attr_accessor :ad_platform
|
18
|
+
|
17
19
|
attr_accessor :analytics_client_oid
|
18
20
|
|
19
21
|
attr_accessor :analytics_session_dts
|
20
22
|
|
21
23
|
attr_accessor :analytics_session_oid
|
22
24
|
|
25
|
+
# Campaign Name
|
26
|
+
attr_accessor :communications_campaign_name
|
27
|
+
|
28
|
+
# Campaign UUID
|
29
|
+
attr_accessor :communications_campaign_uuid
|
30
|
+
|
31
|
+
# Email subject
|
32
|
+
attr_accessor :communications_email_subject
|
33
|
+
|
34
|
+
# Email UUID
|
35
|
+
attr_accessor :communications_email_uuid
|
36
|
+
|
37
|
+
# Flow Name
|
38
|
+
attr_accessor :communications_flow_name
|
39
|
+
|
40
|
+
# Flow UUID
|
41
|
+
attr_accessor :communications_flow_uuid
|
42
|
+
|
23
43
|
attr_accessor :email
|
24
44
|
|
45
|
+
attr_accessor :email_domain
|
46
|
+
|
25
47
|
# Ending timestamp
|
26
48
|
attr_accessor :end_timestamp
|
27
49
|
|
@@ -43,6 +65,9 @@ module UltracartClient
|
|
43
65
|
|
44
66
|
attr_accessor :geolocation_state
|
45
67
|
|
68
|
+
# Language ISO code
|
69
|
+
attr_accessor :language_iso_code
|
70
|
+
|
46
71
|
attr_accessor :merchant_id
|
47
72
|
|
48
73
|
attr_accessor :merchant_notes
|
@@ -53,6 +78,11 @@ module UltracartClient
|
|
53
78
|
|
54
79
|
attr_accessor :page_views
|
55
80
|
|
81
|
+
# ISO 3 Letter language code that the customer would prefer
|
82
|
+
attr_accessor :preferred_language
|
83
|
+
|
84
|
+
attr_accessor :referrer_domain
|
85
|
+
|
56
86
|
attr_accessor :rrweb_version
|
57
87
|
|
58
88
|
attr_accessor :screen_recording_uuid
|
@@ -80,6 +110,12 @@ module UltracartClient
|
|
80
110
|
|
81
111
|
attr_accessor :user_properties
|
82
112
|
|
113
|
+
# UTM Campaign
|
114
|
+
attr_accessor :utm_campaign
|
115
|
+
|
116
|
+
# UTM Source
|
117
|
+
attr_accessor :utm_source
|
118
|
+
|
83
119
|
# Timestamp this visitor was first seen
|
84
120
|
attr_accessor :visitor_first_seen
|
85
121
|
|
@@ -94,10 +130,18 @@ module UltracartClient
|
|
94
130
|
# Attribute mapping from ruby-style variable name to JSON key.
|
95
131
|
def self.attribute_map
|
96
132
|
{
|
133
|
+
:'ad_platform' => :'ad_platform',
|
97
134
|
:'analytics_client_oid' => :'analytics_client_oid',
|
98
135
|
:'analytics_session_dts' => :'analytics_session_dts',
|
99
136
|
:'analytics_session_oid' => :'analytics_session_oid',
|
137
|
+
:'communications_campaign_name' => :'communications_campaign_name',
|
138
|
+
:'communications_campaign_uuid' => :'communications_campaign_uuid',
|
139
|
+
:'communications_email_subject' => :'communications_email_subject',
|
140
|
+
:'communications_email_uuid' => :'communications_email_uuid',
|
141
|
+
:'communications_flow_name' => :'communications_flow_name',
|
142
|
+
:'communications_flow_uuid' => :'communications_flow_uuid',
|
100
143
|
:'email' => :'email',
|
144
|
+
:'email_domain' => :'email_domain',
|
101
145
|
:'end_timestamp' => :'end_timestamp',
|
102
146
|
:'esp_customer_uuid' => :'esp_customer_uuid',
|
103
147
|
:'events_gz_size' => :'events_gz_size',
|
@@ -107,11 +151,14 @@ module UltracartClient
|
|
107
151
|
:'geolocation' => :'geolocation',
|
108
152
|
:'geolocation_country' => :'geolocation_country',
|
109
153
|
:'geolocation_state' => :'geolocation_state',
|
154
|
+
:'language_iso_code' => :'language_iso_code',
|
110
155
|
:'merchant_id' => :'merchant_id',
|
111
156
|
:'merchant_notes' => :'merchant_notes',
|
112
157
|
:'order_id' => :'order_id',
|
113
158
|
:'page_view_count' => :'page_view_count',
|
114
159
|
:'page_views' => :'page_views',
|
160
|
+
:'preferred_language' => :'preferred_language',
|
161
|
+
:'referrer_domain' => :'referrer_domain',
|
115
162
|
:'rrweb_version' => :'rrweb_version',
|
116
163
|
:'screen_recording_uuid' => :'screen_recording_uuid',
|
117
164
|
:'signed_download_url' => :'signed_download_url',
|
@@ -125,6 +172,8 @@ module UltracartClient
|
|
125
172
|
:'user_agent_raw' => :'user_agent_raw',
|
126
173
|
:'user_ip' => :'user_ip',
|
127
174
|
:'user_properties' => :'user_properties',
|
175
|
+
:'utm_campaign' => :'utm_campaign',
|
176
|
+
:'utm_source' => :'utm_source',
|
128
177
|
:'visitor_first_seen' => :'visitor_first_seen',
|
129
178
|
:'visitor_number' => :'visitor_number',
|
130
179
|
:'watched' => :'watched',
|
@@ -136,10 +185,18 @@ module UltracartClient
|
|
136
185
|
# Attribute type mapping.
|
137
186
|
def self.swagger_types
|
138
187
|
{
|
188
|
+
:'ad_platform' => :'ScreenRecordingAdPlatform',
|
139
189
|
:'analytics_client_oid' => :'Integer',
|
140
190
|
:'analytics_session_dts' => :'Integer',
|
141
191
|
:'analytics_session_oid' => :'Integer',
|
192
|
+
:'communications_campaign_name' => :'String',
|
193
|
+
:'communications_campaign_uuid' => :'String',
|
194
|
+
:'communications_email_subject' => :'String',
|
195
|
+
:'communications_email_uuid' => :'String',
|
196
|
+
:'communications_flow_name' => :'String',
|
197
|
+
:'communications_flow_uuid' => :'String',
|
142
198
|
:'email' => :'String',
|
199
|
+
:'email_domain' => :'String',
|
143
200
|
:'end_timestamp' => :'String',
|
144
201
|
:'esp_customer_uuid' => :'String',
|
145
202
|
:'events_gz_size' => :'Integer',
|
@@ -149,11 +206,14 @@ module UltracartClient
|
|
149
206
|
:'geolocation' => :'GeoPoint',
|
150
207
|
:'geolocation_country' => :'String',
|
151
208
|
:'geolocation_state' => :'String',
|
209
|
+
:'language_iso_code' => :'String',
|
152
210
|
:'merchant_id' => :'String',
|
153
211
|
:'merchant_notes' => :'String',
|
154
212
|
:'order_id' => :'String',
|
155
213
|
:'page_view_count' => :'Integer',
|
156
214
|
:'page_views' => :'Array<ScreenRecordingPageView>',
|
215
|
+
:'preferred_language' => :'String',
|
216
|
+
:'referrer_domain' => :'String',
|
157
217
|
:'rrweb_version' => :'String',
|
158
218
|
:'screen_recording_uuid' => :'String',
|
159
219
|
:'signed_download_url' => :'String',
|
@@ -167,6 +227,8 @@ module UltracartClient
|
|
167
227
|
:'user_agent_raw' => :'String',
|
168
228
|
:'user_ip' => :'String',
|
169
229
|
:'user_properties' => :'Array<ScreenRecordingUserProperty>',
|
230
|
+
:'utm_campaign' => :'String',
|
231
|
+
:'utm_source' => :'String',
|
170
232
|
:'visitor_first_seen' => :'String',
|
171
233
|
:'visitor_number' => :'Integer',
|
172
234
|
:'watched' => :'BOOLEAN',
|
@@ -183,6 +245,10 @@ module UltracartClient
|
|
183
245
|
# convert string to symbol for hash key
|
184
246
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
185
247
|
|
248
|
+
if attributes.has_key?(:'ad_platform')
|
249
|
+
self.ad_platform = attributes[:'ad_platform']
|
250
|
+
end
|
251
|
+
|
186
252
|
if attributes.has_key?(:'analytics_client_oid')
|
187
253
|
self.analytics_client_oid = attributes[:'analytics_client_oid']
|
188
254
|
end
|
@@ -195,10 +261,38 @@ module UltracartClient
|
|
195
261
|
self.analytics_session_oid = attributes[:'analytics_session_oid']
|
196
262
|
end
|
197
263
|
|
264
|
+
if attributes.has_key?(:'communications_campaign_name')
|
265
|
+
self.communications_campaign_name = attributes[:'communications_campaign_name']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.has_key?(:'communications_campaign_uuid')
|
269
|
+
self.communications_campaign_uuid = attributes[:'communications_campaign_uuid']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.has_key?(:'communications_email_subject')
|
273
|
+
self.communications_email_subject = attributes[:'communications_email_subject']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.has_key?(:'communications_email_uuid')
|
277
|
+
self.communications_email_uuid = attributes[:'communications_email_uuid']
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.has_key?(:'communications_flow_name')
|
281
|
+
self.communications_flow_name = attributes[:'communications_flow_name']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.has_key?(:'communications_flow_uuid')
|
285
|
+
self.communications_flow_uuid = attributes[:'communications_flow_uuid']
|
286
|
+
end
|
287
|
+
|
198
288
|
if attributes.has_key?(:'email')
|
199
289
|
self.email = attributes[:'email']
|
200
290
|
end
|
201
291
|
|
292
|
+
if attributes.has_key?(:'email_domain')
|
293
|
+
self.email_domain = attributes[:'email_domain']
|
294
|
+
end
|
295
|
+
|
202
296
|
if attributes.has_key?(:'end_timestamp')
|
203
297
|
self.end_timestamp = attributes[:'end_timestamp']
|
204
298
|
end
|
@@ -237,6 +331,10 @@ module UltracartClient
|
|
237
331
|
self.geolocation_state = attributes[:'geolocation_state']
|
238
332
|
end
|
239
333
|
|
334
|
+
if attributes.has_key?(:'language_iso_code')
|
335
|
+
self.language_iso_code = attributes[:'language_iso_code']
|
336
|
+
end
|
337
|
+
|
240
338
|
if attributes.has_key?(:'merchant_id')
|
241
339
|
self.merchant_id = attributes[:'merchant_id']
|
242
340
|
end
|
@@ -259,6 +357,14 @@ module UltracartClient
|
|
259
357
|
end
|
260
358
|
end
|
261
359
|
|
360
|
+
if attributes.has_key?(:'preferred_language')
|
361
|
+
self.preferred_language = attributes[:'preferred_language']
|
362
|
+
end
|
363
|
+
|
364
|
+
if attributes.has_key?(:'referrer_domain')
|
365
|
+
self.referrer_domain = attributes[:'referrer_domain']
|
366
|
+
end
|
367
|
+
|
262
368
|
if attributes.has_key?(:'rrweb_version')
|
263
369
|
self.rrweb_version = attributes[:'rrweb_version']
|
264
370
|
end
|
@@ -319,6 +425,14 @@ module UltracartClient
|
|
319
425
|
end
|
320
426
|
end
|
321
427
|
|
428
|
+
if attributes.has_key?(:'utm_campaign')
|
429
|
+
self.utm_campaign = attributes[:'utm_campaign']
|
430
|
+
end
|
431
|
+
|
432
|
+
if attributes.has_key?(:'utm_source')
|
433
|
+
self.utm_source = attributes[:'utm_source']
|
434
|
+
end
|
435
|
+
|
322
436
|
if attributes.has_key?(:'visitor_first_seen')
|
323
437
|
self.visitor_first_seen = attributes[:'visitor_first_seen']
|
324
438
|
end
|
@@ -358,10 +472,18 @@ module UltracartClient
|
|
358
472
|
def ==(o)
|
359
473
|
return true if self.equal?(o)
|
360
474
|
self.class == o.class &&
|
475
|
+
ad_platform == o.ad_platform &&
|
361
476
|
analytics_client_oid == o.analytics_client_oid &&
|
362
477
|
analytics_session_dts == o.analytics_session_dts &&
|
363
478
|
analytics_session_oid == o.analytics_session_oid &&
|
479
|
+
communications_campaign_name == o.communications_campaign_name &&
|
480
|
+
communications_campaign_uuid == o.communications_campaign_uuid &&
|
481
|
+
communications_email_subject == o.communications_email_subject &&
|
482
|
+
communications_email_uuid == o.communications_email_uuid &&
|
483
|
+
communications_flow_name == o.communications_flow_name &&
|
484
|
+
communications_flow_uuid == o.communications_flow_uuid &&
|
364
485
|
email == o.email &&
|
486
|
+
email_domain == o.email_domain &&
|
365
487
|
end_timestamp == o.end_timestamp &&
|
366
488
|
esp_customer_uuid == o.esp_customer_uuid &&
|
367
489
|
events_gz_size == o.events_gz_size &&
|
@@ -371,11 +493,14 @@ module UltracartClient
|
|
371
493
|
geolocation == o.geolocation &&
|
372
494
|
geolocation_country == o.geolocation_country &&
|
373
495
|
geolocation_state == o.geolocation_state &&
|
496
|
+
language_iso_code == o.language_iso_code &&
|
374
497
|
merchant_id == o.merchant_id &&
|
375
498
|
merchant_notes == o.merchant_notes &&
|
376
499
|
order_id == o.order_id &&
|
377
500
|
page_view_count == o.page_view_count &&
|
378
501
|
page_views == o.page_views &&
|
502
|
+
preferred_language == o.preferred_language &&
|
503
|
+
referrer_domain == o.referrer_domain &&
|
379
504
|
rrweb_version == o.rrweb_version &&
|
380
505
|
screen_recording_uuid == o.screen_recording_uuid &&
|
381
506
|
signed_download_url == o.signed_download_url &&
|
@@ -389,6 +514,8 @@ module UltracartClient
|
|
389
514
|
user_agent_raw == o.user_agent_raw &&
|
390
515
|
user_ip == o.user_ip &&
|
391
516
|
user_properties == o.user_properties &&
|
517
|
+
utm_campaign == o.utm_campaign &&
|
518
|
+
utm_source == o.utm_source &&
|
392
519
|
visitor_first_seen == o.visitor_first_seen &&
|
393
520
|
visitor_number == o.visitor_number &&
|
394
521
|
watched == o.watched &&
|
@@ -405,7 +532,7 @@ module UltracartClient
|
|
405
532
|
# Calculates hash code according to all attributes.
|
406
533
|
# @return [Fixnum] Hash code
|
407
534
|
def hash
|
408
|
-
[analytics_client_oid, analytics_session_dts, analytics_session_oid, email, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, merchant_id, merchant_notes, order_id, page_view_count, page_views, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, visitor_first_seen, visitor_number, watched, window_height, window_width].hash
|
535
|
+
[ad_platform, analytics_client_oid, analytics_session_dts, analytics_session_oid, communications_campaign_name, communications_campaign_uuid, communications_email_subject, communications_email_uuid, communications_flow_name, communications_flow_uuid, email, email_domain, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, language_iso_code, merchant_id, merchant_notes, order_id, page_view_count, page_views, preferred_language, referrer_domain, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, utm_campaign, utm_source, visitor_first_seen, visitor_number, watched, window_height, window_width].hash
|
409
536
|
end
|
410
537
|
|
411
538
|
# Builds the object from hash
|
@@ -0,0 +1,235 @@
|
|
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 ScreenRecordingAdPlatform
|
17
|
+
# Facebook Click Id (Cookie)
|
18
|
+
attr_accessor :fbc
|
19
|
+
|
20
|
+
# Facebook Click Id Parameter (Parameter)
|
21
|
+
attr_accessor :fbclid
|
22
|
+
|
23
|
+
# Facebook Browser Id (Cookie)
|
24
|
+
attr_accessor :fbp
|
25
|
+
|
26
|
+
# Google Analytics CID (Cookie)
|
27
|
+
attr_accessor :gacid
|
28
|
+
|
29
|
+
# Google Adwords Click Id (Parameter)
|
30
|
+
attr_accessor :glcid
|
31
|
+
|
32
|
+
# Bing Click Id (Parameter
|
33
|
+
attr_accessor :msclkid
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'fbc' => :'fbc',
|
39
|
+
:'fbclid' => :'fbclid',
|
40
|
+
:'fbp' => :'fbp',
|
41
|
+
:'gacid' => :'gacid',
|
42
|
+
:'glcid' => :'glcid',
|
43
|
+
:'msclkid' => :'msclkid'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.swagger_types
|
49
|
+
{
|
50
|
+
:'fbc' => :'String',
|
51
|
+
:'fbclid' => :'String',
|
52
|
+
:'fbp' => :'String',
|
53
|
+
:'gacid' => :'String',
|
54
|
+
:'glcid' => :'String',
|
55
|
+
:'msclkid' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'fbc')
|
68
|
+
self.fbc = attributes[:'fbc']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'fbclid')
|
72
|
+
self.fbclid = attributes[:'fbclid']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'fbp')
|
76
|
+
self.fbp = attributes[:'fbp']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'gacid')
|
80
|
+
self.gacid = attributes[:'gacid']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'glcid')
|
84
|
+
self.glcid = attributes[:'glcid']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'msclkid')
|
88
|
+
self.msclkid = attributes[:'msclkid']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = Array.new
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
fbc == o.fbc &&
|
111
|
+
fbclid == o.fbclid &&
|
112
|
+
fbp == o.fbp &&
|
113
|
+
gacid == o.gacid &&
|
114
|
+
glcid == o.glcid &&
|
115
|
+
msclkid == o.msclkid
|
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
|
+
[fbc, fbclid, fbp, gacid, glcid, msclkid].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 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 = UltracartClient.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
|
+
|
234
|
+
end
|
235
|
+
end
|