ultracart_api 4.0.79.rc → 4.0.80.rc

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ae962712e3604c7a8684032da99081b6fb0cf741c218d4657ffe3d9c8fe478f
4
- data.tar.gz: 6ff2eb1d5949ca9f19606fe592c018db6e9cb30a27d00a6517c0ef9cc8b73053
3
+ metadata.gz: a322a85b349645739ae36e28b3a9743baf0f2a1fddb5be6476aab6e125b274b3
4
+ data.tar.gz: 8bf1a3abf38c6f1c5dfff703feb1e88e1e293f44708c3cc1dc65c0f127a20487
5
5
  SHA512:
6
- metadata.gz: 586f5dc4de0cb5374a710249540fafabe930483653dad2162194ecdc4838b21f2d806e6eeb4d1b8e620ae0987045a1d7c0810e0beabb907021b7dc5ffcac0539
7
- data.tar.gz: 65f32ef7bc5b91c3d930bb3709c3c53612b5c471f79d4cf778d982ffb23b9d936893f05478b0def51b0b0dca07684d0d68f07065aa4b00d8be10450da0ea0f2a
6
+ metadata.gz: 2a8c9ad1b086b094816a581aea317fa49aff3adddf7fa8c52b87bb0e623e57e03c7da234053eddb9cfe5f5d28663e6910fc1d9da991580d8b58ab3ae523484e2
7
+ data.tar.gz: fb725fc80d7fa1755cfe30450d3128af41bbc2efa1d9853c9f34a9a65ab05fe01f300f8084bdfc8061381200143642dc06ef82bcf3301493e97e86e81143e7a5
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.79.rc
10
+ - Package version: 4.0.80.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.79.rc.gem
27
+ gem install ./ultracart_api-4.0.80.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.79.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.80.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.79.rc'
36
+ gem 'ultracart_api', '~> 4.0.80.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1222,6 +1222,7 @@ Not every change is committed to every SDK.
1222
1222
 
1223
1223
  | Version | Date | Comments |
1224
1224
  | --: | :-: | --- |
1225
+ | 4.0.80-RC | 11/14/2022 | conversations - add allowed values for update agent status |
1225
1226
  | 4.0.79-RC | 11/09/2022 | conversations - add an enum of event typing |
1226
1227
  | 4.0.78-RC | 11/04/2022 | new coupon type percent based on msrp |
1227
1228
  | 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **agent_status** | **String** | | [optional] |
7
+ | **agent_status** | **String** | Status of the agent | [optional] |
8
8
 
9
9
  ## Example
10
10
 
data/docs/Webhook.md CHANGED
@@ -10,6 +10,7 @@
10
10
  | **authentication_type** | **String** | The type of authentication this webhook will use when communicating with your server | [optional] |
11
11
  | **basic_password** | **String** | Basic authentication password | [optional] |
12
12
  | **basic_username** | **String** | Basic authentication user name | [optional] |
13
+ | **compress_events** | **Boolean** | Compress events with GZIP then base 64 encode them as a string | [optional] |
13
14
  | **consecutive_failures** | **Integer** | The number of consecutive failures that have occurred trying to deliver notifications to the target server | [optional] |
14
15
  | **disabled** | **Boolean** | True if the webhook has been disabled | [optional] |
15
16
  | **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] |
@@ -35,6 +36,7 @@ instance = UltracartClient::Webhook.new(
35
36
  authentication_type: null,
36
37
  basic_password: null,
37
38
  basic_username: null,
39
+ compress_events: null,
38
40
  consecutive_failures: null,
39
41
  disabled: null,
40
42
  event_categories: null,
@@ -15,8 +15,31 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ConversationWebchatQueueStatusUpdateRequest
18
+ # Status of the agent
18
19
  attr_accessor :agent_status
19
20
 
21
+ class EnumAttributeValidator
22
+ attr_reader :datatype
23
+ attr_reader :allowable_values
24
+
25
+ def initialize(datatype, allowable_values)
26
+ @allowable_values = allowable_values.map do |value|
27
+ case datatype.to_s
28
+ when /Integer/i
29
+ value.to_i
30
+ when /Float/i
31
+ value.to_f
32
+ else
33
+ value
34
+ end
35
+ end
36
+ end
37
+
38
+ def valid?(value)
39
+ !value || allowable_values.include?(value)
40
+ end
41
+ end
42
+
20
43
  # Attribute mapping from ruby-style variable name to JSON key.
21
44
  def self.attribute_map
22
45
  {
@@ -72,9 +95,21 @@ module UltracartClient
72
95
  # Check to see if the all the properties in the model are valid
73
96
  # @return true if the model is valid
74
97
  def valid?
98
+ agent_status_validator = EnumAttributeValidator.new('String', ["available", "busy", "unavailable"])
99
+ return false unless agent_status_validator.valid?(@agent_status)
75
100
  true
76
101
  end
77
102
 
103
+ # Custom attribute writer method checking allowed values (enum).
104
+ # @param [Object] agent_status Object to be assigned
105
+ def agent_status=(agent_status)
106
+ validator = EnumAttributeValidator.new('String', ["available", "busy", "unavailable"])
107
+ unless validator.valid?(agent_status)
108
+ fail ArgumentError, "invalid value for \"agent_status\", must be one of #{validator.allowable_values}."
109
+ end
110
+ @agent_status = agent_status
111
+ end
112
+
78
113
  # Checks equality by comparing each attribute.
79
114
  # @param [Object] Object to be compared
80
115
  def ==(o)
@@ -32,6 +32,9 @@ module UltracartClient
32
32
  # Basic authentication user name
33
33
  attr_accessor :basic_username
34
34
 
35
+ # Compress events with GZIP then base 64 encode them as a string
36
+ attr_accessor :compress_events
37
+
35
38
  # The number of consecutive failures that have occurred trying to deliver notifications to the target server
36
39
  attr_accessor :consecutive_failures
37
40
 
@@ -99,6 +102,7 @@ module UltracartClient
99
102
  :'authentication_type' => :'authentication_type',
100
103
  :'basic_password' => :'basic_password',
101
104
  :'basic_username' => :'basic_username',
105
+ :'compress_events' => :'compress_events',
102
106
  :'consecutive_failures' => :'consecutive_failures',
103
107
  :'disabled' => :'disabled',
104
108
  :'event_categories' => :'event_categories',
@@ -128,6 +132,7 @@ module UltracartClient
128
132
  :'authentication_type' => :'String',
129
133
  :'basic_password' => :'String',
130
134
  :'basic_username' => :'String',
135
+ :'compress_events' => :'Boolean',
131
136
  :'consecutive_failures' => :'Integer',
132
137
  :'disabled' => :'Boolean',
133
138
  :'event_categories' => :'Array<WebhookEventCategory>',
@@ -188,6 +193,10 @@ module UltracartClient
188
193
  self.basic_username = attributes[:'basic_username']
189
194
  end
190
195
 
196
+ if attributes.key?(:'compress_events')
197
+ self.compress_events = attributes[:'compress_events']
198
+ end
199
+
191
200
  if attributes.key?(:'consecutive_failures')
192
201
  self.consecutive_failures = attributes[:'consecutive_failures']
193
202
  end
@@ -287,6 +296,7 @@ module UltracartClient
287
296
  authentication_type == o.authentication_type &&
288
297
  basic_password == o.basic_password &&
289
298
  basic_username == o.basic_username &&
299
+ compress_events == o.compress_events &&
290
300
  consecutive_failures == o.consecutive_failures &&
291
301
  disabled == o.disabled &&
292
302
  event_categories == o.event_categories &&
@@ -310,7 +320,7 @@ module UltracartClient
310
320
  # Calculates hash code according to all attributes.
311
321
  # @return [Integer] Hash code
312
322
  def hash
313
- [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
323
+ [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
314
324
  end
315
325
 
316
326
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.79.rc'
14
+ VERSION = '4.0.80.rc'
15
15
  end
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.0.79.rc
4
+ version: 4.0.80.rc
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-09 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus