ultracart_api 4.0.84.rc → 4.0.85.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 +6 -4
- data/docs/ConversationEventAddCoupon.md +4 -0
- data/docs/ConversationEventAddItem.md +6 -2
- data/docs/ConversationEventWebchatContext.md +22 -0
- data/docs/ConversationWebsocketMessage.md +2 -0
- data/lib/ultracart_api/models/conversation_event_add_coupon.rb +19 -1
- data/lib/ultracart_api/models/conversation_event_add_item.rb +27 -7
- data/lib/ultracart_api/models/conversation_event_webchat_context.rb +237 -0
- data/lib/ultracart_api/models/conversation_websocket_message.rb +10 -1
- data/lib/ultracart_api/models/order_property.rb +5 -5
- data/lib/ultracart_api/models/weight.rb +2 -2
- 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: 723d0ab84f7c853d3cef91943efa454e50b0c41ebe17bc04b1ec1bbeca68d8d3
|
4
|
+
data.tar.gz: f0270981b9ecd0fa99d1a31485816d2c166314d9ffd5f07d87cc994a7745e59f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b09e707acd5f31e89e0b0d6ca64ac0fce768a82c4cb33a5d7cf4d059e94bbb3f3493e630b3e3d7f9e638ab1d5b85a4ea4c64171e488cddf6cc2591f31649ba
|
7
|
+
data.tar.gz: 0d3e0fd392d2aff7b71b0c3173b13764f569a99249f32269a46759756f0760a7ec676ba6f18c2795140582e873a339000e9803adfa3fab6a79be881a6cf2bcff
|
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.85.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.85.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.85.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.85.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -594,6 +594,7 @@ Class | Method | HTTP request | Description
|
|
594
594
|
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
595
595
|
- [UltracartClient::ConversationEventReadMessage](docs/ConversationEventReadMessage.md)
|
596
596
|
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
597
|
+
- [UltracartClient::ConversationEventWebchatContext](docs/ConversationEventWebchatContext.md)
|
597
598
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
598
599
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
599
600
|
- [UltracartClient::ConversationMessagesResponse](docs/ConversationMessagesResponse.md)
|
@@ -1226,6 +1227,7 @@ Not every change is committed to every SDK.
|
|
1226
1227
|
|
1227
1228
|
| Version | Date | Comments |
|
1228
1229
|
| --: | :-: | --- |
|
1230
|
+
| 4.0.85-RC | 11/21/2022 | adjusted conversation event model |
|
1229
1231
|
| 4.0.84-RC | 11/15/2022 | conversation methods bug fix |
|
1230
1232
|
| 4.0.83-RC | 11/15/2022 | conversations - enw events for add coupon and items |
|
1231
1233
|
| 4.0.82-RC | 11/15/2022 | order api new method is order refundable |
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **agent_arn** | **String** | | [optional] |
|
8
|
+
| **agent_name** | **String** | | [optional] |
|
7
9
|
| **coupon_code** | **String** | | [optional] |
|
8
10
|
|
9
11
|
## Example
|
@@ -12,6 +14,8 @@
|
|
12
14
|
require 'ultracart_api'
|
13
15
|
|
14
16
|
instance = UltracartClient::ConversationEventAddCoupon.new(
|
17
|
+
agent_arn: null,
|
18
|
+
agent_name: null,
|
15
19
|
coupon_code: null
|
16
20
|
)
|
17
21
|
```
|
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **agent_arn** | **String** | | [optional] |
|
8
|
+
| **agent_name** | **String** | | [optional] |
|
9
|
+
| **items** | [**Array<CartItem>**](CartItem.md) | | [optional] |
|
8
10
|
|
9
11
|
## Example
|
10
12
|
|
@@ -12,7 +14,9 @@
|
|
12
14
|
require 'ultracart_api'
|
13
15
|
|
14
16
|
instance = UltracartClient::ConversationEventAddItem.new(
|
15
|
-
|
17
|
+
agent_arn: null,
|
18
|
+
agent_name: null,
|
19
|
+
items: null
|
16
20
|
)
|
17
21
|
```
|
18
22
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# UltracartClient::ConversationEventWebchatContext
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cart_id** | **String** | | [optional] |
|
8
|
+
| **ucacid** | **String** | | [optional] |
|
9
|
+
| **url** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ultracart_api'
|
15
|
+
|
16
|
+
instance = UltracartClient::ConversationEventWebchatContext.new(
|
17
|
+
cart_id: null,
|
18
|
+
ucacid: null,
|
19
|
+
url: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -18,6 +18,7 @@
|
|
18
18
|
| **event_type** | **String** | Type of event | [optional] |
|
19
19
|
| **event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional] |
|
20
20
|
| **event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
|
21
|
+
| **event_webchat_context** | [**ConversationEventWebchatContext**](ConversationEventWebchatContext.md) | | [optional] |
|
21
22
|
| **message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
|
22
23
|
| **type** | **String** | Type of message | [optional] |
|
23
24
|
|
@@ -41,6 +42,7 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
|
|
41
42
|
event_type: null,
|
42
43
|
event_typing: null,
|
43
44
|
event_updated_message: null,
|
45
|
+
event_webchat_context: null,
|
44
46
|
message: null,
|
45
47
|
type: null
|
46
48
|
)
|
@@ -15,11 +15,17 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationEventAddCoupon
|
18
|
+
attr_accessor :agent_arn
|
19
|
+
|
20
|
+
attr_accessor :agent_name
|
21
|
+
|
18
22
|
attr_accessor :coupon_code
|
19
23
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
27
|
+
:'agent_arn' => :'agent_arn',
|
28
|
+
:'agent_name' => :'agent_name',
|
23
29
|
:'coupon_code' => :'coupon_code'
|
24
30
|
}
|
25
31
|
end
|
@@ -32,6 +38,8 @@ module UltracartClient
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
41
|
+
:'agent_arn' => :'String',
|
42
|
+
:'agent_name' => :'String',
|
35
43
|
:'coupon_code' => :'String'
|
36
44
|
}
|
37
45
|
end
|
@@ -57,6 +65,14 @@ module UltracartClient
|
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
68
|
+
if attributes.key?(:'agent_arn')
|
69
|
+
self.agent_arn = attributes[:'agent_arn']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'agent_name')
|
73
|
+
self.agent_name = attributes[:'agent_name']
|
74
|
+
end
|
75
|
+
|
60
76
|
if attributes.key?(:'coupon_code')
|
61
77
|
self.coupon_code = attributes[:'coupon_code']
|
62
78
|
end
|
@@ -80,6 +96,8 @@ module UltracartClient
|
|
80
96
|
def ==(o)
|
81
97
|
return true if self.equal?(o)
|
82
98
|
self.class == o.class &&
|
99
|
+
agent_arn == o.agent_arn &&
|
100
|
+
agent_name == o.agent_name &&
|
83
101
|
coupon_code == o.coupon_code
|
84
102
|
end
|
85
103
|
|
@@ -92,7 +110,7 @@ module UltracartClient
|
|
92
110
|
# Calculates hash code according to all attributes.
|
93
111
|
# @return [Integer] Hash code
|
94
112
|
def hash
|
95
|
-
[coupon_code].hash
|
113
|
+
[agent_arn, agent_name, coupon_code].hash
|
96
114
|
end
|
97
115
|
|
98
116
|
# Builds the object from hash
|
@@ -15,12 +15,18 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationEventAddItem
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :agent_arn
|
19
|
+
|
20
|
+
attr_accessor :agent_name
|
21
|
+
|
22
|
+
attr_accessor :items
|
19
23
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'agent_arn' => :'agent_arn',
|
28
|
+
:'agent_name' => :'agent_name',
|
29
|
+
:'items' => :'items'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module UltracartClient
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'agent_arn' => :'String',
|
42
|
+
:'agent_name' => :'String',
|
43
|
+
:'items' => :'Array<CartItem>'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -57,8 +65,18 @@ module UltracartClient
|
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
68
|
+
if attributes.key?(:'agent_arn')
|
69
|
+
self.agent_arn = attributes[:'agent_arn']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'agent_name')
|
73
|
+
self.agent_name = attributes[:'agent_name']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'items')
|
77
|
+
if (value = attributes[:'items']).is_a?(Array)
|
78
|
+
self.items = value
|
79
|
+
end
|
62
80
|
end
|
63
81
|
end
|
64
82
|
|
@@ -80,7 +98,9 @@ module UltracartClient
|
|
80
98
|
def ==(o)
|
81
99
|
return true if self.equal?(o)
|
82
100
|
self.class == o.class &&
|
83
|
-
|
101
|
+
agent_arn == o.agent_arn &&
|
102
|
+
agent_name == o.agent_name &&
|
103
|
+
items == o.items
|
84
104
|
end
|
85
105
|
|
86
106
|
# @see the `==` method
|
@@ -92,7 +112,7 @@ module UltracartClient
|
|
92
112
|
# Calculates hash code according to all attributes.
|
93
113
|
# @return [Integer] Hash code
|
94
114
|
def hash
|
95
|
-
[
|
115
|
+
[agent_arn, agent_name, items].hash
|
96
116
|
end
|
97
117
|
|
98
118
|
# Builds the object from hash
|
@@ -0,0 +1,237 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class ConversationEventWebchatContext
|
18
|
+
attr_accessor :cart_id
|
19
|
+
|
20
|
+
attr_accessor :ucacid
|
21
|
+
|
22
|
+
attr_accessor :url
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'cart_id' => :'cart_id',
|
28
|
+
:'ucacid' => :'ucacid',
|
29
|
+
:'url' => :'url'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'cart_id' => :'String',
|
42
|
+
:'ucacid' => :'String',
|
43
|
+
:'url' => :'String'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationEventWebchatContext` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationEventWebchatContext`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'cart_id')
|
69
|
+
self.cart_id = attributes[:'cart_id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'ucacid')
|
73
|
+
self.ucacid = attributes[:'ucacid']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'url')
|
77
|
+
self.url = attributes[:'url']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
cart_id == o.cart_id &&
|
100
|
+
ucacid == o.ucacid &&
|
101
|
+
url == o.url
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Integer] Hash code
|
112
|
+
def hash
|
113
|
+
[cart_id, ucacid, url].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def self.build_from_hash(attributes)
|
120
|
+
new.build_from_hash(attributes)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def build_from_hash(attributes)
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
self.class.openapi_types.each_pair do |key, type|
|
130
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
+
self.send("#{key}=", nil)
|
132
|
+
elsif type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :Boolean
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = UltracartClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the string representation of the object
|
190
|
+
# @return [String] String presentation of the object
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_body
|
198
|
+
to_hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the object in the form of hash
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
if value.nil?
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
|
+
end
|
211
|
+
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
@@ -45,6 +45,8 @@ module UltracartClient
|
|
45
45
|
|
46
46
|
attr_accessor :event_updated_message
|
47
47
|
|
48
|
+
attr_accessor :event_webchat_context
|
49
|
+
|
48
50
|
attr_accessor :message
|
49
51
|
|
50
52
|
# Type of message
|
@@ -89,6 +91,7 @@ module UltracartClient
|
|
89
91
|
:'event_type' => :'event_type',
|
90
92
|
:'event_typing' => :'event_typing',
|
91
93
|
:'event_updated_message' => :'event_updated_message',
|
94
|
+
:'event_webchat_context' => :'event_webchat_context',
|
92
95
|
:'message' => :'message',
|
93
96
|
:'type' => :'type'
|
94
97
|
}
|
@@ -116,6 +119,7 @@ module UltracartClient
|
|
116
119
|
:'event_type' => :'String',
|
117
120
|
:'event_typing' => :'ConversationEventTyping',
|
118
121
|
:'event_updated_message' => :'ConversationMessage',
|
122
|
+
:'event_webchat_context' => :'ConversationEventWebchatContext',
|
119
123
|
:'message' => :'ConversationMessage',
|
120
124
|
:'type' => :'String'
|
121
125
|
}
|
@@ -198,6 +202,10 @@ module UltracartClient
|
|
198
202
|
self.event_updated_message = attributes[:'event_updated_message']
|
199
203
|
end
|
200
204
|
|
205
|
+
if attributes.key?(:'event_webchat_context')
|
206
|
+
self.event_webchat_context = attributes[:'event_webchat_context']
|
207
|
+
end
|
208
|
+
|
201
209
|
if attributes.key?(:'message')
|
202
210
|
self.message = attributes[:'message']
|
203
211
|
end
|
@@ -263,6 +271,7 @@ module UltracartClient
|
|
263
271
|
event_type == o.event_type &&
|
264
272
|
event_typing == o.event_typing &&
|
265
273
|
event_updated_message == o.event_updated_message &&
|
274
|
+
event_webchat_context == o.event_webchat_context &&
|
266
275
|
message == o.message &&
|
267
276
|
type == o.type
|
268
277
|
end
|
@@ -276,7 +285,7 @@ module UltracartClient
|
|
276
285
|
# Calculates hash code according to all attributes.
|
277
286
|
# @return [Integer] Hash code
|
278
287
|
def hash
|
279
|
-
[conversation_uuid, event_add_coupon, event_add_item, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_read_message, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
|
288
|
+
[conversation_uuid, event_add_coupon, event_add_item, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_read_message, event_rrweb, event_type, event_typing, event_updated_message, event_webchat_context, message, type].hash
|
280
289
|
end
|
281
290
|
|
282
291
|
# Builds the object from hash
|
@@ -98,8 +98,8 @@ module UltracartClient
|
|
98
98
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
99
99
|
end
|
100
100
|
|
101
|
-
if !@value.nil? && @value.to_s.length >
|
102
|
-
invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to
|
101
|
+
if !@value.nil? && @value.to_s.length > 1500
|
102
|
+
invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 1500.')
|
103
103
|
end
|
104
104
|
|
105
105
|
invalid_properties
|
@@ -109,7 +109,7 @@ module UltracartClient
|
|
109
109
|
# @return true if the model is valid
|
110
110
|
def valid?
|
111
111
|
return false if !@name.nil? && @name.to_s.length > 100
|
112
|
-
return false if !@value.nil? && @value.to_s.length >
|
112
|
+
return false if !@value.nil? && @value.to_s.length > 1500
|
113
113
|
true
|
114
114
|
end
|
115
115
|
|
@@ -126,8 +126,8 @@ module UltracartClient
|
|
126
126
|
# Custom attribute writer method with validation
|
127
127
|
# @param [Object] value Value to be assigned
|
128
128
|
def value=(value)
|
129
|
-
if !value.nil? && value.to_s.length >
|
130
|
-
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to
|
129
|
+
if !value.nil? && value.to_s.length > 1500
|
130
|
+
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 1500.'
|
131
131
|
end
|
132
132
|
|
133
133
|
@value = value
|
@@ -104,7 +104,7 @@ module UltracartClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
uom_validator = EnumAttributeValidator.new('String', ["KG", "LB", "OZ"])
|
107
|
+
uom_validator = EnumAttributeValidator.new('String', ["KG", "G", "LB", "OZ"])
|
108
108
|
return false unless uom_validator.valid?(@uom)
|
109
109
|
true
|
110
110
|
end
|
@@ -112,7 +112,7 @@ module UltracartClient
|
|
112
112
|
# Custom attribute writer method checking allowed values (enum).
|
113
113
|
# @param [Object] uom Object to be assigned
|
114
114
|
def uom=(uom)
|
115
|
-
validator = EnumAttributeValidator.new('String', ["KG", "LB", "OZ"])
|
115
|
+
validator = EnumAttributeValidator.new('String', ["KG", "G", "LB", "OZ"])
|
116
116
|
unless validator.valid?(uom)
|
117
117
|
fail ArgumentError, "invalid value for \"uom\", must be one of #{validator.allowable_values}."
|
118
118
|
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -143,6 +143,7 @@ require 'ultracart_api/models/conversation_event_queue_position'
|
|
143
143
|
require 'ultracart_api/models/conversation_event_rr_web'
|
144
144
|
require 'ultracart_api/models/conversation_event_read_message'
|
145
145
|
require 'ultracart_api/models/conversation_event_typing'
|
146
|
+
require 'ultracart_api/models/conversation_event_webchat_context'
|
146
147
|
require 'ultracart_api/models/conversation_message'
|
147
148
|
require 'ultracart_api/models/conversation_message_transport_status'
|
148
149
|
require 'ultracart_api/models/conversation_messages_response'
|
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: 4.0.
|
4
|
+
version: 4.0.85.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -193,6 +193,7 @@ files:
|
|
193
193
|
- docs/ConversationEventRRWeb.md
|
194
194
|
- docs/ConversationEventReadMessage.md
|
195
195
|
- docs/ConversationEventTyping.md
|
196
|
+
- docs/ConversationEventWebchatContext.md
|
196
197
|
- docs/ConversationMessage.md
|
197
198
|
- docs/ConversationMessageTransportStatus.md
|
198
199
|
- docs/ConversationMessagesResponse.md
|
@@ -915,6 +916,7 @@ files:
|
|
915
916
|
- lib/ultracart_api/models/conversation_event_read_message.rb
|
916
917
|
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
917
918
|
- lib/ultracart_api/models/conversation_event_typing.rb
|
919
|
+
- lib/ultracart_api/models/conversation_event_webchat_context.rb
|
918
920
|
- lib/ultracart_api/models/conversation_message.rb
|
919
921
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
920
922
|
- lib/ultracart_api/models/conversation_messages_response.rb
|