ultracart_api 3.10.62 → 3.10.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ConversationWebchatQueueStatusUpdateRequest.md +1 -1
- data/docs/Webhook.md +1 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_status_update_request.rb +35 -0
- data/lib/ultracart_api/models/webhook.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: bf6b7eef67baed3e4bda531cf45201feb5253f8e3053de8fa88055f9edd39f93
|
4
|
+
data.tar.gz: 9bd2d5c05769cfbd0b157a80e10d8f70aca1688e0638874af3d65fe9932d1e67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcafc3cb7ed72897250f2b2369c972a7d575a0b2f2d05165aec5d7eb139f03256e525335c549a4e74cfa139e1f8c87b8b5ffed6c63cc673f63c4746adf25cd7e
|
7
|
+
data.tar.gz: 90145950b5d3e51af1674e44cae4fbcc11e0a70dd3a0c3714dc091689184c1105c9fc81e4159e5a2ddd67340d6fea1d8af9ed66eed7ac7f1301b3db5b6dd0639
|
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.63
|
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.63.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.63.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.63'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1213,6 +1213,7 @@ Not every change is committed to every SDK.
|
|
1213
1213
|
|
1214
1214
|
| Version | Date | Comments |
|
1215
1215
|
| --: | :-: | --- |
|
1216
|
+
| 3.10.63 | 11/14/2022 | conversations - add allowed values for update agent status |
|
1216
1217
|
| 3.10.62 | 11/09/2022 | conversations - add an enum of event typing |
|
1217
1218
|
| 3.10.61 | 11/04/2022 | new coupon type percent based on msrp |
|
1218
1219
|
| 3.10.60 | 10/31/2022 | communication bug fix on dup annonation |
|
data/docs/Webhook.md
CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**authentication_type** | **String** | The type of authentication this webhook will use when communicating with your server | [optional]
|
10
10
|
**basic_password** | **String** | Basic authentication password | [optional]
|
11
11
|
**basic_username** | **String** | Basic authentication user name | [optional]
|
12
|
+
**compress_events** | **BOOLEAN** | Compress events with GZIP then base 64 encode them as a string | [optional]
|
12
13
|
**consecutive_failures** | **Integer** | The number of consecutive failures that have occurred trying to deliver notifications to the target server | [optional]
|
13
14
|
**disabled** | **BOOLEAN** | True if the webhook has been disabled | [optional]
|
14
15
|
**event_categories** | [**Array<WebhookEventCategory>**](WebhookEventCategory.md) | The categories of events. Individual events and subscriptions are handled in the child objects. _placeholders parameter effects the population of this on a retrieval. | [optional]
|
@@ -14,8 +14,31 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ConversationWebchatQueueStatusUpdateRequest
|
17
|
+
# Status of the agent
|
17
18
|
attr_accessor :agent_status
|
18
19
|
|
20
|
+
class EnumAttributeValidator
|
21
|
+
attr_reader :datatype
|
22
|
+
attr_reader :allowable_values
|
23
|
+
|
24
|
+
def initialize(datatype, allowable_values)
|
25
|
+
@allowable_values = allowable_values.map do |value|
|
26
|
+
case datatype.to_s
|
27
|
+
when /Integer/i
|
28
|
+
value.to_i
|
29
|
+
when /Float/i
|
30
|
+
value.to_f
|
31
|
+
else
|
32
|
+
value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def valid?(value)
|
38
|
+
!value || allowable_values.include?(value)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
19
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
43
|
def self.attribute_map
|
21
44
|
{
|
@@ -53,9 +76,21 @@ module UltracartClient
|
|
53
76
|
# Check to see if the all the properties in the model are valid
|
54
77
|
# @return true if the model is valid
|
55
78
|
def valid?
|
79
|
+
agent_status_validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
|
80
|
+
return false unless agent_status_validator.valid?(@agent_status)
|
56
81
|
true
|
57
82
|
end
|
58
83
|
|
84
|
+
# Custom attribute writer method checking allowed values (enum).
|
85
|
+
# @param [Object] agent_status Object to be assigned
|
86
|
+
def agent_status=(agent_status)
|
87
|
+
validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
|
88
|
+
unless validator.valid?(agent_status)
|
89
|
+
fail ArgumentError, 'invalid value for "agent_status", must be one of #{validator.allowable_values}.'
|
90
|
+
end
|
91
|
+
@agent_status = agent_status
|
92
|
+
end
|
93
|
+
|
59
94
|
# Checks equality by comparing each attribute.
|
60
95
|
# @param [Object] Object to be compared
|
61
96
|
def ==(o)
|
@@ -31,6 +31,9 @@ module UltracartClient
|
|
31
31
|
# Basic authentication user name
|
32
32
|
attr_accessor :basic_username
|
33
33
|
|
34
|
+
# Compress events with GZIP then base 64 encode them as a string
|
35
|
+
attr_accessor :compress_events
|
36
|
+
|
34
37
|
# The number of consecutive failures that have occurred trying to deliver notifications to the target server
|
35
38
|
attr_accessor :consecutive_failures
|
36
39
|
|
@@ -98,6 +101,7 @@ module UltracartClient
|
|
98
101
|
:'authentication_type' => :'authentication_type',
|
99
102
|
:'basic_password' => :'basic_password',
|
100
103
|
:'basic_username' => :'basic_username',
|
104
|
+
:'compress_events' => :'compress_events',
|
101
105
|
:'consecutive_failures' => :'consecutive_failures',
|
102
106
|
:'disabled' => :'disabled',
|
103
107
|
:'event_categories' => :'event_categories',
|
@@ -122,6 +126,7 @@ module UltracartClient
|
|
122
126
|
:'authentication_type' => :'String',
|
123
127
|
:'basic_password' => :'String',
|
124
128
|
:'basic_username' => :'String',
|
129
|
+
:'compress_events' => :'BOOLEAN',
|
125
130
|
:'consecutive_failures' => :'Integer',
|
126
131
|
:'disabled' => :'BOOLEAN',
|
127
132
|
:'event_categories' => :'Array<WebhookEventCategory>',
|
@@ -169,6 +174,10 @@ module UltracartClient
|
|
169
174
|
self.basic_username = attributes[:'basic_username']
|
170
175
|
end
|
171
176
|
|
177
|
+
if attributes.has_key?(:'compress_events')
|
178
|
+
self.compress_events = attributes[:'compress_events']
|
179
|
+
end
|
180
|
+
|
172
181
|
if attributes.has_key?(:'consecutive_failures')
|
173
182
|
self.consecutive_failures = attributes[:'consecutive_failures']
|
174
183
|
end
|
@@ -268,6 +277,7 @@ module UltracartClient
|
|
268
277
|
authentication_type == o.authentication_type &&
|
269
278
|
basic_password == o.basic_password &&
|
270
279
|
basic_username == o.basic_username &&
|
280
|
+
compress_events == o.compress_events &&
|
271
281
|
consecutive_failures == o.consecutive_failures &&
|
272
282
|
disabled == o.disabled &&
|
273
283
|
event_categories == o.event_categories &&
|
@@ -291,7 +301,7 @@ module UltracartClient
|
|
291
301
|
# Calculates hash code according to all attributes.
|
292
302
|
# @return [Fixnum] Hash code
|
293
303
|
def hash
|
294
|
-
[api_user_oid, api_version, application_profile, authentication_type, basic_password, basic_username, consecutive_failures, disabled, event_categories, iam_access_key, iam_secret_key, maximum_events, maximum_size, merchant_id, next_retry_after, pending, webhook_oid, webhook_url].hash
|
304
|
+
[api_user_oid, api_version, application_profile, authentication_type, basic_password, basic_username, compress_events, consecutive_failures, disabled, event_categories, iam_access_key, iam_secret_key, maximum_events, maximum_size, merchant_id, next_retry_after, pending, webhook_oid, webhook_url].hash
|
295
305
|
end
|
296
306
|
|
297
307
|
# 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.10.
|
4
|
+
version: 3.10.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|