ultracart_api 4.0.55.rc → 4.0.58.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/CartMarketing.md +2 -0
- data/docs/ConversationParticipant.md +2 -0
- data/docs/ConversationWebchatQueueStatusAgent.md +4 -2
- data/docs/EmailCommseqSequenceTestRequest.md +13 -1
- data/docs/ExperimentVariation.md +2 -0
- data/docs/ExperimentVariationStat.md +2 -0
- data/docs/ItemReview.md +90 -0
- data/docs/ItemReviews.md +2 -0
- data/docs/OrderApi.md +2 -0
- data/docs/OrderBilling.md +4 -0
- data/docs/OrderMarketing.md +2 -0
- data/docs/StorefrontApi.md +1 -1
- data/lib/ultracart_api/api/order_api.rb +3 -0
- data/lib/ultracart_api/api/storefront_api.rb +1 -1
- data/lib/ultracart_api/models/cart_marketing.rb +11 -1
- data/lib/ultracart_api/models/conversation_participant.rb +10 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb +49 -4
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +58 -4
- data/lib/ultracart_api/models/experiment_variation.rb +11 -1
- data/lib/ultracart_api/models/experiment_variation_stat.rb +11 -1
- data/lib/ultracart_api/models/item_review.rb +545 -0
- data/lib/ultracart_api/models/item_reviews.rb +12 -1
- data/lib/ultracart_api/models/order_billing.rb +51 -1
- data/lib/ultracart_api/models/order_marketing.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
@@ -15,33 +15,51 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class EmailCommseqSequenceTestRequest
|
18
|
+
attr_accessor :address_1
|
19
|
+
|
20
|
+
attr_accessor :address_2
|
21
|
+
|
18
22
|
attr_accessor :cart_id
|
19
23
|
|
20
24
|
attr_accessor :cart_item_ids
|
21
25
|
|
26
|
+
attr_accessor :city
|
27
|
+
|
22
28
|
attr_accessor :esp_commseq_uuid
|
23
29
|
|
30
|
+
attr_accessor :mail_card
|
31
|
+
|
24
32
|
attr_accessor :name
|
25
33
|
|
26
34
|
attr_accessor :order_id
|
27
35
|
|
28
36
|
attr_accessor :please_review
|
29
37
|
|
38
|
+
attr_accessor :postal_code
|
39
|
+
|
30
40
|
attr_accessor :send_to_email
|
31
41
|
|
32
42
|
attr_accessor :send_to_logged_in_user
|
33
43
|
|
44
|
+
attr_accessor :state
|
45
|
+
|
34
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
47
|
def self.attribute_map
|
36
48
|
{
|
49
|
+
:'address_1' => :'address_1',
|
50
|
+
:'address_2' => :'address_2',
|
37
51
|
:'cart_id' => :'cart_id',
|
38
52
|
:'cart_item_ids' => :'cart_item_ids',
|
53
|
+
:'city' => :'city',
|
39
54
|
:'esp_commseq_uuid' => :'esp_commseq_uuid',
|
55
|
+
:'mail_card' => :'mail_card',
|
40
56
|
:'name' => :'name',
|
41
57
|
:'order_id' => :'order_id',
|
42
58
|
:'please_review' => :'please_review',
|
59
|
+
:'postal_code' => :'postal_code',
|
43
60
|
:'send_to_email' => :'send_to_email',
|
44
|
-
:'send_to_logged_in_user' => :'send_to_logged_in_user'
|
61
|
+
:'send_to_logged_in_user' => :'send_to_logged_in_user',
|
62
|
+
:'state' => :'state'
|
45
63
|
}
|
46
64
|
end
|
47
65
|
|
@@ -53,14 +71,20 @@ module UltracartClient
|
|
53
71
|
# Attribute type mapping.
|
54
72
|
def self.openapi_types
|
55
73
|
{
|
74
|
+
:'address_1' => :'String',
|
75
|
+
:'address_2' => :'String',
|
56
76
|
:'cart_id' => :'String',
|
57
77
|
:'cart_item_ids' => :'Array<String>',
|
78
|
+
:'city' => :'String',
|
58
79
|
:'esp_commseq_uuid' => :'String',
|
80
|
+
:'mail_card' => :'Boolean',
|
59
81
|
:'name' => :'String',
|
60
82
|
:'order_id' => :'String',
|
61
83
|
:'please_review' => :'Boolean',
|
84
|
+
:'postal_code' => :'String',
|
62
85
|
:'send_to_email' => :'String',
|
63
|
-
:'send_to_logged_in_user' => :'Boolean'
|
86
|
+
:'send_to_logged_in_user' => :'Boolean',
|
87
|
+
:'state' => :'String'
|
64
88
|
}
|
65
89
|
end
|
66
90
|
|
@@ -85,6 +109,14 @@ module UltracartClient
|
|
85
109
|
h[k.to_sym] = v
|
86
110
|
}
|
87
111
|
|
112
|
+
if attributes.key?(:'address_1')
|
113
|
+
self.address_1 = attributes[:'address_1']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'address_2')
|
117
|
+
self.address_2 = attributes[:'address_2']
|
118
|
+
end
|
119
|
+
|
88
120
|
if attributes.key?(:'cart_id')
|
89
121
|
self.cart_id = attributes[:'cart_id']
|
90
122
|
end
|
@@ -95,10 +127,18 @@ module UltracartClient
|
|
95
127
|
end
|
96
128
|
end
|
97
129
|
|
130
|
+
if attributes.key?(:'city')
|
131
|
+
self.city = attributes[:'city']
|
132
|
+
end
|
133
|
+
|
98
134
|
if attributes.key?(:'esp_commseq_uuid')
|
99
135
|
self.esp_commseq_uuid = attributes[:'esp_commseq_uuid']
|
100
136
|
end
|
101
137
|
|
138
|
+
if attributes.key?(:'mail_card')
|
139
|
+
self.mail_card = attributes[:'mail_card']
|
140
|
+
end
|
141
|
+
|
102
142
|
if attributes.key?(:'name')
|
103
143
|
self.name = attributes[:'name']
|
104
144
|
end
|
@@ -111,6 +151,10 @@ module UltracartClient
|
|
111
151
|
self.please_review = attributes[:'please_review']
|
112
152
|
end
|
113
153
|
|
154
|
+
if attributes.key?(:'postal_code')
|
155
|
+
self.postal_code = attributes[:'postal_code']
|
156
|
+
end
|
157
|
+
|
114
158
|
if attributes.key?(:'send_to_email')
|
115
159
|
self.send_to_email = attributes[:'send_to_email']
|
116
160
|
end
|
@@ -118,6 +162,10 @@ module UltracartClient
|
|
118
162
|
if attributes.key?(:'send_to_logged_in_user')
|
119
163
|
self.send_to_logged_in_user = attributes[:'send_to_logged_in_user']
|
120
164
|
end
|
165
|
+
|
166
|
+
if attributes.key?(:'state')
|
167
|
+
self.state = attributes[:'state']
|
168
|
+
end
|
121
169
|
end
|
122
170
|
|
123
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -138,14 +186,20 @@ module UltracartClient
|
|
138
186
|
def ==(o)
|
139
187
|
return true if self.equal?(o)
|
140
188
|
self.class == o.class &&
|
189
|
+
address_1 == o.address_1 &&
|
190
|
+
address_2 == o.address_2 &&
|
141
191
|
cart_id == o.cart_id &&
|
142
192
|
cart_item_ids == o.cart_item_ids &&
|
193
|
+
city == o.city &&
|
143
194
|
esp_commseq_uuid == o.esp_commseq_uuid &&
|
195
|
+
mail_card == o.mail_card &&
|
144
196
|
name == o.name &&
|
145
197
|
order_id == o.order_id &&
|
146
198
|
please_review == o.please_review &&
|
199
|
+
postal_code == o.postal_code &&
|
147
200
|
send_to_email == o.send_to_email &&
|
148
|
-
send_to_logged_in_user == o.send_to_logged_in_user
|
201
|
+
send_to_logged_in_user == o.send_to_logged_in_user &&
|
202
|
+
state == o.state
|
149
203
|
end
|
150
204
|
|
151
205
|
# @see the `==` method
|
@@ -157,7 +211,7 @@ module UltracartClient
|
|
157
211
|
# Calculates hash code according to all attributes.
|
158
212
|
# @return [Integer] Hash code
|
159
213
|
def hash
|
160
|
-
[cart_id, cart_item_ids, esp_commseq_uuid, name, order_id, please_review, send_to_email, send_to_logged_in_user].hash
|
214
|
+
[address_1, address_2, cart_id, cart_item_ids, city, esp_commseq_uuid, mail_card, name, order_id, please_review, postal_code, send_to_email, send_to_logged_in_user, state].hash
|
161
215
|
end
|
162
216
|
|
163
217
|
# Builds the object from hash
|
@@ -66,6 +66,9 @@ module UltracartClient
|
|
66
66
|
# Total sessions for this variation
|
67
67
|
attr_accessor :session_count
|
68
68
|
|
69
|
+
# SMS Opt Ins for this variation
|
70
|
+
attr_accessor :sms_opt_ins
|
71
|
+
|
69
72
|
# Percentage of the traffic this variation is currently receiving
|
70
73
|
attr_accessor :traffic_percentage
|
71
74
|
|
@@ -101,6 +104,7 @@ module UltracartClient
|
|
101
104
|
:'paused' => :'paused',
|
102
105
|
:'revenue' => :'revenue',
|
103
106
|
:'session_count' => :'session_count',
|
107
|
+
:'sms_opt_ins' => :'sms_opt_ins',
|
104
108
|
:'traffic_percentage' => :'traffic_percentage',
|
105
109
|
:'url' => :'url',
|
106
110
|
:'variation_name' => :'variation_name',
|
@@ -134,6 +138,7 @@ module UltracartClient
|
|
134
138
|
:'paused' => :'Boolean',
|
135
139
|
:'revenue' => :'Float',
|
136
140
|
:'session_count' => :'Integer',
|
141
|
+
:'sms_opt_ins' => :'Integer',
|
137
142
|
:'traffic_percentage' => :'Float',
|
138
143
|
:'url' => :'String',
|
139
144
|
:'variation_name' => :'String',
|
@@ -233,6 +238,10 @@ module UltracartClient
|
|
233
238
|
self.session_count = attributes[:'session_count']
|
234
239
|
end
|
235
240
|
|
241
|
+
if attributes.key?(:'sms_opt_ins')
|
242
|
+
self.sms_opt_ins = attributes[:'sms_opt_ins']
|
243
|
+
end
|
244
|
+
|
236
245
|
if attributes.key?(:'traffic_percentage')
|
237
246
|
self.traffic_percentage = attributes[:'traffic_percentage']
|
238
247
|
end
|
@@ -289,6 +298,7 @@ module UltracartClient
|
|
289
298
|
paused == o.paused &&
|
290
299
|
revenue == o.revenue &&
|
291
300
|
session_count == o.session_count &&
|
301
|
+
sms_opt_ins == o.sms_opt_ins &&
|
292
302
|
traffic_percentage == o.traffic_percentage &&
|
293
303
|
url == o.url &&
|
294
304
|
variation_name == o.variation_name &&
|
@@ -305,7 +315,7 @@ module UltracartClient
|
|
305
315
|
# Calculates hash code according to all attributes.
|
306
316
|
# @return [Integer] Hash code
|
307
317
|
def hash
|
308
|
-
[add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, daily_statistics, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, original_traffic_percentage, page_view_count, paused, revenue, session_count, traffic_percentage, url, variation_name, variation_number, winner].hash
|
318
|
+
[add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, daily_statistics, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, original_traffic_percentage, page_view_count, paused, revenue, session_count, sms_opt_ins, traffic_percentage, url, variation_name, variation_number, winner].hash
|
309
319
|
end
|
310
320
|
|
311
321
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module UltracartClient
|
|
45
45
|
# Total sessions for this variation
|
46
46
|
attr_accessor :session_count
|
47
47
|
|
48
|
+
# Total SMS opt in count for this variation
|
49
|
+
attr_accessor :sms_opt_in_count
|
50
|
+
|
48
51
|
# Date/time that the statistic was created
|
49
52
|
attr_accessor :stat_dts
|
50
53
|
|
@@ -61,6 +64,7 @@ module UltracartClient
|
|
61
64
|
:'page_view_count' => :'page_view_count',
|
62
65
|
:'revenue' => :'revenue',
|
63
66
|
:'session_count' => :'session_count',
|
67
|
+
:'sms_opt_in_count' => :'sms_opt_in_count',
|
64
68
|
:'stat_dts' => :'stat_dts'
|
65
69
|
}
|
66
70
|
end
|
@@ -83,6 +87,7 @@ module UltracartClient
|
|
83
87
|
:'page_view_count' => :'Integer',
|
84
88
|
:'revenue' => :'Float',
|
85
89
|
:'session_count' => :'Integer',
|
90
|
+
:'sms_opt_in_count' => :'Integer',
|
86
91
|
:'stat_dts' => :'String'
|
87
92
|
}
|
88
93
|
end
|
@@ -148,6 +153,10 @@ module UltracartClient
|
|
148
153
|
self.session_count = attributes[:'session_count']
|
149
154
|
end
|
150
155
|
|
156
|
+
if attributes.key?(:'sms_opt_in_count')
|
157
|
+
self.sms_opt_in_count = attributes[:'sms_opt_in_count']
|
158
|
+
end
|
159
|
+
|
151
160
|
if attributes.key?(:'stat_dts')
|
152
161
|
self.stat_dts = attributes[:'stat_dts']
|
153
162
|
end
|
@@ -181,6 +190,7 @@ module UltracartClient
|
|
181
190
|
page_view_count == o.page_view_count &&
|
182
191
|
revenue == o.revenue &&
|
183
192
|
session_count == o.session_count &&
|
193
|
+
sms_opt_in_count == o.sms_opt_in_count &&
|
184
194
|
stat_dts == o.stat_dts
|
185
195
|
end
|
186
196
|
|
@@ -193,7 +203,7 @@ module UltracartClient
|
|
193
203
|
# Calculates hash code according to all attributes.
|
194
204
|
# @return [Integer] Hash code
|
195
205
|
def hash
|
196
|
-
[add_to_cart_count, bounce_count, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, page_view_count, revenue, session_count, stat_dts].hash
|
206
|
+
[add_to_cart_count, bounce_count, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, page_view_count, revenue, session_count, sms_opt_in_count, stat_dts].hash
|
197
207
|
end
|
198
208
|
|
199
209
|
# Builds the object from hash
|