ultracart_api 4.0.115.rc → 4.0.117.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 +7 -4
- data/docs/ChannelPartnerShipToPreference.md +2 -0
- data/docs/ConversationDepartment.md +2 -0
- data/docs/ConversationDepartmentMember.md +22 -0
- data/docs/ConversationDepartmentsResponse.md +2 -0
- data/lib/ultracart_api/models/channel_partner_ship_to_preference.rb +26 -1
- data/lib/ultracart_api/models/conversation_department.rb +12 -1
- data/lib/ultracart_api/models/conversation_department_member.rb +237 -0
- data/lib/ultracart_api/models/conversation_departments_response.rb +10 -1
- 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: a76099b585a593b8878572d15fedb9d7628c3e5e129136167bd536bb601fbfb7
|
4
|
+
data.tar.gz: 780f074334867f4b1c212f6b317add8d381f16c9b5ebbb75351c224f837df2ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7365898eb84fce7f804900ca6847b48e5106c64930765d4eca56e021bdf0f7b5c4fb702ebe870e61a9f78073601bf5bc70379959fe2f5eccd7191a8b5015934c
|
7
|
+
data.tar.gz: c31c91d3950309a41e16e62046c136458b19c2401cac752d166963837b8447cdc09d28580cf3090578eec085f60c202903ce34b5e9f0776e0bf85879464c9832
|
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.117.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.117.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.117.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.117.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -625,6 +625,7 @@ Class | Method | HTTP request | Description
|
|
625
625
|
- [UltracartClient::ConversationCannedMessagesResponse](docs/ConversationCannedMessagesResponse.md)
|
626
626
|
- [UltracartClient::ConversationCannedMessagesSearch](docs/ConversationCannedMessagesSearch.md)
|
627
627
|
- [UltracartClient::ConversationDepartment](docs/ConversationDepartment.md)
|
628
|
+
- [UltracartClient::ConversationDepartmentMember](docs/ConversationDepartmentMember.md)
|
628
629
|
- [UltracartClient::ConversationDepartmentResponse](docs/ConversationDepartmentResponse.md)
|
629
630
|
- [UltracartClient::ConversationDepartmentsResponse](docs/ConversationDepartmentsResponse.md)
|
630
631
|
- [UltracartClient::ConversationEngagement](docs/ConversationEngagement.md)
|
@@ -1290,6 +1291,8 @@ Not every change is committed to every SDK.
|
|
1290
1291
|
|
1291
1292
|
| Version | Date | Comments |
|
1292
1293
|
| --: | :-: | --- |
|
1294
|
+
| 4.0.117-RC | 01/18/2023 | conversation dept members |
|
1295
|
+
| 4.0.116-RC | 01/18/2023 | channel partner ship to pref desc field |
|
1293
1296
|
| 4.0.115-RC | 01/17/2023 | changed convo webchat constant |
|
1294
1297
|
| 4.0.114-RC | 01/17/2023 | support for checkout item properties |
|
1295
1298
|
| 4.0.113-RC | 01/14/2023 | add external_id to the point of sale location object |
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **additional_kit_component_item_ids** | **Array<String>** | Additional item ids to add as kit components to the order with a zero price. | [optional] |
|
8
8
|
| **channel_partner_oid** | **Integer** | The channel partner object identifier this preference is associated with | [optional] |
|
9
9
|
| **channel_partner_ship_to_preference_oid** | **Integer** | Object identifier for the ship to preference | [optional] |
|
10
|
+
| **description** | **String** | A description that is meaningful to the merchant. | [optional] |
|
10
11
|
| **merchant_id** | **String** | The merchant id that owns the channel partner | [optional] |
|
11
12
|
| **return_policy** | **String** | Alternate return policy to print on the packing slip. | [optional] |
|
12
13
|
| **ship_to_edi_code** | **String** | The ship to EDI code that the preferences are for | [optional] |
|
@@ -20,6 +21,7 @@ instance = UltracartClient::ChannelPartnerShipToPreference.new(
|
|
20
21
|
additional_kit_component_item_ids: null,
|
21
22
|
channel_partner_oid: null,
|
22
23
|
channel_partner_ship_to_preference_oid: null,
|
24
|
+
description: null,
|
23
25
|
merchant_id: null,
|
24
26
|
return_policy: null,
|
25
27
|
ship_to_edi_code: null
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **conversation_department_oid** | **Integer** | | [optional] |
|
8
8
|
| **department_name** | **String** | | [optional] |
|
9
|
+
| **members** | [**Array<ConversationDepartmentMember>**](ConversationDepartmentMember.md) | | [optional] |
|
9
10
|
| **merchant_id** | **String** | | [optional] |
|
10
11
|
| **settings** | **Object** | | [optional] |
|
11
12
|
|
@@ -17,6 +18,7 @@ require 'ultracart_api'
|
|
17
18
|
instance = UltracartClient::ConversationDepartment.new(
|
18
19
|
conversation_department_oid: null,
|
19
20
|
department_name: null,
|
21
|
+
members: null,
|
20
22
|
merchant_id: null,
|
21
23
|
settings: null
|
22
24
|
)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# UltracartClient::ConversationDepartmentMember
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **member** | **Boolean** | | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **user_id** | **Integer** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ultracart_api'
|
15
|
+
|
16
|
+
instance = UltracartClient::ConversationDepartmentMember.new(
|
17
|
+
member: null,
|
18
|
+
name: null,
|
19
|
+
user_id: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **conversation_departments** | [**Array<ConversationDepartment>**](ConversationDepartment.md) | | [optional] |
|
8
8
|
| **error** | [**Error**](Error.md) | | [optional] |
|
9
9
|
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **read_only** | **Boolean** | | [optional] |
|
10
11
|
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
12
|
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
13
|
|
@@ -19,6 +20,7 @@ instance = UltracartClient::ConversationDepartmentsResponse.new(
|
|
19
20
|
conversation_departments: null,
|
20
21
|
error: null,
|
21
22
|
metadata: null,
|
23
|
+
read_only: null,
|
22
24
|
success: null,
|
23
25
|
warning: null
|
24
26
|
)
|
@@ -24,6 +24,9 @@ module UltracartClient
|
|
24
24
|
# Object identifier for the ship to preference
|
25
25
|
attr_accessor :channel_partner_ship_to_preference_oid
|
26
26
|
|
27
|
+
# A description that is meaningful to the merchant.
|
28
|
+
attr_accessor :description
|
29
|
+
|
27
30
|
# The merchant id that owns the channel partner
|
28
31
|
attr_accessor :merchant_id
|
29
32
|
|
@@ -39,6 +42,7 @@ module UltracartClient
|
|
39
42
|
:'additional_kit_component_item_ids' => :'additional_kit_component_item_ids',
|
40
43
|
:'channel_partner_oid' => :'channel_partner_oid',
|
41
44
|
:'channel_partner_ship_to_preference_oid' => :'channel_partner_ship_to_preference_oid',
|
45
|
+
:'description' => :'description',
|
42
46
|
:'merchant_id' => :'merchant_id',
|
43
47
|
:'return_policy' => :'return_policy',
|
44
48
|
:'ship_to_edi_code' => :'ship_to_edi_code'
|
@@ -56,6 +60,7 @@ module UltracartClient
|
|
56
60
|
:'additional_kit_component_item_ids' => :'Array<String>',
|
57
61
|
:'channel_partner_oid' => :'Integer',
|
58
62
|
:'channel_partner_ship_to_preference_oid' => :'Integer',
|
63
|
+
:'description' => :'String',
|
59
64
|
:'merchant_id' => :'String',
|
60
65
|
:'return_policy' => :'String',
|
61
66
|
:'ship_to_edi_code' => :'String'
|
@@ -97,6 +102,10 @@ module UltracartClient
|
|
97
102
|
self.channel_partner_ship_to_preference_oid = attributes[:'channel_partner_ship_to_preference_oid']
|
98
103
|
end
|
99
104
|
|
105
|
+
if attributes.key?(:'description')
|
106
|
+
self.description = attributes[:'description']
|
107
|
+
end
|
108
|
+
|
100
109
|
if attributes.key?(:'merchant_id')
|
101
110
|
self.merchant_id = attributes[:'merchant_id']
|
102
111
|
end
|
@@ -114,15 +123,30 @@ module UltracartClient
|
|
114
123
|
# @return Array for valid properties with the reasons
|
115
124
|
def list_invalid_properties
|
116
125
|
invalid_properties = Array.new
|
126
|
+
if !@description.nil? && @description.to_s.length > 100
|
127
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 100.')
|
128
|
+
end
|
129
|
+
|
117
130
|
invalid_properties
|
118
131
|
end
|
119
132
|
|
120
133
|
# Check to see if the all the properties in the model are valid
|
121
134
|
# @return true if the model is valid
|
122
135
|
def valid?
|
136
|
+
return false if !@description.nil? && @description.to_s.length > 100
|
123
137
|
true
|
124
138
|
end
|
125
139
|
|
140
|
+
# Custom attribute writer method with validation
|
141
|
+
# @param [Object] description Value to be assigned
|
142
|
+
def description=(description)
|
143
|
+
if !description.nil? && description.to_s.length > 100
|
144
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 100.'
|
145
|
+
end
|
146
|
+
|
147
|
+
@description = description
|
148
|
+
end
|
149
|
+
|
126
150
|
# Checks equality by comparing each attribute.
|
127
151
|
# @param [Object] Object to be compared
|
128
152
|
def ==(o)
|
@@ -131,6 +155,7 @@ module UltracartClient
|
|
131
155
|
additional_kit_component_item_ids == o.additional_kit_component_item_ids &&
|
132
156
|
channel_partner_oid == o.channel_partner_oid &&
|
133
157
|
channel_partner_ship_to_preference_oid == o.channel_partner_ship_to_preference_oid &&
|
158
|
+
description == o.description &&
|
134
159
|
merchant_id == o.merchant_id &&
|
135
160
|
return_policy == o.return_policy &&
|
136
161
|
ship_to_edi_code == o.ship_to_edi_code
|
@@ -145,7 +170,7 @@ module UltracartClient
|
|
145
170
|
# Calculates hash code according to all attributes.
|
146
171
|
# @return [Integer] Hash code
|
147
172
|
def hash
|
148
|
-
[additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, merchant_id, return_policy, ship_to_edi_code].hash
|
173
|
+
[additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, description, merchant_id, return_policy, ship_to_edi_code].hash
|
149
174
|
end
|
150
175
|
|
151
176
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module UltracartClient
|
|
19
19
|
|
20
20
|
attr_accessor :department_name
|
21
21
|
|
22
|
+
attr_accessor :members
|
23
|
+
|
22
24
|
attr_accessor :merchant_id
|
23
25
|
|
24
26
|
attr_accessor :settings
|
@@ -28,6 +30,7 @@ module UltracartClient
|
|
28
30
|
{
|
29
31
|
:'conversation_department_oid' => :'conversation_department_oid',
|
30
32
|
:'department_name' => :'department_name',
|
33
|
+
:'members' => :'members',
|
31
34
|
:'merchant_id' => :'merchant_id',
|
32
35
|
:'settings' => :'settings'
|
33
36
|
}
|
@@ -43,6 +46,7 @@ module UltracartClient
|
|
43
46
|
{
|
44
47
|
:'conversation_department_oid' => :'Integer',
|
45
48
|
:'department_name' => :'String',
|
49
|
+
:'members' => :'Array<ConversationDepartmentMember>',
|
46
50
|
:'merchant_id' => :'String',
|
47
51
|
:'settings' => :'Object'
|
48
52
|
}
|
@@ -77,6 +81,12 @@ module UltracartClient
|
|
77
81
|
self.department_name = attributes[:'department_name']
|
78
82
|
end
|
79
83
|
|
84
|
+
if attributes.key?(:'members')
|
85
|
+
if (value = attributes[:'members']).is_a?(Array)
|
86
|
+
self.members = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
80
90
|
if attributes.key?(:'merchant_id')
|
81
91
|
self.merchant_id = attributes[:'merchant_id']
|
82
92
|
end
|
@@ -106,6 +116,7 @@ module UltracartClient
|
|
106
116
|
self.class == o.class &&
|
107
117
|
conversation_department_oid == o.conversation_department_oid &&
|
108
118
|
department_name == o.department_name &&
|
119
|
+
members == o.members &&
|
109
120
|
merchant_id == o.merchant_id &&
|
110
121
|
settings == o.settings
|
111
122
|
end
|
@@ -119,7 +130,7 @@ module UltracartClient
|
|
119
130
|
# Calculates hash code according to all attributes.
|
120
131
|
# @return [Integer] Hash code
|
121
132
|
def hash
|
122
|
-
[conversation_department_oid, department_name, merchant_id, settings].hash
|
133
|
+
[conversation_department_oid, department_name, members, merchant_id, settings].hash
|
123
134
|
end
|
124
135
|
|
125
136
|
# Builds the object from hash
|
@@ -0,0 +1,237 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class ConversationDepartmentMember
|
18
|
+
attr_accessor :member
|
19
|
+
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'member' => :'member',
|
28
|
+
:'name' => :'name',
|
29
|
+
:'user_id' => :'user_id'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'member' => :'Boolean',
|
42
|
+
:'name' => :'String',
|
43
|
+
:'user_id' => :'Integer'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationDepartmentMember` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationDepartmentMember`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'member')
|
69
|
+
self.member = attributes[:'member']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'name')
|
73
|
+
self.name = attributes[:'name']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'user_id')
|
77
|
+
self.user_id = attributes[:'user_id']
|
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
|
+
member == o.member &&
|
100
|
+
name == o.name &&
|
101
|
+
user_id == o.user_id
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Integer] Hash code
|
112
|
+
def hash
|
113
|
+
[member, name, user_id].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def self.build_from_hash(attributes)
|
120
|
+
new.build_from_hash(attributes)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def build_from_hash(attributes)
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
self.class.openapi_types.each_pair do |key, type|
|
130
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
+
self.send("#{key}=", nil)
|
132
|
+
elsif type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :Boolean
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = UltracartClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the string representation of the object
|
190
|
+
# @return [String] String presentation of the object
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_body
|
198
|
+
to_hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the object in the form of hash
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
if value.nil?
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
|
+
end
|
211
|
+
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
@@ -21,6 +21,8 @@ module UltracartClient
|
|
21
21
|
|
22
22
|
attr_accessor :metadata
|
23
23
|
|
24
|
+
attr_accessor :read_only
|
25
|
+
|
24
26
|
# Indicates if API call was successful
|
25
27
|
attr_accessor :success
|
26
28
|
|
@@ -32,6 +34,7 @@ module UltracartClient
|
|
32
34
|
:'conversation_departments' => :'conversation_departments',
|
33
35
|
:'error' => :'error',
|
34
36
|
:'metadata' => :'metadata',
|
37
|
+
:'read_only' => :'read_only',
|
35
38
|
:'success' => :'success',
|
36
39
|
:'warning' => :'warning'
|
37
40
|
}
|
@@ -48,6 +51,7 @@ module UltracartClient
|
|
48
51
|
:'conversation_departments' => :'Array<ConversationDepartment>',
|
49
52
|
:'error' => :'Error',
|
50
53
|
:'metadata' => :'ResponseMetadata',
|
54
|
+
:'read_only' => :'Boolean',
|
51
55
|
:'success' => :'Boolean',
|
52
56
|
:'warning' => :'Warning'
|
53
57
|
}
|
@@ -88,6 +92,10 @@ module UltracartClient
|
|
88
92
|
self.metadata = attributes[:'metadata']
|
89
93
|
end
|
90
94
|
|
95
|
+
if attributes.key?(:'read_only')
|
96
|
+
self.read_only = attributes[:'read_only']
|
97
|
+
end
|
98
|
+
|
91
99
|
if attributes.key?(:'success')
|
92
100
|
self.success = attributes[:'success']
|
93
101
|
end
|
@@ -118,6 +126,7 @@ module UltracartClient
|
|
118
126
|
conversation_departments == o.conversation_departments &&
|
119
127
|
error == o.error &&
|
120
128
|
metadata == o.metadata &&
|
129
|
+
read_only == o.read_only &&
|
121
130
|
success == o.success &&
|
122
131
|
warning == o.warning
|
123
132
|
end
|
@@ -131,7 +140,7 @@ module UltracartClient
|
|
131
140
|
# Calculates hash code according to all attributes.
|
132
141
|
# @return [Integer] Hash code
|
133
142
|
def hash
|
134
|
-
[conversation_departments, error, metadata, success, warning].hash
|
143
|
+
[conversation_departments, error, metadata, read_only, success, warning].hash
|
135
144
|
end
|
136
145
|
|
137
146
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -151,6 +151,7 @@ require 'ultracart_api/models/conversation_canned_message_response'
|
|
151
151
|
require 'ultracart_api/models/conversation_canned_messages_response'
|
152
152
|
require 'ultracart_api/models/conversation_canned_messages_search'
|
153
153
|
require 'ultracart_api/models/conversation_department'
|
154
|
+
require 'ultracart_api/models/conversation_department_member'
|
154
155
|
require 'ultracart_api/models/conversation_department_response'
|
155
156
|
require 'ultracart_api/models/conversation_departments_response'
|
156
157
|
require 'ultracart_api/models/conversation_engagement'
|
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.117.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- docs/ConversationCannedMessagesResponse.md
|
202
202
|
- docs/ConversationCannedMessagesSearch.md
|
203
203
|
- docs/ConversationDepartment.md
|
204
|
+
- docs/ConversationDepartmentMember.md
|
204
205
|
- docs/ConversationDepartmentResponse.md
|
205
206
|
- docs/ConversationDepartmentsResponse.md
|
206
207
|
- docs/ConversationEngagement.md
|
@@ -964,6 +965,7 @@ files:
|
|
964
965
|
- lib/ultracart_api/models/conversation_canned_messages_response.rb
|
965
966
|
- lib/ultracart_api/models/conversation_canned_messages_search.rb
|
966
967
|
- lib/ultracart_api/models/conversation_department.rb
|
968
|
+
- lib/ultracart_api/models/conversation_department_member.rb
|
967
969
|
- lib/ultracart_api/models/conversation_department_response.rb
|
968
970
|
- lib/ultracart_api/models/conversation_departments_response.rb
|
969
971
|
- lib/ultracart_api/models/conversation_engagement.rb
|