ultracart_api 3.10.200 → 3.10.201
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/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_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: d147791f226b8b0ba7a70eec559df30788b04e68e8858cd7f679237f22c81f9d
|
4
|
+
data.tar.gz: 7c506a59f47bc9b53d032be52cb53f06a9a3387aeda4f936e30fc4fb21aaf516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbad1e3054eee94dcd7d580fcf765afcaadc858fca451e6fdabcc14a890c73a487f23cf2caf8b365501615a41c0bc37e78fee92c1472df81b0968e46591016c2
|
7
|
+
data.tar.gz: 6fafb7f840c940b990e33888022cbe333815f04fa4e360281e970ca62f79b5d1db84faf3a8779439ef7677404ac8c5ce9e09ae35681ae17a39b6c379a4377576
|
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.201
|
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.201.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.201.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.201'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1505,6 +1505,7 @@ Not every change is committed to every SDK.
|
|
1505
1505
|
|
1506
1506
|
| Version | Date | Comments |
|
1507
1507
|
| --: | :-: | --- |
|
1508
|
+
| 3.10.201 | 05/14/2024 | conversation pbx - allowed value constants on the action |
|
1508
1509
|
| 3.10.200 | 05/13/2024 | conversation pbx - bug fix on camelCase property names |
|
1509
1510
|
| 3.10.199 | 05/13/2024 | conversation pbx - allow nullable day of week in time range |
|
1510
1511
|
| 3.10.198 | 05/08/2024 | added echeck fields to channel partner order import |
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**action** | **String** | Action | [optional]
|
7
|
-
**action_target** | **String** | Action target | [optional]
|
7
|
+
**action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional]
|
8
8
|
**digits** | **Integer** | Digits | [optional]
|
9
9
|
**speech** | **String** | Speech | [optional]
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**action** | **String** | Action | [optional]
|
7
|
-
**action_target** | **String** | Action target | [optional]
|
7
|
+
**action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional]
|
8
8
|
**conversation_pbx_time_range_uuid** | **String** | Conversation Pbx Phone Number UUID | [optional]
|
9
9
|
**merchant_id** | **String** | Merchant Id | [optional]
|
10
10
|
**phone_number** | **String** | Phone number | [optional]
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**action** | **String** | Action | [optional]
|
7
|
-
**action_target** | **String** | Action target | [optional]
|
7
|
+
**action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional]
|
8
8
|
**name** | **String** | Name | [optional]
|
9
9
|
**time_range_uuid** | **String** | Time range UUID | [optional]
|
10
10
|
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
# Action
|
18
18
|
attr_accessor :action
|
19
19
|
|
20
|
-
# Action target
|
20
|
+
# Action target. This is the UUID associated with the configuration object of that particular type.
|
21
21
|
attr_accessor :action_target
|
22
22
|
|
23
23
|
# Digits
|
@@ -26,6 +26,28 @@ module UltracartClient
|
|
26
26
|
# Speech
|
27
27
|
attr_accessor :speech
|
28
28
|
|
29
|
+
class EnumAttributeValidator
|
30
|
+
attr_reader :datatype
|
31
|
+
attr_reader :allowable_values
|
32
|
+
|
33
|
+
def initialize(datatype, allowable_values)
|
34
|
+
@allowable_values = allowable_values.map do |value|
|
35
|
+
case datatype.to_s
|
36
|
+
when /Integer/i
|
37
|
+
value.to_i
|
38
|
+
when /Float/i
|
39
|
+
value.to_f
|
40
|
+
else
|
41
|
+
value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def valid?(value)
|
47
|
+
!value || allowable_values.include?(value)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
29
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
52
|
def self.attribute_map
|
31
53
|
{
|
@@ -75,15 +97,47 @@ module UltracartClient
|
|
75
97
|
# @return Array for valid properties with the reasons
|
76
98
|
def list_invalid_properties
|
77
99
|
invalid_properties = Array.new
|
100
|
+
if !@action.nil? && @action.to_s.length > 30
|
101
|
+
invalid_properties.push('invalid value for "action", the character length must be smaller than or equal to 30.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if !@action_target.nil? && @action_target.to_s.length > 50
|
105
|
+
invalid_properties.push('invalid value for "action_target", the character length must be smaller than or equal to 50.')
|
106
|
+
end
|
107
|
+
|
78
108
|
invalid_properties
|
79
109
|
end
|
80
110
|
|
81
111
|
# Check to see if the all the properties in the model are valid
|
82
112
|
# @return true if the model is valid
|
83
113
|
def valid?
|
114
|
+
action_validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
115
|
+
return false unless action_validator.valid?(@action)
|
116
|
+
return false if !@action.nil? && @action.to_s.length > 30
|
117
|
+
return false if !@action_target.nil? && @action_target.to_s.length > 50
|
84
118
|
true
|
85
119
|
end
|
86
120
|
|
121
|
+
# Custom attribute writer method checking allowed values (enum).
|
122
|
+
# @param [Object] action Object to be assigned
|
123
|
+
def action=(action)
|
124
|
+
validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
125
|
+
unless validator.valid?(action)
|
126
|
+
fail ArgumentError, 'invalid value for "action", must be one of #{validator.allowable_values}.'
|
127
|
+
end
|
128
|
+
@action = action
|
129
|
+
end
|
130
|
+
|
131
|
+
# Custom attribute writer method with validation
|
132
|
+
# @param [Object] action_target Value to be assigned
|
133
|
+
def action_target=(action_target)
|
134
|
+
if !action_target.nil? && action_target.to_s.length > 50
|
135
|
+
fail ArgumentError, 'invalid value for "action_target", the character length must be smaller than or equal to 50.'
|
136
|
+
end
|
137
|
+
|
138
|
+
@action_target = action_target
|
139
|
+
end
|
140
|
+
|
87
141
|
# Checks equality by comparing each attribute.
|
88
142
|
# @param [Object] Object to be compared
|
89
143
|
def ==(o)
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
# Action
|
18
18
|
attr_accessor :action
|
19
19
|
|
20
|
-
# Action target
|
20
|
+
# Action target. This is the UUID associated with the configuration object of that particular type.
|
21
21
|
attr_accessor :action_target
|
22
22
|
|
23
23
|
# Conversation Pbx Phone Number UUID
|
@@ -29,6 +29,28 @@ module UltracartClient
|
|
29
29
|
# Phone number
|
30
30
|
attr_accessor :phone_number
|
31
31
|
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
32
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
55
|
def self.attribute_map
|
34
56
|
{
|
@@ -110,6 +132,8 @@ module UltracartClient
|
|
110
132
|
# Check to see if the all the properties in the model are valid
|
111
133
|
# @return true if the model is valid
|
112
134
|
def valid?
|
135
|
+
action_validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
136
|
+
return false unless action_validator.valid?(@action)
|
113
137
|
return false if !@action.nil? && @action.to_s.length > 30
|
114
138
|
return false if !@action_target.nil? && @action_target.to_s.length > 50
|
115
139
|
return false if !@conversation_pbx_time_range_uuid.nil? && @conversation_pbx_time_range_uuid.to_s.length > 50
|
@@ -118,13 +142,13 @@ module UltracartClient
|
|
118
142
|
true
|
119
143
|
end
|
120
144
|
|
121
|
-
# Custom attribute writer method
|
122
|
-
# @param [Object] action
|
145
|
+
# Custom attribute writer method checking allowed values (enum).
|
146
|
+
# @param [Object] action Object to be assigned
|
123
147
|
def action=(action)
|
124
|
-
|
125
|
-
|
148
|
+
validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
149
|
+
unless validator.valid?(action)
|
150
|
+
fail ArgumentError, 'invalid value for "action", must be one of #{validator.allowable_values}.'
|
126
151
|
end
|
127
|
-
|
128
152
|
@action = action
|
129
153
|
end
|
130
154
|
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
# Action
|
18
18
|
attr_accessor :action
|
19
19
|
|
20
|
-
# Action target
|
20
|
+
# Action target. This is the UUID associated with the configuration object of that particular type.
|
21
21
|
attr_accessor :action_target
|
22
22
|
|
23
23
|
# Name
|
@@ -26,6 +26,28 @@ module UltracartClient
|
|
26
26
|
# Time range UUID
|
27
27
|
attr_accessor :time_range_uuid
|
28
28
|
|
29
|
+
class EnumAttributeValidator
|
30
|
+
attr_reader :datatype
|
31
|
+
attr_reader :allowable_values
|
32
|
+
|
33
|
+
def initialize(datatype, allowable_values)
|
34
|
+
@allowable_values = allowable_values.map do |value|
|
35
|
+
case datatype.to_s
|
36
|
+
when /Integer/i
|
37
|
+
value.to_i
|
38
|
+
when /Float/i
|
39
|
+
value.to_f
|
40
|
+
else
|
41
|
+
value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def valid?(value)
|
47
|
+
!value || allowable_values.include?(value)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
29
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
52
|
def self.attribute_map
|
31
53
|
{
|
@@ -97,6 +119,8 @@ module UltracartClient
|
|
97
119
|
# Check to see if the all the properties in the model are valid
|
98
120
|
# @return true if the model is valid
|
99
121
|
def valid?
|
122
|
+
action_validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
123
|
+
return false unless action_validator.valid?(@action)
|
100
124
|
return false if !@action.nil? && @action.to_s.length > 30
|
101
125
|
return false if !@action_target.nil? && @action_target.to_s.length > 50
|
102
126
|
return false if !@name.nil? && @name.to_s.length > 50
|
@@ -104,13 +128,13 @@ module UltracartClient
|
|
104
128
|
true
|
105
129
|
end
|
106
130
|
|
107
|
-
# Custom attribute writer method
|
108
|
-
# @param [Object] action
|
131
|
+
# Custom attribute writer method checking allowed values (enum).
|
132
|
+
# @param [Object] action Object to be assigned
|
109
133
|
def action=(action)
|
110
|
-
|
111
|
-
|
134
|
+
validator = EnumAttributeValidator.new('String', ['time based', 'menu', 'queue', 'voicemail', 'agent'])
|
135
|
+
unless validator.valid?(action)
|
136
|
+
fail ArgumentError, 'invalid value for "action", must be one of #{validator.allowable_values}.'
|
112
137
|
end
|
113
|
-
|
114
138
|
@action = action
|
115
139
|
end
|
116
140
|
|
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.201
|
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
|