ultracart_api 3.10.100 → 3.10.102
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 +11 -4
- data/docs/ConversationApi.md +92 -0
- data/docs/ConversationDepartmentMembersResponse.md +12 -0
- data/docs/ConversationDepartmentsResponse.md +0 -1
- data/docs/ConversationPermissions.md +8 -0
- data/docs/ConversationPermissionsResponse.md +12 -0
- data/lib/ultracart_api/api/conversation_api.rb +98 -0
- data/lib/ultracart_api/models/conversation_department_members_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_departments_response.rb +1 -10
- data/lib/ultracart_api/models/conversation_permissions.rb +184 -0
- data/lib/ultracart_api/models/conversation_permissions_response.rb +221 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfbd6a8d99a5ce38ca0499ff43517dd5932f38ab5f8c9aab525d987abbb5ae21
|
|
4
|
+
data.tar.gz: b408435618b214b5c2c812e3eae5a43f33b0782b2bd6f60b01a5137cfd2d42e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e97d3ba5a6fdae56f3b10f0254a91924f93bc173e059be8722e2084bf922686a9f3ceee04fd6826b71172ab6b987bb1943adc6cf1f2415af45d3bbdaad6661a5
|
|
7
|
+
data.tar.gz: '0580653de7588bf1e8a96d9cbbc558f535c14a9ceaba74ffadc59a25a6b01dc9be791c4fc9e3a78f1c0842f67cb66b1e489798297aac6d91ecf4be631e811690'
|
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.102
|
|
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.102.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.102.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.102'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -139,10 +139,12 @@ 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
|
|
145
146
|
*UltracartClient::ConversationApi* | [**get_conversation_multimedia_upload_url**](docs/ConversationApi.md#get_conversation_multimedia_upload_url) | **GET** /conversation/upload_url/{extension} | Get a presigned conersation multimedia upload URL
|
|
147
|
+
*UltracartClient::ConversationApi* | [**get_conversation_permissions**](docs/ConversationApi.md#get_conversation_permissions) | **GET** /conversation/permissions | Retrieve conversation permissions
|
|
146
148
|
*UltracartClient::ConversationApi* | [**get_conversation_webchat_queue_statuses**](docs/ConversationApi.md#get_conversation_webchat_queue_statuses) | **GET** /conversation/conversations/queues/statuses | Retrieve a conversation webchat queue statuses
|
|
147
149
|
*UltracartClient::ConversationApi* | [**get_conversations**](docs/ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
148
150
|
*UltracartClient::ConversationApi* | [**get_conversations_autocomplete**](docs/ConversationApi.md#get_conversations_autocomplete) | **POST** /conversation/conversations/autocomplete | Retrieve a list of matching terms for a search field
|
|
@@ -620,6 +622,7 @@ Class | Method | HTTP request | Description
|
|
|
620
622
|
- [UltracartClient::ConversationCannedMessagesSearch](docs/ConversationCannedMessagesSearch.md)
|
|
621
623
|
- [UltracartClient::ConversationDepartment](docs/ConversationDepartment.md)
|
|
622
624
|
- [UltracartClient::ConversationDepartmentMember](docs/ConversationDepartmentMember.md)
|
|
625
|
+
- [UltracartClient::ConversationDepartmentMembersResponse](docs/ConversationDepartmentMembersResponse.md)
|
|
623
626
|
- [UltracartClient::ConversationDepartmentResponse](docs/ConversationDepartmentResponse.md)
|
|
624
627
|
- [UltracartClient::ConversationDepartmentSettings](docs/ConversationDepartmentSettings.md)
|
|
625
628
|
- [UltracartClient::ConversationDepartmentsResponse](docs/ConversationDepartmentsResponse.md)
|
|
@@ -644,6 +647,8 @@ Class | Method | HTTP request | Description
|
|
|
644
647
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
|
645
648
|
- [UltracartClient::ConversationMultimediaUploadUrlResponse](docs/ConversationMultimediaUploadUrlResponse.md)
|
|
646
649
|
- [UltracartClient::ConversationParticipant](docs/ConversationParticipant.md)
|
|
650
|
+
- [UltracartClient::ConversationPermissions](docs/ConversationPermissions.md)
|
|
651
|
+
- [UltracartClient::ConversationPermissionsResponse](docs/ConversationPermissionsResponse.md)
|
|
647
652
|
- [UltracartClient::ConversationResponse](docs/ConversationResponse.md)
|
|
648
653
|
- [UltracartClient::ConversationSearchRequest](docs/ConversationSearchRequest.md)
|
|
649
654
|
- [UltracartClient::ConversationSearchResponse](docs/ConversationSearchResponse.md)
|
|
@@ -1283,6 +1288,8 @@ Not every change is committed to every SDK.
|
|
|
1283
1288
|
|
|
1284
1289
|
| Version | Date | Comments |
|
|
1285
1290
|
| --: | :-: | --- |
|
|
1291
|
+
| 3.10.102 | 01/19/2023 | convo - getConversationPermissions added |
|
|
1292
|
+
| 3.10.101 | 01/18/2023 | conversation get dept member list method added |
|
|
1286
1293
|
| 3.10.100 | 01/18/2023 | conversation dept members |
|
|
1287
1294
|
| 3.10.99 | 01/18/2023 | channel partner ship to pref desc field |
|
|
1288
1295
|
| 3.10.98 | 01/17/2023 | changed convo webchat constant |
|
data/docs/ConversationApi.md
CHANGED
|
@@ -12,10 +12,12 @@ 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
|
|
18
19
|
[**get_conversation_multimedia_upload_url**](ConversationApi.md#get_conversation_multimedia_upload_url) | **GET** /conversation/upload_url/{extension} | Get a presigned conersation multimedia upload URL
|
|
20
|
+
[**get_conversation_permissions**](ConversationApi.md#get_conversation_permissions) | **GET** /conversation/permissions | Retrieve conversation permissions
|
|
19
21
|
[**get_conversation_webchat_queue_statuses**](ConversationApi.md#get_conversation_webchat_queue_statuses) | **GET** /conversation/conversations/queues/statuses | Retrieve a conversation webchat queue statuses
|
|
20
22
|
[**get_conversations**](ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
21
23
|
[**get_conversations_autocomplete**](ConversationApi.md#get_conversations_autocomplete) | **POST** /conversation/conversations/autocomplete | Retrieve a list of matching terms for a search field
|
|
@@ -419,6 +421,51 @@ Name | Type | Description | Notes
|
|
|
419
421
|
|
|
420
422
|
|
|
421
423
|
|
|
424
|
+
# **get_conversation_department_member_list**
|
|
425
|
+
> ConversationDepartmentMembersResponse get_conversation_department_member_list
|
|
426
|
+
|
|
427
|
+
Retrieve a list of possible department members
|
|
428
|
+
|
|
429
|
+
Retrieve a list of possible department members
|
|
430
|
+
|
|
431
|
+
### Example
|
|
432
|
+
```ruby
|
|
433
|
+
# load the gem
|
|
434
|
+
require 'ultracart_api'
|
|
435
|
+
|
|
436
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
437
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
438
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
begin
|
|
443
|
+
#Retrieve a list of possible department members
|
|
444
|
+
result = api_instance.get_conversation_department_member_list
|
|
445
|
+
p result
|
|
446
|
+
rescue UltracartClient::ApiError => e
|
|
447
|
+
puts "Exception when calling ConversationApi->get_conversation_department_member_list: #{e}"
|
|
448
|
+
end
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Parameters
|
|
452
|
+
This endpoint does not need any parameter.
|
|
453
|
+
|
|
454
|
+
### Return type
|
|
455
|
+
|
|
456
|
+
[**ConversationDepartmentMembersResponse**](ConversationDepartmentMembersResponse.md)
|
|
457
|
+
|
|
458
|
+
### Authorization
|
|
459
|
+
|
|
460
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
461
|
+
|
|
462
|
+
### HTTP request headers
|
|
463
|
+
|
|
464
|
+
- **Content-Type**: application/json
|
|
465
|
+
- **Accept**: application/json
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
422
469
|
# **get_conversation_departments**
|
|
423
470
|
> ConversationDepartmentsResponse get_conversation_departments
|
|
424
471
|
|
|
@@ -616,6 +663,51 @@ Name | Type | Description | Notes
|
|
|
616
663
|
|
|
617
664
|
|
|
618
665
|
|
|
666
|
+
# **get_conversation_permissions**
|
|
667
|
+
> ConversationPermissionsResponse get_conversation_permissions
|
|
668
|
+
|
|
669
|
+
Retrieve conversation permissions
|
|
670
|
+
|
|
671
|
+
Retrieve conversation permissions
|
|
672
|
+
|
|
673
|
+
### Example
|
|
674
|
+
```ruby
|
|
675
|
+
# load the gem
|
|
676
|
+
require 'ultracart_api'
|
|
677
|
+
|
|
678
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
679
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
680
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
begin
|
|
685
|
+
#Retrieve conversation permissions
|
|
686
|
+
result = api_instance.get_conversation_permissions
|
|
687
|
+
p result
|
|
688
|
+
rescue UltracartClient::ApiError => e
|
|
689
|
+
puts "Exception when calling ConversationApi->get_conversation_permissions: #{e}"
|
|
690
|
+
end
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
### Parameters
|
|
694
|
+
This endpoint does not need any parameter.
|
|
695
|
+
|
|
696
|
+
### Return type
|
|
697
|
+
|
|
698
|
+
[**ConversationPermissionsResponse**](ConversationPermissionsResponse.md)
|
|
699
|
+
|
|
700
|
+
### Authorization
|
|
701
|
+
|
|
702
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
703
|
+
|
|
704
|
+
### HTTP request headers
|
|
705
|
+
|
|
706
|
+
- **Content-Type**: application/json
|
|
707
|
+
- **Accept**: application/json
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
619
711
|
# **get_conversation_webchat_queue_statuses**
|
|
620
712
|
> ConversationWebchatQueueStatusesResponse get_conversation_webchat_queue_statuses
|
|
621
713
|
|
|
@@ -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
|
+
|
|
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
|
|
|
6
6
|
**conversation_departments** | [**Array<ConversationDepartment>**](ConversationDepartment.md) | | [optional]
|
|
7
7
|
**error** | [**Error**](Error.md) | | [optional]
|
|
8
8
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
9
|
-
**read_only** | **BOOLEAN** | | [optional]
|
|
10
9
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
11
10
|
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
12
11
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationPermissionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
8
|
+
**permissions** | [**ConversationPermissions**](ConversationPermissions.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
|
|
@@ -670,6 +719,55 @@ module UltracartClient
|
|
|
670
719
|
end
|
|
671
720
|
return data, status_code, headers
|
|
672
721
|
end
|
|
722
|
+
# Retrieve conversation permissions
|
|
723
|
+
# Retrieve conversation permissions
|
|
724
|
+
# @param [Hash] opts the optional parameters
|
|
725
|
+
# @return [ConversationPermissionsResponse]
|
|
726
|
+
def get_conversation_permissions(opts = {})
|
|
727
|
+
data, _status_code, _headers = get_conversation_permissions_with_http_info(opts)
|
|
728
|
+
data
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# Retrieve conversation permissions
|
|
732
|
+
# Retrieve conversation permissions
|
|
733
|
+
# @param [Hash] opts the optional parameters
|
|
734
|
+
# @return [Array<(ConversationPermissionsResponse, Fixnum, Hash)>] ConversationPermissionsResponse data, response status code and response headers
|
|
735
|
+
def get_conversation_permissions_with_http_info(opts = {})
|
|
736
|
+
if @api_client.config.debugging
|
|
737
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_permissions ...'
|
|
738
|
+
end
|
|
739
|
+
# resource path
|
|
740
|
+
local_var_path = '/conversation/permissions'
|
|
741
|
+
|
|
742
|
+
# query parameters
|
|
743
|
+
query_params = {}
|
|
744
|
+
|
|
745
|
+
# header parameters
|
|
746
|
+
header_params = {}
|
|
747
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
748
|
+
# HTTP header 'Accept' (if needed)
|
|
749
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
750
|
+
# HTTP header 'Content-Type'
|
|
751
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
752
|
+
|
|
753
|
+
# form parameters
|
|
754
|
+
form_params = {}
|
|
755
|
+
|
|
756
|
+
# http body (model)
|
|
757
|
+
post_body = nil
|
|
758
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
759
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
760
|
+
:header_params => header_params,
|
|
761
|
+
:query_params => query_params,
|
|
762
|
+
:form_params => form_params,
|
|
763
|
+
:body => post_body,
|
|
764
|
+
:auth_names => auth_names,
|
|
765
|
+
:return_type => 'ConversationPermissionsResponse')
|
|
766
|
+
if @api_client.config.debugging
|
|
767
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
768
|
+
end
|
|
769
|
+
return data, status_code, headers
|
|
770
|
+
end
|
|
673
771
|
# Retrieve a conversation webchat queue statuses
|
|
674
772
|
# Retrieve a conversation webchat queue statuses including agent status and queue entries
|
|
675
773
|
# @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
|
|
@@ -20,8 +20,6 @@ module UltracartClient
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :metadata
|
|
22
22
|
|
|
23
|
-
attr_accessor :read_only
|
|
24
|
-
|
|
25
23
|
# Indicates if API call was successful
|
|
26
24
|
attr_accessor :success
|
|
27
25
|
|
|
@@ -33,7 +31,6 @@ module UltracartClient
|
|
|
33
31
|
:'conversation_departments' => :'conversation_departments',
|
|
34
32
|
:'error' => :'error',
|
|
35
33
|
:'metadata' => :'metadata',
|
|
36
|
-
:'read_only' => :'read_only',
|
|
37
34
|
:'success' => :'success',
|
|
38
35
|
:'warning' => :'warning'
|
|
39
36
|
}
|
|
@@ -45,7 +42,6 @@ module UltracartClient
|
|
|
45
42
|
:'conversation_departments' => :'Array<ConversationDepartment>',
|
|
46
43
|
:'error' => :'Error',
|
|
47
44
|
:'metadata' => :'ResponseMetadata',
|
|
48
|
-
:'read_only' => :'BOOLEAN',
|
|
49
45
|
:'success' => :'BOOLEAN',
|
|
50
46
|
:'warning' => :'Warning'
|
|
51
47
|
}
|
|
@@ -73,10 +69,6 @@ module UltracartClient
|
|
|
73
69
|
self.metadata = attributes[:'metadata']
|
|
74
70
|
end
|
|
75
71
|
|
|
76
|
-
if attributes.has_key?(:'read_only')
|
|
77
|
-
self.read_only = attributes[:'read_only']
|
|
78
|
-
end
|
|
79
|
-
|
|
80
72
|
if attributes.has_key?(:'success')
|
|
81
73
|
self.success = attributes[:'success']
|
|
82
74
|
end
|
|
@@ -107,7 +99,6 @@ module UltracartClient
|
|
|
107
99
|
conversation_departments == o.conversation_departments &&
|
|
108
100
|
error == o.error &&
|
|
109
101
|
metadata == o.metadata &&
|
|
110
|
-
read_only == o.read_only &&
|
|
111
102
|
success == o.success &&
|
|
112
103
|
warning == o.warning
|
|
113
104
|
end
|
|
@@ -121,7 +112,7 @@ module UltracartClient
|
|
|
121
112
|
# Calculates hash code according to all attributes.
|
|
122
113
|
# @return [Fixnum] Hash code
|
|
123
114
|
def hash
|
|
124
|
-
[conversation_departments, error, metadata,
|
|
115
|
+
[conversation_departments, error, metadata, success, warning].hash
|
|
125
116
|
end
|
|
126
117
|
|
|
127
118
|
# Builds the object from hash
|
|
@@ -0,0 +1,184 @@
|
|
|
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 ConversationPermissions
|
|
17
|
+
attr_accessor :edit_settings
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'edit_settings' => :'edit_settings'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute type mapping.
|
|
27
|
+
def self.swagger_types
|
|
28
|
+
{
|
|
29
|
+
:'edit_settings' => :'BOOLEAN'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Initializes the object
|
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return unless attributes.is_a?(Hash)
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
40
|
+
|
|
41
|
+
if attributes.has_key?(:'edit_settings')
|
|
42
|
+
self.edit_settings = attributes[:'edit_settings']
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
47
|
+
# @return Array for valid properties with the reasons
|
|
48
|
+
def list_invalid_properties
|
|
49
|
+
invalid_properties = Array.new
|
|
50
|
+
invalid_properties
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Check to see if the all the properties in the model are valid
|
|
54
|
+
# @return true if the model is valid
|
|
55
|
+
def valid?
|
|
56
|
+
true
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Checks equality by comparing each attribute.
|
|
60
|
+
# @param [Object] Object to be compared
|
|
61
|
+
def ==(o)
|
|
62
|
+
return true if self.equal?(o)
|
|
63
|
+
self.class == o.class &&
|
|
64
|
+
edit_settings == o.edit_settings
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @see the `==` method
|
|
68
|
+
# @param [Object] Object to be compared
|
|
69
|
+
def eql?(o)
|
|
70
|
+
self == o
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Calculates hash code according to all attributes.
|
|
74
|
+
# @return [Fixnum] Hash code
|
|
75
|
+
def hash
|
|
76
|
+
[edit_settings].hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Builds the object from hash
|
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
|
+
# @return [Object] Returns the model itself
|
|
82
|
+
def build_from_hash(attributes)
|
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
|
86
|
+
# check to ensure the input is an array given that the attribute
|
|
87
|
+
# is documented as an array but the input is not
|
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
90
|
+
end
|
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
self
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Deserializes the data based on type
|
|
100
|
+
# @param string type Data type
|
|
101
|
+
# @param string value Value to be deserialized
|
|
102
|
+
# @return [Object] Deserialized data
|
|
103
|
+
def _deserialize(type, value)
|
|
104
|
+
case type.to_sym
|
|
105
|
+
when :DateTime
|
|
106
|
+
DateTime.parse(value)
|
|
107
|
+
when :Date
|
|
108
|
+
Date.parse(value)
|
|
109
|
+
when :String
|
|
110
|
+
value.to_s
|
|
111
|
+
when :Integer
|
|
112
|
+
value.to_i
|
|
113
|
+
when :Float
|
|
114
|
+
value.to_f
|
|
115
|
+
when :BOOLEAN
|
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
117
|
+
true
|
|
118
|
+
else
|
|
119
|
+
false
|
|
120
|
+
end
|
|
121
|
+
when :Object
|
|
122
|
+
# generic object (usually a Hash), return directly
|
|
123
|
+
value
|
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
|
130
|
+
{}.tap do |hash|
|
|
131
|
+
value.each do |k, v|
|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
else # model
|
|
136
|
+
temp_model = UltracartClient.const_get(type).new
|
|
137
|
+
temp_model.build_from_hash(value)
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Returns the string representation of the object
|
|
142
|
+
# @return [String] String presentation of the object
|
|
143
|
+
def to_s
|
|
144
|
+
to_hash.to_s
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
|
149
|
+
def to_body
|
|
150
|
+
to_hash
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Returns the object in the form of hash
|
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
|
155
|
+
def to_hash
|
|
156
|
+
hash = {}
|
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
158
|
+
value = self.send(attr)
|
|
159
|
+
next if value.nil?
|
|
160
|
+
hash[param] = _to_hash(value)
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Outputs non-array value in the form of hash
|
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
167
|
+
# @param [Object] value Any valid value
|
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
|
169
|
+
def _to_hash(value)
|
|
170
|
+
if value.is_a?(Array)
|
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
|
172
|
+
elsif value.is_a?(Hash)
|
|
173
|
+
{}.tap do |hash|
|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
175
|
+
end
|
|
176
|
+
elsif value.respond_to? :to_hash
|
|
177
|
+
value.to_hash
|
|
178
|
+
else
|
|
179
|
+
value
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -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 ConversationPermissionsResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :metadata
|
|
20
|
+
|
|
21
|
+
attr_accessor :permissions
|
|
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
|
+
:'metadata' => :'metadata',
|
|
33
|
+
:'permissions' => :'permissions',
|
|
34
|
+
:'success' => :'success',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'metadata' => :'ResponseMetadata',
|
|
44
|
+
:'permissions' => :'ConversationPermissions',
|
|
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?(:'metadata')
|
|
63
|
+
self.metadata = attributes[:'metadata']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'permissions')
|
|
67
|
+
self.permissions = attributes[:'permissions']
|
|
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
|
+
metadata == o.metadata &&
|
|
99
|
+
permissions == o.permissions &&
|
|
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, metadata, permissions, 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
|
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'
|
|
@@ -176,6 +177,8 @@ require 'ultracart_api/models/conversation_messages_response'
|
|
|
176
177
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
|
177
178
|
require 'ultracart_api/models/conversation_multimedia_upload_url_response'
|
|
178
179
|
require 'ultracart_api/models/conversation_participant'
|
|
180
|
+
require 'ultracart_api/models/conversation_permissions'
|
|
181
|
+
require 'ultracart_api/models/conversation_permissions_response'
|
|
179
182
|
require 'ultracart_api/models/conversation_response'
|
|
180
183
|
require 'ultracart_api/models/conversation_search_request'
|
|
181
184
|
require 'ultracart_api/models/conversation_search_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.102
|
|
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-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -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
|
|
@@ -386,6 +387,8 @@ files:
|
|
|
386
387
|
- docs/ConversationMultimediaUploadUrl.md
|
|
387
388
|
- docs/ConversationMultimediaUploadUrlResponse.md
|
|
388
389
|
- docs/ConversationParticipant.md
|
|
390
|
+
- docs/ConversationPermissions.md
|
|
391
|
+
- docs/ConversationPermissionsResponse.md
|
|
389
392
|
- docs/ConversationResponse.md
|
|
390
393
|
- docs/ConversationSearchRequest.md
|
|
391
394
|
- docs/ConversationSearchResponse.md
|
|
@@ -1127,6 +1130,7 @@ files:
|
|
|
1127
1130
|
- lib/ultracart_api/models/conversation_canned_messages_search.rb
|
|
1128
1131
|
- lib/ultracart_api/models/conversation_department.rb
|
|
1129
1132
|
- lib/ultracart_api/models/conversation_department_member.rb
|
|
1133
|
+
- lib/ultracart_api/models/conversation_department_members_response.rb
|
|
1130
1134
|
- lib/ultracart_api/models/conversation_department_response.rb
|
|
1131
1135
|
- lib/ultracart_api/models/conversation_department_settings.rb
|
|
1132
1136
|
- lib/ultracart_api/models/conversation_departments_response.rb
|
|
@@ -1151,6 +1155,8 @@ files:
|
|
|
1151
1155
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|
|
1152
1156
|
- lib/ultracart_api/models/conversation_multimedia_upload_url_response.rb
|
|
1153
1157
|
- lib/ultracart_api/models/conversation_participant.rb
|
|
1158
|
+
- lib/ultracart_api/models/conversation_permissions.rb
|
|
1159
|
+
- lib/ultracart_api/models/conversation_permissions_response.rb
|
|
1154
1160
|
- lib/ultracart_api/models/conversation_response.rb
|
|
1155
1161
|
- lib/ultracart_api/models/conversation_search_request.rb
|
|
1156
1162
|
- lib/ultracart_api/models/conversation_search_response.rb
|