ultracart_api 4.0.36.rc → 4.0.37.rc
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 +6 -4
- data/docs/ConversationAgentAuthResponse.md +2 -0
- data/docs/ConversationMessage.md +3 -1
- data/docs/ConversationMessageTransportStatus.md +20 -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 +228 -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: e48b47e3d743b9314c562b3ea981b605cee052fc7c3b62fa4f7da74fdf4b5f47
|
|
4
|
+
data.tar.gz: 924dcfa7461c242d2a003693373f4392b9e5ab7c30b70991579d19ff7b87f3f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d99937360395a25c786acd38a43836b12ee8b1fb1b98f21baee01105883b62ee9e045e6d8da6c77acefa6055afb4db52b89f985e523aeb6943c957de4bcbfb2
|
|
7
|
+
data.tar.gz: 4f945414957aed966fe9fb356befaf49b9ee2691139834afb5990edc3ed43e5c9389eedd09997ba05ce48beffad263185f6c9d9e0f870cdc6b991fd78bc3987c
|
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.37.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.37.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.37.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.37.rc'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
|
|
|
564
564
|
- [UltracartClient::Conversation](docs/Conversation.md)
|
|
565
565
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
|
566
566
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
|
567
|
+
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
|
567
568
|
- [UltracartClient::ConversationParticipant](docs/ConversationParticipant.md)
|
|
568
569
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
|
569
570
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
|
@@ -1159,6 +1160,7 @@ Not every change is committed to every SDK.
|
|
|
1159
1160
|
|
|
1160
1161
|
| Version | Date | Comments |
|
|
1161
1162
|
| --: | :-: | --- |
|
|
1163
|
+
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
|
1162
1164
|
| 4.0.36-RC | 07/18/2022 | twilio dev |
|
|
1163
1165
|
| 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
|
1164
1166
|
| 4.0.34-RC | 07/11/2022 | Customer API - mergeCustomer method |
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **conversation_participant_arn** | **String** | | [optional] |
|
|
8
|
+
| **conversation_participant_name** | **String** | | [optional] |
|
|
8
9
|
| **jwt** | **String** | | [optional] |
|
|
9
10
|
| **merchant_id** | **String** | | [optional] |
|
|
10
11
|
| **twilio_phone_numbers** | **Array<String>** | | [optional] |
|
|
@@ -17,6 +18,7 @@ require 'ultracart_api'
|
|
|
17
18
|
|
|
18
19
|
instance = UltracartClient::ConversationAgentAuthResponse.new(
|
|
19
20
|
conversation_participant_arn: null,
|
|
21
|
+
conversation_participant_name: null,
|
|
20
22
|
jwt: null,
|
|
21
23
|
merchant_id: null,
|
|
22
24
|
twilio_phone_numbers: null,
|
data/docs/ConversationMessage.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **body** | **String** | | [optional] |
|
|
10
10
|
| **media_urls** | **Array<String>** | | [optional] |
|
|
11
11
|
| **message_dts** | **String** | Message date/time | [optional] |
|
|
12
|
+
| **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = UltracartClient::ConversationMessage.new(
|
|
|
20
21
|
author_conversation_participant_name: null,
|
|
21
22
|
body: null,
|
|
22
23
|
media_urls: null,
|
|
23
|
-
message_dts: null
|
|
24
|
+
message_dts: null,
|
|
25
|
+
transport_statuses: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::ConversationMessageTransportStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **conversation_participant_arn** | **String** | | [optional] |
|
|
8
|
+
| **status** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::ConversationMessageTransportStatus.new(
|
|
16
|
+
conversation_participant_arn: null,
|
|
17
|
+
status: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -17,6 +17,8 @@ module UltracartClient
|
|
|
17
17
|
class ConversationAgentAuthResponse
|
|
18
18
|
attr_accessor :conversation_participant_arn
|
|
19
19
|
|
|
20
|
+
attr_accessor :conversation_participant_name
|
|
21
|
+
|
|
20
22
|
attr_accessor :jwt
|
|
21
23
|
|
|
22
24
|
attr_accessor :merchant_id
|
|
@@ -29,6 +31,7 @@ module UltracartClient
|
|
|
29
31
|
def self.attribute_map
|
|
30
32
|
{
|
|
31
33
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
|
34
|
+
:'conversation_participant_name' => :'conversation_participant_name',
|
|
32
35
|
:'jwt' => :'jwt',
|
|
33
36
|
:'merchant_id' => :'merchant_id',
|
|
34
37
|
:'twilio_phone_numbers' => :'twilio_phone_numbers',
|
|
@@ -45,6 +48,7 @@ module UltracartClient
|
|
|
45
48
|
def self.openapi_types
|
|
46
49
|
{
|
|
47
50
|
:'conversation_participant_arn' => :'String',
|
|
51
|
+
:'conversation_participant_name' => :'String',
|
|
48
52
|
:'jwt' => :'String',
|
|
49
53
|
:'merchant_id' => :'String',
|
|
50
54
|
:'twilio_phone_numbers' => :'Array<String>',
|
|
@@ -77,6 +81,10 @@ module UltracartClient
|
|
|
77
81
|
self.conversation_participant_arn = attributes[:'conversation_participant_arn']
|
|
78
82
|
end
|
|
79
83
|
|
|
84
|
+
if attributes.key?(:'conversation_participant_name')
|
|
85
|
+
self.conversation_participant_name = attributes[:'conversation_participant_name']
|
|
86
|
+
end
|
|
87
|
+
|
|
80
88
|
if attributes.key?(:'jwt')
|
|
81
89
|
self.jwt = attributes[:'jwt']
|
|
82
90
|
end
|
|
@@ -115,6 +123,7 @@ module UltracartClient
|
|
|
115
123
|
return true if self.equal?(o)
|
|
116
124
|
self.class == o.class &&
|
|
117
125
|
conversation_participant_arn == o.conversation_participant_arn &&
|
|
126
|
+
conversation_participant_name == o.conversation_participant_name &&
|
|
118
127
|
jwt == o.jwt &&
|
|
119
128
|
merchant_id == o.merchant_id &&
|
|
120
129
|
twilio_phone_numbers == o.twilio_phone_numbers &&
|
|
@@ -130,7 +139,7 @@ module UltracartClient
|
|
|
130
139
|
# Calculates hash code according to all attributes.
|
|
131
140
|
# @return [Integer] Hash code
|
|
132
141
|
def hash
|
|
133
|
-
[conversation_participant_arn, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
|
|
142
|
+
[conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
|
|
134
143
|
end
|
|
135
144
|
|
|
136
145
|
# Builds the object from hash
|
|
@@ -26,6 +26,8 @@ module UltracartClient
|
|
|
26
26
|
# Message date/time
|
|
27
27
|
attr_accessor :message_dts
|
|
28
28
|
|
|
29
|
+
attr_accessor :transport_statuses
|
|
30
|
+
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
32
|
def self.attribute_map
|
|
31
33
|
{
|
|
@@ -33,7 +35,8 @@ module UltracartClient
|
|
|
33
35
|
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
|
34
36
|
:'body' => :'body',
|
|
35
37
|
:'media_urls' => :'media_urls',
|
|
36
|
-
:'message_dts' => :'message_dts'
|
|
38
|
+
:'message_dts' => :'message_dts',
|
|
39
|
+
:'transport_statuses' => :'transport_statuses'
|
|
37
40
|
}
|
|
38
41
|
end
|
|
39
42
|
|
|
@@ -49,7 +52,8 @@ module UltracartClient
|
|
|
49
52
|
:'author_conversation_participant_name' => :'String',
|
|
50
53
|
:'body' => :'String',
|
|
51
54
|
:'media_urls' => :'Array<String>',
|
|
52
|
-
:'message_dts' => :'String'
|
|
55
|
+
:'message_dts' => :'String',
|
|
56
|
+
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -95,6 +99,12 @@ module UltracartClient
|
|
|
95
99
|
if attributes.key?(:'message_dts')
|
|
96
100
|
self.message_dts = attributes[:'message_dts']
|
|
97
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'transport_statuses')
|
|
104
|
+
if (value = attributes[:'transport_statuses']).is_a?(Array)
|
|
105
|
+
self.transport_statuses = value
|
|
106
|
+
end
|
|
107
|
+
end
|
|
98
108
|
end
|
|
99
109
|
|
|
100
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,7 +129,8 @@ module UltracartClient
|
|
|
119
129
|
author_conversation_participant_name == o.author_conversation_participant_name &&
|
|
120
130
|
body == o.body &&
|
|
121
131
|
media_urls == o.media_urls &&
|
|
122
|
-
message_dts == o.message_dts
|
|
132
|
+
message_dts == o.message_dts &&
|
|
133
|
+
transport_statuses == o.transport_statuses
|
|
123
134
|
end
|
|
124
135
|
|
|
125
136
|
# @see the `==` method
|
|
@@ -131,7 +142,7 @@ module UltracartClient
|
|
|
131
142
|
# Calculates hash code according to all attributes.
|
|
132
143
|
# @return [Integer] Hash code
|
|
133
144
|
def hash
|
|
134
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts].hash
|
|
145
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses].hash
|
|
135
146
|
end
|
|
136
147
|
|
|
137
148
|
# Builds the object from hash
|
|
@@ -0,0 +1,228 @@
|
|
|
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 ConversationMessageTransportStatus
|
|
18
|
+
attr_accessor :conversation_participant_arn
|
|
19
|
+
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'conversation_participant_arn' => :'conversation_participant_arn',
|
|
26
|
+
:'status' => :'status'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
|
31
|
+
def self.acceptable_attributes
|
|
32
|
+
attribute_map.values
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.openapi_types
|
|
37
|
+
{
|
|
38
|
+
:'conversation_participant_arn' => :'String',
|
|
39
|
+
:'status' => :'String'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.openapi_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationMessageTransportStatus` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationMessageTransportStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'conversation_participant_arn')
|
|
65
|
+
self.conversation_participant_arn = attributes[:'conversation_participant_arn']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'status')
|
|
69
|
+
self.status = attributes[:'status']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
invalid_properties = Array.new
|
|
77
|
+
invalid_properties
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Check to see if the all the properties in the model are valid
|
|
81
|
+
# @return true if the model is valid
|
|
82
|
+
def valid?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
conversation_participant_arn == o.conversation_participant_arn &&
|
|
92
|
+
status == o.status
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @see the `==` method
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def eql?(o)
|
|
98
|
+
self == o
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
def hash
|
|
104
|
+
[conversation_participant_arn, status].hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def self.build_from_hash(attributes)
|
|
111
|
+
new.build_from_hash(attributes)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Builds the object from hash
|
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
+
# @return [Object] Returns the model itself
|
|
117
|
+
def build_from_hash(attributes)
|
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
122
|
+
self.send("#{key}=", nil)
|
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
124
|
+
# check to ensure the input is an array given that the attribute
|
|
125
|
+
# is documented as an array but the input is not
|
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
128
|
+
end
|
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
self
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Deserializes the data based on type
|
|
138
|
+
# @param string type Data type
|
|
139
|
+
# @param string value Value to be deserialized
|
|
140
|
+
# @return [Object] Deserialized data
|
|
141
|
+
def _deserialize(type, value)
|
|
142
|
+
case type.to_sym
|
|
143
|
+
when :Time
|
|
144
|
+
Time.parse(value)
|
|
145
|
+
when :Date
|
|
146
|
+
Date.parse(value)
|
|
147
|
+
when :String
|
|
148
|
+
value.to_s
|
|
149
|
+
when :Integer
|
|
150
|
+
value.to_i
|
|
151
|
+
when :Float
|
|
152
|
+
value.to_f
|
|
153
|
+
when :Boolean
|
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
155
|
+
true
|
|
156
|
+
else
|
|
157
|
+
false
|
|
158
|
+
end
|
|
159
|
+
when :Object
|
|
160
|
+
# generic object (usually a Hash), return directly
|
|
161
|
+
value
|
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
|
168
|
+
{}.tap do |hash|
|
|
169
|
+
value.each do |k, v|
|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
else # model
|
|
174
|
+
# models (e.g. Pet) or oneOf
|
|
175
|
+
klass = UltracartClient.const_get(type)
|
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
|
+
if value.nil?
|
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
hash[param] = _to_hash(value)
|
|
204
|
+
end
|
|
205
|
+
hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Outputs non-array value in the form of hash
|
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
210
|
+
# @param [Object] value Any valid value
|
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
|
212
|
+
def _to_hash(value)
|
|
213
|
+
if value.is_a?(Array)
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
215
|
+
elsif value.is_a?(Hash)
|
|
216
|
+
{}.tap do |hash|
|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
218
|
+
end
|
|
219
|
+
elsif value.respond_to? :to_hash
|
|
220
|
+
value.to_hash
|
|
221
|
+
else
|
|
222
|
+
value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
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: 4.0.
|
|
4
|
+
version: 4.0.37.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-07-
|
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -186,6 +186,7 @@ files:
|
|
|
186
186
|
- docs/ConversationAgentAuthResponse.md
|
|
187
187
|
- docs/ConversationApi.md
|
|
188
188
|
- docs/ConversationMessage.md
|
|
189
|
+
- docs/ConversationMessageTransportStatus.md
|
|
189
190
|
- docs/ConversationParticipant.md
|
|
190
191
|
- docs/ConversationStartRequest.md
|
|
191
192
|
- docs/ConversationStartResponse.md
|
|
@@ -864,6 +865,7 @@ files:
|
|
|
864
865
|
- lib/ultracart_api/models/conversation.rb
|
|
865
866
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
|
866
867
|
- lib/ultracart_api/models/conversation_message.rb
|
|
868
|
+
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
|
867
869
|
- lib/ultracart_api/models/conversation_participant.rb
|
|
868
870
|
- lib/ultracart_api/models/conversation_start_request.rb
|
|
869
871
|
- lib/ultracart_api/models/conversation_start_response.rb
|