ultracart_api 3.10.21 → 3.10.22
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/ConversationAgentAuthResponse.md +1 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/ConversationMessageTransportStatus.md +9 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +10 -1
- data/lib/ultracart_api/models/conversation_message.rb +15 -4
- data/lib/ultracart_api/models/conversation_message_transport_status.rb +193 -0
- 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: 05722e44889d98eac4a8db4a0227dbbdc2469b7f727d73163c519669929de1a2
|
4
|
+
data.tar.gz: c3cd123c695a10b0febf241f82343e52c426df8726ce0dc7dbfdb7e3e1c60961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5374b87901b42001e7faadcd3d128bc1a5e60b8335427af72749745773ad0fa909f5b19638bee04173e8c3c304a7a1895dc5547832e5ba20503685eeb29becad
|
7
|
+
data.tar.gz: c3e2892579f7146cebdab8f6769ddc20e006f7eb7ce50cfdf7be19fb0e6a5cfa9b2271585c8a9f5f0904d3f488d4ba7146917b0ba59211e1939372126df91a6a
|
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.22
|
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.22.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.22.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.22'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -558,6 +558,7 @@ Class | Method | HTTP request | Description
|
|
558
558
|
- [UltracartClient::Conversation](docs/Conversation.md)
|
559
559
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
560
560
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
561
|
+
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
561
562
|
- [UltracartClient::ConversationParticipant](docs/ConversationParticipant.md)
|
562
563
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
563
564
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
@@ -1151,6 +1152,7 @@ Not every change is committed to every SDK.
|
|
1151
1152
|
|
1152
1153
|
| Version | Date | Comments |
|
1153
1154
|
| --: | :-: | --- |
|
1155
|
+
| 3.10.22 | 07/20/2022 | conversation participant name added |
|
1154
1156
|
| 3.10.21 | 07/18/2022 | twilio dev |
|
1155
1157
|
| 3.10.20 | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
1156
1158
|
| 3.10.19 | 07/11/2022 | Customer API - mergeCustomer method |
|
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**conversation_participant_arn** | **String** | | [optional]
|
7
|
+
**conversation_participant_name** | **String** | | [optional]
|
7
8
|
**jwt** | **String** | | [optional]
|
8
9
|
**merchant_id** | **String** | | [optional]
|
9
10
|
**twilio_phone_numbers** | **Array<String>** | | [optional]
|
data/docs/ConversationMessage.md
CHANGED
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
8
8
|
**body** | **String** | | [optional]
|
9
9
|
**media_urls** | **Array<String>** | | [optional]
|
10
10
|
**message_dts** | **String** | Message date/time | [optional]
|
11
|
+
**transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
|
11
12
|
|
12
13
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# UltracartClient::ConversationMessageTransportStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**conversation_participant_arn** | **String** | | [optional]
|
7
|
+
**status** | **String** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -16,6 +16,8 @@ module UltracartClient
|
|
16
16
|
class ConversationAgentAuthResponse
|
17
17
|
attr_accessor :conversation_participant_arn
|
18
18
|
|
19
|
+
attr_accessor :conversation_participant_name
|
20
|
+
|
19
21
|
attr_accessor :jwt
|
20
22
|
|
21
23
|
attr_accessor :merchant_id
|
@@ -28,6 +30,7 @@ module UltracartClient
|
|
28
30
|
def self.attribute_map
|
29
31
|
{
|
30
32
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
33
|
+
:'conversation_participant_name' => :'conversation_participant_name',
|
31
34
|
:'jwt' => :'jwt',
|
32
35
|
:'merchant_id' => :'merchant_id',
|
33
36
|
:'twilio_phone_numbers' => :'twilio_phone_numbers',
|
@@ -39,6 +42,7 @@ module UltracartClient
|
|
39
42
|
def self.swagger_types
|
40
43
|
{
|
41
44
|
:'conversation_participant_arn' => :'String',
|
45
|
+
:'conversation_participant_name' => :'String',
|
42
46
|
:'jwt' => :'String',
|
43
47
|
:'merchant_id' => :'String',
|
44
48
|
:'twilio_phone_numbers' => :'Array<String>',
|
@@ -58,6 +62,10 @@ module UltracartClient
|
|
58
62
|
self.conversation_participant_arn = attributes[:'conversation_participant_arn']
|
59
63
|
end
|
60
64
|
|
65
|
+
if attributes.has_key?(:'conversation_participant_name')
|
66
|
+
self.conversation_participant_name = attributes[:'conversation_participant_name']
|
67
|
+
end
|
68
|
+
|
61
69
|
if attributes.has_key?(:'jwt')
|
62
70
|
self.jwt = attributes[:'jwt']
|
63
71
|
end
|
@@ -96,6 +104,7 @@ module UltracartClient
|
|
96
104
|
return true if self.equal?(o)
|
97
105
|
self.class == o.class &&
|
98
106
|
conversation_participant_arn == o.conversation_participant_arn &&
|
107
|
+
conversation_participant_name == o.conversation_participant_name &&
|
99
108
|
jwt == o.jwt &&
|
100
109
|
merchant_id == o.merchant_id &&
|
101
110
|
twilio_phone_numbers == o.twilio_phone_numbers &&
|
@@ -111,7 +120,7 @@ module UltracartClient
|
|
111
120
|
# Calculates hash code according to all attributes.
|
112
121
|
# @return [Fixnum] Hash code
|
113
122
|
def hash
|
114
|
-
[conversation_participant_arn, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
|
123
|
+
[conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
|
115
124
|
end
|
116
125
|
|
117
126
|
# Builds the object from hash
|
@@ -25,6 +25,8 @@ module UltracartClient
|
|
25
25
|
# Message date/time
|
26
26
|
attr_accessor :message_dts
|
27
27
|
|
28
|
+
attr_accessor :transport_statuses
|
29
|
+
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
31
|
def self.attribute_map
|
30
32
|
{
|
@@ -32,7 +34,8 @@ module UltracartClient
|
|
32
34
|
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
33
35
|
:'body' => :'body',
|
34
36
|
:'media_urls' => :'media_urls',
|
35
|
-
:'message_dts' => :'message_dts'
|
37
|
+
:'message_dts' => :'message_dts',
|
38
|
+
:'transport_statuses' => :'transport_statuses'
|
36
39
|
}
|
37
40
|
end
|
38
41
|
|
@@ -43,7 +46,8 @@ module UltracartClient
|
|
43
46
|
:'author_conversation_participant_name' => :'String',
|
44
47
|
:'body' => :'String',
|
45
48
|
:'media_urls' => :'Array<String>',
|
46
|
-
:'message_dts' => :'String'
|
49
|
+
:'message_dts' => :'String',
|
50
|
+
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
@@ -76,6 +80,12 @@ module UltracartClient
|
|
76
80
|
if attributes.has_key?(:'message_dts')
|
77
81
|
self.message_dts = attributes[:'message_dts']
|
78
82
|
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'transport_statuses')
|
85
|
+
if (value = attributes[:'transport_statuses']).is_a?(Array)
|
86
|
+
self.transport_statuses = value
|
87
|
+
end
|
88
|
+
end
|
79
89
|
end
|
80
90
|
|
81
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -100,7 +110,8 @@ module UltracartClient
|
|
100
110
|
author_conversation_participant_name == o.author_conversation_participant_name &&
|
101
111
|
body == o.body &&
|
102
112
|
media_urls == o.media_urls &&
|
103
|
-
message_dts == o.message_dts
|
113
|
+
message_dts == o.message_dts &&
|
114
|
+
transport_statuses == o.transport_statuses
|
104
115
|
end
|
105
116
|
|
106
117
|
# @see the `==` method
|
@@ -112,7 +123,7 @@ module UltracartClient
|
|
112
123
|
# Calculates hash code according to all attributes.
|
113
124
|
# @return [Fixnum] Hash code
|
114
125
|
def hash
|
115
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts].hash
|
126
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses].hash
|
116
127
|
end
|
117
128
|
|
118
129
|
# Builds the object from hash
|
@@ -0,0 +1,193 @@
|
|
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 ConversationMessageTransportStatus
|
17
|
+
attr_accessor :conversation_participant_arn
|
18
|
+
|
19
|
+
attr_accessor :status
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'conversation_participant_arn' => :'conversation_participant_arn',
|
25
|
+
:'status' => :'status'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'conversation_participant_arn' => :'String',
|
33
|
+
:'status' => :'String'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'conversation_participant_arn')
|
46
|
+
self.conversation_participant_arn = attributes[:'conversation_participant_arn']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'status')
|
50
|
+
self.status = attributes[:'status']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
conversation_participant_arn == o.conversation_participant_arn &&
|
73
|
+
status == o.status
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[conversation_participant_arn, status].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -136,6 +136,7 @@ require 'ultracart_api/models/city_state_zip'
|
|
136
136
|
require 'ultracart_api/models/conversation'
|
137
137
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
138
138
|
require 'ultracart_api/models/conversation_message'
|
139
|
+
require 'ultracart_api/models/conversation_message_transport_status'
|
139
140
|
require 'ultracart_api/models/conversation_participant'
|
140
141
|
require 'ultracart_api/models/conversation_start_request'
|
141
142
|
require 'ultracart_api/models/conversation_start_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.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -346,6 +346,7 @@ files:
|
|
346
346
|
- docs/ConversationAgentAuthResponse.md
|
347
347
|
- docs/ConversationApi.md
|
348
348
|
- docs/ConversationMessage.md
|
349
|
+
- docs/ConversationMessageTransportStatus.md
|
349
350
|
- docs/ConversationParticipant.md
|
350
351
|
- docs/ConversationStartRequest.md
|
351
352
|
- docs/ConversationStartResponse.md
|
@@ -1025,6 +1026,7 @@ files:
|
|
1025
1026
|
- lib/ultracart_api/models/conversation.rb
|
1026
1027
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1027
1028
|
- lib/ultracart_api/models/conversation_message.rb
|
1029
|
+
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1028
1030
|
- lib/ultracart_api/models/conversation_participant.rb
|
1029
1031
|
- lib/ultracart_api/models/conversation_start_request.rb
|
1030
1032
|
- lib/ultracart_api/models/conversation_start_response.rb
|