ultracart_api 4.0.216 → 4.0.218

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: 6d82e08c35cd9aea6a661df348fc4e18f6d56c84172c47dc22ed8755625943ca
4
- data.tar.gz: 2a50c3e624284f2a982f54d122279180d3ecd3552b1a816a1eb2997c7ae9d550
3
+ metadata.gz: d9f2cd82c15d60edffb60e5ee1479cf3d37faf1b5c52af1f41d73685f4cbd1d7
4
+ data.tar.gz: 8a5261ce49573a702b0ab32f78255de35a1c379ece0d80e5a48f28e941186d0c
5
5
  SHA512:
6
- metadata.gz: bc3349bea6b808b55112f041d6f6be7efd024af8652142f27c2d8ae6b9d4e4e98a249aa7bb909996c5b92445c95dd06b11b1e3f5841c3500b20bd8d9c99ae205
7
- data.tar.gz: cf6ba28b9bd5897698366807e0952d862bcb961b0347b11ee83dca7a9daaa498abe4d465b2df697b22f3d0aa98261f7fc7345163dd46a5da7b4c67870963c318
6
+ metadata.gz: bae977a786bb6b374834e15895af005dc848850c3e8627e6cd4add76bb2f3b4e44c1e9cfffdcc96383a4287511e42f7d916c1e149ffdf87074911b96a9ffc0ae
7
+ data.tar.gz: 8d1605f701a3a15e9f6b068f71a2929e78e2c5558c5fa0a214edfb4d9e2d2e78c7349a15e6b957bd4a768e9f5193d03029ae33a3fe0cce434af221e8e2398513
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.216
10
+ - Package version: 4.0.218
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.216.gem
27
+ gem install ./ultracart_api-4.0.218.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.216.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.218.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.216'
36
+ gem 'ultracart_api', '~> 4.0.218'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1513,6 +1513,8 @@ Not every change is committed to every SDK.
1513
1513
 
1514
1514
  | Version | Date | Comments |
1515
1515
  | --: | :-: | --- |
1516
+ | 4.0.218 | 05/14/2024 | conversation pbx - allowed value constants on the action |
1517
+ | 4.0.217 | 05/13/2024 | conversation pbx - bug fix on camelCase property names |
1516
1518
  | 4.0.216 | 05/13/2024 | conversation pbx - allow nullable day of week in time range |
1517
1519
  | 4.0.215 | 05/08/2024 | added echeck fields to channel partner order import |
1518
1520
  | 4.0.214 | 05/02/2024 | conversation - new method to load pbx audio usage |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **action** | **String** | Action | [optional] |
8
- | **action_target** | **String** | Action target | [optional] |
8
+ | **action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional] |
9
9
  | **digits** | **Integer** | Digits | [optional] |
10
10
  | **speech** | **String** | Speech | [optional] |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **action** | **String** | Action | [optional] |
8
- | **action_target** | **String** | Action target | [optional] |
8
+ | **action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional] |
9
9
  | **conversation_pbx_time_range_uuid** | **String** | Conversation Pbx Phone Number UUID | [optional] |
10
10
  | **merchant_id** | **String** | Merchant Id | [optional] |
11
11
  | **phone_number** | **String** | Phone number | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **action** | **String** | Action | [optional] |
8
- | **action_target** | **String** | Action target | [optional] |
8
+ | **action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional] |
9
9
  | **name** | **String** | Name | [optional] |
10
10
  | **time_range_uuid** | **String** | Time range UUID | [optional] |
11
11
 
@@ -18,7 +18,7 @@ module UltracartClient
18
18
  # Action
19
19
  attr_accessor :action
20
20
 
21
- # Action target
21
+ # Action target. This is the UUID associated with the configuration object of that particular type.
22
22
  attr_accessor :action_target
23
23
 
24
24
  # Digits
@@ -27,6 +27,28 @@ module UltracartClient
27
27
  # Speech
28
28
  attr_accessor :speech
29
29
 
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
30
52
  # Attribute mapping from ruby-style variable name to JSON key.
31
53
  def self.attribute_map
32
54
  {
@@ -94,15 +116,47 @@ module UltracartClient
94
116
  # @return Array for valid properties with the reasons
95
117
  def list_invalid_properties
96
118
  invalid_properties = Array.new
119
+ if !@action.nil? && @action.to_s.length > 30
120
+ invalid_properties.push('invalid value for "action", the character length must be smaller than or equal to 30.')
121
+ end
122
+
123
+ if !@action_target.nil? && @action_target.to_s.length > 50
124
+ invalid_properties.push('invalid value for "action_target", the character length must be smaller than or equal to 50.')
125
+ end
126
+
97
127
  invalid_properties
98
128
  end
99
129
 
100
130
  # Check to see if the all the properties in the model are valid
101
131
  # @return true if the model is valid
102
132
  def valid?
133
+ action_validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
134
+ return false unless action_validator.valid?(@action)
135
+ return false if !@action.nil? && @action.to_s.length > 30
136
+ return false if !@action_target.nil? && @action_target.to_s.length > 50
103
137
  true
104
138
  end
105
139
 
140
+ # Custom attribute writer method checking allowed values (enum).
141
+ # @param [Object] action Object to be assigned
142
+ def action=(action)
143
+ validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
144
+ unless validator.valid?(action)
145
+ fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
146
+ end
147
+ @action = action
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] action_target Value to be assigned
152
+ def action_target=(action_target)
153
+ if !action_target.nil? && action_target.to_s.length > 50
154
+ fail ArgumentError, 'invalid value for "action_target", the character length must be smaller than or equal to 50.'
155
+ end
156
+
157
+ @action_target = action_target
158
+ end
159
+
106
160
  # Checks equality by comparing each attribute.
107
161
  # @param [Object] Object to be compared
108
162
  def ==(o)
@@ -18,7 +18,7 @@ module UltracartClient
18
18
  # Action
19
19
  attr_accessor :action
20
20
 
21
- # Action target
21
+ # Action target. This is the UUID associated with the configuration object of that particular type.
22
22
  attr_accessor :action_target
23
23
 
24
24
  # Conversation Pbx Phone Number UUID
@@ -30,6 +30,28 @@ module UltracartClient
30
30
  # Phone number
31
31
  attr_accessor :phone_number
32
32
 
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
33
55
  # Attribute mapping from ruby-style variable name to JSON key.
34
56
  def self.attribute_map
35
57
  {
@@ -129,6 +151,8 @@ module UltracartClient
129
151
  # Check to see if the all the properties in the model are valid
130
152
  # @return true if the model is valid
131
153
  def valid?
154
+ action_validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
155
+ return false unless action_validator.valid?(@action)
132
156
  return false if !@action.nil? && @action.to_s.length > 30
133
157
  return false if !@action_target.nil? && @action_target.to_s.length > 50
134
158
  return false if !@conversation_pbx_time_range_uuid.nil? && @conversation_pbx_time_range_uuid.to_s.length > 50
@@ -137,13 +161,13 @@ module UltracartClient
137
161
  true
138
162
  end
139
163
 
140
- # Custom attribute writer method with validation
141
- # @param [Object] action Value to be assigned
164
+ # Custom attribute writer method checking allowed values (enum).
165
+ # @param [Object] action Object to be assigned
142
166
  def action=(action)
143
- if !action.nil? && action.to_s.length > 30
144
- fail ArgumentError, 'invalid value for "action", the character length must be smaller than or equal to 30.'
167
+ validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
168
+ unless validator.valid?(action)
169
+ fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
145
170
  end
146
-
147
171
  @action = action
148
172
  end
149
173
 
@@ -26,10 +26,10 @@ module UltracartClient
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'conversation_pbx_time_based_uuid' => :'conversationPbxTimeBasedUuid',
30
- :'mapping_config' => :'mappingConfig',
31
- :'merchant_id' => :'merchantId',
32
- :'time_based_name' => :'timeBasedName'
29
+ :'conversation_pbx_time_based_uuid' => :'conversation_pbx_time_based_uuid',
30
+ :'mapping_config' => :'mapping_config',
31
+ :'merchant_id' => :'merchant_id',
32
+ :'time_based_name' => :'time_based_name'
33
33
  }
34
34
  end
35
35
 
@@ -18,7 +18,7 @@ module UltracartClient
18
18
  # Action
19
19
  attr_accessor :action
20
20
 
21
- # Action target
21
+ # Action target. This is the UUID associated with the configuration object of that particular type.
22
22
  attr_accessor :action_target
23
23
 
24
24
  # Name
@@ -27,6 +27,28 @@ module UltracartClient
27
27
  # Time range UUID
28
28
  attr_accessor :time_range_uuid
29
29
 
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
30
52
  # Attribute mapping from ruby-style variable name to JSON key.
31
53
  def self.attribute_map
32
54
  {
@@ -116,6 +138,8 @@ module UltracartClient
116
138
  # Check to see if the all the properties in the model are valid
117
139
  # @return true if the model is valid
118
140
  def valid?
141
+ action_validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
142
+ return false unless action_validator.valid?(@action)
119
143
  return false if !@action.nil? && @action.to_s.length > 30
120
144
  return false if !@action_target.nil? && @action_target.to_s.length > 50
121
145
  return false if !@name.nil? && @name.to_s.length > 50
@@ -123,13 +147,13 @@ module UltracartClient
123
147
  true
124
148
  end
125
149
 
126
- # Custom attribute writer method with validation
127
- # @param [Object] action Value to be assigned
150
+ # Custom attribute writer method checking allowed values (enum).
151
+ # @param [Object] action Object to be assigned
128
152
  def action=(action)
129
- if !action.nil? && action.to_s.length > 30
130
- fail ArgumentError, 'invalid value for "action", the character length must be smaller than or equal to 30.'
153
+ validator = EnumAttributeValidator.new('String', ["time based", "menu", "queue", "voicemail", "agent"])
154
+ unless validator.valid?(action)
155
+ fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
131
156
  end
132
-
133
157
  @action = action
134
158
  end
135
159
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.216'
14
+ VERSION = '4.0.218'
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.216
4
+ version: 4.0.218
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus