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 +4 -4
- data/README.md +6 -4
- data/docs/ConversationPbxMenuMapping.md +1 -1
- data/docs/ConversationPbxPhoneNumber.md +1 -1
- data/docs/ConversationPbxTimeBasedMapping.md +1 -1
- data/lib/ultracart_api/models/conversation_pbx_menu_mapping.rb +55 -1
- data/lib/ultracart_api/models/conversation_pbx_phone_number.rb +30 -6
- data/lib/ultracart_api/models/conversation_pbx_time_based.rb +4 -4
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping.rb +30 -6
- 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: d9f2cd82c15d60edffb60e5ee1479cf3d37faf1b5c52af1f41d73685f4cbd1d7
|
4
|
+
data.tar.gz: 8a5261ce49573a702b0ab32f78255de35a1c379ece0d80e5a48f28e941186d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
27
|
+
gem install ./ultracart_api-4.0.218.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
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.
|
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
|
141
|
-
# @param [Object] action
|
164
|
+
# Custom attribute writer method checking allowed values (enum).
|
165
|
+
# @param [Object] action Object to be assigned
|
142
166
|
def action=(action)
|
143
|
-
|
144
|
-
|
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' => :'
|
30
|
-
:'mapping_config' => :'
|
31
|
-
:'merchant_id' => :'
|
32
|
-
:'time_based_name' => :'
|
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
|
127
|
-
# @param [Object] action
|
150
|
+
# Custom attribute writer method checking allowed values (enum).
|
151
|
+
# @param [Object] action Object to be assigned
|
128
152
|
def action=(action)
|
129
|
-
|
130
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|