ultracart_api 4.0.36.rc → 4.0.39.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/AutoOrderItem.md +4 -0
- data/docs/ConversationAgentAuth.md +28 -0
- data/docs/ConversationAgentAuthResponse.md +10 -10
- data/docs/ConversationApi.md +11 -10
- data/docs/ConversationMessage.md +3 -1
- data/docs/ConversationMessageTransportStatus.md +20 -0
- data/docs/ConversationMultimediaUploadUrl.md +20 -0
- data/docs/ConversationMultimediaUploadUrlResponse.md +26 -0
- data/docs/ConversationResponse.md +26 -0
- data/docs/ConversationStartResponse.md +2 -4
- data/docs/EmailCommseqPostcard.md +1 -1
- data/lib/ultracart_api/api/conversation_api.rb +8 -8
- data/lib/ultracart_api/models/auto_order_item.rb +21 -1
- data/lib/ultracart_api/models/conversation_agent_auth.rb +266 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +32 -33
- data/lib/ultracart_api/models/conversation_message.rb +15 -4
- data/lib/ultracart_api/models/conversation_message_transport_status.rb +228 -0
- data/lib/ultracart_api/models/conversation_multimedia_upload_url.rb +228 -0
- data/lib/ultracart_api/models/conversation_multimedia_upload_url_response.rb +256 -0
- data/lib/ultracart_api/models/conversation_response.rb +256 -0
- data/lib/ultracart_api/models/conversation_start_response.rb +7 -16
- data/lib/ultracart_api/models/email_commseq_postcard.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2afae6d4cb49326077cb7026388f479020fffc6857cb1a7478b3a044a8600b6c
|
4
|
+
data.tar.gz: 9494739cc7d3065dca654bd08aeac99e603b1dc678c0f7e8897bae7a428b7b45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6908035700e3811ef04ec77fafaeb8b6af8e947437cb98f126c9426b32e8e16110f952dae467ba534a7a04b814339bc82298e83b46f352b52f7895ae4139123
|
7
|
+
data.tar.gz: d0508988b13bd0a7ffef3b77bd53ea8ff74e30fec28a675842096b56d1fd34dc5b1608d254eb8f3b98d632541bc72eb8e65ab1abdc831cf5d847e7e0f4907af1
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.39.rc
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.39.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.39.rc.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.39.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -562,9 +562,14 @@ Class | Method | HTTP request | Description
|
|
562
562
|
- [UltracartClient::CheckoutStateProvinceResponse](docs/CheckoutStateProvinceResponse.md)
|
563
563
|
- [UltracartClient::CityStateZip](docs/CityStateZip.md)
|
564
564
|
- [UltracartClient::Conversation](docs/Conversation.md)
|
565
|
+
- [UltracartClient::ConversationAgentAuth](docs/ConversationAgentAuth.md)
|
565
566
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
566
567
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
568
|
+
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
569
|
+
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
570
|
+
- [UltracartClient::ConversationMultimediaUploadUrlResponse](docs/ConversationMultimediaUploadUrlResponse.md)
|
567
571
|
- [UltracartClient::ConversationParticipant](docs/ConversationParticipant.md)
|
572
|
+
- [UltracartClient::ConversationResponse](docs/ConversationResponse.md)
|
568
573
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
569
574
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
570
575
|
- [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
|
@@ -1159,6 +1164,9 @@ Not every change is committed to every SDK.
|
|
1159
1164
|
|
1160
1165
|
| Version | Date | Comments |
|
1161
1166
|
| --: | :-: | --- |
|
1167
|
+
| 4.0.39-RC | 07/21/2022 | conversation response types improvements |
|
1168
|
+
| 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
|
1169
|
+
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
1162
1170
|
| 4.0.36-RC | 07/18/2022 | twilio dev |
|
1163
1171
|
| 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
1164
1172
|
| 4.0.34-RC | 07/11/2022 | Customer API - mergeCustomer method |
|
data/docs/AutoOrderItem.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **arbitrary_unit_cost** | **Float** | Arbitrary unit cost that rebills of this item should occur at | [optional] |
|
12
12
|
| **arbitrary_unit_cost_remaining_orders** | **Integer** | The number of rebills to give the arbitrary unit cost on before reverting to normal pricing. | [optional] |
|
13
13
|
| **auto_order_item_oid** | **Integer** | Primary key of AutoOrderItem | [optional] |
|
14
|
+
| **first_order_dts** | **String** | Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet. | [optional] |
|
14
15
|
| **frequency** | **String** | Frequency of the rebill if not a fixed schedule | [optional] |
|
15
16
|
| **future_schedules** | [**Array<AutoOrderItemFutureSchedule>**](AutoOrderItemFutureSchedule.md) | The future rebill schedule for this item up to the next ten rebills | [optional] |
|
16
17
|
| **last_order_dts** | **String** | Date/time of the last order of this item | [optional] |
|
@@ -22,6 +23,7 @@
|
|
22
23
|
| **options** | [**Array<AutoOrderItemOption>**](AutoOrderItemOption.md) | Options associated with this item | [optional] |
|
23
24
|
| **original_item_id** | **String** | The original item id purchased. This item controls scheduling. If you wish to modify a schedule, for example, from monthly to yearly, change this item from your monthly item to your yearly item, and then change the next_shipment_dts to your desired date. | [optional] |
|
24
25
|
| **original_quantity** | **Float** | The original quantity purchased | [optional] |
|
26
|
+
| **paused** | **Boolean** | True if paused. This field is an object instead of a primitive for backwards compatibility. | [optional] |
|
25
27
|
| **paypal_payer_id** | **String** | The PayPal Payer ID tied to this item | [optional] |
|
26
28
|
| **paypal_recurring_payment_profile_id** | **String** | The PayPal Profile ID tied to this item | [optional] |
|
27
29
|
| **preshipment_notice_sent** | **Boolean** | True if the preshipment notice associated with the next rebill has been sent | [optional] |
|
@@ -42,6 +44,7 @@ instance = UltracartClient::AutoOrderItem.new(
|
|
42
44
|
arbitrary_unit_cost: null,
|
43
45
|
arbitrary_unit_cost_remaining_orders: null,
|
44
46
|
auto_order_item_oid: null,
|
47
|
+
first_order_dts: null,
|
45
48
|
frequency: null,
|
46
49
|
future_schedules: null,
|
47
50
|
last_order_dts: null,
|
@@ -53,6 +56,7 @@ instance = UltracartClient::AutoOrderItem.new(
|
|
53
56
|
options: null,
|
54
57
|
original_item_id: null,
|
55
58
|
original_quantity: null,
|
59
|
+
paused: null,
|
56
60
|
paypal_payer_id: null,
|
57
61
|
paypal_recurring_payment_profile_id: null,
|
58
62
|
preshipment_notice_sent: null,
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::ConversationAgentAuth
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation_participant_arn** | **String** | | [optional] |
|
8
|
+
| **conversation_participant_name** | **String** | | [optional] |
|
9
|
+
| **jwt** | **String** | | [optional] |
|
10
|
+
| **merchant_id** | **String** | | [optional] |
|
11
|
+
| **twilio_phone_numbers** | **Array<String>** | | [optional] |
|
12
|
+
| **websocket_url** | **String** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::ConversationAgentAuth.new(
|
20
|
+
conversation_participant_arn: null,
|
21
|
+
conversation_participant_name: null,
|
22
|
+
jwt: null,
|
23
|
+
merchant_id: null,
|
24
|
+
twilio_phone_numbers: null,
|
25
|
+
websocket_url: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **
|
9
|
-
| **
|
10
|
-
| **
|
11
|
-
| **
|
7
|
+
| **agent_auth** | [**ConversationAgentAuth**](ConversationAgentAuth.md) | | [optional] |
|
8
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
9
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
@@ -16,11 +16,11 @@
|
|
16
16
|
require 'ultracart_api'
|
17
17
|
|
18
18
|
instance = UltracartClient::ConversationAgentAuthResponse.new(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
agent_auth: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
24
|
)
|
25
25
|
```
|
26
26
|
|
data/docs/ConversationApi.md
CHANGED
@@ -83,7 +83,7 @@ This endpoint does not need any parameter.
|
|
83
83
|
|
84
84
|
## get_conversation
|
85
85
|
|
86
|
-
> <
|
86
|
+
> <ConversationResponse> get_conversation(conversation_uuid)
|
87
87
|
|
88
88
|
Retrieve a conversation
|
89
89
|
|
@@ -118,7 +118,7 @@ end
|
|
118
118
|
|
119
119
|
This returns an Array which contains the response data, status code and headers.
|
120
120
|
|
121
|
-
> <Array(<
|
121
|
+
> <Array(<ConversationResponse>, Integer, Hash)> get_conversation_with_http_info(conversation_uuid)
|
122
122
|
|
123
123
|
```ruby
|
124
124
|
begin
|
@@ -126,7 +126,7 @@ begin
|
|
126
126
|
data, status_code, headers = api_instance.get_conversation_with_http_info(conversation_uuid)
|
127
127
|
p status_code # => 2xx
|
128
128
|
p headers # => { ... }
|
129
|
-
p data # => <
|
129
|
+
p data # => <ConversationResponse>
|
130
130
|
rescue UltracartClient::ApiError => e
|
131
131
|
puts "Error when calling ConversationApi->get_conversation_with_http_info: #{e}"
|
132
132
|
end
|
@@ -140,7 +140,7 @@ end
|
|
140
140
|
|
141
141
|
### Return type
|
142
142
|
|
143
|
-
[**
|
143
|
+
[**ConversationResponse**](ConversationResponse.md)
|
144
144
|
|
145
145
|
### Authorization
|
146
146
|
|
@@ -154,7 +154,7 @@ end
|
|
154
154
|
|
155
155
|
## get_conversation_multimedia_upload_url
|
156
156
|
|
157
|
-
> get_conversation_multimedia_upload_url(extension)
|
157
|
+
> <ConversationMultimediaUploadUrlResponse> get_conversation_multimedia_upload_url(extension)
|
158
158
|
|
159
159
|
Get a presigned conersation multimedia upload URL
|
160
160
|
|
@@ -178,7 +178,8 @@ extension = 'extension_example' # String |
|
|
178
178
|
|
179
179
|
begin
|
180
180
|
# Get a presigned conersation multimedia upload URL
|
181
|
-
api_instance.get_conversation_multimedia_upload_url(extension)
|
181
|
+
result = api_instance.get_conversation_multimedia_upload_url(extension)
|
182
|
+
p result
|
182
183
|
rescue UltracartClient::ApiError => e
|
183
184
|
puts "Error when calling ConversationApi->get_conversation_multimedia_upload_url: #{e}"
|
184
185
|
end
|
@@ -186,9 +187,9 @@ end
|
|
186
187
|
|
187
188
|
#### Using the get_conversation_multimedia_upload_url_with_http_info variant
|
188
189
|
|
189
|
-
This returns an Array which contains the response data
|
190
|
+
This returns an Array which contains the response data, status code and headers.
|
190
191
|
|
191
|
-
> <Array(
|
192
|
+
> <Array(<ConversationMultimediaUploadUrlResponse>, Integer, Hash)> get_conversation_multimedia_upload_url_with_http_info(extension)
|
192
193
|
|
193
194
|
```ruby
|
194
195
|
begin
|
@@ -196,7 +197,7 @@ begin
|
|
196
197
|
data, status_code, headers = api_instance.get_conversation_multimedia_upload_url_with_http_info(extension)
|
197
198
|
p status_code # => 2xx
|
198
199
|
p headers # => { ... }
|
199
|
-
p data # =>
|
200
|
+
p data # => <ConversationMultimediaUploadUrlResponse>
|
200
201
|
rescue UltracartClient::ApiError => e
|
201
202
|
puts "Error when calling ConversationApi->get_conversation_multimedia_upload_url_with_http_info: #{e}"
|
202
203
|
end
|
@@ -210,7 +211,7 @@ end
|
|
210
211
|
|
211
212
|
### Return type
|
212
213
|
|
213
|
-
|
214
|
+
[**ConversationMultimediaUploadUrlResponse**](ConversationMultimediaUploadUrlResponse.md)
|
214
215
|
|
215
216
|
### Authorization
|
216
217
|
|
data/docs/ConversationMessage.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
| **body** | **String** | | [optional] |
|
10
10
|
| **media_urls** | **Array<String>** | | [optional] |
|
11
11
|
| **message_dts** | **String** | Message date/time | [optional] |
|
12
|
+
| **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -20,7 +21,8 @@ instance = UltracartClient::ConversationMessage.new(
|
|
20
21
|
author_conversation_participant_name: null,
|
21
22
|
body: null,
|
22
23
|
media_urls: null,
|
23
|
-
message_dts: null
|
24
|
+
message_dts: null,
|
25
|
+
transport_statuses: null
|
24
26
|
)
|
25
27
|
```
|
26
28
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ConversationMessageTransportStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation_participant_arn** | **String** | | [optional] |
|
8
|
+
| **status** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ConversationMessageTransportStatus.new(
|
16
|
+
conversation_participant_arn: null,
|
17
|
+
status: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ConversationMultimediaUploadUrl
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **key** | **String** | | [optional] |
|
8
|
+
| **url** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ConversationMultimediaUploadUrl.new(
|
16
|
+
key: null,
|
17
|
+
url: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ConversationMultimediaUploadUrlResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation_multimedia_upload_url** | [**ConversationMultimediaUploadUrl**](ConversationMultimediaUploadUrl.md) | | [optional] |
|
8
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
9
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ConversationMultimediaUploadUrlResponse.new(
|
19
|
+
conversation_multimedia_upload_url: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ConversationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation** | [**Conversation**](Conversation.md) | | [optional] |
|
8
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
9
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ConversationResponse.new(
|
19
|
+
conversation: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -4,8 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **conversation_uuid** | **String** | | [optional] |
|
7
|
+
| **conversation** | [**Conversation**](Conversation.md) | | [optional] |
|
9
8
|
|
10
9
|
## Example
|
11
10
|
|
@@ -13,8 +12,7 @@
|
|
13
12
|
require 'ultracart_api'
|
14
13
|
|
15
14
|
instance = UltracartClient::ConversationStartResponse.new(
|
16
|
-
|
17
|
-
conversation_uuid: null
|
15
|
+
conversation: null
|
18
16
|
)
|
19
17
|
```
|
20
18
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
| **postcard_container_cjson_last_modified_dts** | **String** | Timestamp the last time the container was modified. | [optional] |
|
15
15
|
| **postcard_front_container_cjson** | **String** | Postcard front container cjson | [optional] |
|
16
16
|
| **postcard_front_container_uuid** | **String** | Postcard front container uuid | [optional] |
|
17
|
-
| **screenshot_back_url** | **String** | URL to screenshot of the
|
17
|
+
| **screenshot_back_url** | **String** | URL to screenshot of the front of the postcard | [optional] |
|
18
18
|
| **screenshot_front_url** | **String** | URL to screenshot of the front of the postcard | [optional] |
|
19
19
|
| **storefront_oid** | **Integer** | Storefront oid | [optional] |
|
20
20
|
|
@@ -94,7 +94,7 @@ module UltracartClient
|
|
94
94
|
# Retrieve a conversation including the participants and messages
|
95
95
|
# @param conversation_uuid [String]
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [
|
97
|
+
# @return [ConversationResponse]
|
98
98
|
def get_conversation(conversation_uuid, opts = {})
|
99
99
|
data, _status_code, _headers = get_conversation_with_http_info(conversation_uuid, opts)
|
100
100
|
data
|
@@ -104,7 +104,7 @@ module UltracartClient
|
|
104
104
|
# Retrieve a conversation including the participants and messages
|
105
105
|
# @param conversation_uuid [String]
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<(
|
107
|
+
# @return [Array<(ConversationResponse, Integer, Hash)>] ConversationResponse data, response status code and response headers
|
108
108
|
def get_conversation_with_http_info(conversation_uuid, opts = {})
|
109
109
|
if @api_client.config.debugging
|
110
110
|
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation ...'
|
@@ -132,7 +132,7 @@ module UltracartClient
|
|
132
132
|
post_body = opts[:debug_body]
|
133
133
|
|
134
134
|
# return_type
|
135
|
-
return_type = opts[:debug_return_type] || '
|
135
|
+
return_type = opts[:debug_return_type] || 'ConversationResponse'
|
136
136
|
|
137
137
|
# auth_names
|
138
138
|
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
@@ -158,17 +158,17 @@ module UltracartClient
|
|
158
158
|
# Get a presigned conersation multimedia upload URL
|
159
159
|
# @param extension [String]
|
160
160
|
# @param [Hash] opts the optional parameters
|
161
|
-
# @return [
|
161
|
+
# @return [ConversationMultimediaUploadUrlResponse]
|
162
162
|
def get_conversation_multimedia_upload_url(extension, opts = {})
|
163
|
-
get_conversation_multimedia_upload_url_with_http_info(extension, opts)
|
164
|
-
|
163
|
+
data, _status_code, _headers = get_conversation_multimedia_upload_url_with_http_info(extension, opts)
|
164
|
+
data
|
165
165
|
end
|
166
166
|
|
167
167
|
# Get a presigned conersation multimedia upload URL
|
168
168
|
# Get a presigned conersation multimedia upload URL
|
169
169
|
# @param extension [String]
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
|
-
# @return [Array<(
|
171
|
+
# @return [Array<(ConversationMultimediaUploadUrlResponse, Integer, Hash)>] ConversationMultimediaUploadUrlResponse data, response status code and response headers
|
172
172
|
def get_conversation_multimedia_upload_url_with_http_info(extension, opts = {})
|
173
173
|
if @api_client.config.debugging
|
174
174
|
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_multimedia_upload_url ...'
|
@@ -196,7 +196,7 @@ module UltracartClient
|
|
196
196
|
post_body = opts[:debug_body]
|
197
197
|
|
198
198
|
# return_type
|
199
|
-
return_type = opts[:debug_return_type]
|
199
|
+
return_type = opts[:debug_return_type] || 'ConversationMultimediaUploadUrlResponse'
|
200
200
|
|
201
201
|
# auth_names
|
202
202
|
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
@@ -36,6 +36,9 @@ module UltracartClient
|
|
36
36
|
# Primary key of AutoOrderItem
|
37
37
|
attr_accessor :auto_order_item_oid
|
38
38
|
|
39
|
+
# Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
40
|
+
attr_accessor :first_order_dts
|
41
|
+
|
39
42
|
# Frequency of the rebill if not a fixed schedule
|
40
43
|
attr_accessor :frequency
|
41
44
|
|
@@ -69,6 +72,9 @@ module UltracartClient
|
|
69
72
|
# The original quantity purchased
|
70
73
|
attr_accessor :original_quantity
|
71
74
|
|
75
|
+
# True if paused. This field is an object instead of a primitive for backwards compatibility.
|
76
|
+
attr_accessor :paused
|
77
|
+
|
72
78
|
# The PayPal Payer ID tied to this item
|
73
79
|
attr_accessor :paypal_payer_id
|
74
80
|
|
@@ -118,6 +124,7 @@ module UltracartClient
|
|
118
124
|
:'arbitrary_unit_cost' => :'arbitrary_unit_cost',
|
119
125
|
:'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
|
120
126
|
:'auto_order_item_oid' => :'auto_order_item_oid',
|
127
|
+
:'first_order_dts' => :'first_order_dts',
|
121
128
|
:'frequency' => :'frequency',
|
122
129
|
:'future_schedules' => :'future_schedules',
|
123
130
|
:'last_order_dts' => :'last_order_dts',
|
@@ -129,6 +136,7 @@ module UltracartClient
|
|
129
136
|
:'options' => :'options',
|
130
137
|
:'original_item_id' => :'original_item_id',
|
131
138
|
:'original_quantity' => :'original_quantity',
|
139
|
+
:'paused' => :'paused',
|
132
140
|
:'paypal_payer_id' => :'paypal_payer_id',
|
133
141
|
:'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
|
134
142
|
:'preshipment_notice_sent' => :'preshipment_notice_sent',
|
@@ -153,6 +161,7 @@ module UltracartClient
|
|
153
161
|
:'arbitrary_unit_cost' => :'Float',
|
154
162
|
:'arbitrary_unit_cost_remaining_orders' => :'Integer',
|
155
163
|
:'auto_order_item_oid' => :'Integer',
|
164
|
+
:'first_order_dts' => :'String',
|
156
165
|
:'frequency' => :'String',
|
157
166
|
:'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
|
158
167
|
:'last_order_dts' => :'String',
|
@@ -164,6 +173,7 @@ module UltracartClient
|
|
164
173
|
:'options' => :'Array<AutoOrderItemOption>',
|
165
174
|
:'original_item_id' => :'String',
|
166
175
|
:'original_quantity' => :'Float',
|
176
|
+
:'paused' => :'Boolean',
|
167
177
|
:'paypal_payer_id' => :'String',
|
168
178
|
:'paypal_recurring_payment_profile_id' => :'String',
|
169
179
|
:'preshipment_notice_sent' => :'Boolean',
|
@@ -222,6 +232,10 @@ module UltracartClient
|
|
222
232
|
self.auto_order_item_oid = attributes[:'auto_order_item_oid']
|
223
233
|
end
|
224
234
|
|
235
|
+
if attributes.key?(:'first_order_dts')
|
236
|
+
self.first_order_dts = attributes[:'first_order_dts']
|
237
|
+
end
|
238
|
+
|
225
239
|
if attributes.key?(:'frequency')
|
226
240
|
self.frequency = attributes[:'frequency']
|
227
241
|
end
|
@@ -270,6 +284,10 @@ module UltracartClient
|
|
270
284
|
self.original_quantity = attributes[:'original_quantity']
|
271
285
|
end
|
272
286
|
|
287
|
+
if attributes.key?(:'paused')
|
288
|
+
self.paused = attributes[:'paused']
|
289
|
+
end
|
290
|
+
|
273
291
|
if attributes.key?(:'paypal_payer_id')
|
274
292
|
self.paypal_payer_id = attributes[:'paypal_payer_id']
|
275
293
|
end
|
@@ -332,6 +350,7 @@ module UltracartClient
|
|
332
350
|
arbitrary_unit_cost == o.arbitrary_unit_cost &&
|
333
351
|
arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
|
334
352
|
auto_order_item_oid == o.auto_order_item_oid &&
|
353
|
+
first_order_dts == o.first_order_dts &&
|
335
354
|
frequency == o.frequency &&
|
336
355
|
future_schedules == o.future_schedules &&
|
337
356
|
last_order_dts == o.last_order_dts &&
|
@@ -343,6 +362,7 @@ module UltracartClient
|
|
343
362
|
options == o.options &&
|
344
363
|
original_item_id == o.original_item_id &&
|
345
364
|
original_quantity == o.original_quantity &&
|
365
|
+
paused == o.paused &&
|
346
366
|
paypal_payer_id == o.paypal_payer_id &&
|
347
367
|
paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
|
348
368
|
preshipment_notice_sent == o.preshipment_notice_sent &&
|
@@ -360,7 +380,7 @@ module UltracartClient
|
|
360
380
|
# Calculates hash code according to all attributes.
|
361
381
|
# @return [Integer] Hash code
|
362
382
|
def hash
|
363
|
-
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
383
|
+
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
364
384
|
end
|
365
385
|
|
366
386
|
# Builds the object from hash
|