ultracart_api 3.10.19 → 3.10.20
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 +21 -4
- data/docs/Activity.md +2 -0
- data/docs/Conversation.md +12 -0
- data/docs/ConversationAgentAuthResponse.md +10 -0
- data/docs/ConversationApi.md +310 -0
- data/docs/ConversationMessage.md +12 -0
- data/docs/ConversationParticipant.md +14 -0
- data/docs/ConversationStartRequest.md +9 -0
- data/docs/ConversationStartResponse.md +9 -0
- data/docs/ConversationSummary.md +16 -0
- data/docs/ConversationsResponse.md +12 -0
- data/lib/ultracart_api/api/conversation_api.rb +358 -0
- data/lib/ultracart_api/models/activity.rb +19 -1
- data/lib/ultracart_api/models/conversation.rb +224 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +202 -0
- data/lib/ultracart_api/models/conversation_message.rb +223 -0
- data/lib/ultracart_api/models/conversation_participant.rb +241 -0
- data/lib/ultracart_api/models/conversation_start_request.rb +195 -0
- data/lib/ultracart_api/models/conversation_start_response.rb +193 -0
- data/lib/ultracart_api/models/conversation_summary.rb +257 -0
- data/lib/ultracart_api/models/conversations_response.rb +223 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +20 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3407df30686b8bcf166c2239723bbfcfb8ba661caa2fa9e0d492cac27d67675
|
|
4
|
+
data.tar.gz: b792641f5a5e8e1fc67930c9bf0f1e4763735619ad026b858cb2dbcce92e10cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cdb14ef3dd73b2bdf66aebe8b332b4a3b81035f8d366e7d01a9167de4ff000465dfc57c4c81275806fced8a2505880632759cc0da98f2bf181eafb4694b4f53
|
|
7
|
+
data.tar.gz: e2584db5ed5076bb60bab840eec6b8a578b90a011fef2f0d0d299f04f500758060671b10b2e43e1c50fe50fd0608076679077950cda7d44706fc9ed80f3cb2ac
|
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.20
|
|
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.20.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.20.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.20'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -125,6 +125,12 @@ Class | Method | HTTP request | Description
|
|
|
125
125
|
*UltracartClient::CheckoutApi* | [**setup_browser_key**](docs/CheckoutApi.md#setup_browser_key) | **PUT** /checkout/browser_key | Setup Browser Application
|
|
126
126
|
*UltracartClient::CheckoutApi* | [**update_cart**](docs/CheckoutApi.md#update_cart) | **PUT** /checkout/cart | Update cart
|
|
127
127
|
*UltracartClient::CheckoutApi* | [**validate_cart**](docs/CheckoutApi.md#validate_cart) | **POST** /checkout/cart/validate | Validate
|
|
128
|
+
*UltracartClient::ConversationApi* | [**get_agent_websocket_authorization**](docs/ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
129
|
+
*UltracartClient::ConversationApi* | [**get_conversation**](docs/ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
|
|
130
|
+
*UltracartClient::ConversationApi* | [**get_conversations**](docs/ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
131
|
+
*UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
|
132
|
+
*UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
|
133
|
+
*UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
|
128
134
|
*UltracartClient::CouponApi* | [**delete_coupon**](docs/CouponApi.md#delete_coupon) | **DELETE** /coupon/coupons/{coupon_oid} | Delete a coupon
|
|
129
135
|
*UltracartClient::CouponApi* | [**delete_coupons_by_code**](docs/CouponApi.md#delete_coupons_by_code) | **DELETE** /coupon/coupons/by_code | Deletes multiple coupons
|
|
130
136
|
*UltracartClient::CouponApi* | [**delete_coupons_by_oid**](docs/CouponApi.md#delete_coupons_by_oid) | **DELETE** /coupon/coupons/by_oid | Deletes multiple coupons
|
|
@@ -548,6 +554,14 @@ Class | Method | HTTP request | Description
|
|
|
548
554
|
- [UltracartClient::CheckoutSetupBrowserKeyResponse](docs/CheckoutSetupBrowserKeyResponse.md)
|
|
549
555
|
- [UltracartClient::CheckoutStateProvinceResponse](docs/CheckoutStateProvinceResponse.md)
|
|
550
556
|
- [UltracartClient::CityStateZip](docs/CityStateZip.md)
|
|
557
|
+
- [UltracartClient::Conversation](docs/Conversation.md)
|
|
558
|
+
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
|
559
|
+
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
|
560
|
+
- [UltracartClient::ConversationParticipant](docs/ConversationParticipant.md)
|
|
561
|
+
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
|
562
|
+
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
|
563
|
+
- [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
|
|
564
|
+
- [UltracartClient::ConversationsResponse](docs/ConversationsResponse.md)
|
|
551
565
|
- [UltracartClient::CountriesResponse](docs/CountriesResponse.md)
|
|
552
566
|
- [UltracartClient::Country](docs/Country.md)
|
|
553
567
|
- [UltracartClient::Coupon](docs/Coupon.md)
|
|
@@ -1095,6 +1109,8 @@ Class | Method | HTTP request | Description
|
|
|
1095
1109
|
- checkout_write: Allows you to write checkout information.
|
|
1096
1110
|
- configuration_read: Allows you to read configuration information.
|
|
1097
1111
|
- configuration_write: Allows you to write configuration information.
|
|
1112
|
+
- conversation_read: Allows you to read conversation information.
|
|
1113
|
+
- conversation_write: Allows you to write conversation information.
|
|
1098
1114
|
- coupon_read: Allows you to read coupon information.
|
|
1099
1115
|
- coupon_write: Allows you to write coupon information.
|
|
1100
1116
|
- customer_read: Allows you to read customer information.
|
|
@@ -1134,6 +1150,7 @@ Not every change is committed to every SDK.
|
|
|
1134
1150
|
|
|
1135
1151
|
| Version | Date | Comments |
|
|
1136
1152
|
| --: | :-: | --- |
|
|
1153
|
+
| 3.10.20 | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
|
1137
1154
|
| 3.10.19 | 07/11/2022 | Customer API - mergeCustomer method |
|
|
1138
1155
|
| 3.10.18 | 06/23/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
|
|
1139
1156
|
| 3.10.17 | 06/23/2022 | automation test |
|
data/docs/Activity.md
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**action** | **String** | | [optional]
|
|
7
|
+
**channel** | **String** | | [optional]
|
|
7
8
|
**metric** | **String** | | [optional]
|
|
9
|
+
**storefront_oid** | **Integer** | | [optional]
|
|
8
10
|
**subject** | **String** | | [optional]
|
|
9
11
|
**ts** | **Integer** | | [optional]
|
|
10
12
|
**type** | **String** | | [optional]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::Conversation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_arn** | **String** | | [optional]
|
|
7
|
+
**conversation_uuid** | **String** | | [optional]
|
|
8
|
+
**merchant_id** | **String** | | [optional]
|
|
9
|
+
**messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional]
|
|
10
|
+
**participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UltracartClient::ConversationAgentAuthResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_participant_arn** | **String** | | [optional]
|
|
7
|
+
**jwt** | **String** | | [optional]
|
|
8
|
+
**websocket_url** | **String** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
# UltracartClient::ConversationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**get_agent_websocket_authorization**](ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
8
|
+
[**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
|
|
9
|
+
[**get_conversations**](ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
10
|
+
[**join_conversation**](ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
|
11
|
+
[**leave_conversation**](ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
|
12
|
+
[**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# **get_agent_websocket_authorization**
|
|
16
|
+
> ConversationAgentAuthResponse get_agent_websocket_authorization
|
|
17
|
+
|
|
18
|
+
Get agent websocket authorization
|
|
19
|
+
|
|
20
|
+
Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
```ruby
|
|
24
|
+
# load the gem
|
|
25
|
+
require 'ultracart_api'
|
|
26
|
+
|
|
27
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
28
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
29
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
begin
|
|
34
|
+
#Get agent websocket authorization
|
|
35
|
+
result = api_instance.get_agent_websocket_authorization
|
|
36
|
+
p result
|
|
37
|
+
rescue UltracartClient::ApiError => e
|
|
38
|
+
puts "Exception when calling ConversationApi->get_agent_websocket_authorization: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
This endpoint does not need any parameter.
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
[**ConversationAgentAuthResponse**](ConversationAgentAuthResponse.md)
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# **get_conversation**
|
|
61
|
+
> Conversation get_conversation(conversation_uuid)
|
|
62
|
+
|
|
63
|
+
Retrieve a conversation
|
|
64
|
+
|
|
65
|
+
Retrieve a conversation including the participants and messages
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
```ruby
|
|
69
|
+
# load the gem
|
|
70
|
+
require 'ultracart_api'
|
|
71
|
+
|
|
72
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
73
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
74
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
conversation_uuid = 'conversation_uuid_example' # String |
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
begin
|
|
81
|
+
#Retrieve a conversation
|
|
82
|
+
result = api_instance.get_conversation(conversation_uuid)
|
|
83
|
+
p result
|
|
84
|
+
rescue UltracartClient::ApiError => e
|
|
85
|
+
puts "Exception when calling ConversationApi->get_conversation: #{e}"
|
|
86
|
+
end
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
Name | Type | Description | Notes
|
|
92
|
+
------------- | ------------- | ------------- | -------------
|
|
93
|
+
**conversation_uuid** | **String**| |
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
[**Conversation**](Conversation.md)
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: application/json
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# **get_conversations**
|
|
111
|
+
> ConversationsResponse get_conversations(opts)
|
|
112
|
+
|
|
113
|
+
Retrieve a list of conversation summaries newest to oldest
|
|
114
|
+
|
|
115
|
+
Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
116
|
+
|
|
117
|
+
### Example
|
|
118
|
+
```ruby
|
|
119
|
+
# load the gem
|
|
120
|
+
require 'ultracart_api'
|
|
121
|
+
|
|
122
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
123
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
124
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
opts = {
|
|
128
|
+
_limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
|
|
129
|
+
_offset: 0 # Integer | Pagination of the record set. Offset is a zero based index.
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
begin
|
|
133
|
+
#Retrieve a list of conversation summaries newest to oldest
|
|
134
|
+
result = api_instance.get_conversations(opts)
|
|
135
|
+
p result
|
|
136
|
+
rescue UltracartClient::ApiError => e
|
|
137
|
+
puts "Exception when calling ConversationApi->get_conversations: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
Name | Type | Description | Notes
|
|
144
|
+
------------- | ------------- | ------------- | -------------
|
|
145
|
+
**_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
|
|
146
|
+
**_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
[**ConversationsResponse**](ConversationsResponse.md)
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: application/json
|
|
159
|
+
- **Accept**: application/json
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# **join_conversation**
|
|
164
|
+
> join_conversation(conversation_uuid)
|
|
165
|
+
|
|
166
|
+
Join a conversation
|
|
167
|
+
|
|
168
|
+
Join a conversation
|
|
169
|
+
|
|
170
|
+
### Example
|
|
171
|
+
```ruby
|
|
172
|
+
# load the gem
|
|
173
|
+
require 'ultracart_api'
|
|
174
|
+
|
|
175
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
176
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
177
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
conversation_uuid = 'conversation_uuid_example' # String |
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
begin
|
|
184
|
+
#Join a conversation
|
|
185
|
+
api_instance.join_conversation(conversation_uuid)
|
|
186
|
+
rescue UltracartClient::ApiError => e
|
|
187
|
+
puts "Exception when calling ConversationApi->join_conversation: #{e}"
|
|
188
|
+
end
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Parameters
|
|
192
|
+
|
|
193
|
+
Name | Type | Description | Notes
|
|
194
|
+
------------- | ------------- | ------------- | -------------
|
|
195
|
+
**conversation_uuid** | **String**| |
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
nil (empty response body)
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: application/json
|
|
208
|
+
- **Accept**: application/json
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
# **leave_conversation**
|
|
213
|
+
> leave_conversation(conversation_uuid)
|
|
214
|
+
|
|
215
|
+
Leave a conversation
|
|
216
|
+
|
|
217
|
+
Leave a conversation
|
|
218
|
+
|
|
219
|
+
### Example
|
|
220
|
+
```ruby
|
|
221
|
+
# load the gem
|
|
222
|
+
require 'ultracart_api'
|
|
223
|
+
|
|
224
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
225
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
226
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
conversation_uuid = 'conversation_uuid_example' # String |
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
begin
|
|
233
|
+
#Leave a conversation
|
|
234
|
+
api_instance.leave_conversation(conversation_uuid)
|
|
235
|
+
rescue UltracartClient::ApiError => e
|
|
236
|
+
puts "Exception when calling ConversationApi->leave_conversation: #{e}"
|
|
237
|
+
end
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Parameters
|
|
241
|
+
|
|
242
|
+
Name | Type | Description | Notes
|
|
243
|
+
------------- | ------------- | ------------- | -------------
|
|
244
|
+
**conversation_uuid** | **String**| |
|
|
245
|
+
|
|
246
|
+
### Return type
|
|
247
|
+
|
|
248
|
+
nil (empty response body)
|
|
249
|
+
|
|
250
|
+
### Authorization
|
|
251
|
+
|
|
252
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
253
|
+
|
|
254
|
+
### HTTP request headers
|
|
255
|
+
|
|
256
|
+
- **Content-Type**: application/json
|
|
257
|
+
- **Accept**: application/json
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
# **start_conversation**
|
|
262
|
+
> ConversationStartResponse start_conversation(start_request)
|
|
263
|
+
|
|
264
|
+
Start a conversation
|
|
265
|
+
|
|
266
|
+
Start a new conversation
|
|
267
|
+
|
|
268
|
+
### Example
|
|
269
|
+
```ruby
|
|
270
|
+
# load the gem
|
|
271
|
+
require 'ultracart_api'
|
|
272
|
+
|
|
273
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
274
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
275
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
start_request = UltracartClient::ConversationStartRequest.new # ConversationStartRequest | Start request
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
begin
|
|
282
|
+
#Start a conversation
|
|
283
|
+
result = api_instance.start_conversation(start_request)
|
|
284
|
+
p result
|
|
285
|
+
rescue UltracartClient::ApiError => e
|
|
286
|
+
puts "Exception when calling ConversationApi->start_conversation: #{e}"
|
|
287
|
+
end
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Parameters
|
|
291
|
+
|
|
292
|
+
Name | Type | Description | Notes
|
|
293
|
+
------------- | ------------- | ------------- | -------------
|
|
294
|
+
**start_request** | [**ConversationStartRequest**](ConversationStartRequest.md)| Start request |
|
|
295
|
+
|
|
296
|
+
### Return type
|
|
297
|
+
|
|
298
|
+
[**ConversationStartResponse**](ConversationStartResponse.md)
|
|
299
|
+
|
|
300
|
+
### Authorization
|
|
301
|
+
|
|
302
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
303
|
+
|
|
304
|
+
### HTTP request headers
|
|
305
|
+
|
|
306
|
+
- **Content-Type**: application/json
|
|
307
|
+
- **Accept**: application/json
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationMessage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**author_conversation_participant_arn** | **String** | | [optional]
|
|
7
|
+
**author_conversation_participant_name** | **String** | | [optional]
|
|
8
|
+
**body** | **String** | | [optional]
|
|
9
|
+
**media_urls** | **Array<String>** | | [optional]
|
|
10
|
+
**message_dts** | **String** | Message date/time | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# UltracartClient::ConversationParticipant
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_participant_arn** | **String** | | [optional]
|
|
7
|
+
**conversation_participant_name** | **String** | | [optional]
|
|
8
|
+
**conversation_participant_uuid** | **String** | | [optional]
|
|
9
|
+
**joined_dts** | **String** | Joined conversation date/time | [optional]
|
|
10
|
+
**last_message_dts** | **String** | Last message date/time | [optional]
|
|
11
|
+
**left_dts** | **String** | Left conversation date/time | [optional]
|
|
12
|
+
**status** | **String** | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# UltracartClient::ConversationStartRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**add_conversation_participant_arns** | **Array<String>** | | [optional]
|
|
7
|
+
**conversation_arn** | **String** | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# UltracartClient::ConversationStartResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_arn** | **String** | | [optional]
|
|
7
|
+
**conversation_uuid** | **String** | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# UltracartClient::ConversationSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_arn** | **String** | | [optional]
|
|
7
|
+
**conversation_uuid** | **String** | | [optional]
|
|
8
|
+
**last_conversation_message_body** | **String** | | [optional]
|
|
9
|
+
**last_conversation_participant_arn** | **String** | | [optional]
|
|
10
|
+
**last_conversation_participant_name** | **String** | | [optional]
|
|
11
|
+
**last_message_dts** | **String** | Last message date/time | [optional]
|
|
12
|
+
**merchant_id** | **String** | | [optional]
|
|
13
|
+
**message_count** | **Integer** | | [optional]
|
|
14
|
+
**unread_messages** | **BOOLEAN** | | [optional]
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversations** | [**Array<ConversationSummary>**](ConversationSummary.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
|
+
|