ultracart_api 3.10.199 → 3.10.201

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: 846dcc45fbb936c21e7a6c0384e87e715c96a601a2807c2e51be9ffbf3213e88
4
- data.tar.gz: 503f29233d9263c25a1471b9f85c5b99c875a085a4153fed56e4e798c50af954
3
+ metadata.gz: d147791f226b8b0ba7a70eec559df30788b04e68e8858cd7f679237f22c81f9d
4
+ data.tar.gz: 7c506a59f47bc9b53d032be52cb53f06a9a3387aeda4f936e30fc4fb21aaf516
5
5
  SHA512:
6
- metadata.gz: ea5b9281152077dc7e94a38dfbc4425cbf770b7365798f392ce70574b03e0c461b5788bc22305015ee5176e4e6d96cfb104ea0be6c95cf7fc44512c79be2b304
7
- data.tar.gz: 2ddb9caee4b1094d9dbe627098a7e74b0cf59c8b684c9cfdbe5cce6377428aa023dc3311dab2799481efb1e8578b3611b11d335d59beb7813cdbcaa0cdd42f17
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.199
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.199.gem
27
+ gem install ./ultracart_api-3.10.201.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.199.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.199'
35
+ gem 'ultracart_api', '~> 3.10.201'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1505,6 +1505,8 @@ 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 |
1509
+ | 3.10.200 | 05/13/2024 | conversation pbx - bug fix on camelCase property names |
1508
1510
  | 3.10.199 | 05/13/2024 | conversation pbx - allow nullable day of week in time range |
1509
1511
  | 3.10.198 | 05/08/2024 | added echeck fields to channel partner order import |
1510
1512
  | 3.10.197 | 05/02/2024 | conversation - new method to load pbx audio usage |
@@ -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
 
@@ -25,10 +25,10 @@ module UltracartClient
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'conversation_pbx_time_based_uuid' => :'conversationPbxTimeBasedUuid',
29
- :'mapping_config' => :'mappingConfig',
30
- :'merchant_id' => :'merchantId',
31
- :'time_based_name' => :'timeBasedName'
28
+ :'conversation_pbx_time_based_uuid' => :'conversation_pbx_time_based_uuid',
29
+ :'mapping_config' => :'mapping_config',
30
+ :'merchant_id' => :'merchant_id',
31
+ :'time_based_name' => :'time_based_name'
32
32
  }
33
33
  end
34
34
 
@@ -50,20 +50,20 @@ module UltracartClient
50
50
  # convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
52
 
53
- if attributes.has_key?(:'conversationPbxTimeBasedUuid')
54
- self.conversation_pbx_time_based_uuid = attributes[:'conversationPbxTimeBasedUuid']
53
+ if attributes.has_key?(:'conversation_pbx_time_based_uuid')
54
+ self.conversation_pbx_time_based_uuid = attributes[:'conversation_pbx_time_based_uuid']
55
55
  end
56
56
 
57
- if attributes.has_key?(:'mappingConfig')
58
- self.mapping_config = attributes[:'mappingConfig']
57
+ if attributes.has_key?(:'mapping_config')
58
+ self.mapping_config = attributes[:'mapping_config']
59
59
  end
60
60
 
61
- if attributes.has_key?(:'merchantId')
62
- self.merchant_id = attributes[:'merchantId']
61
+ if attributes.has_key?(:'merchant_id')
62
+ self.merchant_id = attributes[:'merchant_id']
63
63
  end
64
64
 
65
- if attributes.has_key?(:'timeBasedName')
66
- self.time_based_name = attributes[:'timeBasedName']
65
+ if attributes.has_key?(:'time_based_name')
66
+ self.time_based_name = attributes[:'time_based_name']
67
67
  end
68
68
  end
69
69
 
@@ -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.199'
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.199
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