ultracart_api 3.10.66 → 3.10.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/ConversationEventAddCoupon.md +2 -0
- data/docs/ConversationEventAddItem.md +3 -1
- data/docs/ConversationEventWebchatContext.md +10 -0
- data/docs/ConversationWebsocketMessage.md +1 -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 +202 -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: ee1778c270b95f8ac3103b2cda7313d65885871e6b83100cc44b3e84dc6ad0be
|
4
|
+
data.tar.gz: a5ee2f282c48dc7532bfccff0153b7de9eeb455ec9983011a7ffa87dd25c5b96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd4ff25edbdc4d42e9f53a8d66a9aa10bd7a96bb4d1fbe0a6bfdd4184a720b2fccf94645f32d13278af9ead712b7aa01454cdcc9c850f8fb3618e8e4ff5a1fe2
|
7
|
+
data.tar.gz: c05d46142890fc1bed0eedeaaff9464869f2743f5f95a0f7ec0913d8d93463b0e77ad8c6475660fabada608c912e8cfe2489f897fe74f66b804fd87011cb5b7e
|
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.68
|
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.68.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.68.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.68'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -588,6 +588,7 @@ Class | Method | HTTP request | Description
|
|
588
588
|
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
589
589
|
- [UltracartClient::ConversationEventReadMessage](docs/ConversationEventReadMessage.md)
|
590
590
|
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
591
|
+
- [UltracartClient::ConversationEventWebchatContext](docs/ConversationEventWebchatContext.md)
|
591
592
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
592
593
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
593
594
|
- [UltracartClient::ConversationMessagesResponse](docs/ConversationMessagesResponse.md)
|
@@ -1217,6 +1218,8 @@ Not every change is committed to every SDK.
|
|
1217
1218
|
|
1218
1219
|
| Version | Date | Comments |
|
1219
1220
|
| --: | :-: | --- |
|
1221
|
+
| 3.10.68 | 11/21/2022 | adjusted conversation event model |
|
1222
|
+
| 3.10.67 | 11/15/2022 | conversation methods bug fix |
|
1220
1223
|
| 3.10.66 | 11/15/2022 | conversations - enw events for add coupon and items |
|
1221
1224
|
| 3.10.65 | 11/15/2022 | order api new method is order refundable |
|
1222
1225
|
| 3.10.64 | 11/15/2022 | increase order property length to 10k char |
|
@@ -3,6 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**agent_arn** | **String** | | [optional]
|
7
|
+
**agent_name** | **String** | | [optional]
|
8
|
+
**items** | [**Array<CartItem>**](CartItem.md) | | [optional]
|
7
9
|
|
8
10
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# UltracartClient::ConversationEventWebchatContext
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**cart_id** | **String** | | [optional]
|
7
|
+
**ucacid** | **String** | | [optional]
|
8
|
+
**url** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
17
17
|
**event_type** | **String** | Type of event | [optional]
|
18
18
|
**event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional]
|
19
19
|
**event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
20
|
+
**event_webchat_context** | [**ConversationEventWebchatContext**](ConversationEventWebchatContext.md) | | [optional]
|
20
21
|
**message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
21
22
|
**type** | **String** | Type of message | [optional]
|
22
23
|
|
@@ -14,11 +14,17 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationEventAddCoupon
|
17
|
+
attr_accessor :agent_arn
|
18
|
+
|
19
|
+
attr_accessor :agent_name
|
20
|
+
|
17
21
|
attr_accessor :coupon_code
|
18
22
|
|
19
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
24
|
def self.attribute_map
|
21
25
|
{
|
26
|
+
:'agent_arn' => :'agent_arn',
|
27
|
+
:'agent_name' => :'agent_name',
|
22
28
|
:'coupon_code' => :'coupon_code'
|
23
29
|
}
|
24
30
|
end
|
@@ -26,6 +32,8 @@ module UltracartClient
|
|
26
32
|
# Attribute type mapping.
|
27
33
|
def self.swagger_types
|
28
34
|
{
|
35
|
+
:'agent_arn' => :'String',
|
36
|
+
:'agent_name' => :'String',
|
29
37
|
:'coupon_code' => :'String'
|
30
38
|
}
|
31
39
|
end
|
@@ -38,6 +46,14 @@ module UltracartClient
|
|
38
46
|
# convert string to symbol for hash key
|
39
47
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
48
|
|
49
|
+
if attributes.has_key?(:'agent_arn')
|
50
|
+
self.agent_arn = attributes[:'agent_arn']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'agent_name')
|
54
|
+
self.agent_name = attributes[:'agent_name']
|
55
|
+
end
|
56
|
+
|
41
57
|
if attributes.has_key?(:'coupon_code')
|
42
58
|
self.coupon_code = attributes[:'coupon_code']
|
43
59
|
end
|
@@ -61,6 +77,8 @@ module UltracartClient
|
|
61
77
|
def ==(o)
|
62
78
|
return true if self.equal?(o)
|
63
79
|
self.class == o.class &&
|
80
|
+
agent_arn == o.agent_arn &&
|
81
|
+
agent_name == o.agent_name &&
|
64
82
|
coupon_code == o.coupon_code
|
65
83
|
end
|
66
84
|
|
@@ -73,7 +91,7 @@ module UltracartClient
|
|
73
91
|
# Calculates hash code according to all attributes.
|
74
92
|
# @return [Fixnum] Hash code
|
75
93
|
def hash
|
76
|
-
[coupon_code].hash
|
94
|
+
[agent_arn, agent_name, coupon_code].hash
|
77
95
|
end
|
78
96
|
|
79
97
|
# Builds the object from hash
|
@@ -14,19 +14,27 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationEventAddItem
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :agent_arn
|
18
|
+
|
19
|
+
attr_accessor :agent_name
|
20
|
+
|
21
|
+
attr_accessor :items
|
18
22
|
|
19
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
24
|
def self.attribute_map
|
21
25
|
{
|
22
|
-
:'
|
26
|
+
:'agent_arn' => :'agent_arn',
|
27
|
+
:'agent_name' => :'agent_name',
|
28
|
+
:'items' => :'items'
|
23
29
|
}
|
24
30
|
end
|
25
31
|
|
26
32
|
# Attribute type mapping.
|
27
33
|
def self.swagger_types
|
28
34
|
{
|
29
|
-
:'
|
35
|
+
:'agent_arn' => :'String',
|
36
|
+
:'agent_name' => :'String',
|
37
|
+
:'items' => :'Array<CartItem>'
|
30
38
|
}
|
31
39
|
end
|
32
40
|
|
@@ -38,8 +46,18 @@ module UltracartClient
|
|
38
46
|
# convert string to symbol for hash key
|
39
47
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
48
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
self.
|
49
|
+
if attributes.has_key?(:'agent_arn')
|
50
|
+
self.agent_arn = attributes[:'agent_arn']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'agent_name')
|
54
|
+
self.agent_name = attributes[:'agent_name']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'items')
|
58
|
+
if (value = attributes[:'items']).is_a?(Array)
|
59
|
+
self.items = value
|
60
|
+
end
|
43
61
|
end
|
44
62
|
end
|
45
63
|
|
@@ -61,7 +79,9 @@ module UltracartClient
|
|
61
79
|
def ==(o)
|
62
80
|
return true if self.equal?(o)
|
63
81
|
self.class == o.class &&
|
64
|
-
|
82
|
+
agent_arn == o.agent_arn &&
|
83
|
+
agent_name == o.agent_name &&
|
84
|
+
items == o.items
|
65
85
|
end
|
66
86
|
|
67
87
|
# @see the `==` method
|
@@ -73,7 +93,7 @@ module UltracartClient
|
|
73
93
|
# Calculates hash code according to all attributes.
|
74
94
|
# @return [Fixnum] Hash code
|
75
95
|
def hash
|
76
|
-
[
|
96
|
+
[agent_arn, agent_name, items].hash
|
77
97
|
end
|
78
98
|
|
79
99
|
# Builds the object from hash
|
@@ -0,0 +1,202 @@
|
|
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 ConversationEventWebchatContext
|
17
|
+
attr_accessor :cart_id
|
18
|
+
|
19
|
+
attr_accessor :ucacid
|
20
|
+
|
21
|
+
attr_accessor :url
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'cart_id' => :'cart_id',
|
27
|
+
:'ucacid' => :'ucacid',
|
28
|
+
:'url' => :'url'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'cart_id' => :'String',
|
36
|
+
:'ucacid' => :'String',
|
37
|
+
:'url' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
+
|
49
|
+
if attributes.has_key?(:'cart_id')
|
50
|
+
self.cart_id = attributes[:'cart_id']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'ucacid')
|
54
|
+
self.ucacid = attributes[:'ucacid']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'url')
|
58
|
+
self.url = attributes[:'url']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
cart_id == o.cart_id &&
|
81
|
+
ucacid == o.ucacid &&
|
82
|
+
url == o.url
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(o)
|
88
|
+
self == o
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Fixnum] Hash code
|
93
|
+
def hash
|
94
|
+
[cart_id, ucacid, url].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def build_from_hash(attributes)
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
+
end
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
+
end
|
113
|
+
|
114
|
+
self
|
115
|
+
end
|
116
|
+
|
117
|
+
# Deserializes the data based on type
|
118
|
+
# @param string type Data type
|
119
|
+
# @param string value Value to be deserialized
|
120
|
+
# @return [Object] Deserialized data
|
121
|
+
def _deserialize(type, value)
|
122
|
+
case type.to_sym
|
123
|
+
when :DateTime
|
124
|
+
DateTime.parse(value)
|
125
|
+
when :Date
|
126
|
+
Date.parse(value)
|
127
|
+
when :String
|
128
|
+
value.to_s
|
129
|
+
when :Integer
|
130
|
+
value.to_i
|
131
|
+
when :Float
|
132
|
+
value.to_f
|
133
|
+
when :BOOLEAN
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
+
true
|
136
|
+
else
|
137
|
+
false
|
138
|
+
end
|
139
|
+
when :Object
|
140
|
+
# generic object (usually a Hash), return directly
|
141
|
+
value
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
148
|
+
{}.tap do |hash|
|
149
|
+
value.each do |k, v|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
else # model
|
154
|
+
temp_model = UltracartClient.const_get(type).new
|
155
|
+
temp_model.build_from_hash(value)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# Returns the string representation of the object
|
160
|
+
# @return [String] String presentation of the object
|
161
|
+
def to_s
|
162
|
+
to_hash.to_s
|
163
|
+
end
|
164
|
+
|
165
|
+
# to_body is an alias to to_hash (backward compatibility)
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_body
|
168
|
+
to_hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the object in the form of hash
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_hash
|
174
|
+
hash = {}
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
176
|
+
value = self.send(attr)
|
177
|
+
next if value.nil?
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Outputs non-array value in the form of hash
|
184
|
+
# For object, use to_hash. Otherwise, just return the value
|
185
|
+
# @param [Object] value Any valid value
|
186
|
+
# @return [Hash] Returns the value in the form of hash
|
187
|
+
def _to_hash(value)
|
188
|
+
if value.is_a?(Array)
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
190
|
+
elsif value.is_a?(Hash)
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
+
end
|
194
|
+
elsif value.respond_to? :to_hash
|
195
|
+
value.to_hash
|
196
|
+
else
|
197
|
+
value
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
@@ -44,6 +44,8 @@ module UltracartClient
|
|
44
44
|
|
45
45
|
attr_accessor :event_updated_message
|
46
46
|
|
47
|
+
attr_accessor :event_webchat_context
|
48
|
+
|
47
49
|
attr_accessor :message
|
48
50
|
|
49
51
|
# Type of message
|
@@ -88,6 +90,7 @@ module UltracartClient
|
|
88
90
|
:'event_type' => :'event_type',
|
89
91
|
:'event_typing' => :'event_typing',
|
90
92
|
:'event_updated_message' => :'event_updated_message',
|
93
|
+
:'event_webchat_context' => :'event_webchat_context',
|
91
94
|
:'message' => :'message',
|
92
95
|
:'type' => :'type'
|
93
96
|
}
|
@@ -110,6 +113,7 @@ module UltracartClient
|
|
110
113
|
:'event_type' => :'String',
|
111
114
|
:'event_typing' => :'ConversationEventTyping',
|
112
115
|
:'event_updated_message' => :'ConversationMessage',
|
116
|
+
:'event_webchat_context' => :'ConversationEventWebchatContext',
|
113
117
|
:'message' => :'ConversationMessage',
|
114
118
|
:'type' => :'String'
|
115
119
|
}
|
@@ -179,6 +183,10 @@ module UltracartClient
|
|
179
183
|
self.event_updated_message = attributes[:'event_updated_message']
|
180
184
|
end
|
181
185
|
|
186
|
+
if attributes.has_key?(:'event_webchat_context')
|
187
|
+
self.event_webchat_context = attributes[:'event_webchat_context']
|
188
|
+
end
|
189
|
+
|
182
190
|
if attributes.has_key?(:'message')
|
183
191
|
self.message = attributes[:'message']
|
184
192
|
end
|
@@ -244,6 +252,7 @@ module UltracartClient
|
|
244
252
|
event_type == o.event_type &&
|
245
253
|
event_typing == o.event_typing &&
|
246
254
|
event_updated_message == o.event_updated_message &&
|
255
|
+
event_webchat_context == o.event_webchat_context &&
|
247
256
|
message == o.message &&
|
248
257
|
type == o.type
|
249
258
|
end
|
@@ -257,7 +266,7 @@ module UltracartClient
|
|
257
266
|
# Calculates hash code according to all attributes.
|
258
267
|
# @return [Fixnum] Hash code
|
259
268
|
def hash
|
260
|
-
[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
|
269
|
+
[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
|
261
270
|
end
|
262
271
|
|
263
272
|
# Builds the object from hash
|
@@ -79,8 +79,8 @@ module UltracartClient
|
|
79
79
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
80
80
|
end
|
81
81
|
|
82
|
-
if !@value.nil? && @value.to_s.length >
|
83
|
-
invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to
|
82
|
+
if !@value.nil? && @value.to_s.length > 1500
|
83
|
+
invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 1500.')
|
84
84
|
end
|
85
85
|
|
86
86
|
invalid_properties
|
@@ -90,7 +90,7 @@ module UltracartClient
|
|
90
90
|
# @return true if the model is valid
|
91
91
|
def valid?
|
92
92
|
return false if !@name.nil? && @name.to_s.length > 100
|
93
|
-
return false if !@value.nil? && @value.to_s.length >
|
93
|
+
return false if !@value.nil? && @value.to_s.length > 1500
|
94
94
|
true
|
95
95
|
end
|
96
96
|
|
@@ -107,8 +107,8 @@ module UltracartClient
|
|
107
107
|
# Custom attribute writer method with validation
|
108
108
|
# @param [Object] value Value to be assigned
|
109
109
|
def value=(value)
|
110
|
-
if !value.nil? && value.to_s.length >
|
111
|
-
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to
|
110
|
+
if !value.nil? && value.to_s.length > 1500
|
111
|
+
fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 1500.'
|
112
112
|
end
|
113
113
|
|
114
114
|
@value = value
|
@@ -85,7 +85,7 @@ module UltracartClient
|
|
85
85
|
# Check to see if the all the properties in the model are valid
|
86
86
|
# @return true if the model is valid
|
87
87
|
def valid?
|
88
|
-
uom_validator = EnumAttributeValidator.new('String', ['KG', 'LB', 'OZ'])
|
88
|
+
uom_validator = EnumAttributeValidator.new('String', ['KG', 'G', 'LB', 'OZ'])
|
89
89
|
return false unless uom_validator.valid?(@uom)
|
90
90
|
true
|
91
91
|
end
|
@@ -93,7 +93,7 @@ module UltracartClient
|
|
93
93
|
# Custom attribute writer method checking allowed values (enum).
|
94
94
|
# @param [Object] uom Object to be assigned
|
95
95
|
def uom=(uom)
|
96
|
-
validator = EnumAttributeValidator.new('String', ['KG', 'LB', 'OZ'])
|
96
|
+
validator = EnumAttributeValidator.new('String', ['KG', 'G', 'LB', 'OZ'])
|
97
97
|
unless validator.valid?(uom)
|
98
98
|
fail ArgumentError, 'invalid value for "uom", must be one of #{validator.allowable_values}.'
|
99
99
|
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: 3.10.
|
4
|
+
version: 3.10.68
|
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
|
@@ -353,6 +353,7 @@ files:
|
|
353
353
|
- docs/ConversationEventRRWeb.md
|
354
354
|
- docs/ConversationEventReadMessage.md
|
355
355
|
- docs/ConversationEventTyping.md
|
356
|
+
- docs/ConversationEventWebchatContext.md
|
356
357
|
- docs/ConversationMessage.md
|
357
358
|
- docs/ConversationMessageTransportStatus.md
|
358
359
|
- docs/ConversationMessagesResponse.md
|
@@ -1075,6 +1076,7 @@ files:
|
|
1075
1076
|
- lib/ultracart_api/models/conversation_event_read_message.rb
|
1076
1077
|
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
1077
1078
|
- lib/ultracart_api/models/conversation_event_typing.rb
|
1079
|
+
- lib/ultracart_api/models/conversation_event_webchat_context.rb
|
1078
1080
|
- lib/ultracart_api/models/conversation_message.rb
|
1079
1081
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1080
1082
|
- lib/ultracart_api/models/conversation_messages_response.rb
|