ultracart_api 3.11.28 → 3.11.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -4
- data/docs/ConversationApi.md +216 -0
- data/docs/ConversationMcpServer.md +15 -0
- data/docs/ConversationMcpServerResponse.md +12 -0
- data/docs/ConversationMcpServersResponse.md +12 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/ConversationVirtualAgentCapabilities.md +1 -0
- data/docs/ItemShipping.md +1 -0
- data/lib/ultracart_api/api/conversation_api.rb +244 -0
- data/lib/ultracart_api/models/conversation_mcp_server.rb +289 -0
- data/lib/ultracart_api/models/conversation_mcp_server_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_mcp_servers_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_message.rb +10 -1
- data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +11 -1
- data/lib/ultracart_api/models/item_shipping.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
|
@@ -0,0 +1,221 @@
|
|
|
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 ConversationMcpServerResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :mcp_server
|
|
20
|
+
|
|
21
|
+
attr_accessor :metadata
|
|
22
|
+
|
|
23
|
+
# Indicates if API call was successful
|
|
24
|
+
attr_accessor :success
|
|
25
|
+
|
|
26
|
+
attr_accessor :warning
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'error' => :'error',
|
|
32
|
+
:'mcp_server' => :'mcp_server',
|
|
33
|
+
:'metadata' => :'metadata',
|
|
34
|
+
:'success' => :'success',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'mcp_server' => :'ConversationMcpServer',
|
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
|
45
|
+
:'success' => :'BOOLEAN',
|
|
46
|
+
:'warning' => :'Warning'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'error')
|
|
59
|
+
self.error = attributes[:'error']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'mcp_server')
|
|
63
|
+
self.mcp_server = attributes[:'mcp_server']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'metadata')
|
|
67
|
+
self.metadata = attributes[:'metadata']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'success')
|
|
71
|
+
self.success = attributes[:'success']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'warning')
|
|
75
|
+
self.warning = attributes[:'warning']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
invalid_properties = Array.new
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Checks equality by comparing each attribute.
|
|
93
|
+
# @param [Object] Object to be compared
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
error == o.error &&
|
|
98
|
+
mcp_server == o.mcp_server &&
|
|
99
|
+
metadata == o.metadata &&
|
|
100
|
+
success == o.success &&
|
|
101
|
+
warning == o.warning
|
|
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 [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[error, mcp_server, metadata, success, warning].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 build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|
|
@@ -0,0 +1,223 @@
|
|
|
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 ConversationMcpServersResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :mcp_servers
|
|
20
|
+
|
|
21
|
+
attr_accessor :metadata
|
|
22
|
+
|
|
23
|
+
# Indicates if API call was successful
|
|
24
|
+
attr_accessor :success
|
|
25
|
+
|
|
26
|
+
attr_accessor :warning
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'error' => :'error',
|
|
32
|
+
:'mcp_servers' => :'mcp_servers',
|
|
33
|
+
:'metadata' => :'metadata',
|
|
34
|
+
:'success' => :'success',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'mcp_servers' => :'Array<ConversationMcpServer>',
|
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
|
45
|
+
:'success' => :'BOOLEAN',
|
|
46
|
+
:'warning' => :'Warning'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'error')
|
|
59
|
+
self.error = attributes[:'error']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'mcp_servers')
|
|
63
|
+
if (value = attributes[:'mcp_servers']).is_a?(Array)
|
|
64
|
+
self.mcp_servers = value
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'metadata')
|
|
69
|
+
self.metadata = attributes[:'metadata']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'success')
|
|
73
|
+
self.success = attributes[:'success']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.has_key?(:'warning')
|
|
77
|
+
self.warning = attributes[:'warning']
|
|
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
|
+
error == o.error &&
|
|
100
|
+
mcp_servers == o.mcp_servers &&
|
|
101
|
+
metadata == o.metadata &&
|
|
102
|
+
success == o.success &&
|
|
103
|
+
warning == o.warning
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# @see the `==` method
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def eql?(o)
|
|
109
|
+
self == o
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Calculates hash code according to all attributes.
|
|
113
|
+
# @return [Fixnum] Hash code
|
|
114
|
+
def hash
|
|
115
|
+
[error, mcp_servers, metadata, success, warning].hash
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Builds the object from hash
|
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
120
|
+
# @return [Object] Returns the model itself
|
|
121
|
+
def build_from_hash(attributes)
|
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
|
125
|
+
# check to ensure the input is an array given that the attribute
|
|
126
|
+
# is documented as an array but the input is not
|
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
129
|
+
end
|
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
self
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Deserializes the data based on type
|
|
139
|
+
# @param string type Data type
|
|
140
|
+
# @param string value Value to be deserialized
|
|
141
|
+
# @return [Object] Deserialized data
|
|
142
|
+
def _deserialize(type, value)
|
|
143
|
+
case type.to_sym
|
|
144
|
+
when :DateTime
|
|
145
|
+
DateTime.parse(value)
|
|
146
|
+
when :Date
|
|
147
|
+
Date.parse(value)
|
|
148
|
+
when :String
|
|
149
|
+
value.to_s
|
|
150
|
+
when :Integer
|
|
151
|
+
value.to_i
|
|
152
|
+
when :Float
|
|
153
|
+
value.to_f
|
|
154
|
+
when :BOOLEAN
|
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
+
true
|
|
157
|
+
else
|
|
158
|
+
false
|
|
159
|
+
end
|
|
160
|
+
when :Object
|
|
161
|
+
# generic object (usually a Hash), return directly
|
|
162
|
+
value
|
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
|
169
|
+
{}.tap do |hash|
|
|
170
|
+
value.each do |k, v|
|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
else # model
|
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
|
176
|
+
temp_model.build_from_hash(value)
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Returns the string representation of the object
|
|
181
|
+
# @return [String] String presentation of the object
|
|
182
|
+
def to_s
|
|
183
|
+
to_hash.to_s
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_body
|
|
189
|
+
to_hash
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the object in the form of hash
|
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
|
194
|
+
def to_hash
|
|
195
|
+
hash = {}
|
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
197
|
+
value = self.send(attr)
|
|
198
|
+
next if value.nil?
|
|
199
|
+
hash[param] = _to_hash(value)
|
|
200
|
+
end
|
|
201
|
+
hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Outputs non-array value in the form of hash
|
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
+
# @param [Object] value Any valid value
|
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
|
208
|
+
def _to_hash(value)
|
|
209
|
+
if value.is_a?(Array)
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
211
|
+
elsif value.is_a?(Hash)
|
|
212
|
+
{}.tap do |hash|
|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
+
end
|
|
215
|
+
elsif value.respond_to? :to_hash
|
|
216
|
+
value.to_hash
|
|
217
|
+
else
|
|
218
|
+
value
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
223
|
+
end
|
|
@@ -39,6 +39,8 @@ module UltracartClient
|
|
|
39
39
|
# Message epoch milliseconds
|
|
40
40
|
attr_accessor :message_epoch
|
|
41
41
|
|
|
42
|
+
attr_accessor :message_type
|
|
43
|
+
|
|
42
44
|
attr_accessor :translations
|
|
43
45
|
|
|
44
46
|
attr_accessor :transport_statuses
|
|
@@ -84,6 +86,7 @@ module UltracartClient
|
|
|
84
86
|
:'merchant_id' => :'merchant_id',
|
|
85
87
|
:'message_dts' => :'message_dts',
|
|
86
88
|
:'message_epoch' => :'message_epoch',
|
|
89
|
+
:'message_type' => :'message_type',
|
|
87
90
|
:'translations' => :'translations',
|
|
88
91
|
:'transport_statuses' => :'transport_statuses',
|
|
89
92
|
:'type' => :'type',
|
|
@@ -105,6 +108,7 @@ module UltracartClient
|
|
|
105
108
|
:'merchant_id' => :'String',
|
|
106
109
|
:'message_dts' => :'String',
|
|
107
110
|
:'message_epoch' => :'Integer',
|
|
111
|
+
:'message_type' => :'String',
|
|
108
112
|
:'translations' => :'Array<ConversationMessageTranslation>',
|
|
109
113
|
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
|
110
114
|
:'type' => :'String',
|
|
@@ -166,6 +170,10 @@ module UltracartClient
|
|
|
166
170
|
self.message_epoch = attributes[:'message_epoch']
|
|
167
171
|
end
|
|
168
172
|
|
|
173
|
+
if attributes.has_key?(:'message_type')
|
|
174
|
+
self.message_type = attributes[:'message_type']
|
|
175
|
+
end
|
|
176
|
+
|
|
169
177
|
if attributes.has_key?(:'translations')
|
|
170
178
|
if (value = attributes[:'translations']).is_a?(Array)
|
|
171
179
|
self.translations = value
|
|
@@ -230,6 +238,7 @@ module UltracartClient
|
|
|
230
238
|
merchant_id == o.merchant_id &&
|
|
231
239
|
message_dts == o.message_dts &&
|
|
232
240
|
message_epoch == o.message_epoch &&
|
|
241
|
+
message_type == o.message_type &&
|
|
233
242
|
translations == o.translations &&
|
|
234
243
|
transport_statuses == o.transport_statuses &&
|
|
235
244
|
type == o.type &&
|
|
@@ -245,7 +254,7 @@ module UltracartClient
|
|
|
245
254
|
# Calculates hash code according to all attributes.
|
|
246
255
|
# @return [Fixnum] Hash code
|
|
247
256
|
def hash
|
|
248
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, delay_until_dts, language_iso_code, media_urls, merchant_id, message_dts, message_epoch, translations, transport_statuses, type, upload_keys].hash
|
|
257
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, delay_until_dts, language_iso_code, media_urls, merchant_id, message_dts, message_epoch, message_type, translations, transport_statuses, type, upload_keys].hash
|
|
249
258
|
end
|
|
250
259
|
|
|
251
260
|
# Builds the object from hash
|
|
@@ -21,6 +21,9 @@ module UltracartClient
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :delay_subscription
|
|
23
23
|
|
|
24
|
+
# Permission flag to allow this Agent to generate coupons based upon the agent prompt instructions
|
|
25
|
+
attr_accessor :generate_coupon
|
|
26
|
+
|
|
24
27
|
attr_accessor :lookup_order_information
|
|
25
28
|
|
|
26
29
|
attr_accessor :lookup_subscription_information
|
|
@@ -78,6 +81,7 @@ module UltracartClient
|
|
|
78
81
|
:'access_storefront_and_item' => :'access_storefront_and_item',
|
|
79
82
|
:'cancel_subscription' => :'cancel_subscription',
|
|
80
83
|
:'delay_subscription' => :'delay_subscription',
|
|
84
|
+
:'generate_coupon' => :'generate_coupon',
|
|
81
85
|
:'lookup_order_information' => :'lookup_order_information',
|
|
82
86
|
:'lookup_subscription_information' => :'lookup_subscription_information',
|
|
83
87
|
:'open_support_ticket' => :'open_support_ticket',
|
|
@@ -99,6 +103,7 @@ module UltracartClient
|
|
|
99
103
|
:'access_storefront_and_item' => :'BOOLEAN',
|
|
100
104
|
:'cancel_subscription' => :'BOOLEAN',
|
|
101
105
|
:'delay_subscription' => :'BOOLEAN',
|
|
106
|
+
:'generate_coupon' => :'BOOLEAN',
|
|
102
107
|
:'lookup_order_information' => :'BOOLEAN',
|
|
103
108
|
:'lookup_subscription_information' => :'BOOLEAN',
|
|
104
109
|
:'open_support_ticket' => :'BOOLEAN',
|
|
@@ -134,6 +139,10 @@ module UltracartClient
|
|
|
134
139
|
self.delay_subscription = attributes[:'delay_subscription']
|
|
135
140
|
end
|
|
136
141
|
|
|
142
|
+
if attributes.has_key?(:'generate_coupon')
|
|
143
|
+
self.generate_coupon = attributes[:'generate_coupon']
|
|
144
|
+
end
|
|
145
|
+
|
|
137
146
|
if attributes.has_key?(:'lookup_order_information')
|
|
138
147
|
self.lookup_order_information = attributes[:'lookup_order_information']
|
|
139
148
|
end
|
|
@@ -218,6 +227,7 @@ module UltracartClient
|
|
|
218
227
|
access_storefront_and_item == o.access_storefront_and_item &&
|
|
219
228
|
cancel_subscription == o.cancel_subscription &&
|
|
220
229
|
delay_subscription == o.delay_subscription &&
|
|
230
|
+
generate_coupon == o.generate_coupon &&
|
|
221
231
|
lookup_order_information == o.lookup_order_information &&
|
|
222
232
|
lookup_subscription_information == o.lookup_subscription_information &&
|
|
223
233
|
open_support_ticket == o.open_support_ticket &&
|
|
@@ -241,7 +251,7 @@ module UltracartClient
|
|
|
241
251
|
# Calculates hash code according to all attributes.
|
|
242
252
|
# @return [Fixnum] Hash code
|
|
243
253
|
def hash
|
|
244
|
-
[access_storefront_and_item, cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, open_support_ticket_zoho_desk_department_id, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card, zoho_desk_available, zoho_desk_departments].hash
|
|
254
|
+
[access_storefront_and_item, cancel_subscription, delay_subscription, generate_coupon, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, open_support_ticket_zoho_desk_department_id, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card, zoho_desk_available, zoho_desk_departments].hash
|
|
245
255
|
end
|
|
246
256
|
|
|
247
257
|
# Builds the object from hash
|
|
@@ -86,6 +86,9 @@ module UltracartClient
|
|
|
86
86
|
# Hold for transmission
|
|
87
87
|
attr_accessor :hold_for_transmission
|
|
88
88
|
|
|
89
|
+
# Force this item onto the packing slip even if there is no weight.
|
|
90
|
+
attr_accessor :include_on_packing_slip
|
|
91
|
+
|
|
89
92
|
# True if this item is made to order
|
|
90
93
|
attr_accessor :made_to_order
|
|
91
94
|
|
|
@@ -184,6 +187,7 @@ module UltracartClient
|
|
|
184
187
|
:'freight_class' => :'freight_class',
|
|
185
188
|
:'hazmat' => :'hazmat',
|
|
186
189
|
:'hold_for_transmission' => :'hold_for_transmission',
|
|
190
|
+
:'include_on_packing_slip' => :'include_on_packing_slip',
|
|
187
191
|
:'made_to_order' => :'made_to_order',
|
|
188
192
|
:'made_to_order_lead_time' => :'made_to_order_lead_time',
|
|
189
193
|
:'max_days_time_in_transit' => :'max_days_time_in_transit',
|
|
@@ -239,6 +243,7 @@ module UltracartClient
|
|
|
239
243
|
:'freight_class' => :'String',
|
|
240
244
|
:'hazmat' => :'BOOLEAN',
|
|
241
245
|
:'hold_for_transmission' => :'BOOLEAN',
|
|
246
|
+
:'include_on_packing_slip' => :'BOOLEAN',
|
|
242
247
|
:'made_to_order' => :'BOOLEAN',
|
|
243
248
|
:'made_to_order_lead_time' => :'Integer',
|
|
244
249
|
:'max_days_time_in_transit' => :'Integer',
|
|
@@ -379,6 +384,10 @@ module UltracartClient
|
|
|
379
384
|
self.hold_for_transmission = attributes[:'hold_for_transmission']
|
|
380
385
|
end
|
|
381
386
|
|
|
387
|
+
if attributes.has_key?(:'include_on_packing_slip')
|
|
388
|
+
self.include_on_packing_slip = attributes[:'include_on_packing_slip']
|
|
389
|
+
end
|
|
390
|
+
|
|
382
391
|
if attributes.has_key?(:'made_to_order')
|
|
383
392
|
self.made_to_order = attributes[:'made_to_order']
|
|
384
393
|
end
|
|
@@ -541,6 +550,7 @@ module UltracartClient
|
|
|
541
550
|
freight_class == o.freight_class &&
|
|
542
551
|
hazmat == o.hazmat &&
|
|
543
552
|
hold_for_transmission == o.hold_for_transmission &&
|
|
553
|
+
include_on_packing_slip == o.include_on_packing_slip &&
|
|
544
554
|
made_to_order == o.made_to_order &&
|
|
545
555
|
made_to_order_lead_time == o.made_to_order_lead_time &&
|
|
546
556
|
max_days_time_in_transit == o.max_days_time_in_transit &&
|
|
@@ -577,7 +587,7 @@ module UltracartClient
|
|
|
577
587
|
# Calculates hash code according to all attributes.
|
|
578
588
|
# @return [Fixnum] Hash code
|
|
579
589
|
def hash
|
|
580
|
-
[allow_back_order, amazon_fba, case_inner_packs, case_units, cases, collect_serial_numbers, country_code_of_origin, customs_description, customs_value, delivery_on_friday, delivery_on_monday, delivery_on_saturday, delivery_on_sunday, delivery_on_thursday, delivery_on_tuesday, delivery_on_wednesday, destination_markups, destination_restrictions, distribution_centers, eta, free_shipping, freight_class, hazmat, hold_for_transmission, made_to_order, made_to_order_lead_time, max_days_time_in_transit, methods, no_shipping_discount, package_requirements, perishable_class_name, perishable_class_oid, preorder, require_delivery_date, restrict_shipment_on_friday, restrict_shipment_on_monday, restrict_shipment_on_saturday, restrict_shipment_on_sunday, restrict_shipment_on_thursday, restrict_shipment_on_tuesday, restrict_shipment_on_wednesday, ship_separately, ship_separately_additional_weight, ship_separately_height, ship_separately_length, ship_separately_package_special_type, ship_separately_width, special_product_type, track_inventory].hash
|
|
590
|
+
[allow_back_order, amazon_fba, case_inner_packs, case_units, cases, collect_serial_numbers, country_code_of_origin, customs_description, customs_value, delivery_on_friday, delivery_on_monday, delivery_on_saturday, delivery_on_sunday, delivery_on_thursday, delivery_on_tuesday, delivery_on_wednesday, destination_markups, destination_restrictions, distribution_centers, eta, free_shipping, freight_class, hazmat, hold_for_transmission, include_on_packing_slip, made_to_order, made_to_order_lead_time, max_days_time_in_transit, methods, no_shipping_discount, package_requirements, perishable_class_name, perishable_class_oid, preorder, require_delivery_date, restrict_shipment_on_friday, restrict_shipment_on_monday, restrict_shipment_on_saturday, restrict_shipment_on_sunday, restrict_shipment_on_thursday, restrict_shipment_on_tuesday, restrict_shipment_on_wednesday, ship_separately, ship_separately_additional_weight, ship_separately_height, ship_separately_length, ship_separately_package_special_type, ship_separately_width, special_product_type, track_inventory].hash
|
|
581
591
|
end
|
|
582
592
|
|
|
583
593
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -187,6 +187,9 @@ require 'ultracart_api/models/conversation_knowledge_base_documents_response'
|
|
|
187
187
|
require 'ultracart_api/models/conversation_location_country'
|
|
188
188
|
require 'ultracart_api/models/conversation_location_state_province'
|
|
189
189
|
require 'ultracart_api/models/conversation_locations_response'
|
|
190
|
+
require 'ultracart_api/models/conversation_mcp_server'
|
|
191
|
+
require 'ultracart_api/models/conversation_mcp_server_response'
|
|
192
|
+
require 'ultracart_api/models/conversation_mcp_servers_response'
|
|
190
193
|
require 'ultracart_api/models/conversation_message'
|
|
191
194
|
require 'ultracart_api/models/conversation_message_translation'
|
|
192
195
|
require 'ultracart_api/models/conversation_message_transport_status'
|
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.11.
|
|
4
|
+
version: 3.11.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -396,6 +396,9 @@ files:
|
|
|
396
396
|
- docs/ConversationLocationCountry.md
|
|
397
397
|
- docs/ConversationLocationStateProvince.md
|
|
398
398
|
- docs/ConversationLocationsResponse.md
|
|
399
|
+
- docs/ConversationMcpServer.md
|
|
400
|
+
- docs/ConversationMcpServerResponse.md
|
|
401
|
+
- docs/ConversationMcpServersResponse.md
|
|
399
402
|
- docs/ConversationMessage.md
|
|
400
403
|
- docs/ConversationMessageTranslation.md
|
|
401
404
|
- docs/ConversationMessageTransportStatus.md
|
|
@@ -1336,6 +1339,9 @@ files:
|
|
|
1336
1339
|
- lib/ultracart_api/models/conversation_location_country.rb
|
|
1337
1340
|
- lib/ultracart_api/models/conversation_location_state_province.rb
|
|
1338
1341
|
- lib/ultracart_api/models/conversation_locations_response.rb
|
|
1342
|
+
- lib/ultracart_api/models/conversation_mcp_server.rb
|
|
1343
|
+
- lib/ultracart_api/models/conversation_mcp_server_response.rb
|
|
1344
|
+
- lib/ultracart_api/models/conversation_mcp_servers_response.rb
|
|
1339
1345
|
- lib/ultracart_api/models/conversation_message.rb
|
|
1340
1346
|
- lib/ultracart_api/models/conversation_message_translation.rb
|
|
1341
1347
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|