ultracart_api 3.10.200 → 3.10.201

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: eb89272a4e71c26e89af5749c89512a7e038b3a439e7a9a00c23946b921b9eb3
4
- data.tar.gz: ebfeba6d4ee8890b8520eeae5fa02ed40f954534b7a921dbe990752536b15119
3
+ metadata.gz: d147791f226b8b0ba7a70eec559df30788b04e68e8858cd7f679237f22c81f9d
4
+ data.tar.gz: 7c506a59f47bc9b53d032be52cb53f06a9a3387aeda4f936e30fc4fb21aaf516
5
5
  SHA512:
6
- metadata.gz: 3cad471f62e7a6e5583ca375779ecd8bbd04d5d376f7fe7d97c3a4cdb34729bb2ea733e1ff58a74e0db08ed85cccc86d6f8f92dfd6822b9691388a5c7749a200
7
- data.tar.gz: 5bfcc6971b986af1ed5a9bf8b1267224097f79514a8451f4e40e8bb64e58e0fdb011900a170aa56351641dbfeeaf43f40dfeeaafff8b98309ccc763d2afc7a42
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.200
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.200.gem
27
+ gem install ./ultracart_api-3.10.201.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.200.gem` to install the development dependencies)
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.200'
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 with validation
122
- # @param [Object] action Value to be assigned
145
+ # Custom attribute writer method checking allowed values (enum).
146
+ # @param [Object] action Object to be assigned
123
147
  def action=(action)
124
- if !action.nil? && action.to_s.length > 30
125
- fail ArgumentError, 'invalid value for "action", the character length must be smaller than or equal to 30.'
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 with validation
108
- # @param [Object] action Value to be assigned
131
+ # Custom attribute writer method checking allowed values (enum).
132
+ # @param [Object] action Object to be assigned
109
133
  def action=(action)
110
- if !action.nil? && action.to_s.length > 30
111
- fail ArgumentError, 'invalid value for "action", the character length must be smaller than or equal to 30.'
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
 
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.200'
14
+ VERSION = '3.10.201'
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: 3.10.200
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-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