ultracart_api 3.11.32 → 3.11.34
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 +6 -4
- data/docs/ConversationAgentProfile.md +3 -0
- data/docs/CouponFreeItemWithItemPurchaseAndFreeShipping.md +1 -0
- data/docs/CouponPercentOffItemsAndFreeShipping.md +1 -0
- data/lib/ultracart_api/models/conversation_agent_profile.rb +38 -4
- data/lib/ultracart_api/models/coupon_free_item_with_item_purchase_and_free_shipping.rb +16 -4
- data/lib/ultracart_api/models/coupon_percent_off_items_and_free_shipping.rb +16 -4
- 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: 5d9dd10c57529f46db1e3e6c20255aee480d66195a0ed8d4533e99ecdb4c2298
|
|
4
|
+
data.tar.gz: 8169e071cd3d7e95be459369a881d4e78fff82c25673a742a7bc31e9acda09b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77b9ffadcd36162a43caef78eb0b3f50a156da820c90359b649278f6e36e97e701273e24f0e1d5e76755527cf39c6f0171861df115d259ba76893e824e198893
|
|
7
|
+
data.tar.gz: faa2cccfb8b349e20d84aca8e3cf888336674fbff25a718e9df3c6460e6e51dee32283611128ccd53166d2d677be01a51e9769f366d454f6dfac08d054fd82fc
|
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.11.
|
|
10
|
+
- Package version: 3.11.34
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
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.11.
|
|
27
|
+
gem install ./ultracart_api-3.11.34.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.34.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.11.
|
|
35
|
+
gem 'ultracart_api', '~> 3.11.34'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -1601,6 +1601,8 @@ Not every change is committed to every SDK.
|
|
|
1601
1601
|
|
|
1602
1602
|
| Version | Date | Comments |
|
|
1603
1603
|
| --: | :-: | --- |
|
|
1604
|
+
| 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
|
|
1605
|
+
| 3.11.33 | 11/26/2025 | conversation - AI agent profile fields |
|
|
1604
1606
|
| 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
|
1605
1607
|
| 3.11.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
|
|
1606
1608
|
| 3.11.30 | 11/19/2025 | conversation - AI agent MCP server configuration methods |
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**ai_chat_instructions** | **String** | Additional instructions for this AI when handle web chats | [optional]
|
|
8
8
|
**ai_persona** | **String** | Persona of this AI agent | [optional]
|
|
9
9
|
**ai_sms_instructions** | **String** | Additional instructions for this AI when handle SMS messages | [optional]
|
|
10
|
+
**ai_ticket_instructions** | **String** | Additional instructions for this AI when handling ticket draft replies | [optional]
|
|
10
11
|
**chat_limit** | **Integer** | The number of engagement chats that can be pushed on them at any given time. | [optional]
|
|
11
12
|
**default_language_iso_code** | **String** | The default language the agent is chatting in | [optional]
|
|
12
13
|
**default_status** | **String** | Default status when the agent loads conversations app. | [optional]
|
|
@@ -15,5 +16,7 @@ Name | Type | Description | Notes
|
|
|
15
16
|
**profile_image_upload_key** | **String** | An upload key used to update the profile image. | [optional]
|
|
16
17
|
**profile_image_url** | **String** | Their current profile image URL | [optional]
|
|
17
18
|
**user_id** | **Integer** | User ID associated with the agent. Populated by getAgentProfiles call only. | [optional]
|
|
19
|
+
**zohodesk_classifications** | **Array<String>** | Restrict this agent to drafting replies only to tickets with these classifications | [optional]
|
|
20
|
+
**zohodesk_departments** | **Array<String>** | Restrict this agent to drafting replies only to these department ids | [optional]
|
|
18
21
|
|
|
19
22
|
|
|
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**limit** | **Integer** | The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though. | [optional]
|
|
8
8
|
**match_required_purchase_item_to_free_item** | **BOOLEAN** | If true then the free item is matched 1:1 with the free item in the list. | [optional]
|
|
9
9
|
**required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional]
|
|
10
|
+
**shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
|
|
10
11
|
|
|
11
12
|
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
|
|
9
9
|
**item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
|
|
10
10
|
**items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
|
|
11
|
+
**shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
|
|
11
12
|
|
|
12
13
|
|
|
@@ -26,6 +26,9 @@ module UltracartClient
|
|
|
26
26
|
# Additional instructions for this AI when handle SMS messages
|
|
27
27
|
attr_accessor :ai_sms_instructions
|
|
28
28
|
|
|
29
|
+
# Additional instructions for this AI when handling ticket draft replies
|
|
30
|
+
attr_accessor :ai_ticket_instructions
|
|
31
|
+
|
|
29
32
|
# The number of engagement chats that can be pushed on them at any given time.
|
|
30
33
|
attr_accessor :chat_limit
|
|
31
34
|
|
|
@@ -50,6 +53,12 @@ module UltracartClient
|
|
|
50
53
|
# User ID associated with the agent. Populated by getAgentProfiles call only.
|
|
51
54
|
attr_accessor :user_id
|
|
52
55
|
|
|
56
|
+
# Restrict this agent to drafting replies only to tickets with these classifications
|
|
57
|
+
attr_accessor :zohodesk_classifications
|
|
58
|
+
|
|
59
|
+
# Restrict this agent to drafting replies only to these department ids
|
|
60
|
+
attr_accessor :zohodesk_departments
|
|
61
|
+
|
|
53
62
|
class EnumAttributeValidator
|
|
54
63
|
attr_reader :datatype
|
|
55
64
|
attr_reader :allowable_values
|
|
@@ -79,6 +88,7 @@ module UltracartClient
|
|
|
79
88
|
:'ai_chat_instructions' => :'ai_chat_instructions',
|
|
80
89
|
:'ai_persona' => :'ai_persona',
|
|
81
90
|
:'ai_sms_instructions' => :'ai_sms_instructions',
|
|
91
|
+
:'ai_ticket_instructions' => :'ai_ticket_instructions',
|
|
82
92
|
:'chat_limit' => :'chat_limit',
|
|
83
93
|
:'default_language_iso_code' => :'default_language_iso_code',
|
|
84
94
|
:'default_status' => :'default_status',
|
|
@@ -86,7 +96,9 @@ module UltracartClient
|
|
|
86
96
|
:'name' => :'name',
|
|
87
97
|
:'profile_image_upload_key' => :'profile_image_upload_key',
|
|
88
98
|
:'profile_image_url' => :'profile_image_url',
|
|
89
|
-
:'user_id' => :'user_id'
|
|
99
|
+
:'user_id' => :'user_id',
|
|
100
|
+
:'zohodesk_classifications' => :'zohodesk_classifications',
|
|
101
|
+
:'zohodesk_departments' => :'zohodesk_departments'
|
|
90
102
|
}
|
|
91
103
|
end
|
|
92
104
|
|
|
@@ -97,6 +109,7 @@ module UltracartClient
|
|
|
97
109
|
:'ai_chat_instructions' => :'String',
|
|
98
110
|
:'ai_persona' => :'String',
|
|
99
111
|
:'ai_sms_instructions' => :'String',
|
|
112
|
+
:'ai_ticket_instructions' => :'String',
|
|
100
113
|
:'chat_limit' => :'Integer',
|
|
101
114
|
:'default_language_iso_code' => :'String',
|
|
102
115
|
:'default_status' => :'String',
|
|
@@ -104,7 +117,9 @@ module UltracartClient
|
|
|
104
117
|
:'name' => :'String',
|
|
105
118
|
:'profile_image_upload_key' => :'String',
|
|
106
119
|
:'profile_image_url' => :'String',
|
|
107
|
-
:'user_id' => :'Integer'
|
|
120
|
+
:'user_id' => :'Integer',
|
|
121
|
+
:'zohodesk_classifications' => :'Array<String>',
|
|
122
|
+
:'zohodesk_departments' => :'Array<String>'
|
|
108
123
|
}
|
|
109
124
|
end
|
|
110
125
|
|
|
@@ -132,6 +147,10 @@ module UltracartClient
|
|
|
132
147
|
self.ai_sms_instructions = attributes[:'ai_sms_instructions']
|
|
133
148
|
end
|
|
134
149
|
|
|
150
|
+
if attributes.has_key?(:'ai_ticket_instructions')
|
|
151
|
+
self.ai_ticket_instructions = attributes[:'ai_ticket_instructions']
|
|
152
|
+
end
|
|
153
|
+
|
|
135
154
|
if attributes.has_key?(:'chat_limit')
|
|
136
155
|
self.chat_limit = attributes[:'chat_limit']
|
|
137
156
|
end
|
|
@@ -163,6 +182,18 @@ module UltracartClient
|
|
|
163
182
|
if attributes.has_key?(:'user_id')
|
|
164
183
|
self.user_id = attributes[:'user_id']
|
|
165
184
|
end
|
|
185
|
+
|
|
186
|
+
if attributes.has_key?(:'zohodesk_classifications')
|
|
187
|
+
if (value = attributes[:'zohodesk_classifications']).is_a?(Array)
|
|
188
|
+
self.zohodesk_classifications = value
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.has_key?(:'zohodesk_departments')
|
|
193
|
+
if (value = attributes[:'zohodesk_departments']).is_a?(Array)
|
|
194
|
+
self.zohodesk_departments = value
|
|
195
|
+
end
|
|
196
|
+
end
|
|
166
197
|
end
|
|
167
198
|
|
|
168
199
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -199,6 +230,7 @@ module UltracartClient
|
|
|
199
230
|
ai_chat_instructions == o.ai_chat_instructions &&
|
|
200
231
|
ai_persona == o.ai_persona &&
|
|
201
232
|
ai_sms_instructions == o.ai_sms_instructions &&
|
|
233
|
+
ai_ticket_instructions == o.ai_ticket_instructions &&
|
|
202
234
|
chat_limit == o.chat_limit &&
|
|
203
235
|
default_language_iso_code == o.default_language_iso_code &&
|
|
204
236
|
default_status == o.default_status &&
|
|
@@ -206,7 +238,9 @@ module UltracartClient
|
|
|
206
238
|
name == o.name &&
|
|
207
239
|
profile_image_upload_key == o.profile_image_upload_key &&
|
|
208
240
|
profile_image_url == o.profile_image_url &&
|
|
209
|
-
user_id == o.user_id
|
|
241
|
+
user_id == o.user_id &&
|
|
242
|
+
zohodesk_classifications == o.zohodesk_classifications &&
|
|
243
|
+
zohodesk_departments == o.zohodesk_departments
|
|
210
244
|
end
|
|
211
245
|
|
|
212
246
|
# @see the `==` method
|
|
@@ -218,7 +252,7 @@ module UltracartClient
|
|
|
218
252
|
# Calculates hash code according to all attributes.
|
|
219
253
|
# @return [Fixnum] Hash code
|
|
220
254
|
def hash
|
|
221
|
-
[ai, ai_chat_instructions, ai_persona, ai_sms_instructions, chat_limit, default_language_iso_code, default_status, display_name, name, profile_image_upload_key, profile_image_url, user_id].hash
|
|
255
|
+
[ai, ai_chat_instructions, ai_persona, ai_sms_instructions, ai_ticket_instructions, chat_limit, default_language_iso_code, default_status, display_name, name, profile_image_upload_key, profile_image_url, user_id, zohodesk_classifications, zohodesk_departments].hash
|
|
222
256
|
end
|
|
223
257
|
|
|
224
258
|
# Builds the object from hash
|
|
@@ -26,13 +26,17 @@ module UltracartClient
|
|
|
26
26
|
# Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
27
27
|
attr_accessor :required_purchase_items
|
|
28
28
|
|
|
29
|
+
# One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
|
|
30
|
+
attr_accessor :shipping_methods
|
|
31
|
+
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
33
|
def self.attribute_map
|
|
31
34
|
{
|
|
32
35
|
:'items' => :'items',
|
|
33
36
|
:'limit' => :'limit',
|
|
34
37
|
:'match_required_purchase_item_to_free_item' => :'match_required_purchase_item_to_free_item',
|
|
35
|
-
:'required_purchase_items' => :'required_purchase_items'
|
|
38
|
+
:'required_purchase_items' => :'required_purchase_items',
|
|
39
|
+
:'shipping_methods' => :'shipping_methods'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -42,7 +46,8 @@ module UltracartClient
|
|
|
42
46
|
:'items' => :'Array<String>',
|
|
43
47
|
:'limit' => :'Integer',
|
|
44
48
|
:'match_required_purchase_item_to_free_item' => :'BOOLEAN',
|
|
45
|
-
:'required_purchase_items' => :'Array<String>'
|
|
49
|
+
:'required_purchase_items' => :'Array<String>',
|
|
50
|
+
:'shipping_methods' => :'Array<String>'
|
|
46
51
|
}
|
|
47
52
|
end
|
|
48
53
|
|
|
@@ -73,6 +78,12 @@ module UltracartClient
|
|
|
73
78
|
self.required_purchase_items = value
|
|
74
79
|
end
|
|
75
80
|
end
|
|
81
|
+
|
|
82
|
+
if attributes.has_key?(:'shipping_methods')
|
|
83
|
+
if (value = attributes[:'shipping_methods']).is_a?(Array)
|
|
84
|
+
self.shipping_methods = value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
76
87
|
end
|
|
77
88
|
|
|
78
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -96,7 +107,8 @@ module UltracartClient
|
|
|
96
107
|
items == o.items &&
|
|
97
108
|
limit == o.limit &&
|
|
98
109
|
match_required_purchase_item_to_free_item == o.match_required_purchase_item_to_free_item &&
|
|
99
|
-
required_purchase_items == o.required_purchase_items
|
|
110
|
+
required_purchase_items == o.required_purchase_items &&
|
|
111
|
+
shipping_methods == o.shipping_methods
|
|
100
112
|
end
|
|
101
113
|
|
|
102
114
|
# @see the `==` method
|
|
@@ -108,7 +120,7 @@ module UltracartClient
|
|
|
108
120
|
# Calculates hash code according to all attributes.
|
|
109
121
|
# @return [Fixnum] Hash code
|
|
110
122
|
def hash
|
|
111
|
-
[items, limit, match_required_purchase_item_to_free_item, required_purchase_items].hash
|
|
123
|
+
[items, limit, match_required_purchase_item_to_free_item, required_purchase_items, shipping_methods].hash
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module UltracartClient
|
|
|
29
29
|
# An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
30
30
|
attr_accessor :items
|
|
31
31
|
|
|
32
|
+
# One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
|
|
33
|
+
attr_accessor :shipping_methods
|
|
34
|
+
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
@@ -36,7 +39,8 @@ module UltracartClient
|
|
|
36
39
|
:'excluded_item_tags' => :'excluded_item_tags',
|
|
37
40
|
:'excluded_items' => :'excluded_items',
|
|
38
41
|
:'item_tags' => :'item_tags',
|
|
39
|
-
:'items' => :'items'
|
|
42
|
+
:'items' => :'items',
|
|
43
|
+
:'shipping_methods' => :'shipping_methods'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -47,7 +51,8 @@ module UltracartClient
|
|
|
47
51
|
:'excluded_item_tags' => :'Array<String>',
|
|
48
52
|
:'excluded_items' => :'Array<String>',
|
|
49
53
|
:'item_tags' => :'Array<String>',
|
|
50
|
-
:'items' => :'Array<String>'
|
|
54
|
+
:'items' => :'Array<String>',
|
|
55
|
+
:'shipping_methods' => :'Array<String>'
|
|
51
56
|
}
|
|
52
57
|
end
|
|
53
58
|
|
|
@@ -86,6 +91,12 @@ module UltracartClient
|
|
|
86
91
|
self.items = value
|
|
87
92
|
end
|
|
88
93
|
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'shipping_methods')
|
|
96
|
+
if (value = attributes[:'shipping_methods']).is_a?(Array)
|
|
97
|
+
self.shipping_methods = value
|
|
98
|
+
end
|
|
99
|
+
end
|
|
89
100
|
end
|
|
90
101
|
|
|
91
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -110,7 +121,8 @@ module UltracartClient
|
|
|
110
121
|
excluded_item_tags == o.excluded_item_tags &&
|
|
111
122
|
excluded_items == o.excluded_items &&
|
|
112
123
|
item_tags == o.item_tags &&
|
|
113
|
-
items == o.items
|
|
124
|
+
items == o.items &&
|
|
125
|
+
shipping_methods == o.shipping_methods
|
|
114
126
|
end
|
|
115
127
|
|
|
116
128
|
# @see the `==` method
|
|
@@ -122,7 +134,7 @@ module UltracartClient
|
|
|
122
134
|
# Calculates hash code according to all attributes.
|
|
123
135
|
# @return [Fixnum] Hash code
|
|
124
136
|
def hash
|
|
125
|
-
[discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
|
|
137
|
+
[discount_percent, excluded_item_tags, excluded_items, item_tags, items, shipping_methods].hash
|
|
126
138
|
end
|
|
127
139
|
|
|
128
140
|
# 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: 3.11.
|
|
4
|
+
version: 3.11.34
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|