ultracart_api 4.1.82 → 4.1.83
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 +3 -2
- data/docs/AutoOrderItemCancelRequest.md +3 -1
- data/docs/ConversationAgentStatusEvent.md +2 -0
- data/docs/ConversationPbxCallAgent.md +2 -0
- data/lib/ultracart_api/models/auto_order_item_cancel_request.rb +14 -2
- data/lib/ultracart_api/models/conversation_agent_status_event.rb +11 -1
- data/lib/ultracart_api/models/conversation_pbx_call_agent.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1177adf96617a66dfc650d8b776952341ecbb35bf8b47565f0599b9492d757c6
|
|
4
|
+
data.tar.gz: 61faba8f4763badcfcfec6426d61af2364af770e6e7ada5b1bc12b9864adb9e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ae50759ae7726bf29ab35e75bf4aa900237e044b7761043eadd89977f33dc154bdc0d8c01ab841c1f97765e376488b01901d72e10fef8fd572545ae63c46803
|
|
7
|
+
data.tar.gz: 0f165c9562b4c27849ac7511e63514deea937bcab786ca240fa4ac5b90b7d4e6302ba8887df4bf0846fd60ef8766b497d06f755ae9a07aec75118b5a2ac1fe20
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
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.1.
|
|
10
|
+
- Package version: 4.1.83
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.83'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -1728,6 +1728,7 @@ Not every change is committed to every SDK.
|
|
|
1728
1728
|
|
|
1729
1729
|
| Version | Date | Comments |
|
|
1730
1730
|
| --: | :-: | --- |
|
|
1731
|
+
| 4.1.83 | 04/29/2026 | AO support for item appending on cancel request, order payment method test routing on hold release |
|
|
1731
1732
|
| 4.1.82 | 04/27/2026 | converation - agent status and availability |
|
|
1732
1733
|
| 4.1.81 | 04/27/2026 | conversations - agent status and availability |
|
|
1733
1734
|
| 4.1.80 | 04/22/2026 | customer - e.164 read only fields on billing/shipping child objects |
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
7
|
+
| **append_items** | [**Array<AutoOrderItem>**](AutoOrderItem.md) | Specifying these items allows for an easier immutable item contact. Validation will occur before any operations take place. After the end/remove operation is successful, append these additional item(s) to the auto order. The changes will be available in the response if the expansion includes items. | [optional] |
|
|
8
|
+
| **auto_order_item_oid** | **Integer** | Optional tiebreaker when more than one item on the auto order shares the same original_item_id. When present, the item with this oid is targeted and its original_item_id must match the URL path parameter (safety check). Leave unset for the common case of a unique original_item_id. For reference the order_item.item_reference_oid is the same value as auto_order_item.auto_order_item_oid UNLESS the a manual edit took place AFTER the original order was placed. | [optional] |
|
|
8
9
|
| **mode** | **String** | Cancellation mode. 'end' soft-cancels the item by setting no_order_after_dts to the current time, preserving the row for reporting. 'remove' hard-deletes the item from the auto order. Defaults to 'end' (the less destructive option) when omitted. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
require 'ultracart_api'
|
|
14
15
|
|
|
15
16
|
instance = UltracartClient::AutoOrderItemCancelRequest.new(
|
|
17
|
+
append_items: null,
|
|
16
18
|
auto_order_item_oid: null,
|
|
17
19
|
mode: null
|
|
18
20
|
)
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **agent_identifier** | **String** | Agent identifier — voice_identity for PBX (e.g. 'client:login'), participant_arn for chat, synthetic 'ai:<user_id>' for AI flag events. Stable across an agent's events; participates in DDB pk and GSI1 sk. | [optional] |
|
|
7
8
|
| **agent_name** | **String** | Agent display name at the time of the event | [optional] |
|
|
8
9
|
| **agent_type** | **String** | Agent type | [optional] |
|
|
9
10
|
| **agent_user_id** | **String** | Agent user id (links across channels) | [optional] |
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
require 'ultracart_api'
|
|
28
29
|
|
|
29
30
|
instance = UltracartClient::ConversationAgentStatusEvent.new(
|
|
31
|
+
agent_identifier: null,
|
|
30
32
|
agent_name: null,
|
|
31
33
|
agent_type: null,
|
|
32
34
|
agent_user_id: null,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **agent_extension** | **String** | Agent's phone extension | [optional] |
|
|
8
8
|
| **agent_id** | **String** | Unique identifier for the agent | [optional] |
|
|
9
9
|
| **agent_name** | **String** | Display name of the agent | [optional] |
|
|
10
|
+
| **agent_user_id** | **String** | UltraCart user id for the agent (denormalized at index time so reporting endpoints can join on agent_user_id without translating from the agent_id login). | [optional] |
|
|
10
11
|
| **answered** | **Boolean** | Whether the agent answered the call | [optional] |
|
|
11
12
|
| **call_sid** | **String** | Twilio call SID for the agent's call leg | [optional] |
|
|
12
13
|
| **joined_at_dts** | **String** | Timestamp when the agent joined the call | [optional] |
|
|
@@ -23,6 +24,7 @@ instance = UltracartClient::ConversationPbxCallAgent.new(
|
|
|
23
24
|
agent_extension: null,
|
|
24
25
|
agent_id: null,
|
|
25
26
|
agent_name: null,
|
|
27
|
+
agent_user_id: null,
|
|
26
28
|
answered: null,
|
|
27
29
|
call_sid: null,
|
|
28
30
|
joined_at_dts: null,
|
|
@@ -15,7 +15,10 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class AutoOrderItemCancelRequest
|
|
18
|
-
#
|
|
18
|
+
# Specifying these items allows for an easier immutable item contact. Validation will occur before any operations take place. After the end/remove operation is successful, append these additional item(s) to the auto order. The changes will be available in the response if the expansion includes items.
|
|
19
|
+
attr_accessor :append_items
|
|
20
|
+
|
|
21
|
+
# Optional tiebreaker when more than one item on the auto order shares the same original_item_id. When present, the item with this oid is targeted and its original_item_id must match the URL path parameter (safety check). Leave unset for the common case of a unique original_item_id. For reference the order_item.item_reference_oid is the same value as auto_order_item.auto_order_item_oid UNLESS the a manual edit took place AFTER the original order was placed.
|
|
19
22
|
attr_accessor :auto_order_item_oid
|
|
20
23
|
|
|
21
24
|
# Cancellation mode. 'end' soft-cancels the item by setting no_order_after_dts to the current time, preserving the row for reporting. 'remove' hard-deletes the item from the auto order. Defaults to 'end' (the less destructive option) when omitted.
|
|
@@ -46,6 +49,7 @@ module UltracartClient
|
|
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
50
|
def self.attribute_map
|
|
48
51
|
{
|
|
52
|
+
:'append_items' => :'append_items',
|
|
49
53
|
:'auto_order_item_oid' => :'auto_order_item_oid',
|
|
50
54
|
:'mode' => :'mode'
|
|
51
55
|
}
|
|
@@ -59,6 +63,7 @@ module UltracartClient
|
|
|
59
63
|
# Attribute type mapping.
|
|
60
64
|
def self.openapi_types
|
|
61
65
|
{
|
|
66
|
+
:'append_items' => :'Array<AutoOrderItem>',
|
|
62
67
|
:'auto_order_item_oid' => :'Integer',
|
|
63
68
|
:'mode' => :'String'
|
|
64
69
|
}
|
|
@@ -85,6 +90,12 @@ module UltracartClient
|
|
|
85
90
|
h[k.to_sym] = v
|
|
86
91
|
}
|
|
87
92
|
|
|
93
|
+
if attributes.key?(:'append_items')
|
|
94
|
+
if (value = attributes[:'append_items']).is_a?(Array)
|
|
95
|
+
self.append_items = value
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
88
99
|
if attributes.key?(:'auto_order_item_oid')
|
|
89
100
|
self.auto_order_item_oid = attributes[:'auto_order_item_oid']
|
|
90
101
|
end
|
|
@@ -124,6 +135,7 @@ module UltracartClient
|
|
|
124
135
|
def ==(o)
|
|
125
136
|
return true if self.equal?(o)
|
|
126
137
|
self.class == o.class &&
|
|
138
|
+
append_items == o.append_items &&
|
|
127
139
|
auto_order_item_oid == o.auto_order_item_oid &&
|
|
128
140
|
mode == o.mode
|
|
129
141
|
end
|
|
@@ -137,7 +149,7 @@ module UltracartClient
|
|
|
137
149
|
# Calculates hash code according to all attributes.
|
|
138
150
|
# @return [Integer] Hash code
|
|
139
151
|
def hash
|
|
140
|
-
[auto_order_item_oid, mode].hash
|
|
152
|
+
[append_items, auto_order_item_oid, mode].hash
|
|
141
153
|
end
|
|
142
154
|
|
|
143
155
|
# Builds the object from hash
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class ConversationAgentStatusEvent
|
|
18
|
+
# Agent identifier — voice_identity for PBX (e.g. 'client:login'), participant_arn for chat, synthetic 'ai:<user_id>' for AI flag events. Stable across an agent's events; participates in DDB pk and GSI1 sk.
|
|
19
|
+
attr_accessor :agent_identifier
|
|
20
|
+
|
|
18
21
|
# Agent display name at the time of the event
|
|
19
22
|
attr_accessor :agent_name
|
|
20
23
|
|
|
@@ -88,6 +91,7 @@ module UltracartClient
|
|
|
88
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
92
|
def self.attribute_map
|
|
90
93
|
{
|
|
94
|
+
:'agent_identifier' => :'agent_identifier',
|
|
91
95
|
:'agent_name' => :'agent_name',
|
|
92
96
|
:'agent_type' => :'agent_type',
|
|
93
97
|
:'agent_user_id' => :'agent_user_id',
|
|
@@ -115,6 +119,7 @@ module UltracartClient
|
|
|
115
119
|
# Attribute type mapping.
|
|
116
120
|
def self.openapi_types
|
|
117
121
|
{
|
|
122
|
+
:'agent_identifier' => :'String',
|
|
118
123
|
:'agent_name' => :'String',
|
|
119
124
|
:'agent_type' => :'String',
|
|
120
125
|
:'agent_user_id' => :'String',
|
|
@@ -155,6 +160,10 @@ module UltracartClient
|
|
|
155
160
|
h[k.to_sym] = v
|
|
156
161
|
}
|
|
157
162
|
|
|
163
|
+
if attributes.key?(:'agent_identifier')
|
|
164
|
+
self.agent_identifier = attributes[:'agent_identifier']
|
|
165
|
+
end
|
|
166
|
+
|
|
158
167
|
if attributes.key?(:'agent_name')
|
|
159
168
|
self.agent_name = attributes[:'agent_name']
|
|
160
169
|
end
|
|
@@ -358,6 +367,7 @@ module UltracartClient
|
|
|
358
367
|
def ==(o)
|
|
359
368
|
return true if self.equal?(o)
|
|
360
369
|
self.class == o.class &&
|
|
370
|
+
agent_identifier == o.agent_identifier &&
|
|
361
371
|
agent_name == o.agent_name &&
|
|
362
372
|
agent_type == o.agent_type &&
|
|
363
373
|
agent_user_id == o.agent_user_id &&
|
|
@@ -385,7 +395,7 @@ module UltracartClient
|
|
|
385
395
|
# Calculates hash code according to all attributes.
|
|
386
396
|
# @return [Integer] Hash code
|
|
387
397
|
def hash
|
|
388
|
-
[agent_name, agent_type, agent_user_id, channel, custom_status_name, custom_status_uuid, duration_in_previous_seconds, event_dts, event_uuid, merchant_id, new_routing_effect, new_status, parent_merchant_id, previous_routing_effect, previous_status, trigger].hash
|
|
398
|
+
[agent_identifier, agent_name, agent_type, agent_user_id, channel, custom_status_name, custom_status_uuid, duration_in_previous_seconds, event_dts, event_uuid, merchant_id, new_routing_effect, new_status, parent_merchant_id, previous_routing_effect, previous_status, trigger].hash
|
|
389
399
|
end
|
|
390
400
|
|
|
391
401
|
# Builds the object from hash
|
|
@@ -24,6 +24,9 @@ module UltracartClient
|
|
|
24
24
|
# Display name of the agent
|
|
25
25
|
attr_accessor :agent_name
|
|
26
26
|
|
|
27
|
+
# UltraCart user id for the agent (denormalized at index time so reporting endpoints can join on agent_user_id without translating from the agent_id login).
|
|
28
|
+
attr_accessor :agent_user_id
|
|
29
|
+
|
|
27
30
|
# Whether the agent answered the call
|
|
28
31
|
attr_accessor :answered
|
|
29
32
|
|
|
@@ -48,6 +51,7 @@ module UltracartClient
|
|
|
48
51
|
:'agent_extension' => :'agent_extension',
|
|
49
52
|
:'agent_id' => :'agent_id',
|
|
50
53
|
:'agent_name' => :'agent_name',
|
|
54
|
+
:'agent_user_id' => :'agent_user_id',
|
|
51
55
|
:'answered' => :'answered',
|
|
52
56
|
:'call_sid' => :'call_sid',
|
|
53
57
|
:'joined_at_dts' => :'joined_at_dts',
|
|
@@ -68,6 +72,7 @@ module UltracartClient
|
|
|
68
72
|
:'agent_extension' => :'String',
|
|
69
73
|
:'agent_id' => :'String',
|
|
70
74
|
:'agent_name' => :'String',
|
|
75
|
+
:'agent_user_id' => :'String',
|
|
71
76
|
:'answered' => :'Boolean',
|
|
72
77
|
:'call_sid' => :'String',
|
|
73
78
|
:'joined_at_dts' => :'String',
|
|
@@ -110,6 +115,10 @@ module UltracartClient
|
|
|
110
115
|
self.agent_name = attributes[:'agent_name']
|
|
111
116
|
end
|
|
112
117
|
|
|
118
|
+
if attributes.key?(:'agent_user_id')
|
|
119
|
+
self.agent_user_id = attributes[:'agent_user_id']
|
|
120
|
+
end
|
|
121
|
+
|
|
113
122
|
if attributes.key?(:'answered')
|
|
114
123
|
self.answered = attributes[:'answered']
|
|
115
124
|
end
|
|
@@ -156,6 +165,7 @@ module UltracartClient
|
|
|
156
165
|
agent_extension == o.agent_extension &&
|
|
157
166
|
agent_id == o.agent_id &&
|
|
158
167
|
agent_name == o.agent_name &&
|
|
168
|
+
agent_user_id == o.agent_user_id &&
|
|
159
169
|
answered == o.answered &&
|
|
160
170
|
call_sid == o.call_sid &&
|
|
161
171
|
joined_at_dts == o.joined_at_dts &&
|
|
@@ -173,7 +183,7 @@ module UltracartClient
|
|
|
173
183
|
# Calculates hash code according to all attributes.
|
|
174
184
|
# @return [Integer] Hash code
|
|
175
185
|
def hash
|
|
176
|
-
[agent_extension, agent_id, agent_name, answered, call_sid, joined_at_dts, left_at_dts, role, worker_sid].hash
|
|
186
|
+
[agent_extension, agent_id, agent_name, agent_user_id, answered, call_sid, joined_at_dts, left_at_dts, role, worker_sid].hash
|
|
177
187
|
end
|
|
178
188
|
|
|
179
189
|
# Builds the object from hash
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.83
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|