ultracart_api 3.10.100 → 3.10.101

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa3cd13b2b1796aaebb1ce203e4ac7a73af7fb0630ecce7330be57ed12d07fbe
4
- data.tar.gz: aa51e0b4b4a39eb265f532bb1d203be3890c5bf6364d39b58abf3da45c4df4c5
3
+ metadata.gz: df381b20d7dc7891c8a806ff6b964c7c3a27a11d7f340bc1a6b3b1dea532924d
4
+ data.tar.gz: faa0ecc0a9595d17cf9f4b306215d42ad0d9cfe665d0bbf05b37839f3ef15af3
5
5
  SHA512:
6
- metadata.gz: 5bb7b52a83f3d97456aa1b0b6b79f1b59bf086f8a033f5dda1d7cf08e34bb6f5c904c1d22c38645e645e76ce76b7ef25cd81389a598f9eb95a53295e82b8ffb0
7
- data.tar.gz: 5ea73e27a15deb65597c853d43aabf675e0f107ab15fd4d9cdfbf14820439209ace8039bf4e2f43d8ca9dccaf7ea3db8951172495d05ce8888b7964d2a417679
6
+ metadata.gz: e97e65bf3bb4381ff8678bfc9e666333b72250045a2310046790bc94bc1551c2093cdd2462ffd4ce28c7ce05a126011324cbd45d54f1e6672e0a0c02c32a081d
7
+ data.tar.gz: d1ed6e13b537c943bb28c09fcc53808923a237c99d78ebcc9b40849a1df91d999236b7bcd62f3a85d099d8ac5acac174e43743fba4073a4007ceb9e0f47a3eb0
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.100
10
+ - Package version: 3.10.101
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.100.gem
27
+ gem install ./ultracart_api-3.10.101.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.100.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.101.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.100'
35
+ gem 'ultracart_api', '~> 3.10.101'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -139,6 +139,7 @@ Class | Method | HTTP request | Description
139
139
  *UltracartClient::ConversationApi* | [**get_conversation**](docs/ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
140
140
  *UltracartClient::ConversationApi* | [**get_conversation_canned_messages**](docs/ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code
141
141
  *UltracartClient::ConversationApi* | [**get_conversation_context**](docs/ConversationApi.md#get_conversation_context) | **PUT** /conversation/conversations/{conversation_uuid}/context | Get a webchat conversation context
142
+ *UltracartClient::ConversationApi* | [**get_conversation_department_member_list**](docs/ConversationApi.md#get_conversation_department_member_list) | **GET** /conversation/department_members | Retrieve a list of possible department members
142
143
  *UltracartClient::ConversationApi* | [**get_conversation_departments**](docs/ConversationApi.md#get_conversation_departments) | **GET** /conversation/departments | Retrieve a list of departments ordered by name
143
144
  *UltracartClient::ConversationApi* | [**get_conversation_engagements**](docs/ConversationApi.md#get_conversation_engagements) | **GET** /conversation/engagements | Retrieve a list of engagements ordered by name
144
145
  *UltracartClient::ConversationApi* | [**get_conversation_messages**](docs/ConversationApi.md#get_conversation_messages) | **GET** /conversation/conversations/{conversation_uuid}/messages/{since} | Retrieve conversation messages
@@ -620,6 +621,7 @@ Class | Method | HTTP request | Description
620
621
  - [UltracartClient::ConversationCannedMessagesSearch](docs/ConversationCannedMessagesSearch.md)
621
622
  - [UltracartClient::ConversationDepartment](docs/ConversationDepartment.md)
622
623
  - [UltracartClient::ConversationDepartmentMember](docs/ConversationDepartmentMember.md)
624
+ - [UltracartClient::ConversationDepartmentMembersResponse](docs/ConversationDepartmentMembersResponse.md)
623
625
  - [UltracartClient::ConversationDepartmentResponse](docs/ConversationDepartmentResponse.md)
624
626
  - [UltracartClient::ConversationDepartmentSettings](docs/ConversationDepartmentSettings.md)
625
627
  - [UltracartClient::ConversationDepartmentsResponse](docs/ConversationDepartmentsResponse.md)
@@ -1283,6 +1285,7 @@ Not every change is committed to every SDK.
1283
1285
 
1284
1286
  | Version | Date | Comments |
1285
1287
  | --: | :-: | --- |
1288
+ | 3.10.101 | 01/18/2023 | conversation get dept member list method added |
1286
1289
  | 3.10.100 | 01/18/2023 | conversation dept members |
1287
1290
  | 3.10.99 | 01/18/2023 | channel partner ship to pref desc field |
1288
1291
  | 3.10.98 | 01/17/2023 | changed convo webchat constant |
@@ -12,6 +12,7 @@ Method | HTTP request | Description
12
12
  [**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
13
13
  [**get_conversation_canned_messages**](ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code
14
14
  [**get_conversation_context**](ConversationApi.md#get_conversation_context) | **PUT** /conversation/conversations/{conversation_uuid}/context | Get a webchat conversation context
15
+ [**get_conversation_department_member_list**](ConversationApi.md#get_conversation_department_member_list) | **GET** /conversation/department_members | Retrieve a list of possible department members
15
16
  [**get_conversation_departments**](ConversationApi.md#get_conversation_departments) | **GET** /conversation/departments | Retrieve a list of departments ordered by name
16
17
  [**get_conversation_engagements**](ConversationApi.md#get_conversation_engagements) | **GET** /conversation/engagements | Retrieve a list of engagements ordered by name
17
18
  [**get_conversation_messages**](ConversationApi.md#get_conversation_messages) | **GET** /conversation/conversations/{conversation_uuid}/messages/{since} | Retrieve conversation messages
@@ -419,6 +420,51 @@ Name | Type | Description | Notes
419
420
 
420
421
 
421
422
 
423
+ # **get_conversation_department_member_list**
424
+ > ConversationDepartmentMembersResponse get_conversation_department_member_list
425
+
426
+ Retrieve a list of possible department members
427
+
428
+ Retrieve a list of possible department members
429
+
430
+ ### Example
431
+ ```ruby
432
+ # load the gem
433
+ require 'ultracart_api'
434
+
435
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
436
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
437
+ api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
438
+
439
+
440
+
441
+ begin
442
+ #Retrieve a list of possible department members
443
+ result = api_instance.get_conversation_department_member_list
444
+ p result
445
+ rescue UltracartClient::ApiError => e
446
+ puts "Exception when calling ConversationApi->get_conversation_department_member_list: #{e}"
447
+ end
448
+ ```
449
+
450
+ ### Parameters
451
+ This endpoint does not need any parameter.
452
+
453
+ ### Return type
454
+
455
+ [**ConversationDepartmentMembersResponse**](ConversationDepartmentMembersResponse.md)
456
+
457
+ ### Authorization
458
+
459
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: application/json
464
+ - **Accept**: application/json
465
+
466
+
467
+
422
468
  # **get_conversation_departments**
423
469
  > ConversationDepartmentsResponse get_conversation_departments
424
470
 
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ConversationDepartmentMembersResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **conversation_department_members** | [**Array<ConversationDepartmentMember>**](ConversationDepartmentMember.md) | | [optional]
7
+ **error** | [**Error**](Error.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -453,6 +453,55 @@ module UltracartClient
453
453
  end
454
454
  return data, status_code, headers
455
455
  end
456
+ # Retrieve a list of possible department members
457
+ # Retrieve a list of possible department members
458
+ # @param [Hash] opts the optional parameters
459
+ # @return [ConversationDepartmentMembersResponse]
460
+ def get_conversation_department_member_list(opts = {})
461
+ data, _status_code, _headers = get_conversation_department_member_list_with_http_info(opts)
462
+ data
463
+ end
464
+
465
+ # Retrieve a list of possible department members
466
+ # Retrieve a list of possible department members
467
+ # @param [Hash] opts the optional parameters
468
+ # @return [Array<(ConversationDepartmentMembersResponse, Fixnum, Hash)>] ConversationDepartmentMembersResponse data, response status code and response headers
469
+ def get_conversation_department_member_list_with_http_info(opts = {})
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_department_member_list ...'
472
+ end
473
+ # resource path
474
+ local_var_path = '/conversation/department_members'
475
+
476
+ # query parameters
477
+ query_params = {}
478
+
479
+ # header parameters
480
+ header_params = {}
481
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
482
+ # HTTP header 'Accept' (if needed)
483
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
484
+ # HTTP header 'Content-Type'
485
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
486
+
487
+ # form parameters
488
+ form_params = {}
489
+
490
+ # http body (model)
491
+ post_body = nil
492
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
493
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
494
+ :header_params => header_params,
495
+ :query_params => query_params,
496
+ :form_params => form_params,
497
+ :body => post_body,
498
+ :auth_names => auth_names,
499
+ :return_type => 'ConversationDepartmentMembersResponse')
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug "API called: ConversationApi#get_conversation_department_member_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
502
+ end
503
+ return data, status_code, headers
504
+ end
456
505
  # Retrieve a list of departments ordered by name
457
506
  # Retrieve a list of departments ordered by name
458
507
  # @param [Hash] opts the optional parameters
@@ -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 ConversationDepartmentMembersResponse
17
+ attr_accessor :conversation_department_members
18
+
19
+ attr_accessor :error
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
+ :'conversation_department_members' => :'conversation_department_members',
32
+ :'error' => :'error',
33
+ :'metadata' => :'metadata',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'conversation_department_members' => :'Array<ConversationDepartmentMember>',
43
+ :'error' => :'Error',
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?(:'conversation_department_members')
59
+ if (value = attributes[:'conversation_department_members']).is_a?(Array)
60
+ self.conversation_department_members = value
61
+ end
62
+ end
63
+
64
+ if attributes.has_key?(:'error')
65
+ self.error = attributes[:'error']
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
+ conversation_department_members == o.conversation_department_members &&
100
+ error == o.error &&
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
+ [conversation_department_members, error, 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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.100'
14
+ VERSION = '3.10.101'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -152,6 +152,7 @@ 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
154
  require 'ultracart_api/models/conversation_department_member'
155
+ require 'ultracart_api/models/conversation_department_members_response'
155
156
  require 'ultracart_api/models/conversation_department_response'
156
157
  require 'ultracart_api/models/conversation_department_settings'
157
158
  require 'ultracart_api/models/conversation_departments_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.100
4
+ version: 3.10.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -362,6 +362,7 @@ files:
362
362
  - docs/ConversationCannedMessagesSearch.md
363
363
  - docs/ConversationDepartment.md
364
364
  - docs/ConversationDepartmentMember.md
365
+ - docs/ConversationDepartmentMembersResponse.md
365
366
  - docs/ConversationDepartmentResponse.md
366
367
  - docs/ConversationDepartmentSettings.md
367
368
  - docs/ConversationDepartmentsResponse.md
@@ -1127,6 +1128,7 @@ files:
1127
1128
  - lib/ultracart_api/models/conversation_canned_messages_search.rb
1128
1129
  - lib/ultracart_api/models/conversation_department.rb
1129
1130
  - lib/ultracart_api/models/conversation_department_member.rb
1131
+ - lib/ultracart_api/models/conversation_department_members_response.rb
1130
1132
  - lib/ultracart_api/models/conversation_department_response.rb
1131
1133
  - lib/ultracart_api/models/conversation_department_settings.rb
1132
1134
  - lib/ultracart_api/models/conversation_departments_response.rb