ultracart_api 3.10.115 → 3.10.117
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/CartCheckout.md +3 -0
- data/docs/LookupRequest.md +1 -0
- data/docs/Order.md +1 -0
- data/docs/OrderCheckout.md +3 -0
- data/docs/OrderUtm.md +31 -0
- data/docs/PricingTier.md +1 -0
- data/lib/ultracart_api/models/cart_checkout.rb +76 -1
- data/lib/ultracart_api/models/lookup_request.rb +10 -1
- data/lib/ultracart_api/models/order.rb +16 -4
- data/lib/ultracart_api/models/order_checkout.rb +76 -1
- data/lib/ultracart_api/models/order_utm.rb +392 -0
- data/lib/ultracart_api/models/pricing_tier.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b0716875e7af220fb4cc7c7947a56bb79b94ca73912d5cb4e54db849dc1e2e
|
4
|
+
data.tar.gz: 94b60f5189f9cbe2732a1dbf3c2898166f65ba6c1d2b3635fc5d639f426ccc5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e7d176a0218045ae99510053bc81dc45ae0e33d8e95eaa24a10e2b802fbd1a245527ba5d62b02a05c92df0fd08cdfccda6e07b2ccd9dfbef9546e0f16a94e82
|
7
|
+
data.tar.gz: eab6d75bf58443eeface15ef99037e5728a0cb6483363b43a63dbc08054369140db677085a5870f213939a05129a19cb9719dc444afc0ab14e90421b5ca7b264
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
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: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.117
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.117.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.117.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.117'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1099,6 +1099,7 @@ Class | Method | HTTP request | Description
|
|
1099
1099
|
- [UltracartClient::OrderTrackingNumberDetail](docs/OrderTrackingNumberDetail.md)
|
1100
1100
|
- [UltracartClient::OrderTrackingNumberDetails](docs/OrderTrackingNumberDetails.md)
|
1101
1101
|
- [UltracartClient::OrderTransactionalMerchantNote](docs/OrderTransactionalMerchantNote.md)
|
1102
|
+
- [UltracartClient::OrderUtm](docs/OrderUtm.md)
|
1102
1103
|
- [UltracartClient::OrdersResponse](docs/OrdersResponse.md)
|
1103
1104
|
- [UltracartClient::Permission](docs/Permission.md)
|
1104
1105
|
- [UltracartClient::PointOfSaleLocation](docs/PointOfSaleLocation.md)
|
@@ -1300,6 +1301,8 @@ Not every change is committed to every SDK.
|
|
1300
1301
|
|
1301
1302
|
| Version | Date | Comments |
|
1302
1303
|
| --: | :-: | --- |
|
1304
|
+
| 3.10.117 | 02/15/2023 | added auto order sorting by next_shipment_dts |
|
1305
|
+
| 3.10.116 | 02/10/2023 | convo - add storefront_host_name to search request |
|
1303
1306
|
| 3.10.115 | 02/07/2023 | convo - new event for when a customer joins a queue |
|
1304
1307
|
| 3.10.114 | 02/07/2023 | convo - new event for when a customer joins a queue |
|
1305
1308
|
| 3.10.113 | 02/06/2023 | convo - add conversation_arn to ConversationWebsocketMessage |
|
data/docs/CartCheckout.md
CHANGED
@@ -5,12 +5,15 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**comments** | **String** | Comments from the customer. Rarely used on the single page checkout. | [optional]
|
7
7
|
**custom_field1** | **String** | Custom field 1 | [optional]
|
8
|
+
**custom_field10** | **String** | Custom field 10 | [optional]
|
8
9
|
**custom_field2** | **String** | Custom field 2 | [optional]
|
9
10
|
**custom_field3** | **String** | Custom field 3 | [optional]
|
10
11
|
**custom_field4** | **String** | Custom field 4 | [optional]
|
11
12
|
**custom_field5** | **String** | Custom field 5 | [optional]
|
12
13
|
**custom_field6** | **String** | Custom field 6 | [optional]
|
13
14
|
**custom_field7** | **String** | Custom field 7 | [optional]
|
15
|
+
**custom_field8** | **String** | Custom field 8 | [optional]
|
16
|
+
**custom_field9** | **String** | Custom field 9 | [optional]
|
14
17
|
**ip_address** | **String** | IP Address (read only unless non-browser key authenticated) | [optional]
|
15
18
|
**return_code** | **String** | Return code assigned for send return email operation | [optional]
|
16
19
|
**return_url** | **String** | The URL to redirect the customer to when they return from an abandon cart email. Must be https protocol. | [optional]
|
data/docs/LookupRequest.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**category** | **String** | | [optional]
|
7
7
|
**matches** | **String** | | [optional]
|
8
8
|
**max_hits** | **Integer** | | [optional]
|
9
|
+
**storefront_host_name** | **String** | | [optional]
|
9
10
|
**storefront_oid** | **Integer** | | [optional]
|
10
11
|
**subcategory** | **String** | | [optional]
|
11
12
|
|
data/docs/Order.md
CHANGED
@@ -38,5 +38,6 @@ Name | Type | Description | Notes
|
|
38
38
|
**summary** | [**OrderSummary**](OrderSummary.md) | | [optional]
|
39
39
|
**tags** | [**Array<OrderTag>**](OrderTag.md) | tags, available only through update, not through insert due to the nature of how tags are handled internally | [optional]
|
40
40
|
**taxes** | [**OrderTaxes**](OrderTaxes.md) | | [optional]
|
41
|
+
**utms** | [**Array<OrderUtm>**](OrderUtm.md) | UTM clicks. The zero index is the most recent (last) UTM click | [optional]
|
41
42
|
|
42
43
|
|
data/docs/OrderCheckout.md
CHANGED
@@ -6,12 +6,15 @@ Name | Type | Description | Notes
|
|
6
6
|
**browser** | [**Browser**](Browser.md) | | [optional]
|
7
7
|
**comments** | **String** | Comments from the customer. Rarely used on the single page checkout. | [optional]
|
8
8
|
**custom_field1** | **String** | Custom field 1 | [optional]
|
9
|
+
**custom_field10** | **String** | Custom field 10 | [optional]
|
9
10
|
**custom_field2** | **String** | Custom field 2 | [optional]
|
10
11
|
**custom_field3** | **String** | Custom field 3 | [optional]
|
11
12
|
**custom_field4** | **String** | Custom field 4 | [optional]
|
12
13
|
**custom_field5** | **String** | Custom field 5 | [optional]
|
13
14
|
**custom_field6** | **String** | Custom field 6 | [optional]
|
14
15
|
**custom_field7** | **String** | Custom field 7 | [optional]
|
16
|
+
**custom_field8** | **String** | Custom field 8 | [optional]
|
17
|
+
**custom_field9** | **String** | Custom field 9 | [optional]
|
15
18
|
**customer_ip_address** | **String** | IP address of the customer when placing the order | [optional]
|
16
19
|
**screen_branding_theme_code** | **String** | Screen branding theme code associated with the order (legacy checkout) | [optional]
|
17
20
|
**screen_size** | **String** | Screen size small, medium or large | [optional]
|
data/docs/OrderUtm.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# UltracartClient::OrderUtm
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**attribution_first_click_subtotal** | **Float** | | [optional]
|
7
|
+
**attribution_first_click_total** | **Float** | | [optional]
|
8
|
+
**attribution_last_click_subtotal** | **Float** | | [optional]
|
9
|
+
**attribution_last_click_total** | **Float** | | [optional]
|
10
|
+
**attribution_linear_subtotal** | **Float** | | [optional]
|
11
|
+
**attribution_linear_total** | **Float** | | [optional]
|
12
|
+
**attribution_position_based_subtotal** | **Float** | | [optional]
|
13
|
+
**attribution_position_based_total** | **Float** | | [optional]
|
14
|
+
**click_dts** | **String** | Date/time that the click happened | [optional]
|
15
|
+
**facebook_ad_id** | **String** | | [optional]
|
16
|
+
**fbclid** | **String** | | [optional]
|
17
|
+
**gbraid** | **String** | | [optional]
|
18
|
+
**glcid** | **String** | | [optional]
|
19
|
+
**msclkid** | **String** | | [optional]
|
20
|
+
**ttclid** | **String** | | [optional]
|
21
|
+
**uc_message_id** | **String** | | [optional]
|
22
|
+
**utm_campaign** | **String** | | [optional]
|
23
|
+
**utm_content** | **String** | | [optional]
|
24
|
+
**utm_id** | **String** | | [optional]
|
25
|
+
**utm_medium** | **String** | | [optional]
|
26
|
+
**utm_source** | **String** | | [optional]
|
27
|
+
**utm_term** | **String** | | [optional]
|
28
|
+
**vmcid** | **String** | | [optional]
|
29
|
+
**wbraid** | **String** | | [optional]
|
30
|
+
|
31
|
+
|
data/docs/PricingTier.md
CHANGED
@@ -30,6 +30,7 @@ Name | Type | Description | Notes
|
|
30
30
|
**not_valid_when_coupon_present** | **BOOLEAN** | Not valid when coupon present | [optional]
|
31
31
|
**pricing_tier_oid** | **Integer** | Pricing Tier Oid | [optional]
|
32
32
|
**realtime_percentage_discount** | **Float** | Realtime percentage discount | [optional]
|
33
|
+
**restrict_to_distribution_center_oid** | **Integer** | Restrict inventory to this distribution center oid | [optional]
|
33
34
|
**signup_notification** | [**PricingTierNotification**](PricingTierNotification.md) | | [optional]
|
34
35
|
**suppress_buysafe** | **BOOLEAN** | Suppress buySAFE (deprecated) | [optional]
|
35
36
|
**suppress_mailing_list** | **BOOLEAN** | Suppress mailing list | [optional]
|
@@ -20,6 +20,9 @@ module UltracartClient
|
|
20
20
|
# Custom field 1
|
21
21
|
attr_accessor :custom_field1
|
22
22
|
|
23
|
+
# Custom field 10
|
24
|
+
attr_accessor :custom_field10
|
25
|
+
|
23
26
|
# Custom field 2
|
24
27
|
attr_accessor :custom_field2
|
25
28
|
|
@@ -38,6 +41,12 @@ module UltracartClient
|
|
38
41
|
# Custom field 7
|
39
42
|
attr_accessor :custom_field7
|
40
43
|
|
44
|
+
# Custom field 8
|
45
|
+
attr_accessor :custom_field8
|
46
|
+
|
47
|
+
# Custom field 9
|
48
|
+
attr_accessor :custom_field9
|
49
|
+
|
41
50
|
# IP Address (read only unless non-browser key authenticated)
|
42
51
|
attr_accessor :ip_address
|
43
52
|
|
@@ -61,12 +70,15 @@ module UltracartClient
|
|
61
70
|
{
|
62
71
|
:'comments' => :'comments',
|
63
72
|
:'custom_field1' => :'custom_field1',
|
73
|
+
:'custom_field10' => :'custom_field10',
|
64
74
|
:'custom_field2' => :'custom_field2',
|
65
75
|
:'custom_field3' => :'custom_field3',
|
66
76
|
:'custom_field4' => :'custom_field4',
|
67
77
|
:'custom_field5' => :'custom_field5',
|
68
78
|
:'custom_field6' => :'custom_field6',
|
69
79
|
:'custom_field7' => :'custom_field7',
|
80
|
+
:'custom_field8' => :'custom_field8',
|
81
|
+
:'custom_field9' => :'custom_field9',
|
70
82
|
:'ip_address' => :'ip_address',
|
71
83
|
:'return_code' => :'return_code',
|
72
84
|
:'return_url' => :'return_url',
|
@@ -81,12 +93,15 @@ module UltracartClient
|
|
81
93
|
{
|
82
94
|
:'comments' => :'String',
|
83
95
|
:'custom_field1' => :'String',
|
96
|
+
:'custom_field10' => :'String',
|
84
97
|
:'custom_field2' => :'String',
|
85
98
|
:'custom_field3' => :'String',
|
86
99
|
:'custom_field4' => :'String',
|
87
100
|
:'custom_field5' => :'String',
|
88
101
|
:'custom_field6' => :'String',
|
89
102
|
:'custom_field7' => :'String',
|
103
|
+
:'custom_field8' => :'String',
|
104
|
+
:'custom_field9' => :'String',
|
90
105
|
:'ip_address' => :'String',
|
91
106
|
:'return_code' => :'String',
|
92
107
|
:'return_url' => :'String',
|
@@ -112,6 +127,10 @@ module UltracartClient
|
|
112
127
|
self.custom_field1 = attributes[:'custom_field1']
|
113
128
|
end
|
114
129
|
|
130
|
+
if attributes.has_key?(:'custom_field10')
|
131
|
+
self.custom_field10 = attributes[:'custom_field10']
|
132
|
+
end
|
133
|
+
|
115
134
|
if attributes.has_key?(:'custom_field2')
|
116
135
|
self.custom_field2 = attributes[:'custom_field2']
|
117
136
|
end
|
@@ -136,6 +155,14 @@ module UltracartClient
|
|
136
155
|
self.custom_field7 = attributes[:'custom_field7']
|
137
156
|
end
|
138
157
|
|
158
|
+
if attributes.has_key?(:'custom_field8')
|
159
|
+
self.custom_field8 = attributes[:'custom_field8']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.has_key?(:'custom_field9')
|
163
|
+
self.custom_field9 = attributes[:'custom_field9']
|
164
|
+
end
|
165
|
+
|
139
166
|
if attributes.has_key?(:'ip_address')
|
140
167
|
self.ip_address = attributes[:'ip_address']
|
141
168
|
end
|
@@ -173,6 +200,10 @@ module UltracartClient
|
|
173
200
|
invalid_properties.push('invalid value for "custom_field1", the character length must be smaller than or equal to 50.')
|
174
201
|
end
|
175
202
|
|
203
|
+
if !@custom_field10.nil? && @custom_field10.to_s.length > 200
|
204
|
+
invalid_properties.push('invalid value for "custom_field10", the character length must be smaller than or equal to 200.')
|
205
|
+
end
|
206
|
+
|
176
207
|
if !@custom_field2.nil? && @custom_field2.to_s.length > 50
|
177
208
|
invalid_properties.push('invalid value for "custom_field2", the character length must be smaller than or equal to 50.')
|
178
209
|
end
|
@@ -197,6 +228,14 @@ module UltracartClient
|
|
197
228
|
invalid_properties.push('invalid value for "custom_field7", the character length must be smaller than or equal to 50.')
|
198
229
|
end
|
199
230
|
|
231
|
+
if !@custom_field8.nil? && @custom_field8.to_s.length > 200
|
232
|
+
invalid_properties.push('invalid value for "custom_field8", the character length must be smaller than or equal to 200.')
|
233
|
+
end
|
234
|
+
|
235
|
+
if !@custom_field9.nil? && @custom_field9.to_s.length > 200
|
236
|
+
invalid_properties.push('invalid value for "custom_field9", the character length must be smaller than or equal to 200.')
|
237
|
+
end
|
238
|
+
|
200
239
|
if !@return_url.nil? && @return_url.to_s.length > 2048
|
201
240
|
invalid_properties.push('invalid value for "return_url", the character length must be smaller than or equal to 2048.')
|
202
241
|
end
|
@@ -213,12 +252,15 @@ module UltracartClient
|
|
213
252
|
def valid?
|
214
253
|
return false if !@comments.nil? && @comments.to_s.length > 2000
|
215
254
|
return false if !@custom_field1.nil? && @custom_field1.to_s.length > 50
|
255
|
+
return false if !@custom_field10.nil? && @custom_field10.to_s.length > 200
|
216
256
|
return false if !@custom_field2.nil? && @custom_field2.to_s.length > 50
|
217
257
|
return false if !@custom_field3.nil? && @custom_field3.to_s.length > 50
|
218
258
|
return false if !@custom_field4.nil? && @custom_field4.to_s.length > 50
|
219
259
|
return false if !@custom_field5.nil? && @custom_field5.to_s.length > 75
|
220
260
|
return false if !@custom_field6.nil? && @custom_field6.to_s.length > 50
|
221
261
|
return false if !@custom_field7.nil? && @custom_field7.to_s.length > 50
|
262
|
+
return false if !@custom_field8.nil? && @custom_field8.to_s.length > 200
|
263
|
+
return false if !@custom_field9.nil? && @custom_field9.to_s.length > 200
|
222
264
|
return false if !@return_url.nil? && @return_url.to_s.length > 2048
|
223
265
|
return false if !@screen_branding_theme_code.nil? && @screen_branding_theme_code.to_s.length > 10
|
224
266
|
true
|
@@ -244,6 +286,16 @@ module UltracartClient
|
|
244
286
|
@custom_field1 = custom_field1
|
245
287
|
end
|
246
288
|
|
289
|
+
# Custom attribute writer method with validation
|
290
|
+
# @param [Object] custom_field10 Value to be assigned
|
291
|
+
def custom_field10=(custom_field10)
|
292
|
+
if !custom_field10.nil? && custom_field10.to_s.length > 200
|
293
|
+
fail ArgumentError, 'invalid value for "custom_field10", the character length must be smaller than or equal to 200.'
|
294
|
+
end
|
295
|
+
|
296
|
+
@custom_field10 = custom_field10
|
297
|
+
end
|
298
|
+
|
247
299
|
# Custom attribute writer method with validation
|
248
300
|
# @param [Object] custom_field2 Value to be assigned
|
249
301
|
def custom_field2=(custom_field2)
|
@@ -304,6 +356,26 @@ module UltracartClient
|
|
304
356
|
@custom_field7 = custom_field7
|
305
357
|
end
|
306
358
|
|
359
|
+
# Custom attribute writer method with validation
|
360
|
+
# @param [Object] custom_field8 Value to be assigned
|
361
|
+
def custom_field8=(custom_field8)
|
362
|
+
if !custom_field8.nil? && custom_field8.to_s.length > 200
|
363
|
+
fail ArgumentError, 'invalid value for "custom_field8", the character length must be smaller than or equal to 200.'
|
364
|
+
end
|
365
|
+
|
366
|
+
@custom_field8 = custom_field8
|
367
|
+
end
|
368
|
+
|
369
|
+
# Custom attribute writer method with validation
|
370
|
+
# @param [Object] custom_field9 Value to be assigned
|
371
|
+
def custom_field9=(custom_field9)
|
372
|
+
if !custom_field9.nil? && custom_field9.to_s.length > 200
|
373
|
+
fail ArgumentError, 'invalid value for "custom_field9", the character length must be smaller than or equal to 200.'
|
374
|
+
end
|
375
|
+
|
376
|
+
@custom_field9 = custom_field9
|
377
|
+
end
|
378
|
+
|
307
379
|
# Custom attribute writer method with validation
|
308
380
|
# @param [Object] return_url Value to be assigned
|
309
381
|
def return_url=(return_url)
|
@@ -331,12 +403,15 @@ module UltracartClient
|
|
331
403
|
self.class == o.class &&
|
332
404
|
comments == o.comments &&
|
333
405
|
custom_field1 == o.custom_field1 &&
|
406
|
+
custom_field10 == o.custom_field10 &&
|
334
407
|
custom_field2 == o.custom_field2 &&
|
335
408
|
custom_field3 == o.custom_field3 &&
|
336
409
|
custom_field4 == o.custom_field4 &&
|
337
410
|
custom_field5 == o.custom_field5 &&
|
338
411
|
custom_field6 == o.custom_field6 &&
|
339
412
|
custom_field7 == o.custom_field7 &&
|
413
|
+
custom_field8 == o.custom_field8 &&
|
414
|
+
custom_field9 == o.custom_field9 &&
|
340
415
|
ip_address == o.ip_address &&
|
341
416
|
return_code == o.return_code &&
|
342
417
|
return_url == o.return_url &&
|
@@ -354,7 +429,7 @@ module UltracartClient
|
|
354
429
|
# Calculates hash code according to all attributes.
|
355
430
|
# @return [Fixnum] Hash code
|
356
431
|
def hash
|
357
|
-
[comments, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, ip_address, return_code, return_url, screen_branding_theme_code, storefront_host_name, user_agent].hash
|
432
|
+
[comments, custom_field1, custom_field10, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, custom_field8, custom_field9, ip_address, return_code, return_url, screen_branding_theme_code, storefront_host_name, user_agent].hash
|
358
433
|
end
|
359
434
|
|
360
435
|
# Builds the object from hash
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :max_hits
|
22
22
|
|
23
|
+
attr_accessor :storefront_host_name
|
24
|
+
|
23
25
|
attr_accessor :storefront_oid
|
24
26
|
|
25
27
|
attr_accessor :subcategory
|
@@ -30,6 +32,7 @@ module UltracartClient
|
|
30
32
|
:'category' => :'category',
|
31
33
|
:'matches' => :'matches',
|
32
34
|
:'max_hits' => :'max_hits',
|
35
|
+
:'storefront_host_name' => :'storefront_host_name',
|
33
36
|
:'storefront_oid' => :'storefront_oid',
|
34
37
|
:'subcategory' => :'subcategory'
|
35
38
|
}
|
@@ -41,6 +44,7 @@ module UltracartClient
|
|
41
44
|
:'category' => :'String',
|
42
45
|
:'matches' => :'String',
|
43
46
|
:'max_hits' => :'Integer',
|
47
|
+
:'storefront_host_name' => :'String',
|
44
48
|
:'storefront_oid' => :'Integer',
|
45
49
|
:'subcategory' => :'String'
|
46
50
|
}
|
@@ -66,6 +70,10 @@ module UltracartClient
|
|
66
70
|
self.max_hits = attributes[:'max_hits']
|
67
71
|
end
|
68
72
|
|
73
|
+
if attributes.has_key?(:'storefront_host_name')
|
74
|
+
self.storefront_host_name = attributes[:'storefront_host_name']
|
75
|
+
end
|
76
|
+
|
69
77
|
if attributes.has_key?(:'storefront_oid')
|
70
78
|
self.storefront_oid = attributes[:'storefront_oid']
|
71
79
|
end
|
@@ -96,6 +104,7 @@ module UltracartClient
|
|
96
104
|
category == o.category &&
|
97
105
|
matches == o.matches &&
|
98
106
|
max_hits == o.max_hits &&
|
107
|
+
storefront_host_name == o.storefront_host_name &&
|
99
108
|
storefront_oid == o.storefront_oid &&
|
100
109
|
subcategory == o.subcategory
|
101
110
|
end
|
@@ -109,7 +118,7 @@ module UltracartClient
|
|
109
118
|
# Calculates hash code according to all attributes.
|
110
119
|
# @return [Fixnum] Hash code
|
111
120
|
def hash
|
112
|
-
[category, matches, max_hits, storefront_oid, subcategory].hash
|
121
|
+
[category, matches, max_hits, storefront_host_name, storefront_oid, subcategory].hash
|
113
122
|
end
|
114
123
|
|
115
124
|
# Builds the object from hash
|
@@ -98,6 +98,9 @@ module UltracartClient
|
|
98
98
|
|
99
99
|
attr_accessor :taxes
|
100
100
|
|
101
|
+
# UTM clicks. The zero index is the most recent (last) UTM click
|
102
|
+
attr_accessor :utms
|
103
|
+
|
101
104
|
class EnumAttributeValidator
|
102
105
|
attr_reader :datatype
|
103
106
|
attr_reader :allowable_values
|
@@ -157,7 +160,8 @@ module UltracartClient
|
|
157
160
|
:'shipping' => :'shipping',
|
158
161
|
:'summary' => :'summary',
|
159
162
|
:'tags' => :'Tags',
|
160
|
-
:'taxes' => :'taxes'
|
163
|
+
:'taxes' => :'taxes',
|
164
|
+
:'utms' => :'utms'
|
161
165
|
}
|
162
166
|
end
|
163
167
|
|
@@ -198,7 +202,8 @@ module UltracartClient
|
|
198
202
|
:'shipping' => :'OrderShipping',
|
199
203
|
:'summary' => :'OrderSummary',
|
200
204
|
:'tags' => :'Array<OrderTag>',
|
201
|
-
:'taxes' => :'OrderTaxes'
|
205
|
+
:'taxes' => :'OrderTaxes',
|
206
|
+
:'utms' => :'Array<OrderUtm>'
|
202
207
|
}
|
203
208
|
end
|
204
209
|
|
@@ -359,6 +364,12 @@ module UltracartClient
|
|
359
364
|
if attributes.has_key?(:'taxes')
|
360
365
|
self.taxes = attributes[:'taxes']
|
361
366
|
end
|
367
|
+
|
368
|
+
if attributes.has_key?(:'utms')
|
369
|
+
if (value = attributes[:'utms']).is_a?(Array)
|
370
|
+
self.utms = value
|
371
|
+
end
|
372
|
+
end
|
362
373
|
end
|
363
374
|
|
364
375
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -455,7 +466,8 @@ module UltracartClient
|
|
455
466
|
shipping == o.shipping &&
|
456
467
|
summary == o.summary &&
|
457
468
|
tags == o.tags &&
|
458
|
-
taxes == o.taxes
|
469
|
+
taxes == o.taxes &&
|
470
|
+
utms == o.utms
|
459
471
|
end
|
460
472
|
|
461
473
|
# @see the `==` method
|
@@ -467,7 +479,7 @@ module UltracartClient
|
|
467
479
|
# Calculates hash code according to all attributes.
|
468
480
|
# @return [Fixnum] Hash code
|
469
481
|
def hash
|
470
|
-
[affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, reject_dts, salesforce, shipping, summary, tags, taxes].hash
|
482
|
+
[affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, reject_dts, salesforce, shipping, summary, tags, taxes, utms].hash
|
471
483
|
end
|
472
484
|
|
473
485
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module UltracartClient
|
|
22
22
|
# Custom field 1
|
23
23
|
attr_accessor :custom_field1
|
24
24
|
|
25
|
+
# Custom field 10
|
26
|
+
attr_accessor :custom_field10
|
27
|
+
|
25
28
|
# Custom field 2
|
26
29
|
attr_accessor :custom_field2
|
27
30
|
|
@@ -40,6 +43,12 @@ module UltracartClient
|
|
40
43
|
# Custom field 7
|
41
44
|
attr_accessor :custom_field7
|
42
45
|
|
46
|
+
# Custom field 8
|
47
|
+
attr_accessor :custom_field8
|
48
|
+
|
49
|
+
# Custom field 9
|
50
|
+
attr_accessor :custom_field9
|
51
|
+
|
43
52
|
# IP address of the customer when placing the order
|
44
53
|
attr_accessor :customer_ip_address
|
45
54
|
|
@@ -61,12 +70,15 @@ module UltracartClient
|
|
61
70
|
:'browser' => :'browser',
|
62
71
|
:'comments' => :'comments',
|
63
72
|
:'custom_field1' => :'custom_field1',
|
73
|
+
:'custom_field10' => :'custom_field10',
|
64
74
|
:'custom_field2' => :'custom_field2',
|
65
75
|
:'custom_field3' => :'custom_field3',
|
66
76
|
:'custom_field4' => :'custom_field4',
|
67
77
|
:'custom_field5' => :'custom_field5',
|
68
78
|
:'custom_field6' => :'custom_field6',
|
69
79
|
:'custom_field7' => :'custom_field7',
|
80
|
+
:'custom_field8' => :'custom_field8',
|
81
|
+
:'custom_field9' => :'custom_field9',
|
70
82
|
:'customer_ip_address' => :'customer_ip_address',
|
71
83
|
:'screen_branding_theme_code' => :'screen_branding_theme_code',
|
72
84
|
:'screen_size' => :'screen_size',
|
@@ -81,12 +93,15 @@ module UltracartClient
|
|
81
93
|
:'browser' => :'Browser',
|
82
94
|
:'comments' => :'String',
|
83
95
|
:'custom_field1' => :'String',
|
96
|
+
:'custom_field10' => :'String',
|
84
97
|
:'custom_field2' => :'String',
|
85
98
|
:'custom_field3' => :'String',
|
86
99
|
:'custom_field4' => :'String',
|
87
100
|
:'custom_field5' => :'String',
|
88
101
|
:'custom_field6' => :'String',
|
89
102
|
:'custom_field7' => :'String',
|
103
|
+
:'custom_field8' => :'String',
|
104
|
+
:'custom_field9' => :'String',
|
90
105
|
:'customer_ip_address' => :'String',
|
91
106
|
:'screen_branding_theme_code' => :'String',
|
92
107
|
:'screen_size' => :'String',
|
@@ -115,6 +130,10 @@ module UltracartClient
|
|
115
130
|
self.custom_field1 = attributes[:'custom_field1']
|
116
131
|
end
|
117
132
|
|
133
|
+
if attributes.has_key?(:'custom_field10')
|
134
|
+
self.custom_field10 = attributes[:'custom_field10']
|
135
|
+
end
|
136
|
+
|
118
137
|
if attributes.has_key?(:'custom_field2')
|
119
138
|
self.custom_field2 = attributes[:'custom_field2']
|
120
139
|
end
|
@@ -139,6 +158,14 @@ module UltracartClient
|
|
139
158
|
self.custom_field7 = attributes[:'custom_field7']
|
140
159
|
end
|
141
160
|
|
161
|
+
if attributes.has_key?(:'custom_field8')
|
162
|
+
self.custom_field8 = attributes[:'custom_field8']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'custom_field9')
|
166
|
+
self.custom_field9 = attributes[:'custom_field9']
|
167
|
+
end
|
168
|
+
|
142
169
|
if attributes.has_key?(:'customer_ip_address')
|
143
170
|
self.customer_ip_address = attributes[:'customer_ip_address']
|
144
171
|
end
|
@@ -168,6 +195,10 @@ module UltracartClient
|
|
168
195
|
invalid_properties.push('invalid value for "custom_field1", the character length must be smaller than or equal to 50.')
|
169
196
|
end
|
170
197
|
|
198
|
+
if !@custom_field10.nil? && @custom_field10.to_s.length > 200
|
199
|
+
invalid_properties.push('invalid value for "custom_field10", the character length must be smaller than or equal to 200.')
|
200
|
+
end
|
201
|
+
|
171
202
|
if !@custom_field2.nil? && @custom_field2.to_s.length > 50
|
172
203
|
invalid_properties.push('invalid value for "custom_field2", the character length must be smaller than or equal to 50.')
|
173
204
|
end
|
@@ -192,6 +223,14 @@ module UltracartClient
|
|
192
223
|
invalid_properties.push('invalid value for "custom_field7", the character length must be smaller than or equal to 50.')
|
193
224
|
end
|
194
225
|
|
226
|
+
if !@custom_field8.nil? && @custom_field8.to_s.length > 200
|
227
|
+
invalid_properties.push('invalid value for "custom_field8", the character length must be smaller than or equal to 200.')
|
228
|
+
end
|
229
|
+
|
230
|
+
if !@custom_field9.nil? && @custom_field9.to_s.length > 200
|
231
|
+
invalid_properties.push('invalid value for "custom_field9", the character length must be smaller than or equal to 200.')
|
232
|
+
end
|
233
|
+
|
195
234
|
if !@screen_branding_theme_code.nil? && @screen_branding_theme_code.to_s.length > 10
|
196
235
|
invalid_properties.push('invalid value for "screen_branding_theme_code", the character length must be smaller than or equal to 10.')
|
197
236
|
end
|
@@ -203,12 +242,15 @@ module UltracartClient
|
|
203
242
|
# @return true if the model is valid
|
204
243
|
def valid?
|
205
244
|
return false if !@custom_field1.nil? && @custom_field1.to_s.length > 50
|
245
|
+
return false if !@custom_field10.nil? && @custom_field10.to_s.length > 200
|
206
246
|
return false if !@custom_field2.nil? && @custom_field2.to_s.length > 50
|
207
247
|
return false if !@custom_field3.nil? && @custom_field3.to_s.length > 50
|
208
248
|
return false if !@custom_field4.nil? && @custom_field4.to_s.length > 50
|
209
249
|
return false if !@custom_field5.nil? && @custom_field5.to_s.length > 75
|
210
250
|
return false if !@custom_field6.nil? && @custom_field6.to_s.length > 50
|
211
251
|
return false if !@custom_field7.nil? && @custom_field7.to_s.length > 50
|
252
|
+
return false if !@custom_field8.nil? && @custom_field8.to_s.length > 200
|
253
|
+
return false if !@custom_field9.nil? && @custom_field9.to_s.length > 200
|
212
254
|
return false if !@screen_branding_theme_code.nil? && @screen_branding_theme_code.to_s.length > 10
|
213
255
|
true
|
214
256
|
end
|
@@ -223,6 +265,16 @@ module UltracartClient
|
|
223
265
|
@custom_field1 = custom_field1
|
224
266
|
end
|
225
267
|
|
268
|
+
# Custom attribute writer method with validation
|
269
|
+
# @param [Object] custom_field10 Value to be assigned
|
270
|
+
def custom_field10=(custom_field10)
|
271
|
+
if !custom_field10.nil? && custom_field10.to_s.length > 200
|
272
|
+
fail ArgumentError, 'invalid value for "custom_field10", the character length must be smaller than or equal to 200.'
|
273
|
+
end
|
274
|
+
|
275
|
+
@custom_field10 = custom_field10
|
276
|
+
end
|
277
|
+
|
226
278
|
# Custom attribute writer method with validation
|
227
279
|
# @param [Object] custom_field2 Value to be assigned
|
228
280
|
def custom_field2=(custom_field2)
|
@@ -283,6 +335,26 @@ module UltracartClient
|
|
283
335
|
@custom_field7 = custom_field7
|
284
336
|
end
|
285
337
|
|
338
|
+
# Custom attribute writer method with validation
|
339
|
+
# @param [Object] custom_field8 Value to be assigned
|
340
|
+
def custom_field8=(custom_field8)
|
341
|
+
if !custom_field8.nil? && custom_field8.to_s.length > 200
|
342
|
+
fail ArgumentError, 'invalid value for "custom_field8", the character length must be smaller than or equal to 200.'
|
343
|
+
end
|
344
|
+
|
345
|
+
@custom_field8 = custom_field8
|
346
|
+
end
|
347
|
+
|
348
|
+
# Custom attribute writer method with validation
|
349
|
+
# @param [Object] custom_field9 Value to be assigned
|
350
|
+
def custom_field9=(custom_field9)
|
351
|
+
if !custom_field9.nil? && custom_field9.to_s.length > 200
|
352
|
+
fail ArgumentError, 'invalid value for "custom_field9", the character length must be smaller than or equal to 200.'
|
353
|
+
end
|
354
|
+
|
355
|
+
@custom_field9 = custom_field9
|
356
|
+
end
|
357
|
+
|
286
358
|
# Custom attribute writer method with validation
|
287
359
|
# @param [Object] screen_branding_theme_code Value to be assigned
|
288
360
|
def screen_branding_theme_code=(screen_branding_theme_code)
|
@@ -301,12 +373,15 @@ module UltracartClient
|
|
301
373
|
browser == o.browser &&
|
302
374
|
comments == o.comments &&
|
303
375
|
custom_field1 == o.custom_field1 &&
|
376
|
+
custom_field10 == o.custom_field10 &&
|
304
377
|
custom_field2 == o.custom_field2 &&
|
305
378
|
custom_field3 == o.custom_field3 &&
|
306
379
|
custom_field4 == o.custom_field4 &&
|
307
380
|
custom_field5 == o.custom_field5 &&
|
308
381
|
custom_field6 == o.custom_field6 &&
|
309
382
|
custom_field7 == o.custom_field7 &&
|
383
|
+
custom_field8 == o.custom_field8 &&
|
384
|
+
custom_field9 == o.custom_field9 &&
|
310
385
|
customer_ip_address == o.customer_ip_address &&
|
311
386
|
screen_branding_theme_code == o.screen_branding_theme_code &&
|
312
387
|
screen_size == o.screen_size &&
|
@@ -323,7 +398,7 @@ module UltracartClient
|
|
323
398
|
# Calculates hash code according to all attributes.
|
324
399
|
# @return [Fixnum] Hash code
|
325
400
|
def hash
|
326
|
-
[browser, comments, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, customer_ip_address, screen_branding_theme_code, screen_size, storefront_host_name, upsell_path_code].hash
|
401
|
+
[browser, comments, custom_field1, custom_field10, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, custom_field8, custom_field9, customer_ip_address, screen_branding_theme_code, screen_size, storefront_host_name, upsell_path_code].hash
|
327
402
|
end
|
328
403
|
|
329
404
|
# Builds the object from hash
|
@@ -0,0 +1,392 @@
|
|
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 OrderUtm
|
17
|
+
attr_accessor :attribution_first_click_subtotal
|
18
|
+
|
19
|
+
attr_accessor :attribution_first_click_total
|
20
|
+
|
21
|
+
attr_accessor :attribution_last_click_subtotal
|
22
|
+
|
23
|
+
attr_accessor :attribution_last_click_total
|
24
|
+
|
25
|
+
attr_accessor :attribution_linear_subtotal
|
26
|
+
|
27
|
+
attr_accessor :attribution_linear_total
|
28
|
+
|
29
|
+
attr_accessor :attribution_position_based_subtotal
|
30
|
+
|
31
|
+
attr_accessor :attribution_position_based_total
|
32
|
+
|
33
|
+
# Date/time that the click happened
|
34
|
+
attr_accessor :click_dts
|
35
|
+
|
36
|
+
attr_accessor :facebook_ad_id
|
37
|
+
|
38
|
+
attr_accessor :fbclid
|
39
|
+
|
40
|
+
attr_accessor :gbraid
|
41
|
+
|
42
|
+
attr_accessor :glcid
|
43
|
+
|
44
|
+
attr_accessor :msclkid
|
45
|
+
|
46
|
+
attr_accessor :ttclid
|
47
|
+
|
48
|
+
attr_accessor :uc_message_id
|
49
|
+
|
50
|
+
attr_accessor :utm_campaign
|
51
|
+
|
52
|
+
attr_accessor :utm_content
|
53
|
+
|
54
|
+
attr_accessor :utm_id
|
55
|
+
|
56
|
+
attr_accessor :utm_medium
|
57
|
+
|
58
|
+
attr_accessor :utm_source
|
59
|
+
|
60
|
+
attr_accessor :utm_term
|
61
|
+
|
62
|
+
attr_accessor :vmcid
|
63
|
+
|
64
|
+
attr_accessor :wbraid
|
65
|
+
|
66
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
67
|
+
def self.attribute_map
|
68
|
+
{
|
69
|
+
:'attribution_first_click_subtotal' => :'attribution_first_click_subtotal',
|
70
|
+
:'attribution_first_click_total' => :'attribution_first_click_total',
|
71
|
+
:'attribution_last_click_subtotal' => :'attribution_last_click_subtotal',
|
72
|
+
:'attribution_last_click_total' => :'attribution_last_click_total',
|
73
|
+
:'attribution_linear_subtotal' => :'attribution_linear_subtotal',
|
74
|
+
:'attribution_linear_total' => :'attribution_linear_total',
|
75
|
+
:'attribution_position_based_subtotal' => :'attribution_position_based_subtotal',
|
76
|
+
:'attribution_position_based_total' => :'attribution_position_based_total',
|
77
|
+
:'click_dts' => :'click_dts',
|
78
|
+
:'facebook_ad_id' => :'facebook_ad_id',
|
79
|
+
:'fbclid' => :'fbclid',
|
80
|
+
:'gbraid' => :'gbraid',
|
81
|
+
:'glcid' => :'glcid',
|
82
|
+
:'msclkid' => :'msclkid',
|
83
|
+
:'ttclid' => :'ttclid',
|
84
|
+
:'uc_message_id' => :'uc_message_id',
|
85
|
+
:'utm_campaign' => :'utm_campaign',
|
86
|
+
:'utm_content' => :'utm_content',
|
87
|
+
:'utm_id' => :'utm_id',
|
88
|
+
:'utm_medium' => :'utm_medium',
|
89
|
+
:'utm_source' => :'utm_source',
|
90
|
+
:'utm_term' => :'utm_term',
|
91
|
+
:'vmcid' => :'vmcid',
|
92
|
+
:'wbraid' => :'wbraid'
|
93
|
+
}
|
94
|
+
end
|
95
|
+
|
96
|
+
# Attribute type mapping.
|
97
|
+
def self.swagger_types
|
98
|
+
{
|
99
|
+
:'attribution_first_click_subtotal' => :'Float',
|
100
|
+
:'attribution_first_click_total' => :'Float',
|
101
|
+
:'attribution_last_click_subtotal' => :'Float',
|
102
|
+
:'attribution_last_click_total' => :'Float',
|
103
|
+
:'attribution_linear_subtotal' => :'Float',
|
104
|
+
:'attribution_linear_total' => :'Float',
|
105
|
+
:'attribution_position_based_subtotal' => :'Float',
|
106
|
+
:'attribution_position_based_total' => :'Float',
|
107
|
+
:'click_dts' => :'String',
|
108
|
+
:'facebook_ad_id' => :'String',
|
109
|
+
:'fbclid' => :'String',
|
110
|
+
:'gbraid' => :'String',
|
111
|
+
:'glcid' => :'String',
|
112
|
+
:'msclkid' => :'String',
|
113
|
+
:'ttclid' => :'String',
|
114
|
+
:'uc_message_id' => :'String',
|
115
|
+
:'utm_campaign' => :'String',
|
116
|
+
:'utm_content' => :'String',
|
117
|
+
:'utm_id' => :'String',
|
118
|
+
:'utm_medium' => :'String',
|
119
|
+
:'utm_source' => :'String',
|
120
|
+
:'utm_term' => :'String',
|
121
|
+
:'vmcid' => :'String',
|
122
|
+
:'wbraid' => :'String'
|
123
|
+
}
|
124
|
+
end
|
125
|
+
|
126
|
+
# Initializes the object
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
+
def initialize(attributes = {})
|
129
|
+
return unless attributes.is_a?(Hash)
|
130
|
+
|
131
|
+
# convert string to symbol for hash key
|
132
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
133
|
+
|
134
|
+
if attributes.has_key?(:'attribution_first_click_subtotal')
|
135
|
+
self.attribution_first_click_subtotal = attributes[:'attribution_first_click_subtotal']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.has_key?(:'attribution_first_click_total')
|
139
|
+
self.attribution_first_click_total = attributes[:'attribution_first_click_total']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.has_key?(:'attribution_last_click_subtotal')
|
143
|
+
self.attribution_last_click_subtotal = attributes[:'attribution_last_click_subtotal']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.has_key?(:'attribution_last_click_total')
|
147
|
+
self.attribution_last_click_total = attributes[:'attribution_last_click_total']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.has_key?(:'attribution_linear_subtotal')
|
151
|
+
self.attribution_linear_subtotal = attributes[:'attribution_linear_subtotal']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.has_key?(:'attribution_linear_total')
|
155
|
+
self.attribution_linear_total = attributes[:'attribution_linear_total']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.has_key?(:'attribution_position_based_subtotal')
|
159
|
+
self.attribution_position_based_subtotal = attributes[:'attribution_position_based_subtotal']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.has_key?(:'attribution_position_based_total')
|
163
|
+
self.attribution_position_based_total = attributes[:'attribution_position_based_total']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes.has_key?(:'click_dts')
|
167
|
+
self.click_dts = attributes[:'click_dts']
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes.has_key?(:'facebook_ad_id')
|
171
|
+
self.facebook_ad_id = attributes[:'facebook_ad_id']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.has_key?(:'fbclid')
|
175
|
+
self.fbclid = attributes[:'fbclid']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.has_key?(:'gbraid')
|
179
|
+
self.gbraid = attributes[:'gbraid']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.has_key?(:'glcid')
|
183
|
+
self.glcid = attributes[:'glcid']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.has_key?(:'msclkid')
|
187
|
+
self.msclkid = attributes[:'msclkid']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.has_key?(:'ttclid')
|
191
|
+
self.ttclid = attributes[:'ttclid']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.has_key?(:'uc_message_id')
|
195
|
+
self.uc_message_id = attributes[:'uc_message_id']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.has_key?(:'utm_campaign')
|
199
|
+
self.utm_campaign = attributes[:'utm_campaign']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.has_key?(:'utm_content')
|
203
|
+
self.utm_content = attributes[:'utm_content']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.has_key?(:'utm_id')
|
207
|
+
self.utm_id = attributes[:'utm_id']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.has_key?(:'utm_medium')
|
211
|
+
self.utm_medium = attributes[:'utm_medium']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.has_key?(:'utm_source')
|
215
|
+
self.utm_source = attributes[:'utm_source']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.has_key?(:'utm_term')
|
219
|
+
self.utm_term = attributes[:'utm_term']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.has_key?(:'vmcid')
|
223
|
+
self.vmcid = attributes[:'vmcid']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.has_key?(:'wbraid')
|
227
|
+
self.wbraid = attributes[:'wbraid']
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
232
|
+
# @return Array for valid properties with the reasons
|
233
|
+
def list_invalid_properties
|
234
|
+
invalid_properties = Array.new
|
235
|
+
invalid_properties
|
236
|
+
end
|
237
|
+
|
238
|
+
# Check to see if the all the properties in the model are valid
|
239
|
+
# @return true if the model is valid
|
240
|
+
def valid?
|
241
|
+
true
|
242
|
+
end
|
243
|
+
|
244
|
+
# Checks equality by comparing each attribute.
|
245
|
+
# @param [Object] Object to be compared
|
246
|
+
def ==(o)
|
247
|
+
return true if self.equal?(o)
|
248
|
+
self.class == o.class &&
|
249
|
+
attribution_first_click_subtotal == o.attribution_first_click_subtotal &&
|
250
|
+
attribution_first_click_total == o.attribution_first_click_total &&
|
251
|
+
attribution_last_click_subtotal == o.attribution_last_click_subtotal &&
|
252
|
+
attribution_last_click_total == o.attribution_last_click_total &&
|
253
|
+
attribution_linear_subtotal == o.attribution_linear_subtotal &&
|
254
|
+
attribution_linear_total == o.attribution_linear_total &&
|
255
|
+
attribution_position_based_subtotal == o.attribution_position_based_subtotal &&
|
256
|
+
attribution_position_based_total == o.attribution_position_based_total &&
|
257
|
+
click_dts == o.click_dts &&
|
258
|
+
facebook_ad_id == o.facebook_ad_id &&
|
259
|
+
fbclid == o.fbclid &&
|
260
|
+
gbraid == o.gbraid &&
|
261
|
+
glcid == o.glcid &&
|
262
|
+
msclkid == o.msclkid &&
|
263
|
+
ttclid == o.ttclid &&
|
264
|
+
uc_message_id == o.uc_message_id &&
|
265
|
+
utm_campaign == o.utm_campaign &&
|
266
|
+
utm_content == o.utm_content &&
|
267
|
+
utm_id == o.utm_id &&
|
268
|
+
utm_medium == o.utm_medium &&
|
269
|
+
utm_source == o.utm_source &&
|
270
|
+
utm_term == o.utm_term &&
|
271
|
+
vmcid == o.vmcid &&
|
272
|
+
wbraid == o.wbraid
|
273
|
+
end
|
274
|
+
|
275
|
+
# @see the `==` method
|
276
|
+
# @param [Object] Object to be compared
|
277
|
+
def eql?(o)
|
278
|
+
self == o
|
279
|
+
end
|
280
|
+
|
281
|
+
# Calculates hash code according to all attributes.
|
282
|
+
# @return [Fixnum] Hash code
|
283
|
+
def hash
|
284
|
+
[attribution_first_click_subtotal, attribution_first_click_total, attribution_last_click_subtotal, attribution_last_click_total, attribution_linear_subtotal, attribution_linear_total, attribution_position_based_subtotal, attribution_position_based_total, click_dts, facebook_ad_id, fbclid, gbraid, glcid, msclkid, ttclid, uc_message_id, utm_campaign, utm_content, utm_id, utm_medium, utm_source, utm_term, vmcid, wbraid].hash
|
285
|
+
end
|
286
|
+
|
287
|
+
# Builds the object from hash
|
288
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
289
|
+
# @return [Object] Returns the model itself
|
290
|
+
def build_from_hash(attributes)
|
291
|
+
return nil unless attributes.is_a?(Hash)
|
292
|
+
self.class.swagger_types.each_pair do |key, type|
|
293
|
+
if type =~ /\AArray<(.*)>/i
|
294
|
+
# check to ensure the input is an array given that the attribute
|
295
|
+
# is documented as an array but the input is not
|
296
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
297
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
298
|
+
end
|
299
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
300
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
301
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
302
|
+
end
|
303
|
+
|
304
|
+
self
|
305
|
+
end
|
306
|
+
|
307
|
+
# Deserializes the data based on type
|
308
|
+
# @param string type Data type
|
309
|
+
# @param string value Value to be deserialized
|
310
|
+
# @return [Object] Deserialized data
|
311
|
+
def _deserialize(type, value)
|
312
|
+
case type.to_sym
|
313
|
+
when :DateTime
|
314
|
+
DateTime.parse(value)
|
315
|
+
when :Date
|
316
|
+
Date.parse(value)
|
317
|
+
when :String
|
318
|
+
value.to_s
|
319
|
+
when :Integer
|
320
|
+
value.to_i
|
321
|
+
when :Float
|
322
|
+
value.to_f
|
323
|
+
when :BOOLEAN
|
324
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
325
|
+
true
|
326
|
+
else
|
327
|
+
false
|
328
|
+
end
|
329
|
+
when :Object
|
330
|
+
# generic object (usually a Hash), return directly
|
331
|
+
value
|
332
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
333
|
+
inner_type = Regexp.last_match[:inner_type]
|
334
|
+
value.map { |v| _deserialize(inner_type, v) }
|
335
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
336
|
+
k_type = Regexp.last_match[:k_type]
|
337
|
+
v_type = Regexp.last_match[:v_type]
|
338
|
+
{}.tap do |hash|
|
339
|
+
value.each do |k, v|
|
340
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
else # model
|
344
|
+
temp_model = UltracartClient.const_get(type).new
|
345
|
+
temp_model.build_from_hash(value)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
# Returns the string representation of the object
|
350
|
+
# @return [String] String presentation of the object
|
351
|
+
def to_s
|
352
|
+
to_hash.to_s
|
353
|
+
end
|
354
|
+
|
355
|
+
# to_body is an alias to to_hash (backward compatibility)
|
356
|
+
# @return [Hash] Returns the object in the form of hash
|
357
|
+
def to_body
|
358
|
+
to_hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Returns the object in the form of hash
|
362
|
+
# @return [Hash] Returns the object in the form of hash
|
363
|
+
def to_hash
|
364
|
+
hash = {}
|
365
|
+
self.class.attribute_map.each_pair do |attr, param|
|
366
|
+
value = self.send(attr)
|
367
|
+
next if value.nil?
|
368
|
+
hash[param] = _to_hash(value)
|
369
|
+
end
|
370
|
+
hash
|
371
|
+
end
|
372
|
+
|
373
|
+
# Outputs non-array value in the form of hash
|
374
|
+
# For object, use to_hash. Otherwise, just return the value
|
375
|
+
# @param [Object] value Any valid value
|
376
|
+
# @return [Hash] Returns the value in the form of hash
|
377
|
+
def _to_hash(value)
|
378
|
+
if value.is_a?(Array)
|
379
|
+
value.compact.map { |v| _to_hash(v) }
|
380
|
+
elsif value.is_a?(Hash)
|
381
|
+
{}.tap do |hash|
|
382
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
383
|
+
end
|
384
|
+
elsif value.respond_to? :to_hash
|
385
|
+
value.to_hash
|
386
|
+
else
|
387
|
+
value
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
end
|
392
|
+
end
|
@@ -94,6 +94,9 @@ module UltracartClient
|
|
94
94
|
# Realtime percentage discount
|
95
95
|
attr_accessor :realtime_percentage_discount
|
96
96
|
|
97
|
+
# Restrict inventory to this distribution center oid
|
98
|
+
attr_accessor :restrict_to_distribution_center_oid
|
99
|
+
|
97
100
|
attr_accessor :signup_notification
|
98
101
|
|
99
102
|
# Suppress buySAFE (deprecated)
|
@@ -138,6 +141,7 @@ module UltracartClient
|
|
138
141
|
:'not_valid_when_coupon_present' => :'not_valid_when_coupon_present',
|
139
142
|
:'pricing_tier_oid' => :'pricing_tier_oid',
|
140
143
|
:'realtime_percentage_discount' => :'realtime_percentage_discount',
|
144
|
+
:'restrict_to_distribution_center_oid' => :'restrict_to_distribution_center_oid',
|
141
145
|
:'signup_notification' => :'signup_notification',
|
142
146
|
:'suppress_buysafe' => :'suppress_buysafe',
|
143
147
|
:'suppress_mailing_list' => :'suppress_mailing_list',
|
@@ -176,6 +180,7 @@ module UltracartClient
|
|
176
180
|
:'not_valid_when_coupon_present' => :'BOOLEAN',
|
177
181
|
:'pricing_tier_oid' => :'Integer',
|
178
182
|
:'realtime_percentage_discount' => :'Float',
|
183
|
+
:'restrict_to_distribution_center_oid' => :'Integer',
|
179
184
|
:'signup_notification' => :'PricingTierNotification',
|
180
185
|
:'suppress_buysafe' => :'BOOLEAN',
|
181
186
|
:'suppress_mailing_list' => :'BOOLEAN',
|
@@ -300,6 +305,10 @@ module UltracartClient
|
|
300
305
|
self.realtime_percentage_discount = attributes[:'realtime_percentage_discount']
|
301
306
|
end
|
302
307
|
|
308
|
+
if attributes.has_key?(:'restrict_to_distribution_center_oid')
|
309
|
+
self.restrict_to_distribution_center_oid = attributes[:'restrict_to_distribution_center_oid']
|
310
|
+
end
|
311
|
+
|
303
312
|
if attributes.has_key?(:'signup_notification')
|
304
313
|
self.signup_notification = attributes[:'signup_notification']
|
305
314
|
end
|
@@ -381,6 +390,7 @@ module UltracartClient
|
|
381
390
|
not_valid_when_coupon_present == o.not_valid_when_coupon_present &&
|
382
391
|
pricing_tier_oid == o.pricing_tier_oid &&
|
383
392
|
realtime_percentage_discount == o.realtime_percentage_discount &&
|
393
|
+
restrict_to_distribution_center_oid == o.restrict_to_distribution_center_oid &&
|
384
394
|
signup_notification == o.signup_notification &&
|
385
395
|
suppress_buysafe == o.suppress_buysafe &&
|
386
396
|
suppress_mailing_list == o.suppress_mailing_list &&
|
@@ -397,7 +407,7 @@ module UltracartClient
|
|
397
407
|
# Calculates hash code according to all attributes.
|
398
408
|
# @return [Fixnum] Hash code
|
399
409
|
def hash
|
400
|
-
[allow_3rd_party_billing, allow_cod, allow_purchase_order, allow_quote_request, approval_notification, auto_approve_cod, auto_approve_purchase_order, default_on_wholesale_signup, default_percentage_discount, default_shipping_method_oid, default_tier, display_on_wholesale_signup, exclude_from_free_promotion, exempt_loyalty_rewards, exempt_shipping_handling_charge, free_shipping, free_shipping_minimum, maximum_item_count, minimum_item_count, minimum_subtotal, name, no_coupons, no_free_shipping, no_realtime_charge, not_valid_when_coupon_present, pricing_tier_oid, realtime_percentage_discount, signup_notification, suppress_buysafe, suppress_mailing_list, tax_exempt, track_separately].hash
|
410
|
+
[allow_3rd_party_billing, allow_cod, allow_purchase_order, allow_quote_request, approval_notification, auto_approve_cod, auto_approve_purchase_order, default_on_wholesale_signup, default_percentage_discount, default_shipping_method_oid, default_tier, display_on_wholesale_signup, exclude_from_free_promotion, exempt_loyalty_rewards, exempt_shipping_handling_charge, free_shipping, free_shipping_minimum, maximum_item_count, minimum_item_count, minimum_subtotal, name, no_coupons, no_free_shipping, no_realtime_charge, not_valid_when_coupon_present, pricing_tier_oid, realtime_percentage_discount, restrict_to_distribution_center_oid, signup_notification, suppress_buysafe, suppress_mailing_list, tax_exempt, track_separately].hash
|
401
411
|
end
|
402
412
|
|
403
413
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -624,6 +624,7 @@ require 'ultracart_api/models/order_token_response'
|
|
624
624
|
require 'ultracart_api/models/order_tracking_number_detail'
|
625
625
|
require 'ultracart_api/models/order_tracking_number_details'
|
626
626
|
require 'ultracart_api/models/order_transactional_merchant_note'
|
627
|
+
require 'ultracart_api/models/order_utm'
|
627
628
|
require 'ultracart_api/models/orders_response'
|
628
629
|
require 'ultracart_api/models/permission'
|
629
630
|
require 'ultracart_api/models/point_of_sale_location'
|
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.
|
4
|
+
version: 3.10.117
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -842,6 +842,7 @@ files:
|
|
842
842
|
- docs/OrderTrackingNumberDetail.md
|
843
843
|
- docs/OrderTrackingNumberDetails.md
|
844
844
|
- docs/OrderTransactionalMerchantNote.md
|
845
|
+
- docs/OrderUtm.md
|
845
846
|
- docs/OrdersResponse.md
|
846
847
|
- docs/Permission.md
|
847
848
|
- docs/PointOfSaleLocation.md
|
@@ -1609,6 +1610,7 @@ files:
|
|
1609
1610
|
- lib/ultracart_api/models/order_tracking_number_detail.rb
|
1610
1611
|
- lib/ultracart_api/models/order_tracking_number_details.rb
|
1611
1612
|
- lib/ultracart_api/models/order_transactional_merchant_note.rb
|
1613
|
+
- lib/ultracart_api/models/order_utm.rb
|
1612
1614
|
- lib/ultracart_api/models/orders_response.rb
|
1613
1615
|
- lib/ultracart_api/models/permission.rb
|
1614
1616
|
- lib/ultracart_api/models/point_of_sale_location.rb
|