ultracart_api 3.10.39 → 3.10.42
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 +8 -4
- data/docs/EmailCampaign.md +2 -0
- data/docs/EmailCommseqSequenceTestRequest.md +6 -0
- data/docs/EmailFlow.md +2 -0
- data/docs/EmailSettings.md +2 -0
- data/docs/ExperimentVariation.md +1 -0
- data/docs/ExperimentVariationStat.md +1 -0
- data/docs/ItemReview.md +44 -0
- data/docs/ItemReviews.md +1 -0
- data/docs/OrderApi.md +2 -0
- data/lib/ultracart_api/api/order_api.rb +3 -0
- data/lib/ultracart_api/models/email_campaign.rb +21 -1
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +58 -4
- data/lib/ultracart_api/models/email_flow.rb +21 -1
- data/lib/ultracart_api/models/email_settings.rb +19 -1
- 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 +510 -0
- data/lib/ultracart_api/models/item_reviews.rb +12 -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: 8bec9650614da04e07b0945424d981f0dde40c89f20fe0b10f53307d154ce9ac
|
|
4
|
+
data.tar.gz: 41cbc90e4a14ae38a1ee8073ba79a50dc5f973ea4cb8f35b9db671fa1607aae2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e483f0482a32f58dd1f3346bbe65cdeb92630bc83bfe9ba130e6b8105880a4496ef7c4d70f1e045447236f13140b61d8bcbef183a9d5e202897368cc4557f860
|
|
7
|
+
data.tar.gz: f9d277d9f20410d466bbc4886c1403e55e55886560c02eb024ee155bb2cb379b660872d7f25b8a7f320fde60e9c20f7ca3e1e05fea22af883b3ca8dcbd95837b
|
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.42
|
|
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.42.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.42.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.42'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -883,6 +883,7 @@ Class | Method | HTTP request | Description
|
|
|
883
883
|
- [UltracartClient::ItemRestriction](docs/ItemRestriction.md)
|
|
884
884
|
- [UltracartClient::ItemRestrictionItem](docs/ItemRestrictionItem.md)
|
|
885
885
|
- [UltracartClient::ItemRevguard](docs/ItemRevguard.md)
|
|
886
|
+
- [UltracartClient::ItemReview](docs/ItemReview.md)
|
|
886
887
|
- [UltracartClient::ItemReviews](docs/ItemReviews.md)
|
|
887
888
|
- [UltracartClient::ItemSalesforce](docs/ItemSalesforce.md)
|
|
888
889
|
- [UltracartClient::ItemShipping](docs/ItemShipping.md)
|
|
@@ -1178,6 +1179,9 @@ Not every change is committed to every SDK.
|
|
|
1178
1179
|
|
|
1179
1180
|
| Version | Date | Comments |
|
|
1180
1181
|
| --: | :-: | --- |
|
|
1182
|
+
| 3.10.42 | 08/30/2022 | storefront comm fields for sms configuration |
|
|
1183
|
+
| 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
1184
|
+
| 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
|
|
1181
1185
|
| 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
|
|
1182
1186
|
| 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
|
|
1183
1187
|
| 3.10.37 | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
data/docs/EmailCampaign.md
CHANGED
|
@@ -24,6 +24,8 @@ Name | Type | Description | Notes
|
|
|
24
24
|
**revenue_per_customer_formatted** | **String** | Revenue per customer associated with campaign | [optional]
|
|
25
25
|
**scheduled_dts** | **String** | Scheduled date | [optional]
|
|
26
26
|
**screenshot_large_full_url** | **String** | URL to a large full length screenshot | [optional]
|
|
27
|
+
**sms_esp_twilio_uuid** | **String** | Twilio Account UUID. Null for none | [optional]
|
|
28
|
+
**sms_phone_number** | **String** | Twilio SMS Phone Number. Null for none | [optional]
|
|
27
29
|
**status** | **String** | Status of the campaign of draft, archived, and sent | [optional]
|
|
28
30
|
**status_dts** | **String** | Timestamp when the last status change happened | [optional]
|
|
29
31
|
**storefront_oid** | **Integer** | Storefront oid | [optional]
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**address_1** | **String** | | [optional]
|
|
7
|
+
**address_2** | **String** | | [optional]
|
|
6
8
|
**cart_id** | **String** | | [optional]
|
|
7
9
|
**cart_item_ids** | **Array<String>** | | [optional]
|
|
10
|
+
**city** | **String** | | [optional]
|
|
8
11
|
**esp_commseq_uuid** | **String** | | [optional]
|
|
12
|
+
**mail_card** | **BOOLEAN** | | [optional]
|
|
9
13
|
**name** | **String** | | [optional]
|
|
10
14
|
**order_id** | **String** | | [optional]
|
|
11
15
|
**please_review** | **BOOLEAN** | | [optional]
|
|
16
|
+
**postal_code** | **String** | | [optional]
|
|
12
17
|
**send_to_email** | **String** | | [optional]
|
|
13
18
|
**send_to_logged_in_user** | **BOOLEAN** | | [optional]
|
|
19
|
+
**state** | **String** | | [optional]
|
|
14
20
|
|
|
15
21
|
|
data/docs/EmailFlow.md
CHANGED
|
@@ -25,6 +25,8 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**revenue_formatted** | **String** | Revenue, formatted | [optional]
|
|
26
26
|
**revenue_per_customer_formatted** | **String** | Revenue per customer, formatted | [optional]
|
|
27
27
|
**screenshot_large_full_url** | **String** | URL to a large full length screenshot | [optional]
|
|
28
|
+
**sms_esp_twilio_uuid** | **String** | Twilio Account UUID. Null for none | [optional]
|
|
29
|
+
**sms_phone_number** | **String** | Twilio SMS Phone Number. Null for none | [optional]
|
|
28
30
|
**status** | **String** | Status of the campaign of draft, archived, active, and inactive | [optional]
|
|
29
31
|
**status_dts** | **String** | Timestamp when the last status change happened | [optional]
|
|
30
32
|
**storefront_oid** | **Integer** | Storefront oid | [optional]
|
data/docs/EmailSettings.md
CHANGED
|
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**postcard_from_name** | **String** | | [optional]
|
|
13
13
|
**postcard_from_postal_code** | **String** | | [optional]
|
|
14
14
|
**postcard_from_state** | **String** | | [optional]
|
|
15
|
+
**sms_esp_twilio_uuid** | **String** | | [optional]
|
|
16
|
+
**sms_phone_number** | **String** | | [optional]
|
|
15
17
|
**transactional_esp_domain_user** | **String** | | [optional]
|
|
16
18
|
**transactional_esp_domain_uuid** | **String** | | [optional]
|
|
17
19
|
**transactional_esp_friendly_name** | **String** | | [optional]
|
data/docs/ExperimentVariation.md
CHANGED
|
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**paused** | **BOOLEAN** | True if traffic should be paused to this variation | [optional]
|
|
21
21
|
**revenue** | **Float** | Total revenue for this variation | [optional]
|
|
22
22
|
**session_count** | **Integer** | Total sessions for this variation | [optional]
|
|
23
|
+
**sms_opt_ins** | **Integer** | SMS Opt Ins for this variation | [optional]
|
|
23
24
|
**traffic_percentage** | **Float** | Percentage of the traffic this variation is currently receiving | [optional]
|
|
24
25
|
**url** | **String** | Url of the variation if this experiment is a url experiment. | [optional]
|
|
25
26
|
**variation_name** | **String** | Name of the variation | [optional]
|
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**page_view_count** | **Integer** | Total page view count for this variation | [optional]
|
|
14
14
|
**revenue** | **Float** | Total revenue for this variation | [optional]
|
|
15
15
|
**session_count** | **Integer** | Total sessions for this variation | [optional]
|
|
16
|
+
**sms_opt_in_count** | **Integer** | Total SMS opt in count for this variation | [optional]
|
|
16
17
|
**stat_dts** | **String** | Date/time that the statistic was created | [optional]
|
|
17
18
|
|
|
18
19
|
|
data/docs/ItemReview.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# UltracartClient::ItemReview
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**customer_profile_oid** | **Integer** | Customer profile object identifier | [optional]
|
|
7
|
+
**featured** | **BOOLEAN** | | [optional]
|
|
8
|
+
**helperful_no_votes** | **Integer** | | [optional]
|
|
9
|
+
**helpful_yes_votes** | **Integer** | | [optional]
|
|
10
|
+
**order_id** | **String** | | [optional]
|
|
11
|
+
**overall** | **Float** | | [optional]
|
|
12
|
+
**rating_name1** | **String** | | [optional]
|
|
13
|
+
**rating_name10** | **String** | | [optional]
|
|
14
|
+
**rating_name2** | **String** | | [optional]
|
|
15
|
+
**rating_name3** | **String** | | [optional]
|
|
16
|
+
**rating_name4** | **String** | | [optional]
|
|
17
|
+
**rating_name5** | **String** | | [optional]
|
|
18
|
+
**rating_name6** | **String** | | [optional]
|
|
19
|
+
**rating_name7** | **String** | | [optional]
|
|
20
|
+
**rating_name8** | **String** | | [optional]
|
|
21
|
+
**rating_name9** | **String** | | [optional]
|
|
22
|
+
**rating_score1** | **Float** | | [optional]
|
|
23
|
+
**rating_score10** | **Float** | | [optional]
|
|
24
|
+
**rating_score2** | **Float** | | [optional]
|
|
25
|
+
**rating_score3** | **Float** | | [optional]
|
|
26
|
+
**rating_score4** | **Float** | | [optional]
|
|
27
|
+
**rating_score5** | **Float** | | [optional]
|
|
28
|
+
**rating_score6** | **Float** | | [optional]
|
|
29
|
+
**rating_score7** | **Float** | | [optional]
|
|
30
|
+
**rating_score8** | **Float** | | [optional]
|
|
31
|
+
**rating_score9** | **Float** | | [optional]
|
|
32
|
+
**recommend_store_to_friend** | **Integer** | | [optional]
|
|
33
|
+
**recommend_to_friend** | **BOOLEAN** | | [optional]
|
|
34
|
+
**review** | **String** | | [optional]
|
|
35
|
+
**review_oid** | **Integer** | | [optional]
|
|
36
|
+
**reviewed_nickname** | **String** | | [optional]
|
|
37
|
+
**reviewer_email** | **String** | | [optional]
|
|
38
|
+
**reviewer_location** | **String** | | [optional]
|
|
39
|
+
**status** | **String** | | [optional]
|
|
40
|
+
**store_feedback** | **String** | | [optional]
|
|
41
|
+
**submitted_dts** | **String** | Date/time of review submission | [optional]
|
|
42
|
+
**title** | **String** | | [optional]
|
|
43
|
+
|
|
44
|
+
|
data/docs/ItemReviews.md
CHANGED
|
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**has_approved_review** | **BOOLEAN** | True if the item has an approved review | [optional]
|
|
7
7
|
**has_review** | **BOOLEAN** | True if the item has a review | [optional]
|
|
8
|
+
**individual_reviews** | [**Array<ItemReview>**](ItemReview.md) | | [optional]
|
|
8
9
|
**review_count** | **Integer** | Number of approved reviews | [optional]
|
|
9
10
|
**review_overall** | **Float** | Overall score of reviews | [optional]
|
|
10
11
|
**review_template_name** | **String** | Review template name | [optional]
|
data/docs/OrderApi.md
CHANGED
|
@@ -1006,6 +1006,7 @@ opts = {
|
|
|
1006
1006
|
auto_order_cancel: false, # BOOLEAN | Cancel associated auto orders
|
|
1007
1007
|
manual_refund: false, # BOOLEAN | Consider a manual refund done externally
|
|
1008
1008
|
reverse_affiliate_transactions: true, # BOOLEAN | Reverse affiliate transactions
|
|
1009
|
+
issue_store_credit: false, # BOOLEAN | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
1009
1010
|
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
|
1010
1011
|
}
|
|
1011
1012
|
|
|
@@ -1029,6 +1030,7 @@ Name | Type | Description | Notes
|
|
|
1029
1030
|
**auto_order_cancel** | **BOOLEAN**| Cancel associated auto orders | [optional] [default to false]
|
|
1030
1031
|
**manual_refund** | **BOOLEAN**| Consider a manual refund done externally | [optional] [default to false]
|
|
1031
1032
|
**reverse_affiliate_transactions** | **BOOLEAN**| Reverse affiliate transactions | [optional] [default to true]
|
|
1033
|
+
**issue_store_credit** | **BOOLEAN**| Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account | [optional] [default to false]
|
|
1032
1034
|
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
|
1033
1035
|
|
|
1034
1036
|
### Return type
|
|
@@ -1108,6 +1108,7 @@ module UltracartClient
|
|
|
1108
1108
|
# @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders (default to false)
|
|
1109
1109
|
# @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally (default to false)
|
|
1110
1110
|
# @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
|
|
1111
|
+
# @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account (default to false)
|
|
1111
1112
|
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1112
1113
|
# @return [OrderResponse]
|
|
1113
1114
|
def refund_order(order, order_id, opts = {})
|
|
@@ -1125,6 +1126,7 @@ module UltracartClient
|
|
|
1125
1126
|
# @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders
|
|
1126
1127
|
# @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally
|
|
1127
1128
|
# @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions
|
|
1129
|
+
# @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
1128
1130
|
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1129
1131
|
# @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
|
|
1130
1132
|
def refund_order_with_http_info(order, order_id, opts = {})
|
|
@@ -1149,6 +1151,7 @@ module UltracartClient
|
|
|
1149
1151
|
query_params[:'auto_order_cancel'] = opts[:'auto_order_cancel'] if !opts[:'auto_order_cancel'].nil?
|
|
1150
1152
|
query_params[:'manual_refund'] = opts[:'manual_refund'] if !opts[:'manual_refund'].nil?
|
|
1151
1153
|
query_params[:'reverse_affiliate_transactions'] = opts[:'reverse_affiliate_transactions'] if !opts[:'reverse_affiliate_transactions'].nil?
|
|
1154
|
+
query_params[:'issue_store_credit'] = opts[:'issue_store_credit'] if !opts[:'issue_store_credit'].nil?
|
|
1152
1155
|
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
|
1153
1156
|
|
|
1154
1157
|
# header parameters
|
|
@@ -77,6 +77,12 @@ module UltracartClient
|
|
|
77
77
|
# URL to a large full length screenshot
|
|
78
78
|
attr_accessor :screenshot_large_full_url
|
|
79
79
|
|
|
80
|
+
# Twilio Account UUID. Null for none
|
|
81
|
+
attr_accessor :sms_esp_twilio_uuid
|
|
82
|
+
|
|
83
|
+
# Twilio SMS Phone Number. Null for none
|
|
84
|
+
attr_accessor :sms_phone_number
|
|
85
|
+
|
|
80
86
|
# Status of the campaign of draft, archived, and sent
|
|
81
87
|
attr_accessor :status
|
|
82
88
|
|
|
@@ -110,6 +116,8 @@ module UltracartClient
|
|
|
110
116
|
:'revenue_per_customer_formatted' => :'revenue_per_customer_formatted',
|
|
111
117
|
:'scheduled_dts' => :'scheduled_dts',
|
|
112
118
|
:'screenshot_large_full_url' => :'screenshot_large_full_url',
|
|
119
|
+
:'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
|
|
120
|
+
:'sms_phone_number' => :'sms_phone_number',
|
|
113
121
|
:'status' => :'status',
|
|
114
122
|
:'status_dts' => :'status_dts',
|
|
115
123
|
:'storefront_oid' => :'storefront_oid'
|
|
@@ -140,6 +148,8 @@ module UltracartClient
|
|
|
140
148
|
:'revenue_per_customer_formatted' => :'String',
|
|
141
149
|
:'scheduled_dts' => :'String',
|
|
142
150
|
:'screenshot_large_full_url' => :'String',
|
|
151
|
+
:'sms_esp_twilio_uuid' => :'String',
|
|
152
|
+
:'sms_phone_number' => :'String',
|
|
143
153
|
:'status' => :'String',
|
|
144
154
|
:'status_dts' => :'String',
|
|
145
155
|
:'storefront_oid' => :'Integer'
|
|
@@ -240,6 +250,14 @@ module UltracartClient
|
|
|
240
250
|
self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
|
|
241
251
|
end
|
|
242
252
|
|
|
253
|
+
if attributes.has_key?(:'sms_esp_twilio_uuid')
|
|
254
|
+
self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.has_key?(:'sms_phone_number')
|
|
258
|
+
self.sms_phone_number = attributes[:'sms_phone_number']
|
|
259
|
+
end
|
|
260
|
+
|
|
243
261
|
if attributes.has_key?(:'status')
|
|
244
262
|
self.status = attributes[:'status']
|
|
245
263
|
end
|
|
@@ -307,6 +325,8 @@ module UltracartClient
|
|
|
307
325
|
revenue_per_customer_formatted == o.revenue_per_customer_formatted &&
|
|
308
326
|
scheduled_dts == o.scheduled_dts &&
|
|
309
327
|
screenshot_large_full_url == o.screenshot_large_full_url &&
|
|
328
|
+
sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
|
|
329
|
+
sms_phone_number == o.sms_phone_number &&
|
|
310
330
|
status == o.status &&
|
|
311
331
|
status_dts == o.status_dts &&
|
|
312
332
|
storefront_oid == o.storefront_oid
|
|
@@ -321,7 +341,7 @@ module UltracartClient
|
|
|
321
341
|
# Calculates hash code according to all attributes.
|
|
322
342
|
# @return [Fixnum] Hash code
|
|
323
343
|
def hash
|
|
324
|
-
[click_rate_formatted, created_dts, deleted, email_campaign_uuid, email_communication_sequence_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, esp_campaign_folder_uuid, esp_domain_user, esp_domain_uuid, esp_friendly_name, library_item_oid, memberships, merchant_id, name, open_rate_formatted, prevent_sending_due_to_spam, revenue_formatted, revenue_per_customer_formatted, scheduled_dts, screenshot_large_full_url, status, status_dts, storefront_oid].hash
|
|
344
|
+
[click_rate_formatted, created_dts, deleted, email_campaign_uuid, email_communication_sequence_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, esp_campaign_folder_uuid, esp_domain_user, esp_domain_uuid, esp_friendly_name, library_item_oid, memberships, merchant_id, name, open_rate_formatted, prevent_sending_due_to_spam, revenue_formatted, revenue_per_customer_formatted, scheduled_dts, screenshot_large_full_url, sms_esp_twilio_uuid, sms_phone_number, status, status_dts, storefront_oid].hash
|
|
325
345
|
end
|
|
326
346
|
|
|
327
347
|
# Builds the object from hash
|
|
@@ -14,47 +14,71 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module UltracartClient
|
|
16
16
|
class EmailCommseqSequenceTestRequest
|
|
17
|
+
attr_accessor :address_1
|
|
18
|
+
|
|
19
|
+
attr_accessor :address_2
|
|
20
|
+
|
|
17
21
|
attr_accessor :cart_id
|
|
18
22
|
|
|
19
23
|
attr_accessor :cart_item_ids
|
|
20
24
|
|
|
25
|
+
attr_accessor :city
|
|
26
|
+
|
|
21
27
|
attr_accessor :esp_commseq_uuid
|
|
22
28
|
|
|
29
|
+
attr_accessor :mail_card
|
|
30
|
+
|
|
23
31
|
attr_accessor :name
|
|
24
32
|
|
|
25
33
|
attr_accessor :order_id
|
|
26
34
|
|
|
27
35
|
attr_accessor :please_review
|
|
28
36
|
|
|
37
|
+
attr_accessor :postal_code
|
|
38
|
+
|
|
29
39
|
attr_accessor :send_to_email
|
|
30
40
|
|
|
31
41
|
attr_accessor :send_to_logged_in_user
|
|
32
42
|
|
|
43
|
+
attr_accessor :state
|
|
44
|
+
|
|
33
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
46
|
def self.attribute_map
|
|
35
47
|
{
|
|
48
|
+
:'address_1' => :'address_1',
|
|
49
|
+
:'address_2' => :'address_2',
|
|
36
50
|
:'cart_id' => :'cart_id',
|
|
37
51
|
:'cart_item_ids' => :'cart_item_ids',
|
|
52
|
+
:'city' => :'city',
|
|
38
53
|
:'esp_commseq_uuid' => :'esp_commseq_uuid',
|
|
54
|
+
:'mail_card' => :'mail_card',
|
|
39
55
|
:'name' => :'name',
|
|
40
56
|
:'order_id' => :'order_id',
|
|
41
57
|
:'please_review' => :'please_review',
|
|
58
|
+
:'postal_code' => :'postal_code',
|
|
42
59
|
:'send_to_email' => :'send_to_email',
|
|
43
|
-
:'send_to_logged_in_user' => :'send_to_logged_in_user'
|
|
60
|
+
:'send_to_logged_in_user' => :'send_to_logged_in_user',
|
|
61
|
+
:'state' => :'state'
|
|
44
62
|
}
|
|
45
63
|
end
|
|
46
64
|
|
|
47
65
|
# Attribute type mapping.
|
|
48
66
|
def self.swagger_types
|
|
49
67
|
{
|
|
68
|
+
:'address_1' => :'String',
|
|
69
|
+
:'address_2' => :'String',
|
|
50
70
|
:'cart_id' => :'String',
|
|
51
71
|
:'cart_item_ids' => :'Array<String>',
|
|
72
|
+
:'city' => :'String',
|
|
52
73
|
:'esp_commseq_uuid' => :'String',
|
|
74
|
+
:'mail_card' => :'BOOLEAN',
|
|
53
75
|
:'name' => :'String',
|
|
54
76
|
:'order_id' => :'String',
|
|
55
77
|
:'please_review' => :'BOOLEAN',
|
|
78
|
+
:'postal_code' => :'String',
|
|
56
79
|
:'send_to_email' => :'String',
|
|
57
|
-
:'send_to_logged_in_user' => :'BOOLEAN'
|
|
80
|
+
:'send_to_logged_in_user' => :'BOOLEAN',
|
|
81
|
+
:'state' => :'String'
|
|
58
82
|
}
|
|
59
83
|
end
|
|
60
84
|
|
|
@@ -66,6 +90,14 @@ module UltracartClient
|
|
|
66
90
|
# convert string to symbol for hash key
|
|
67
91
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
68
92
|
|
|
93
|
+
if attributes.has_key?(:'address_1')
|
|
94
|
+
self.address_1 = attributes[:'address_1']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.has_key?(:'address_2')
|
|
98
|
+
self.address_2 = attributes[:'address_2']
|
|
99
|
+
end
|
|
100
|
+
|
|
69
101
|
if attributes.has_key?(:'cart_id')
|
|
70
102
|
self.cart_id = attributes[:'cart_id']
|
|
71
103
|
end
|
|
@@ -76,10 +108,18 @@ module UltracartClient
|
|
|
76
108
|
end
|
|
77
109
|
end
|
|
78
110
|
|
|
111
|
+
if attributes.has_key?(:'city')
|
|
112
|
+
self.city = attributes[:'city']
|
|
113
|
+
end
|
|
114
|
+
|
|
79
115
|
if attributes.has_key?(:'esp_commseq_uuid')
|
|
80
116
|
self.esp_commseq_uuid = attributes[:'esp_commseq_uuid']
|
|
81
117
|
end
|
|
82
118
|
|
|
119
|
+
if attributes.has_key?(:'mail_card')
|
|
120
|
+
self.mail_card = attributes[:'mail_card']
|
|
121
|
+
end
|
|
122
|
+
|
|
83
123
|
if attributes.has_key?(:'name')
|
|
84
124
|
self.name = attributes[:'name']
|
|
85
125
|
end
|
|
@@ -92,6 +132,10 @@ module UltracartClient
|
|
|
92
132
|
self.please_review = attributes[:'please_review']
|
|
93
133
|
end
|
|
94
134
|
|
|
135
|
+
if attributes.has_key?(:'postal_code')
|
|
136
|
+
self.postal_code = attributes[:'postal_code']
|
|
137
|
+
end
|
|
138
|
+
|
|
95
139
|
if attributes.has_key?(:'send_to_email')
|
|
96
140
|
self.send_to_email = attributes[:'send_to_email']
|
|
97
141
|
end
|
|
@@ -99,6 +143,10 @@ module UltracartClient
|
|
|
99
143
|
if attributes.has_key?(:'send_to_logged_in_user')
|
|
100
144
|
self.send_to_logged_in_user = attributes[:'send_to_logged_in_user']
|
|
101
145
|
end
|
|
146
|
+
|
|
147
|
+
if attributes.has_key?(:'state')
|
|
148
|
+
self.state = attributes[:'state']
|
|
149
|
+
end
|
|
102
150
|
end
|
|
103
151
|
|
|
104
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,14 +167,20 @@ module UltracartClient
|
|
|
119
167
|
def ==(o)
|
|
120
168
|
return true if self.equal?(o)
|
|
121
169
|
self.class == o.class &&
|
|
170
|
+
address_1 == o.address_1 &&
|
|
171
|
+
address_2 == o.address_2 &&
|
|
122
172
|
cart_id == o.cart_id &&
|
|
123
173
|
cart_item_ids == o.cart_item_ids &&
|
|
174
|
+
city == o.city &&
|
|
124
175
|
esp_commseq_uuid == o.esp_commseq_uuid &&
|
|
176
|
+
mail_card == o.mail_card &&
|
|
125
177
|
name == o.name &&
|
|
126
178
|
order_id == o.order_id &&
|
|
127
179
|
please_review == o.please_review &&
|
|
180
|
+
postal_code == o.postal_code &&
|
|
128
181
|
send_to_email == o.send_to_email &&
|
|
129
|
-
send_to_logged_in_user == o.send_to_logged_in_user
|
|
182
|
+
send_to_logged_in_user == o.send_to_logged_in_user &&
|
|
183
|
+
state == o.state
|
|
130
184
|
end
|
|
131
185
|
|
|
132
186
|
# @see the `==` method
|
|
@@ -138,7 +192,7 @@ module UltracartClient
|
|
|
138
192
|
# Calculates hash code according to all attributes.
|
|
139
193
|
# @return [Fixnum] Hash code
|
|
140
194
|
def hash
|
|
141
|
-
[cart_id, cart_item_ids, esp_commseq_uuid, name, order_id, please_review, send_to_email, send_to_logged_in_user].hash
|
|
195
|
+
[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
|
|
142
196
|
end
|
|
143
197
|
|
|
144
198
|
# Builds the object from hash
|
|
@@ -80,6 +80,12 @@ module UltracartClient
|
|
|
80
80
|
# URL to a large full length screenshot
|
|
81
81
|
attr_accessor :screenshot_large_full_url
|
|
82
82
|
|
|
83
|
+
# Twilio Account UUID. Null for none
|
|
84
|
+
attr_accessor :sms_esp_twilio_uuid
|
|
85
|
+
|
|
86
|
+
# Twilio SMS Phone Number. Null for none
|
|
87
|
+
attr_accessor :sms_phone_number
|
|
88
|
+
|
|
83
89
|
# Status of the campaign of draft, archived, active, and inactive
|
|
84
90
|
attr_accessor :status
|
|
85
91
|
|
|
@@ -123,6 +129,8 @@ module UltracartClient
|
|
|
123
129
|
:'revenue_formatted' => :'revenue_formatted',
|
|
124
130
|
:'revenue_per_customer_formatted' => :'revenue_per_customer_formatted',
|
|
125
131
|
:'screenshot_large_full_url' => :'screenshot_large_full_url',
|
|
132
|
+
:'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
|
|
133
|
+
:'sms_phone_number' => :'sms_phone_number',
|
|
126
134
|
:'status' => :'status',
|
|
127
135
|
:'status_dts' => :'status_dts',
|
|
128
136
|
:'storefront_oid' => :'storefront_oid',
|
|
@@ -157,6 +165,8 @@ module UltracartClient
|
|
|
157
165
|
:'revenue_formatted' => :'String',
|
|
158
166
|
:'revenue_per_customer_formatted' => :'String',
|
|
159
167
|
:'screenshot_large_full_url' => :'String',
|
|
168
|
+
:'sms_esp_twilio_uuid' => :'String',
|
|
169
|
+
:'sms_phone_number' => :'String',
|
|
160
170
|
:'status' => :'String',
|
|
161
171
|
:'status_dts' => :'String',
|
|
162
172
|
:'storefront_oid' => :'Integer',
|
|
@@ -262,6 +272,14 @@ module UltracartClient
|
|
|
262
272
|
self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
|
|
263
273
|
end
|
|
264
274
|
|
|
275
|
+
if attributes.has_key?(:'sms_esp_twilio_uuid')
|
|
276
|
+
self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.has_key?(:'sms_phone_number')
|
|
280
|
+
self.sms_phone_number = attributes[:'sms_phone_number']
|
|
281
|
+
end
|
|
282
|
+
|
|
265
283
|
if attributes.has_key?(:'status')
|
|
266
284
|
self.status = attributes[:'status']
|
|
267
285
|
end
|
|
@@ -342,6 +360,8 @@ module UltracartClient
|
|
|
342
360
|
revenue_formatted == o.revenue_formatted &&
|
|
343
361
|
revenue_per_customer_formatted == o.revenue_per_customer_formatted &&
|
|
344
362
|
screenshot_large_full_url == o.screenshot_large_full_url &&
|
|
363
|
+
sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
|
|
364
|
+
sms_phone_number == o.sms_phone_number &&
|
|
345
365
|
status == o.status &&
|
|
346
366
|
status_dts == o.status_dts &&
|
|
347
367
|
storefront_oid == o.storefront_oid &&
|
|
@@ -359,7 +379,7 @@ module UltracartClient
|
|
|
359
379
|
# Calculates hash code according to all attributes.
|
|
360
380
|
# @return [Fixnum] Hash code
|
|
361
381
|
def hash
|
|
362
|
-
[allow_multiple_concurrent_enrollments, back_populating, click_rate_formatted, created_dts, deleted, email_communication_sequence_uuid, email_flow_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, enrolled_customers, esp_domain_user, esp_domain_uuid, esp_flow_folder_uuid, esp_friendly_name, filter_profile_equation_json, library_item_oid, merchant_id, name, open_rate_formatted, revenue_formatted, revenue_per_customer_formatted, screenshot_large_full_url, status, status_dts, storefront_oid, trigger_parameter, trigger_parameter_name, trigger_type].hash
|
|
382
|
+
[allow_multiple_concurrent_enrollments, back_populating, click_rate_formatted, created_dts, deleted, email_communication_sequence_uuid, email_flow_uuid, end_once_customer_purchases, end_once_customer_purchases_anywhere, enrolled_customers, esp_domain_user, esp_domain_uuid, esp_flow_folder_uuid, esp_friendly_name, filter_profile_equation_json, library_item_oid, merchant_id, name, open_rate_formatted, revenue_formatted, revenue_per_customer_formatted, screenshot_large_full_url, sms_esp_twilio_uuid, sms_phone_number, status, status_dts, storefront_oid, trigger_parameter, trigger_parameter_name, trigger_type].hash
|
|
363
383
|
end
|
|
364
384
|
|
|
365
385
|
# Builds the object from hash
|
|
@@ -32,6 +32,10 @@ module UltracartClient
|
|
|
32
32
|
|
|
33
33
|
attr_accessor :postcard_from_state
|
|
34
34
|
|
|
35
|
+
attr_accessor :sms_esp_twilio_uuid
|
|
36
|
+
|
|
37
|
+
attr_accessor :sms_phone_number
|
|
38
|
+
|
|
35
39
|
attr_accessor :transactional_esp_domain_user
|
|
36
40
|
|
|
37
41
|
attr_accessor :transactional_esp_domain_uuid
|
|
@@ -50,6 +54,8 @@ module UltracartClient
|
|
|
50
54
|
:'postcard_from_name' => :'postcard_from_name',
|
|
51
55
|
:'postcard_from_postal_code' => :'postcard_from_postal_code',
|
|
52
56
|
:'postcard_from_state' => :'postcard_from_state',
|
|
57
|
+
:'sms_esp_twilio_uuid' => :'sms_esp_twilio_uuid',
|
|
58
|
+
:'sms_phone_number' => :'sms_phone_number',
|
|
53
59
|
:'transactional_esp_domain_user' => :'transactional_esp_domain_user',
|
|
54
60
|
:'transactional_esp_domain_uuid' => :'transactional_esp_domain_uuid',
|
|
55
61
|
:'transactional_esp_friendly_name' => :'transactional_esp_friendly_name'
|
|
@@ -68,6 +74,8 @@ module UltracartClient
|
|
|
68
74
|
:'postcard_from_name' => :'String',
|
|
69
75
|
:'postcard_from_postal_code' => :'String',
|
|
70
76
|
:'postcard_from_state' => :'String',
|
|
77
|
+
:'sms_esp_twilio_uuid' => :'String',
|
|
78
|
+
:'sms_phone_number' => :'String',
|
|
71
79
|
:'transactional_esp_domain_user' => :'String',
|
|
72
80
|
:'transactional_esp_domain_uuid' => :'String',
|
|
73
81
|
:'transactional_esp_friendly_name' => :'String'
|
|
@@ -118,6 +126,14 @@ module UltracartClient
|
|
|
118
126
|
self.postcard_from_state = attributes[:'postcard_from_state']
|
|
119
127
|
end
|
|
120
128
|
|
|
129
|
+
if attributes.has_key?(:'sms_esp_twilio_uuid')
|
|
130
|
+
self.sms_esp_twilio_uuid = attributes[:'sms_esp_twilio_uuid']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.has_key?(:'sms_phone_number')
|
|
134
|
+
self.sms_phone_number = attributes[:'sms_phone_number']
|
|
135
|
+
end
|
|
136
|
+
|
|
121
137
|
if attributes.has_key?(:'transactional_esp_domain_user')
|
|
122
138
|
self.transactional_esp_domain_user = attributes[:'transactional_esp_domain_user']
|
|
123
139
|
end
|
|
@@ -158,6 +174,8 @@ module UltracartClient
|
|
|
158
174
|
postcard_from_name == o.postcard_from_name &&
|
|
159
175
|
postcard_from_postal_code == o.postcard_from_postal_code &&
|
|
160
176
|
postcard_from_state == o.postcard_from_state &&
|
|
177
|
+
sms_esp_twilio_uuid == o.sms_esp_twilio_uuid &&
|
|
178
|
+
sms_phone_number == o.sms_phone_number &&
|
|
161
179
|
transactional_esp_domain_user == o.transactional_esp_domain_user &&
|
|
162
180
|
transactional_esp_domain_uuid == o.transactional_esp_domain_uuid &&
|
|
163
181
|
transactional_esp_friendly_name == o.transactional_esp_friendly_name
|
|
@@ -172,7 +190,7 @@ module UltracartClient
|
|
|
172
190
|
# Calculates hash code according to all attributes.
|
|
173
191
|
# @return [Fixnum] Hash code
|
|
174
192
|
def hash
|
|
175
|
-
[marketing_esp_domain_user, marketing_esp_domain_uuid, marketing_esp_friendly_name, postcard_from_address1, postcard_from_address2, postcard_from_city, postcard_from_name, postcard_from_postal_code, postcard_from_state, transactional_esp_domain_user, transactional_esp_domain_uuid, transactional_esp_friendly_name].hash
|
|
193
|
+
[marketing_esp_domain_user, marketing_esp_domain_uuid, marketing_esp_friendly_name, postcard_from_address1, postcard_from_address2, postcard_from_city, postcard_from_name, postcard_from_postal_code, postcard_from_state, sms_esp_twilio_uuid, sms_phone_number, transactional_esp_domain_user, transactional_esp_domain_uuid, transactional_esp_friendly_name].hash
|
|
176
194
|
end
|
|
177
195
|
|
|
178
196
|
# Builds the object from hash
|
|
@@ -65,6 +65,9 @@ module UltracartClient
|
|
|
65
65
|
# Total sessions for this variation
|
|
66
66
|
attr_accessor :session_count
|
|
67
67
|
|
|
68
|
+
# SMS Opt Ins for this variation
|
|
69
|
+
attr_accessor :sms_opt_ins
|
|
70
|
+
|
|
68
71
|
# Percentage of the traffic this variation is currently receiving
|
|
69
72
|
attr_accessor :traffic_percentage
|
|
70
73
|
|
|
@@ -100,6 +103,7 @@ module UltracartClient
|
|
|
100
103
|
:'paused' => :'paused',
|
|
101
104
|
:'revenue' => :'revenue',
|
|
102
105
|
:'session_count' => :'session_count',
|
|
106
|
+
:'sms_opt_ins' => :'sms_opt_ins',
|
|
103
107
|
:'traffic_percentage' => :'traffic_percentage',
|
|
104
108
|
:'url' => :'url',
|
|
105
109
|
:'variation_name' => :'variation_name',
|
|
@@ -128,6 +132,7 @@ module UltracartClient
|
|
|
128
132
|
:'paused' => :'BOOLEAN',
|
|
129
133
|
:'revenue' => :'Float',
|
|
130
134
|
:'session_count' => :'Integer',
|
|
135
|
+
:'sms_opt_ins' => :'Integer',
|
|
131
136
|
:'traffic_percentage' => :'Float',
|
|
132
137
|
:'url' => :'String',
|
|
133
138
|
:'variation_name' => :'String',
|
|
@@ -214,6 +219,10 @@ module UltracartClient
|
|
|
214
219
|
self.session_count = attributes[:'session_count']
|
|
215
220
|
end
|
|
216
221
|
|
|
222
|
+
if attributes.has_key?(:'sms_opt_ins')
|
|
223
|
+
self.sms_opt_ins = attributes[:'sms_opt_ins']
|
|
224
|
+
end
|
|
225
|
+
|
|
217
226
|
if attributes.has_key?(:'traffic_percentage')
|
|
218
227
|
self.traffic_percentage = attributes[:'traffic_percentage']
|
|
219
228
|
end
|
|
@@ -270,6 +279,7 @@ module UltracartClient
|
|
|
270
279
|
paused == o.paused &&
|
|
271
280
|
revenue == o.revenue &&
|
|
272
281
|
session_count == o.session_count &&
|
|
282
|
+
sms_opt_ins == o.sms_opt_ins &&
|
|
273
283
|
traffic_percentage == o.traffic_percentage &&
|
|
274
284
|
url == o.url &&
|
|
275
285
|
variation_name == o.variation_name &&
|
|
@@ -286,7 +296,7 @@ module UltracartClient
|
|
|
286
296
|
# Calculates hash code according to all attributes.
|
|
287
297
|
# @return [Fixnum] Hash code
|
|
288
298
|
def hash
|
|
289
|
-
[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
|
|
299
|
+
[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
|
|
290
300
|
end
|
|
291
301
|
|
|
292
302
|
# Builds the object from hash
|
|
@@ -44,6 +44,9 @@ module UltracartClient
|
|
|
44
44
|
# Total sessions for this variation
|
|
45
45
|
attr_accessor :session_count
|
|
46
46
|
|
|
47
|
+
# Total SMS opt in count for this variation
|
|
48
|
+
attr_accessor :sms_opt_in_count
|
|
49
|
+
|
|
47
50
|
# Date/time that the statistic was created
|
|
48
51
|
attr_accessor :stat_dts
|
|
49
52
|
|
|
@@ -60,6 +63,7 @@ module UltracartClient
|
|
|
60
63
|
:'page_view_count' => :'page_view_count',
|
|
61
64
|
:'revenue' => :'revenue',
|
|
62
65
|
:'session_count' => :'session_count',
|
|
66
|
+
:'sms_opt_in_count' => :'sms_opt_in_count',
|
|
63
67
|
:'stat_dts' => :'stat_dts'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
@@ -77,6 +81,7 @@ module UltracartClient
|
|
|
77
81
|
:'page_view_count' => :'Integer',
|
|
78
82
|
:'revenue' => :'Float',
|
|
79
83
|
:'session_count' => :'Integer',
|
|
84
|
+
:'sms_opt_in_count' => :'Integer',
|
|
80
85
|
:'stat_dts' => :'String'
|
|
81
86
|
}
|
|
82
87
|
end
|
|
@@ -129,6 +134,10 @@ module UltracartClient
|
|
|
129
134
|
self.session_count = attributes[:'session_count']
|
|
130
135
|
end
|
|
131
136
|
|
|
137
|
+
if attributes.has_key?(:'sms_opt_in_count')
|
|
138
|
+
self.sms_opt_in_count = attributes[:'sms_opt_in_count']
|
|
139
|
+
end
|
|
140
|
+
|
|
132
141
|
if attributes.has_key?(:'stat_dts')
|
|
133
142
|
self.stat_dts = attributes[:'stat_dts']
|
|
134
143
|
end
|
|
@@ -162,6 +171,7 @@ module UltracartClient
|
|
|
162
171
|
page_view_count == o.page_view_count &&
|
|
163
172
|
revenue == o.revenue &&
|
|
164
173
|
session_count == o.session_count &&
|
|
174
|
+
sms_opt_in_count == o.sms_opt_in_count &&
|
|
165
175
|
stat_dts == o.stat_dts
|
|
166
176
|
end
|
|
167
177
|
|
|
@@ -174,7 +184,7 @@ module UltracartClient
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Fixnum] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[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
|
|
187
|
+
[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
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|
|
@@ -0,0 +1,510 @@
|
|
|
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 ItemReview
|
|
17
|
+
# Customer profile object identifier
|
|
18
|
+
attr_accessor :customer_profile_oid
|
|
19
|
+
|
|
20
|
+
attr_accessor :featured
|
|
21
|
+
|
|
22
|
+
attr_accessor :helperful_no_votes
|
|
23
|
+
|
|
24
|
+
attr_accessor :helpful_yes_votes
|
|
25
|
+
|
|
26
|
+
attr_accessor :order_id
|
|
27
|
+
|
|
28
|
+
attr_accessor :overall
|
|
29
|
+
|
|
30
|
+
attr_accessor :rating_name1
|
|
31
|
+
|
|
32
|
+
attr_accessor :rating_name10
|
|
33
|
+
|
|
34
|
+
attr_accessor :rating_name2
|
|
35
|
+
|
|
36
|
+
attr_accessor :rating_name3
|
|
37
|
+
|
|
38
|
+
attr_accessor :rating_name4
|
|
39
|
+
|
|
40
|
+
attr_accessor :rating_name5
|
|
41
|
+
|
|
42
|
+
attr_accessor :rating_name6
|
|
43
|
+
|
|
44
|
+
attr_accessor :rating_name7
|
|
45
|
+
|
|
46
|
+
attr_accessor :rating_name8
|
|
47
|
+
|
|
48
|
+
attr_accessor :rating_name9
|
|
49
|
+
|
|
50
|
+
attr_accessor :rating_score1
|
|
51
|
+
|
|
52
|
+
attr_accessor :rating_score10
|
|
53
|
+
|
|
54
|
+
attr_accessor :rating_score2
|
|
55
|
+
|
|
56
|
+
attr_accessor :rating_score3
|
|
57
|
+
|
|
58
|
+
attr_accessor :rating_score4
|
|
59
|
+
|
|
60
|
+
attr_accessor :rating_score5
|
|
61
|
+
|
|
62
|
+
attr_accessor :rating_score6
|
|
63
|
+
|
|
64
|
+
attr_accessor :rating_score7
|
|
65
|
+
|
|
66
|
+
attr_accessor :rating_score8
|
|
67
|
+
|
|
68
|
+
attr_accessor :rating_score9
|
|
69
|
+
|
|
70
|
+
attr_accessor :recommend_store_to_friend
|
|
71
|
+
|
|
72
|
+
attr_accessor :recommend_to_friend
|
|
73
|
+
|
|
74
|
+
attr_accessor :review
|
|
75
|
+
|
|
76
|
+
attr_accessor :review_oid
|
|
77
|
+
|
|
78
|
+
attr_accessor :reviewed_nickname
|
|
79
|
+
|
|
80
|
+
attr_accessor :reviewer_email
|
|
81
|
+
|
|
82
|
+
attr_accessor :reviewer_location
|
|
83
|
+
|
|
84
|
+
attr_accessor :status
|
|
85
|
+
|
|
86
|
+
attr_accessor :store_feedback
|
|
87
|
+
|
|
88
|
+
# Date/time of review submission
|
|
89
|
+
attr_accessor :submitted_dts
|
|
90
|
+
|
|
91
|
+
attr_accessor :title
|
|
92
|
+
|
|
93
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
94
|
+
def self.attribute_map
|
|
95
|
+
{
|
|
96
|
+
:'customer_profile_oid' => :'customer_profile_oid',
|
|
97
|
+
:'featured' => :'featured',
|
|
98
|
+
:'helperful_no_votes' => :'helperful_no_votes',
|
|
99
|
+
:'helpful_yes_votes' => :'helpful_yes_votes',
|
|
100
|
+
:'order_id' => :'order_id',
|
|
101
|
+
:'overall' => :'overall',
|
|
102
|
+
:'rating_name1' => :'rating_name1',
|
|
103
|
+
:'rating_name10' => :'rating_name10',
|
|
104
|
+
:'rating_name2' => :'rating_name2',
|
|
105
|
+
:'rating_name3' => :'rating_name3',
|
|
106
|
+
:'rating_name4' => :'rating_name4',
|
|
107
|
+
:'rating_name5' => :'rating_name5',
|
|
108
|
+
:'rating_name6' => :'rating_name6',
|
|
109
|
+
:'rating_name7' => :'rating_name7',
|
|
110
|
+
:'rating_name8' => :'rating_name8',
|
|
111
|
+
:'rating_name9' => :'rating_name9',
|
|
112
|
+
:'rating_score1' => :'rating_score1',
|
|
113
|
+
:'rating_score10' => :'rating_score10',
|
|
114
|
+
:'rating_score2' => :'rating_score2',
|
|
115
|
+
:'rating_score3' => :'rating_score3',
|
|
116
|
+
:'rating_score4' => :'rating_score4',
|
|
117
|
+
:'rating_score5' => :'rating_score5',
|
|
118
|
+
:'rating_score6' => :'rating_score6',
|
|
119
|
+
:'rating_score7' => :'rating_score7',
|
|
120
|
+
:'rating_score8' => :'rating_score8',
|
|
121
|
+
:'rating_score9' => :'rating_score9',
|
|
122
|
+
:'recommend_store_to_friend' => :'recommend_store_to_friend',
|
|
123
|
+
:'recommend_to_friend' => :'recommend_to_friend',
|
|
124
|
+
:'review' => :'review',
|
|
125
|
+
:'review_oid' => :'review_oid',
|
|
126
|
+
:'reviewed_nickname' => :'reviewed_nickname',
|
|
127
|
+
:'reviewer_email' => :'reviewer_email',
|
|
128
|
+
:'reviewer_location' => :'reviewer_location',
|
|
129
|
+
:'status' => :'status',
|
|
130
|
+
:'store_feedback' => :'store_feedback',
|
|
131
|
+
:'submitted_dts' => :'submitted_dts',
|
|
132
|
+
:'title' => :'title'
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Attribute type mapping.
|
|
137
|
+
def self.swagger_types
|
|
138
|
+
{
|
|
139
|
+
:'customer_profile_oid' => :'Integer',
|
|
140
|
+
:'featured' => :'BOOLEAN',
|
|
141
|
+
:'helperful_no_votes' => :'Integer',
|
|
142
|
+
:'helpful_yes_votes' => :'Integer',
|
|
143
|
+
:'order_id' => :'String',
|
|
144
|
+
:'overall' => :'Float',
|
|
145
|
+
:'rating_name1' => :'String',
|
|
146
|
+
:'rating_name10' => :'String',
|
|
147
|
+
:'rating_name2' => :'String',
|
|
148
|
+
:'rating_name3' => :'String',
|
|
149
|
+
:'rating_name4' => :'String',
|
|
150
|
+
:'rating_name5' => :'String',
|
|
151
|
+
:'rating_name6' => :'String',
|
|
152
|
+
:'rating_name7' => :'String',
|
|
153
|
+
:'rating_name8' => :'String',
|
|
154
|
+
:'rating_name9' => :'String',
|
|
155
|
+
:'rating_score1' => :'Float',
|
|
156
|
+
:'rating_score10' => :'Float',
|
|
157
|
+
:'rating_score2' => :'Float',
|
|
158
|
+
:'rating_score3' => :'Float',
|
|
159
|
+
:'rating_score4' => :'Float',
|
|
160
|
+
:'rating_score5' => :'Float',
|
|
161
|
+
:'rating_score6' => :'Float',
|
|
162
|
+
:'rating_score7' => :'Float',
|
|
163
|
+
:'rating_score8' => :'Float',
|
|
164
|
+
:'rating_score9' => :'Float',
|
|
165
|
+
:'recommend_store_to_friend' => :'Integer',
|
|
166
|
+
:'recommend_to_friend' => :'BOOLEAN',
|
|
167
|
+
:'review' => :'String',
|
|
168
|
+
:'review_oid' => :'Integer',
|
|
169
|
+
:'reviewed_nickname' => :'String',
|
|
170
|
+
:'reviewer_email' => :'String',
|
|
171
|
+
:'reviewer_location' => :'String',
|
|
172
|
+
:'status' => :'String',
|
|
173
|
+
:'store_feedback' => :'String',
|
|
174
|
+
:'submitted_dts' => :'String',
|
|
175
|
+
:'title' => :'String'
|
|
176
|
+
}
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Initializes the object
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
def initialize(attributes = {})
|
|
182
|
+
return unless attributes.is_a?(Hash)
|
|
183
|
+
|
|
184
|
+
# convert string to symbol for hash key
|
|
185
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
186
|
+
|
|
187
|
+
if attributes.has_key?(:'customer_profile_oid')
|
|
188
|
+
self.customer_profile_oid = attributes[:'customer_profile_oid']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.has_key?(:'featured')
|
|
192
|
+
self.featured = attributes[:'featured']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.has_key?(:'helperful_no_votes')
|
|
196
|
+
self.helperful_no_votes = attributes[:'helperful_no_votes']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.has_key?(:'helpful_yes_votes')
|
|
200
|
+
self.helpful_yes_votes = attributes[:'helpful_yes_votes']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.has_key?(:'order_id')
|
|
204
|
+
self.order_id = attributes[:'order_id']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.has_key?(:'overall')
|
|
208
|
+
self.overall = attributes[:'overall']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.has_key?(:'rating_name1')
|
|
212
|
+
self.rating_name1 = attributes[:'rating_name1']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.has_key?(:'rating_name10')
|
|
216
|
+
self.rating_name10 = attributes[:'rating_name10']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.has_key?(:'rating_name2')
|
|
220
|
+
self.rating_name2 = attributes[:'rating_name2']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.has_key?(:'rating_name3')
|
|
224
|
+
self.rating_name3 = attributes[:'rating_name3']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.has_key?(:'rating_name4')
|
|
228
|
+
self.rating_name4 = attributes[:'rating_name4']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.has_key?(:'rating_name5')
|
|
232
|
+
self.rating_name5 = attributes[:'rating_name5']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.has_key?(:'rating_name6')
|
|
236
|
+
self.rating_name6 = attributes[:'rating_name6']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.has_key?(:'rating_name7')
|
|
240
|
+
self.rating_name7 = attributes[:'rating_name7']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.has_key?(:'rating_name8')
|
|
244
|
+
self.rating_name8 = attributes[:'rating_name8']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.has_key?(:'rating_name9')
|
|
248
|
+
self.rating_name9 = attributes[:'rating_name9']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.has_key?(:'rating_score1')
|
|
252
|
+
self.rating_score1 = attributes[:'rating_score1']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.has_key?(:'rating_score10')
|
|
256
|
+
self.rating_score10 = attributes[:'rating_score10']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.has_key?(:'rating_score2')
|
|
260
|
+
self.rating_score2 = attributes[:'rating_score2']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.has_key?(:'rating_score3')
|
|
264
|
+
self.rating_score3 = attributes[:'rating_score3']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.has_key?(:'rating_score4')
|
|
268
|
+
self.rating_score4 = attributes[:'rating_score4']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.has_key?(:'rating_score5')
|
|
272
|
+
self.rating_score5 = attributes[:'rating_score5']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.has_key?(:'rating_score6')
|
|
276
|
+
self.rating_score6 = attributes[:'rating_score6']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.has_key?(:'rating_score7')
|
|
280
|
+
self.rating_score7 = attributes[:'rating_score7']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.has_key?(:'rating_score8')
|
|
284
|
+
self.rating_score8 = attributes[:'rating_score8']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.has_key?(:'rating_score9')
|
|
288
|
+
self.rating_score9 = attributes[:'rating_score9']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.has_key?(:'recommend_store_to_friend')
|
|
292
|
+
self.recommend_store_to_friend = attributes[:'recommend_store_to_friend']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.has_key?(:'recommend_to_friend')
|
|
296
|
+
self.recommend_to_friend = attributes[:'recommend_to_friend']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.has_key?(:'review')
|
|
300
|
+
self.review = attributes[:'review']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.has_key?(:'review_oid')
|
|
304
|
+
self.review_oid = attributes[:'review_oid']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.has_key?(:'reviewed_nickname')
|
|
308
|
+
self.reviewed_nickname = attributes[:'reviewed_nickname']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.has_key?(:'reviewer_email')
|
|
312
|
+
self.reviewer_email = attributes[:'reviewer_email']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.has_key?(:'reviewer_location')
|
|
316
|
+
self.reviewer_location = attributes[:'reviewer_location']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.has_key?(:'status')
|
|
320
|
+
self.status = attributes[:'status']
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.has_key?(:'store_feedback')
|
|
324
|
+
self.store_feedback = attributes[:'store_feedback']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.has_key?(:'submitted_dts')
|
|
328
|
+
self.submitted_dts = attributes[:'submitted_dts']
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if attributes.has_key?(:'title')
|
|
332
|
+
self.title = attributes[:'title']
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
337
|
+
# @return Array for valid properties with the reasons
|
|
338
|
+
def list_invalid_properties
|
|
339
|
+
invalid_properties = Array.new
|
|
340
|
+
invalid_properties
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Check to see if the all the properties in the model are valid
|
|
344
|
+
# @return true if the model is valid
|
|
345
|
+
def valid?
|
|
346
|
+
true
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Checks equality by comparing each attribute.
|
|
350
|
+
# @param [Object] Object to be compared
|
|
351
|
+
def ==(o)
|
|
352
|
+
return true if self.equal?(o)
|
|
353
|
+
self.class == o.class &&
|
|
354
|
+
customer_profile_oid == o.customer_profile_oid &&
|
|
355
|
+
featured == o.featured &&
|
|
356
|
+
helperful_no_votes == o.helperful_no_votes &&
|
|
357
|
+
helpful_yes_votes == o.helpful_yes_votes &&
|
|
358
|
+
order_id == o.order_id &&
|
|
359
|
+
overall == o.overall &&
|
|
360
|
+
rating_name1 == o.rating_name1 &&
|
|
361
|
+
rating_name10 == o.rating_name10 &&
|
|
362
|
+
rating_name2 == o.rating_name2 &&
|
|
363
|
+
rating_name3 == o.rating_name3 &&
|
|
364
|
+
rating_name4 == o.rating_name4 &&
|
|
365
|
+
rating_name5 == o.rating_name5 &&
|
|
366
|
+
rating_name6 == o.rating_name6 &&
|
|
367
|
+
rating_name7 == o.rating_name7 &&
|
|
368
|
+
rating_name8 == o.rating_name8 &&
|
|
369
|
+
rating_name9 == o.rating_name9 &&
|
|
370
|
+
rating_score1 == o.rating_score1 &&
|
|
371
|
+
rating_score10 == o.rating_score10 &&
|
|
372
|
+
rating_score2 == o.rating_score2 &&
|
|
373
|
+
rating_score3 == o.rating_score3 &&
|
|
374
|
+
rating_score4 == o.rating_score4 &&
|
|
375
|
+
rating_score5 == o.rating_score5 &&
|
|
376
|
+
rating_score6 == o.rating_score6 &&
|
|
377
|
+
rating_score7 == o.rating_score7 &&
|
|
378
|
+
rating_score8 == o.rating_score8 &&
|
|
379
|
+
rating_score9 == o.rating_score9 &&
|
|
380
|
+
recommend_store_to_friend == o.recommend_store_to_friend &&
|
|
381
|
+
recommend_to_friend == o.recommend_to_friend &&
|
|
382
|
+
review == o.review &&
|
|
383
|
+
review_oid == o.review_oid &&
|
|
384
|
+
reviewed_nickname == o.reviewed_nickname &&
|
|
385
|
+
reviewer_email == o.reviewer_email &&
|
|
386
|
+
reviewer_location == o.reviewer_location &&
|
|
387
|
+
status == o.status &&
|
|
388
|
+
store_feedback == o.store_feedback &&
|
|
389
|
+
submitted_dts == o.submitted_dts &&
|
|
390
|
+
title == o.title
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# @see the `==` method
|
|
394
|
+
# @param [Object] Object to be compared
|
|
395
|
+
def eql?(o)
|
|
396
|
+
self == o
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Calculates hash code according to all attributes.
|
|
400
|
+
# @return [Fixnum] Hash code
|
|
401
|
+
def hash
|
|
402
|
+
[customer_profile_oid, featured, helperful_no_votes, helpful_yes_votes, order_id, overall, rating_name1, rating_name10, rating_name2, rating_name3, rating_name4, rating_name5, rating_name6, rating_name7, rating_name8, rating_name9, rating_score1, rating_score10, rating_score2, rating_score3, rating_score4, rating_score5, rating_score6, rating_score7, rating_score8, rating_score9, recommend_store_to_friend, recommend_to_friend, review, review_oid, reviewed_nickname, reviewer_email, reviewer_location, status, store_feedback, submitted_dts, title].hash
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Builds the object from hash
|
|
406
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
407
|
+
# @return [Object] Returns the model itself
|
|
408
|
+
def build_from_hash(attributes)
|
|
409
|
+
return nil unless attributes.is_a?(Hash)
|
|
410
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
411
|
+
if type =~ /\AArray<(.*)>/i
|
|
412
|
+
# check to ensure the input is an array given that the attribute
|
|
413
|
+
# is documented as an array but the input is not
|
|
414
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
415
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
416
|
+
end
|
|
417
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
418
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
419
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
self
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Deserializes the data based on type
|
|
426
|
+
# @param string type Data type
|
|
427
|
+
# @param string value Value to be deserialized
|
|
428
|
+
# @return [Object] Deserialized data
|
|
429
|
+
def _deserialize(type, value)
|
|
430
|
+
case type.to_sym
|
|
431
|
+
when :DateTime
|
|
432
|
+
DateTime.parse(value)
|
|
433
|
+
when :Date
|
|
434
|
+
Date.parse(value)
|
|
435
|
+
when :String
|
|
436
|
+
value.to_s
|
|
437
|
+
when :Integer
|
|
438
|
+
value.to_i
|
|
439
|
+
when :Float
|
|
440
|
+
value.to_f
|
|
441
|
+
when :BOOLEAN
|
|
442
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
443
|
+
true
|
|
444
|
+
else
|
|
445
|
+
false
|
|
446
|
+
end
|
|
447
|
+
when :Object
|
|
448
|
+
# generic object (usually a Hash), return directly
|
|
449
|
+
value
|
|
450
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
451
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
452
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
453
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
454
|
+
k_type = Regexp.last_match[:k_type]
|
|
455
|
+
v_type = Regexp.last_match[:v_type]
|
|
456
|
+
{}.tap do |hash|
|
|
457
|
+
value.each do |k, v|
|
|
458
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
else # model
|
|
462
|
+
temp_model = UltracartClient.const_get(type).new
|
|
463
|
+
temp_model.build_from_hash(value)
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# Returns the string representation of the object
|
|
468
|
+
# @return [String] String presentation of the object
|
|
469
|
+
def to_s
|
|
470
|
+
to_hash.to_s
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
474
|
+
# @return [Hash] Returns the object in the form of hash
|
|
475
|
+
def to_body
|
|
476
|
+
to_hash
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
# Returns the object in the form of hash
|
|
480
|
+
# @return [Hash] Returns the object in the form of hash
|
|
481
|
+
def to_hash
|
|
482
|
+
hash = {}
|
|
483
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
484
|
+
value = self.send(attr)
|
|
485
|
+
next if value.nil?
|
|
486
|
+
hash[param] = _to_hash(value)
|
|
487
|
+
end
|
|
488
|
+
hash
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Outputs non-array value in the form of hash
|
|
492
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
493
|
+
# @param [Object] value Any valid value
|
|
494
|
+
# @return [Hash] Returns the value in the form of hash
|
|
495
|
+
def _to_hash(value)
|
|
496
|
+
if value.is_a?(Array)
|
|
497
|
+
value.compact.map { |v| _to_hash(v) }
|
|
498
|
+
elsif value.is_a?(Hash)
|
|
499
|
+
{}.tap do |hash|
|
|
500
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
501
|
+
end
|
|
502
|
+
elsif value.respond_to? :to_hash
|
|
503
|
+
value.to_hash
|
|
504
|
+
else
|
|
505
|
+
value
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
end
|
|
510
|
+
end
|
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
|
20
20
|
# True if the item has a review
|
|
21
21
|
attr_accessor :has_review
|
|
22
22
|
|
|
23
|
+
attr_accessor :individual_reviews
|
|
24
|
+
|
|
23
25
|
# Number of approved reviews
|
|
24
26
|
attr_accessor :review_count
|
|
25
27
|
|
|
@@ -46,6 +48,7 @@ module UltracartClient
|
|
|
46
48
|
{
|
|
47
49
|
:'has_approved_review' => :'has_approved_review',
|
|
48
50
|
:'has_review' => :'has_review',
|
|
51
|
+
:'individual_reviews' => :'individual_reviews',
|
|
49
52
|
:'review_count' => :'review_count',
|
|
50
53
|
:'review_overall' => :'review_overall',
|
|
51
54
|
:'review_template_name' => :'review_template_name',
|
|
@@ -61,6 +64,7 @@ module UltracartClient
|
|
|
61
64
|
{
|
|
62
65
|
:'has_approved_review' => :'BOOLEAN',
|
|
63
66
|
:'has_review' => :'BOOLEAN',
|
|
67
|
+
:'individual_reviews' => :'Array<ItemReview>',
|
|
64
68
|
:'review_count' => :'Integer',
|
|
65
69
|
:'review_overall' => :'Float',
|
|
66
70
|
:'review_template_name' => :'String',
|
|
@@ -87,6 +91,12 @@ module UltracartClient
|
|
|
87
91
|
self.has_review = attributes[:'has_review']
|
|
88
92
|
end
|
|
89
93
|
|
|
94
|
+
if attributes.has_key?(:'individual_reviews')
|
|
95
|
+
if (value = attributes[:'individual_reviews']).is_a?(Array)
|
|
96
|
+
self.individual_reviews = value
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
90
100
|
if attributes.has_key?(:'review_count')
|
|
91
101
|
self.review_count = attributes[:'review_count']
|
|
92
102
|
end
|
|
@@ -136,6 +146,7 @@ module UltracartClient
|
|
|
136
146
|
self.class == o.class &&
|
|
137
147
|
has_approved_review == o.has_approved_review &&
|
|
138
148
|
has_review == o.has_review &&
|
|
149
|
+
individual_reviews == o.individual_reviews &&
|
|
139
150
|
review_count == o.review_count &&
|
|
140
151
|
review_overall == o.review_overall &&
|
|
141
152
|
review_template_name == o.review_template_name &&
|
|
@@ -154,7 +165,7 @@ module UltracartClient
|
|
|
154
165
|
# Calculates hash code according to all attributes.
|
|
155
166
|
# @return [Fixnum] Hash code
|
|
156
167
|
def hash
|
|
157
|
-
[has_approved_review, has_review, review_count, review_overall, review_template_name, review_template_oid, reviewable, share_reviews_with_merchant_item_id, share_reviews_with_merchant_item_oid].hash
|
|
168
|
+
[has_approved_review, has_review, individual_reviews, review_count, review_overall, review_template_name, review_template_oid, reviewable, share_reviews_with_merchant_item_id, share_reviews_with_merchant_item_oid].hash
|
|
158
169
|
end
|
|
159
170
|
|
|
160
171
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -456,6 +456,7 @@ require 'ultracart_api/models/item_response'
|
|
|
456
456
|
require 'ultracart_api/models/item_restriction'
|
|
457
457
|
require 'ultracart_api/models/item_restriction_item'
|
|
458
458
|
require 'ultracart_api/models/item_revguard'
|
|
459
|
+
require 'ultracart_api/models/item_review'
|
|
459
460
|
require 'ultracart_api/models/item_reviews'
|
|
460
461
|
require 'ultracart_api/models/item_salesforce'
|
|
461
462
|
require 'ultracart_api/models/item_shipping'
|
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.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -672,6 +672,7 @@ files:
|
|
|
672
672
|
- docs/ItemRestriction.md
|
|
673
673
|
- docs/ItemRestrictionItem.md
|
|
674
674
|
- docs/ItemRevguard.md
|
|
675
|
+
- docs/ItemReview.md
|
|
675
676
|
- docs/ItemReviews.md
|
|
676
677
|
- docs/ItemSalesforce.md
|
|
677
678
|
- docs/ItemShipping.md
|
|
@@ -1367,6 +1368,7 @@ files:
|
|
|
1367
1368
|
- lib/ultracart_api/models/item_restriction.rb
|
|
1368
1369
|
- lib/ultracart_api/models/item_restriction_item.rb
|
|
1369
1370
|
- lib/ultracart_api/models/item_revguard.rb
|
|
1371
|
+
- lib/ultracart_api/models/item_review.rb
|
|
1370
1372
|
- lib/ultracart_api/models/item_reviews.rb
|
|
1371
1373
|
- lib/ultracart_api/models/item_salesforce.rb
|
|
1372
1374
|
- lib/ultracart_api/models/item_shipping.rb
|