ultracart_api 3.10.38 → 3.10.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/CartMarketing.md +1 -0
- data/docs/ConversationParticipant.md +1 -0
- data/docs/ConversationWebchatQueueStatusAgent.md +2 -1
- data/docs/EmailCommseqSequenceTestRequest.md +6 -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/docs/OrderBilling.md +2 -0
- data/docs/OrderMarketing.md +1 -0
- data/docs/StorefrontApi.md +1 -1
- data/lib/ultracart_api/api/order_api.rb +3 -0
- data/lib/ultracart_api/api/storefront_api.rb +1 -1
- data/lib/ultracart_api/models/cart_marketing.rb +11 -1
- data/lib/ultracart_api/models/conversation_participant.rb +10 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb +49 -4
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +58 -4
- data/lib/ultracart_api/models/experiment_variation.rb +11 -1
- data/lib/ultracart_api/models/experiment_variation_stat.rb +11 -1
- data/lib/ultracart_api/models/item_review.rb +510 -0
- data/lib/ultracart_api/models/item_reviews.rb +12 -1
- data/lib/ultracart_api/models/order_billing.rb +51 -1
- data/lib/ultracart_api/models/order_marketing.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30bfaeaf76a7beb50ceed6616df3e20049ef35ea968d7d25d2e6880d08bbbd72
|
4
|
+
data.tar.gz: 1d3eff013894bdd2d6975d67294be4dfa6abb439c810571b2f317dca77b37138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc0facdd6c840e6df786ae90ec596fa60acc62d10703d452e0c40e3a690a85d7fb250a994648fd6ad4ad871b06874dfb1481dbea4b4894e01eed2ff29860ddf
|
7
|
+
data.tar.gz: 444fe35e3f5343df91e8020035cb5930bf014b605aabf83aba17676431421efc0553d40ee554168259e2a0e426c074f4430baf137cccf75de2cd8556eb5b6db3
|
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.41
|
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.41.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.41.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.41'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -330,7 +330,7 @@ Class | Method | HTTP request | Description
|
|
330
330
|
*UltracartClient::StorefrontApi* | [**get_screen_recordings_by_query**](docs/StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings
|
331
331
|
*UltracartClient::StorefrontApi* | [**get_screen_recordings_by_segment**](docs/StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment
|
332
332
|
*UltracartClient::StorefrontApi* | [**get_store_front_pricing_tiers**](docs/StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers
|
333
|
-
*UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront
|
333
|
+
*UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons)
|
334
334
|
*UltracartClient::StorefrontApi* | [**get_thumbnail_parameters**](docs/StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters
|
335
335
|
*UltracartClient::StorefrontApi* | [**get_transaction_email**](docs/StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object
|
336
336
|
*UltracartClient::StorefrontApi* | [**get_transaction_email_list**](docs/StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names
|
@@ -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.41 | 08/26/2022 | postcard address fields for comm sequence testing |
|
1183
|
+
| 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
|
1184
|
+
| 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
|
1181
1185
|
| 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
|
1182
1186
|
| 3.10.37 | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
1183
1187
|
| 3.10.36 | 08/10/2022 | conversation event refactoring |
|
data/docs/CartMarketing.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**advertising_source** | **String** | The advertising source the customer indicated | [optional]
|
7
|
+
**cell_phone_opt_in** | **BOOLEAN** | True if the customer agrees to receiving marketing SMS messages | [optional]
|
7
8
|
**mailing_list_opt_in** | **BOOLEAN** | True if the customer agrees to receiving marketing emails | [optional]
|
8
9
|
|
9
10
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**joined_dts** | **String** | Joined conversation date/time | [optional]
|
10
10
|
**last_message_dts** | **String** | Last message date/time | [optional]
|
11
11
|
**left_dts** | **String** | Left conversation date/time | [optional]
|
12
|
+
**profile_image_url** | **String** | | [optional]
|
12
13
|
**status** | **String** | | [optional]
|
13
14
|
**unread_messages** | **Integer** | | [optional]
|
14
15
|
|
@@ -3,10 +3,11 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**agent_status** | **String** |
|
6
|
+
**agent_status** | **String** | Status of the agent | [optional]
|
7
7
|
**conversation_participant_arn** | **String** | | [optional]
|
8
8
|
**conversation_participant_name** | **String** | | [optional]
|
9
9
|
**last_chat_dts** | **String** | Date/time that this agent took their last chat | [optional]
|
10
10
|
**next_round_robin** | **BOOLEAN** | | [optional]
|
11
|
+
**profile_image_url** | **String** | Profile image URL | [optional]
|
11
12
|
|
12
13
|
|
@@ -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/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
|
data/docs/OrderBilling.md
CHANGED
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|
6
6
|
**address1** | **String** | Address line 1 | [optional]
|
7
7
|
**address2** | **String** | Address line 2 | [optional]
|
8
8
|
**cc_emails** | **Array<String>** | CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters. | [optional]
|
9
|
+
**cell_phone** | **String** | Cell phone | [optional]
|
10
|
+
**cell_phone_e164** | **String** | Cell phone (E164 format) | [optional]
|
9
11
|
**city** | **String** | City | [optional]
|
10
12
|
**company** | **String** | Company | [optional]
|
11
13
|
**country_code** | **String** | ISO-3166 two letter country code | [optional]
|
data/docs/OrderMarketing.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**advertising_source** | **String** | Advertising source | [optional]
|
7
|
+
**cell_phone_opt_in** | **BOOLEAN** | True if the customer has opted into SMS marketing | [optional]
|
7
8
|
**mailing_list** | **BOOLEAN** | True if the customer has opted into mailing list subscription | [optional]
|
8
9
|
**referral_code** | **String** | Referral code | [optional]
|
9
10
|
|
data/docs/StorefrontApi.md
CHANGED
@@ -105,7 +105,7 @@ Method | HTTP request | Description
|
|
105
105
|
[**get_screen_recordings_by_query**](StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings
|
106
106
|
[**get_screen_recordings_by_segment**](StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment
|
107
107
|
[**get_store_front_pricing_tiers**](StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers
|
108
|
-
[**get_store_fronts**](StorefrontApi.md#get_store_fronts) | **GET** /storefront
|
108
|
+
[**get_store_fronts**](StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons)
|
109
109
|
[**get_thumbnail_parameters**](StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters
|
110
110
|
[**get_transaction_email**](StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object
|
111
111
|
[**get_transaction_email_list**](StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names
|
@@ -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
|
@@ -5914,7 +5914,7 @@ module UltracartClient
|
|
5914
5914
|
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_fronts ...'
|
5915
5915
|
end
|
5916
5916
|
# resource path
|
5917
|
-
local_var_path = '/storefront
|
5917
|
+
local_var_path = '/storefront'
|
5918
5918
|
|
5919
5919
|
# query parameters
|
5920
5920
|
query_params = {}
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# The advertising source the customer indicated
|
18
18
|
attr_accessor :advertising_source
|
19
19
|
|
20
|
+
# True if the customer agrees to receiving marketing SMS messages
|
21
|
+
attr_accessor :cell_phone_opt_in
|
22
|
+
|
20
23
|
# True if the customer agrees to receiving marketing emails
|
21
24
|
attr_accessor :mailing_list_opt_in
|
22
25
|
|
@@ -24,6 +27,7 @@ module UltracartClient
|
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'advertising_source' => :'advertising_source',
|
30
|
+
:'cell_phone_opt_in' => :'cell_phone_opt_in',
|
27
31
|
:'mailing_list_opt_in' => :'mailing_list_opt_in'
|
28
32
|
}
|
29
33
|
end
|
@@ -32,6 +36,7 @@ module UltracartClient
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'advertising_source' => :'String',
|
39
|
+
:'cell_phone_opt_in' => :'BOOLEAN',
|
35
40
|
:'mailing_list_opt_in' => :'BOOLEAN'
|
36
41
|
}
|
37
42
|
end
|
@@ -48,6 +53,10 @@ module UltracartClient
|
|
48
53
|
self.advertising_source = attributes[:'advertising_source']
|
49
54
|
end
|
50
55
|
|
56
|
+
if attributes.has_key?(:'cell_phone_opt_in')
|
57
|
+
self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.has_key?(:'mailing_list_opt_in')
|
52
61
|
self.mailing_list_opt_in = attributes[:'mailing_list_opt_in']
|
53
62
|
end
|
@@ -72,6 +81,7 @@ module UltracartClient
|
|
72
81
|
return true if self.equal?(o)
|
73
82
|
self.class == o.class &&
|
74
83
|
advertising_source == o.advertising_source &&
|
84
|
+
cell_phone_opt_in == o.cell_phone_opt_in &&
|
75
85
|
mailing_list_opt_in == o.mailing_list_opt_in
|
76
86
|
end
|
77
87
|
|
@@ -84,7 +94,7 @@ module UltracartClient
|
|
84
94
|
# Calculates hash code according to all attributes.
|
85
95
|
# @return [Fixnum] Hash code
|
86
96
|
def hash
|
87
|
-
[advertising_source, mailing_list_opt_in].hash
|
97
|
+
[advertising_source, cell_phone_opt_in, mailing_list_opt_in].hash
|
88
98
|
end
|
89
99
|
|
90
100
|
# Builds the object from hash
|
@@ -29,6 +29,8 @@ module UltracartClient
|
|
29
29
|
# Left conversation date/time
|
30
30
|
attr_accessor :left_dts
|
31
31
|
|
32
|
+
attr_accessor :profile_image_url
|
33
|
+
|
32
34
|
attr_accessor :status
|
33
35
|
|
34
36
|
attr_accessor :unread_messages
|
@@ -42,6 +44,7 @@ module UltracartClient
|
|
42
44
|
:'joined_dts' => :'joined_dts',
|
43
45
|
:'last_message_dts' => :'last_message_dts',
|
44
46
|
:'left_dts' => :'left_dts',
|
47
|
+
:'profile_image_url' => :'profile_image_url',
|
45
48
|
:'status' => :'status',
|
46
49
|
:'unread_messages' => :'unread_messages'
|
47
50
|
}
|
@@ -56,6 +59,7 @@ module UltracartClient
|
|
56
59
|
:'joined_dts' => :'String',
|
57
60
|
:'last_message_dts' => :'String',
|
58
61
|
:'left_dts' => :'String',
|
62
|
+
:'profile_image_url' => :'String',
|
59
63
|
:'status' => :'String',
|
60
64
|
:'unread_messages' => :'Integer'
|
61
65
|
}
|
@@ -93,6 +97,10 @@ module UltracartClient
|
|
93
97
|
self.left_dts = attributes[:'left_dts']
|
94
98
|
end
|
95
99
|
|
100
|
+
if attributes.has_key?(:'profile_image_url')
|
101
|
+
self.profile_image_url = attributes[:'profile_image_url']
|
102
|
+
end
|
103
|
+
|
96
104
|
if attributes.has_key?(:'status')
|
97
105
|
self.status = attributes[:'status']
|
98
106
|
end
|
@@ -126,6 +134,7 @@ module UltracartClient
|
|
126
134
|
joined_dts == o.joined_dts &&
|
127
135
|
last_message_dts == o.last_message_dts &&
|
128
136
|
left_dts == o.left_dts &&
|
137
|
+
profile_image_url == o.profile_image_url &&
|
129
138
|
status == o.status &&
|
130
139
|
unread_messages == o.unread_messages
|
131
140
|
end
|
@@ -139,7 +148,7 @@ module UltracartClient
|
|
139
148
|
# Calculates hash code according to all attributes.
|
140
149
|
# @return [Fixnum] Hash code
|
141
150
|
def hash
|
142
|
-
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, status, unread_messages].hash
|
151
|
+
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, profile_image_url, status, unread_messages].hash
|
143
152
|
end
|
144
153
|
|
145
154
|
# Builds the object from hash
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationWebchatQueueStatusAgent
|
17
|
+
# Status of the agent
|
17
18
|
attr_accessor :agent_status
|
18
19
|
|
19
20
|
attr_accessor :conversation_participant_arn
|
@@ -25,6 +26,31 @@ module UltracartClient
|
|
25
26
|
|
26
27
|
attr_accessor :next_round_robin
|
27
28
|
|
29
|
+
# Profile image URL
|
30
|
+
attr_accessor :profile_image_url
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
28
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
55
|
def self.attribute_map
|
30
56
|
{
|
@@ -32,7 +58,8 @@ module UltracartClient
|
|
32
58
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
33
59
|
:'conversation_participant_name' => :'conversation_participant_name',
|
34
60
|
:'last_chat_dts' => :'last_chat_dts',
|
35
|
-
:'next_round_robin' => :'next_round_robin'
|
61
|
+
:'next_round_robin' => :'next_round_robin',
|
62
|
+
:'profile_image_url' => :'profile_image_url'
|
36
63
|
}
|
37
64
|
end
|
38
65
|
|
@@ -43,7 +70,8 @@ module UltracartClient
|
|
43
70
|
:'conversation_participant_arn' => :'String',
|
44
71
|
:'conversation_participant_name' => :'String',
|
45
72
|
:'last_chat_dts' => :'String',
|
46
|
-
:'next_round_robin' => :'BOOLEAN'
|
73
|
+
:'next_round_robin' => :'BOOLEAN',
|
74
|
+
:'profile_image_url' => :'String'
|
47
75
|
}
|
48
76
|
end
|
49
77
|
|
@@ -74,6 +102,10 @@ module UltracartClient
|
|
74
102
|
if attributes.has_key?(:'next_round_robin')
|
75
103
|
self.next_round_robin = attributes[:'next_round_robin']
|
76
104
|
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'profile_image_url')
|
107
|
+
self.profile_image_url = attributes[:'profile_image_url']
|
108
|
+
end
|
77
109
|
end
|
78
110
|
|
79
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -86,9 +118,21 @@ module UltracartClient
|
|
86
118
|
# Check to see if the all the properties in the model are valid
|
87
119
|
# @return true if the model is valid
|
88
120
|
def valid?
|
121
|
+
agent_status_validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
|
122
|
+
return false unless agent_status_validator.valid?(@agent_status)
|
89
123
|
true
|
90
124
|
end
|
91
125
|
|
126
|
+
# Custom attribute writer method checking allowed values (enum).
|
127
|
+
# @param [Object] agent_status Object to be assigned
|
128
|
+
def agent_status=(agent_status)
|
129
|
+
validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
|
130
|
+
unless validator.valid?(agent_status)
|
131
|
+
fail ArgumentError, 'invalid value for "agent_status", must be one of #{validator.allowable_values}.'
|
132
|
+
end
|
133
|
+
@agent_status = agent_status
|
134
|
+
end
|
135
|
+
|
92
136
|
# Checks equality by comparing each attribute.
|
93
137
|
# @param [Object] Object to be compared
|
94
138
|
def ==(o)
|
@@ -98,7 +142,8 @@ module UltracartClient
|
|
98
142
|
conversation_participant_arn == o.conversation_participant_arn &&
|
99
143
|
conversation_participant_name == o.conversation_participant_name &&
|
100
144
|
last_chat_dts == o.last_chat_dts &&
|
101
|
-
next_round_robin == o.next_round_robin
|
145
|
+
next_round_robin == o.next_round_robin &&
|
146
|
+
profile_image_url == o.profile_image_url
|
102
147
|
end
|
103
148
|
|
104
149
|
# @see the `==` method
|
@@ -110,7 +155,7 @@ module UltracartClient
|
|
110
155
|
# Calculates hash code according to all attributes.
|
111
156
|
# @return [Fixnum] Hash code
|
112
157
|
def hash
|
113
|
-
[agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin].hash
|
158
|
+
[agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin, profile_image_url].hash
|
114
159
|
end
|
115
160
|
|
116
161
|
# 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
|