ultracart_api 4.0.78.rc → 4.0.80.rc

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a63519a00244042ec59c8b40925f38c293b1c1ad08112afbd3161ad2912b405
4
- data.tar.gz: 563b3f35ffccc84f324a9b3d6205262bc974fd71098dda74ce5a74ee34953432
3
+ metadata.gz: a322a85b349645739ae36e28b3a9743baf0f2a1fddb5be6476aab6e125b274b3
4
+ data.tar.gz: 8bf1a3abf38c6f1c5dfff703feb1e88e1e293f44708c3cc1dc65c0f127a20487
5
5
  SHA512:
6
- metadata.gz: 2e2f84422be7e12670700e7950d41bffe3629682aa3f5c38b6323d5f80b596c7b6122d2af1268a5bf6d8522f563581d79035aedb7197e174e4650f338a9be5f0
7
- data.tar.gz: 317bcf89cb9b313edcf7970c288c9987b21ba57042c49ef3dc21a60a8f88eeaf391b907d8f052ec74c28bda0ff78aec66f60a842e344055e3e6e832c33c38ba4
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.78.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.78.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.78.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.78.rc'
36
+ gem 'ultracart_api', '~> 4.0.80.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1222,6 +1222,8 @@ 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 |
1226
+ | 4.0.79-RC | 11/09/2022 | conversations - add an enum of event typing |
1225
1227
  | 4.0.78-RC | 11/04/2022 | new coupon type percent based on msrp |
1226
1228
  | 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
1227
1229
  | 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
@@ -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
 
@@ -6,7 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **add_item_id** | **String** | Add Item Id | [optional] |
8
8
  | **add_item_oid** | **Integer** | Add Item object identifier | [optional] |
9
- | **once_per_order** | **Boolean** | Quantity | [optional] |
9
+ | **initial_order_only** | **Boolean** | Initial Order Only | [optional] |
10
+ | **once_per_order** | **Boolean** | Once Per Order | [optional] |
10
11
  | **quantity** | **Integer** | Quantity | [optional] |
11
12
 
12
13
  ## Example
@@ -17,6 +18,7 @@ require 'ultracart_api'
17
18
  instance = UltracartClient::ItemFulfillmentAddon.new(
18
19
  add_item_id: null,
19
20
  add_item_oid: null,
21
+ initial_order_only: null,
20
22
  once_per_order: null,
21
23
  quantity: null
22
24
  )
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)
@@ -201,7 +201,7 @@ module UltracartClient
201
201
  # Check to see if the all the properties in the model are valid
202
202
  # @return true if the model is valid
203
203
  def valid?
204
- event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "read message"])
204
+ event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "read message", "typing"])
205
205
  return false unless event_type_validator.valid?(@event_type)
206
206
  type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping", "check queue position"])
207
207
  return false unless type_validator.valid?(@type)
@@ -211,7 +211,7 @@ module UltracartClient
211
211
  # Custom attribute writer method checking allowed values (enum).
212
212
  # @param [Object] event_type Object to be assigned
213
213
  def event_type=(event_type)
214
- validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "read message"])
214
+ validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "read message", "typing"])
215
215
  unless validator.valid?(event_type)
216
216
  fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
217
217
  end
@@ -21,7 +21,10 @@ module UltracartClient
21
21
  # Add Item object identifier
22
22
  attr_accessor :add_item_oid
23
23
 
24
- # Quantity
24
+ # Initial Order Only
25
+ attr_accessor :initial_order_only
26
+
27
+ # Once Per Order
25
28
  attr_accessor :once_per_order
26
29
 
27
30
  # Quantity
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  {
33
36
  :'add_item_id' => :'add_item_id',
34
37
  :'add_item_oid' => :'add_item_oid',
38
+ :'initial_order_only' => :'initial_order_only',
35
39
  :'once_per_order' => :'once_per_order',
36
40
  :'quantity' => :'quantity'
37
41
  }
@@ -47,6 +51,7 @@ module UltracartClient
47
51
  {
48
52
  :'add_item_id' => :'String',
49
53
  :'add_item_oid' => :'Integer',
54
+ :'initial_order_only' => :'Boolean',
50
55
  :'once_per_order' => :'Boolean',
51
56
  :'quantity' => :'Integer'
52
57
  }
@@ -81,6 +86,10 @@ module UltracartClient
81
86
  self.add_item_oid = attributes[:'add_item_oid']
82
87
  end
83
88
 
89
+ if attributes.key?(:'initial_order_only')
90
+ self.initial_order_only = attributes[:'initial_order_only']
91
+ end
92
+
84
93
  if attributes.key?(:'once_per_order')
85
94
  self.once_per_order = attributes[:'once_per_order']
86
95
  end
@@ -110,6 +119,7 @@ module UltracartClient
110
119
  self.class == o.class &&
111
120
  add_item_id == o.add_item_id &&
112
121
  add_item_oid == o.add_item_oid &&
122
+ initial_order_only == o.initial_order_only &&
113
123
  once_per_order == o.once_per_order &&
114
124
  quantity == o.quantity
115
125
  end
@@ -123,7 +133,7 @@ module UltracartClient
123
133
  # Calculates hash code according to all attributes.
124
134
  # @return [Integer] Hash code
125
135
  def hash
126
- [add_item_id, add_item_oid, once_per_order, quantity].hash
136
+ [add_item_id, add_item_oid, initial_order_only, once_per_order, quantity].hash
127
137
  end
128
138
 
129
139
  # Builds the object from hash
@@ -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.78.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.78.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-04 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