ultracart_api 4.0.50.rc → 4.0.53.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/Conversation.md +19 -1
- data/docs/ConversationApi.md +2 -0
- data/docs/ConversationEventReadMessage.md +22 -0
- data/docs/ConversationMessage.md +6 -0
- data/docs/ConversationMessageTransportStatus.md +1 -1
- data/docs/ConversationParticipant.md +3 -1
- data/docs/ConversationSummary.md +2 -0
- data/docs/ConversationWebsocketMessage.md +2 -0
- data/docs/Coupon.md +1 -1
- data/docs/CouponNoDiscount.md +18 -0
- data/lib/ultracart_api/api/conversation_api.rb +3 -0
- data/lib/ultracart_api/models/conversation.rb +122 -4
- data/lib/ultracart_api/models/conversation_event_read_message.rb +238 -0
- data/lib/ultracart_api/models/conversation_message.rb +29 -1
- data/lib/ultracart_api/models/conversation_message_transport_status.rb +35 -0
- data/lib/ultracart_api/models/conversation_participant.rb +13 -4
- data/lib/ultracart_api/models/conversation_summary.rb +45 -1
- data/lib/ultracart_api/models/conversation_websocket_message.rb +12 -3
- data/lib/ultracart_api/models/coupon.rb +1 -1
- data/lib/ultracart_api/models/coupon_no_discount.rb +220 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90c1f1f46b19290dbacc7ddd905336cc88761c048dd9fd6186b8804cc6ea3f3a
|
4
|
+
data.tar.gz: e5d62d5ceada964dda81b4acccc568a214032452befa4ee76bb1e83134b3053a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a3fa783076a129e2db48df1d87d0795cbb406a6094a2925e81b3466d3ebad7b13e84f87b12d394d085d7c20901a0bbb13dc3b7f5b697c9e11a6ac6c7efa01a3
|
7
|
+
data.tar.gz: 298e8bbe856eb22a26b95a770b1e67bbd8ea684a048693e7964b7d4b9e77ba49c75c60ec00dc7946075dafdd1efbbebac04c78d449f0b9a8e65719b2114166c3
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.53.rc
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.53.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.53.rc.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.53.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -570,6 +570,7 @@ Class | Method | HTTP request | Description
|
|
570
570
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
571
571
|
- [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
|
572
572
|
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
573
|
+
- [UltracartClient::ConversationEventReadMessage](docs/ConversationEventReadMessage.md)
|
573
574
|
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
574
575
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
575
576
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
@@ -624,6 +625,7 @@ Class | Method | HTTP request | Description
|
|
624
625
|
- [UltracartClient::CouponItemSearchResult](docs/CouponItemSearchResult.md)
|
625
626
|
- [UltracartClient::CouponItemSearchResultsResponse](docs/CouponItemSearchResultsResponse.md)
|
626
627
|
- [UltracartClient::CouponMultipleAmountsOffItems](docs/CouponMultipleAmountsOffItems.md)
|
628
|
+
- [UltracartClient::CouponNoDiscount](docs/CouponNoDiscount.md)
|
627
629
|
- [UltracartClient::CouponPercentOffItemWithItemsQuantityPurchase](docs/CouponPercentOffItemWithItemsQuantityPurchase.md)
|
628
630
|
- [UltracartClient::CouponPercentOffItems](docs/CouponPercentOffItems.md)
|
629
631
|
- [UltracartClient::CouponPercentOffItemsAndFreeShipping](docs/CouponPercentOffItemsAndFreeShipping.md)
|
@@ -1180,6 +1182,9 @@ Not every change is committed to every SDK.
|
|
1180
1182
|
|
1181
1183
|
| Version | Date | Comments |
|
1182
1184
|
| --: | :-: | --- |
|
1185
|
+
| 4.0.53-RC | 08/10/2022 | conversation event refactoring |
|
1186
|
+
| 4.0.52-RC | 08/05/2022 | conversation adjustments for ES integration |
|
1187
|
+
| 4.0.51-RC | 08/05/2022 | conversations query by medium and stats fixes |
|
1183
1188
|
| 4.0.50-RC | 08/03/2022 | conversation summary participants |
|
1184
1189
|
| 4.0.49-RC | 08/03/2022 | more conversation events |
|
1185
1190
|
| 4.0.48-RC | 08/02/2022 | storefront communication sequence test method |
|
data/docs/Conversation.md
CHANGED
@@ -7,9 +7,18 @@
|
|
7
7
|
| **closed** | **Boolean** | | [optional] |
|
8
8
|
| **conversation_arn** | **String** | | [optional] |
|
9
9
|
| **conversation_uuid** | **String** | | [optional] |
|
10
|
+
| **last_conversation_message_body** | **String** | | [optional] |
|
11
|
+
| **last_conversation_participant_arn** | **String** | | [optional] |
|
12
|
+
| **last_conversation_participant_name** | **String** | | [optional] |
|
13
|
+
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
14
|
+
| **medium** | **String** | The communication medium of the customer. | [optional] |
|
10
15
|
| **merchant_id** | **String** | | [optional] |
|
16
|
+
| **message_count** | **Integer** | | [optional] |
|
11
17
|
| **messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional] |
|
12
18
|
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
19
|
+
| **start_dts** | **String** | Start of the conversation date/time | [optional] |
|
20
|
+
| **unread_messages** | **Boolean** | | [optional] |
|
21
|
+
| **visible** | **Boolean** | | [optional] |
|
13
22
|
|
14
23
|
## Example
|
15
24
|
|
@@ -20,9 +29,18 @@ instance = UltracartClient::Conversation.new(
|
|
20
29
|
closed: null,
|
21
30
|
conversation_arn: null,
|
22
31
|
conversation_uuid: null,
|
32
|
+
last_conversation_message_body: null,
|
33
|
+
last_conversation_participant_arn: null,
|
34
|
+
last_conversation_participant_name: null,
|
35
|
+
last_message_dts: null,
|
36
|
+
medium: null,
|
23
37
|
merchant_id: null,
|
38
|
+
message_count: null,
|
24
39
|
messages: null,
|
25
|
-
participants: null
|
40
|
+
participants: null,
|
41
|
+
start_dts: null,
|
42
|
+
unread_messages: null,
|
43
|
+
visible: null
|
26
44
|
)
|
27
45
|
```
|
28
46
|
|
data/docs/ConversationApi.md
CHANGED
@@ -316,6 +316,7 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
|
|
316
316
|
|
317
317
|
api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
318
318
|
opts = {
|
319
|
+
medium: 'medium_example', # String |
|
319
320
|
_limit: 56, # Integer | The maximum number of records to return on this one API call. (Max 200)
|
320
321
|
_offset: 56 # Integer | Pagination of the record set. Offset is a zero based index.
|
321
322
|
}
|
@@ -351,6 +352,7 @@ end
|
|
351
352
|
|
352
353
|
| Name | Type | Description | Notes |
|
353
354
|
| ---- | ---- | ----------- | ----- |
|
355
|
+
| **medium** | **String** | | [optional] |
|
354
356
|
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Max 200) | [optional][default to 100] |
|
355
357
|
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
356
358
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# UltracartClient::ConversationEventReadMessage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation_message_uuid** | **String** | | [optional] |
|
8
|
+
| **message_dts** | **String** | Message date/time | [optional] |
|
9
|
+
| **message_epoch** | **Integer** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ultracart_api'
|
15
|
+
|
16
|
+
instance = UltracartClient::ConversationEventReadMessage.new(
|
17
|
+
conversation_message_uuid: null,
|
18
|
+
message_dts: null,
|
19
|
+
message_epoch: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/ConversationMessage.md
CHANGED
@@ -8,8 +8,11 @@
|
|
8
8
|
| **author_conversation_participant_name** | **String** | | [optional] |
|
9
9
|
| **body** | **String** | | [optional] |
|
10
10
|
| **client_message_id** | **String** | | [optional] |
|
11
|
+
| **conversation_message_uuid** | **String** | | [optional] |
|
11
12
|
| **media_urls** | **Array<String>** | | [optional] |
|
13
|
+
| **merchant_id** | **String** | | [optional] |
|
12
14
|
| **message_dts** | **String** | Message date/time | [optional] |
|
15
|
+
| **message_epoch** | **Integer** | Message epoch milliseconds | [optional] |
|
13
16
|
| **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
|
14
17
|
| **type** | **String** | Message type | [optional] |
|
15
18
|
| **upload_keys** | **Array<String>** | | [optional] |
|
@@ -24,8 +27,11 @@ instance = UltracartClient::ConversationMessage.new(
|
|
24
27
|
author_conversation_participant_name: null,
|
25
28
|
body: null,
|
26
29
|
client_message_id: null,
|
30
|
+
conversation_message_uuid: null,
|
27
31
|
media_urls: null,
|
32
|
+
merchant_id: null,
|
28
33
|
message_dts: null,
|
34
|
+
message_epoch: null,
|
29
35
|
transport_statuses: null,
|
30
36
|
type: null,
|
31
37
|
upload_keys: null
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **conversation_participant_arn** | **String** | | [optional] |
|
8
|
-
| **status** | **String** |
|
8
|
+
| **status** | **String** | The status of the message transport | [optional] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -11,6 +11,7 @@
|
|
11
11
|
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
12
12
|
| **left_dts** | **String** | Left conversation date/time | [optional] |
|
13
13
|
| **status** | **String** | | [optional] |
|
14
|
+
| **unread_messages** | **Integer** | | [optional] |
|
14
15
|
|
15
16
|
## Example
|
16
17
|
|
@@ -24,7 +25,8 @@ instance = UltracartClient::ConversationParticipant.new(
|
|
24
25
|
joined_dts: null,
|
25
26
|
last_message_dts: null,
|
26
27
|
left_dts: null,
|
27
|
-
status: null
|
28
|
+
status: null,
|
29
|
+
unread_messages: null
|
28
30
|
)
|
29
31
|
```
|
30
32
|
|
data/docs/ConversationSummary.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **last_conversation_participant_arn** | **String** | | [optional] |
|
12
12
|
| **last_conversation_participant_name** | **String** | | [optional] |
|
13
13
|
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
14
|
+
| **medium** | **String** | The communication medium of the customer. | [optional] |
|
14
15
|
| **merchant_id** | **String** | | [optional] |
|
15
16
|
| **message_count** | **Integer** | | [optional] |
|
16
17
|
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
@@ -31,6 +32,7 @@ instance = UltracartClient::ConversationSummary.new(
|
|
31
32
|
last_conversation_participant_arn: null,
|
32
33
|
last_conversation_participant_name: null,
|
33
34
|
last_message_dts: null,
|
35
|
+
medium: null,
|
34
36
|
merchant_id: null,
|
35
37
|
message_count: null,
|
36
38
|
participants: null,
|
@@ -11,6 +11,7 @@
|
|
11
11
|
| **event_participant_update** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
12
12
|
| **event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional] |
|
13
13
|
| **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional] |
|
14
|
+
| **event_read_message** | [**ConversationEventReadMessage**](ConversationEventReadMessage.md) | | [optional] |
|
14
15
|
| **event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional] |
|
15
16
|
| **event_type** | **String** | Type of event | [optional] |
|
16
17
|
| **event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional] |
|
@@ -31,6 +32,7 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
|
|
31
32
|
event_participant_update: null,
|
32
33
|
event_queue_position: null,
|
33
34
|
event_queue_status_update: null,
|
35
|
+
event_read_message: null,
|
34
36
|
event_rrweb: null,
|
35
37
|
event_type: null,
|
36
38
|
event_typing: null,
|
data/docs/Coupon.md
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
| **merchant_code** | **String** | Merchant code of coupon up to 20 characters. | [optional] |
|
40
40
|
| **merchant_notes** | **String** | Internal notes about this coupon. These are not visible to customer. | [optional] |
|
41
41
|
| **multiple_amounts_off_items** | [**CouponMultipleAmountsOffItems**](CouponMultipleAmountsOffItems.md) | | [optional] |
|
42
|
-
| **no_discount** | **
|
42
|
+
| **no_discount** | [**CouponNoDiscount**](CouponNoDiscount.md) | | [optional] |
|
43
43
|
| **percent_off_item_with_items_quantity_purchase** | [**CouponPercentOffItemWithItemsQuantityPurchase**](CouponPercentOffItemWithItemsQuantityPurchase.md) | | [optional] |
|
44
44
|
| **percent_off_items** | [**CouponPercentOffItems**](CouponPercentOffItems.md) | | [optional] |
|
45
45
|
| **percent_off_items_and_free_shipping** | [**CouponPercentOffItemsAndFreeShipping**](CouponPercentOffItemsAndFreeShipping.md) | | [optional] |
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::CouponNoDiscount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **ignore_this_property** | **Boolean** | This property does nothing but is included in this object to ensure the object is generated by our sdk builders. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ultracart_api'
|
13
|
+
|
14
|
+
instance = UltracartClient::CouponNoDiscount.new(
|
15
|
+
ignore_this_property: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -279,6 +279,7 @@ module UltracartClient
|
|
279
279
|
# Retrieve a list of conversation summaries newest to oldest
|
280
280
|
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
281
281
|
# @param [Hash] opts the optional parameters
|
282
|
+
# @option opts [String] :medium
|
282
283
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
283
284
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
284
285
|
# @return [ConversationsResponse]
|
@@ -290,6 +291,7 @@ module UltracartClient
|
|
290
291
|
# Retrieve a list of conversation summaries newest to oldest
|
291
292
|
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
292
293
|
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [String] :medium
|
293
295
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
294
296
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
295
297
|
# @return [Array<(ConversationsResponse, Integer, Hash)>] ConversationsResponse data, response status code and response headers
|
@@ -302,6 +304,7 @@ module UltracartClient
|
|
302
304
|
|
303
305
|
# query parameters
|
304
306
|
query_params = opts[:query_params] || {}
|
307
|
+
query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
|
305
308
|
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
306
309
|
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
307
310
|
|
@@ -21,21 +21,73 @@ module UltracartClient
|
|
21
21
|
|
22
22
|
attr_accessor :conversation_uuid
|
23
23
|
|
24
|
+
attr_accessor :last_conversation_message_body
|
25
|
+
|
26
|
+
attr_accessor :last_conversation_participant_arn
|
27
|
+
|
28
|
+
attr_accessor :last_conversation_participant_name
|
29
|
+
|
30
|
+
# Last message date/time
|
31
|
+
attr_accessor :last_message_dts
|
32
|
+
|
33
|
+
# The communication medium of the customer.
|
34
|
+
attr_accessor :medium
|
35
|
+
|
24
36
|
attr_accessor :merchant_id
|
25
37
|
|
38
|
+
attr_accessor :message_count
|
39
|
+
|
26
40
|
attr_accessor :messages
|
27
41
|
|
28
42
|
attr_accessor :participants
|
29
43
|
|
44
|
+
# Start of the conversation date/time
|
45
|
+
attr_accessor :start_dts
|
46
|
+
|
47
|
+
attr_accessor :unread_messages
|
48
|
+
|
49
|
+
attr_accessor :visible
|
50
|
+
|
51
|
+
class EnumAttributeValidator
|
52
|
+
attr_reader :datatype
|
53
|
+
attr_reader :allowable_values
|
54
|
+
|
55
|
+
def initialize(datatype, allowable_values)
|
56
|
+
@allowable_values = allowable_values.map do |value|
|
57
|
+
case datatype.to_s
|
58
|
+
when /Integer/i
|
59
|
+
value.to_i
|
60
|
+
when /Float/i
|
61
|
+
value.to_f
|
62
|
+
else
|
63
|
+
value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def valid?(value)
|
69
|
+
!value || allowable_values.include?(value)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
30
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
74
|
def self.attribute_map
|
32
75
|
{
|
33
76
|
:'closed' => :'closed',
|
34
77
|
:'conversation_arn' => :'conversation_arn',
|
35
78
|
:'conversation_uuid' => :'conversation_uuid',
|
79
|
+
:'last_conversation_message_body' => :'last_conversation_message_body',
|
80
|
+
:'last_conversation_participant_arn' => :'last_conversation_participant_arn',
|
81
|
+
:'last_conversation_participant_name' => :'last_conversation_participant_name',
|
82
|
+
:'last_message_dts' => :'last_message_dts',
|
83
|
+
:'medium' => :'medium',
|
36
84
|
:'merchant_id' => :'merchant_id',
|
85
|
+
:'message_count' => :'message_count',
|
37
86
|
:'messages' => :'messages',
|
38
|
-
:'participants' => :'participants'
|
87
|
+
:'participants' => :'participants',
|
88
|
+
:'start_dts' => :'start_dts',
|
89
|
+
:'unread_messages' => :'unread_messages',
|
90
|
+
:'visible' => :'visible'
|
39
91
|
}
|
40
92
|
end
|
41
93
|
|
@@ -50,9 +102,18 @@ module UltracartClient
|
|
50
102
|
:'closed' => :'Boolean',
|
51
103
|
:'conversation_arn' => :'String',
|
52
104
|
:'conversation_uuid' => :'String',
|
105
|
+
:'last_conversation_message_body' => :'String',
|
106
|
+
:'last_conversation_participant_arn' => :'String',
|
107
|
+
:'last_conversation_participant_name' => :'String',
|
108
|
+
:'last_message_dts' => :'String',
|
109
|
+
:'medium' => :'String',
|
53
110
|
:'merchant_id' => :'String',
|
111
|
+
:'message_count' => :'Integer',
|
54
112
|
:'messages' => :'Array<ConversationMessage>',
|
55
|
-
:'participants' => :'Array<ConversationParticipant>'
|
113
|
+
:'participants' => :'Array<ConversationParticipant>',
|
114
|
+
:'start_dts' => :'String',
|
115
|
+
:'unread_messages' => :'Boolean',
|
116
|
+
:'visible' => :'Boolean'
|
56
117
|
}
|
57
118
|
end
|
58
119
|
|
@@ -89,10 +150,34 @@ module UltracartClient
|
|
89
150
|
self.conversation_uuid = attributes[:'conversation_uuid']
|
90
151
|
end
|
91
152
|
|
153
|
+
if attributes.key?(:'last_conversation_message_body')
|
154
|
+
self.last_conversation_message_body = attributes[:'last_conversation_message_body']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'last_conversation_participant_arn')
|
158
|
+
self.last_conversation_participant_arn = attributes[:'last_conversation_participant_arn']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'last_conversation_participant_name')
|
162
|
+
self.last_conversation_participant_name = attributes[:'last_conversation_participant_name']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'last_message_dts')
|
166
|
+
self.last_message_dts = attributes[:'last_message_dts']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'medium')
|
170
|
+
self.medium = attributes[:'medium']
|
171
|
+
end
|
172
|
+
|
92
173
|
if attributes.key?(:'merchant_id')
|
93
174
|
self.merchant_id = attributes[:'merchant_id']
|
94
175
|
end
|
95
176
|
|
177
|
+
if attributes.key?(:'message_count')
|
178
|
+
self.message_count = attributes[:'message_count']
|
179
|
+
end
|
180
|
+
|
96
181
|
if attributes.key?(:'messages')
|
97
182
|
if (value = attributes[:'messages']).is_a?(Array)
|
98
183
|
self.messages = value
|
@@ -104,6 +189,18 @@ module UltracartClient
|
|
104
189
|
self.participants = value
|
105
190
|
end
|
106
191
|
end
|
192
|
+
|
193
|
+
if attributes.key?(:'start_dts')
|
194
|
+
self.start_dts = attributes[:'start_dts']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'unread_messages')
|
198
|
+
self.unread_messages = attributes[:'unread_messages']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'visible')
|
202
|
+
self.visible = attributes[:'visible']
|
203
|
+
end
|
107
204
|
end
|
108
205
|
|
109
206
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,9 +213,21 @@ module UltracartClient
|
|
116
213
|
# Check to see if the all the properties in the model are valid
|
117
214
|
# @return true if the model is valid
|
118
215
|
def valid?
|
216
|
+
medium_validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
217
|
+
return false unless medium_validator.valid?(@medium)
|
119
218
|
true
|
120
219
|
end
|
121
220
|
|
221
|
+
# Custom attribute writer method checking allowed values (enum).
|
222
|
+
# @param [Object] medium Object to be assigned
|
223
|
+
def medium=(medium)
|
224
|
+
validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
225
|
+
unless validator.valid?(medium)
|
226
|
+
fail ArgumentError, "invalid value for \"medium\", must be one of #{validator.allowable_values}."
|
227
|
+
end
|
228
|
+
@medium = medium
|
229
|
+
end
|
230
|
+
|
122
231
|
# Checks equality by comparing each attribute.
|
123
232
|
# @param [Object] Object to be compared
|
124
233
|
def ==(o)
|
@@ -127,9 +236,18 @@ module UltracartClient
|
|
127
236
|
closed == o.closed &&
|
128
237
|
conversation_arn == o.conversation_arn &&
|
129
238
|
conversation_uuid == o.conversation_uuid &&
|
239
|
+
last_conversation_message_body == o.last_conversation_message_body &&
|
240
|
+
last_conversation_participant_arn == o.last_conversation_participant_arn &&
|
241
|
+
last_conversation_participant_name == o.last_conversation_participant_name &&
|
242
|
+
last_message_dts == o.last_message_dts &&
|
243
|
+
medium == o.medium &&
|
130
244
|
merchant_id == o.merchant_id &&
|
245
|
+
message_count == o.message_count &&
|
131
246
|
messages == o.messages &&
|
132
|
-
participants == o.participants
|
247
|
+
participants == o.participants &&
|
248
|
+
start_dts == o.start_dts &&
|
249
|
+
unread_messages == o.unread_messages &&
|
250
|
+
visible == o.visible
|
133
251
|
end
|
134
252
|
|
135
253
|
# @see the `==` method
|
@@ -141,7 +259,7 @@ module UltracartClient
|
|
141
259
|
# Calculates hash code according to all attributes.
|
142
260
|
# @return [Integer] Hash code
|
143
261
|
def hash
|
144
|
-
[closed, conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
|
262
|
+
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, messages, participants, start_dts, unread_messages, visible].hash
|
145
263
|
end
|
146
264
|
|
147
265
|
# Builds the object from hash
|