ultracart_api 3.11.18 → 3.11.19

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: 4b8eff51a39002262cf310b2b17f4bc56c390847951a1e3bda57cc0c0fe5b033
4
- data.tar.gz: c7593a062115b62040ab4f4fb4791483a7de229dc8bc59a73487423423b6ca7d
3
+ metadata.gz: e732d8cc0f0d4a756220396cf16ae8d67d3421e003504600772831fb44338017
4
+ data.tar.gz: 2236cbf50c29c360b03640870b4f8a66926100724af7009d1e7f5466243d7f7f
5
5
  SHA512:
6
- metadata.gz: e0b92b0fb98fe3e3f2da01a99e75e98123ff8f7d3533b7ab32f93adea38b38a85b7c2ecc922edce3efbbdf1be6ee1c2d8a5200455b79c270054afb8cacb52e52
7
- data.tar.gz: feafaa57c5fedc649a05826516876a46a7284e5af68c273927cdcf31ffe064f591eec92cf3b59d568484e7a2646e486c3beed2078052c7babafb23e17bde400b
6
+ metadata.gz: 2b1efa6024cfd94dbb4f30e42802400ced7217413f7fcac312b00791678b04316ea514cc3c0e0769f31c4008e678298c54d279072ea1a1c8d50984b093051d10
7
+ data.tar.gz: 9208add239c38ec5bf0d68e785350aaa46bec7308ec47fc27f562f46e9723fc033017af8bbf1b88ec081862846e79b162bdf2cb780fe3ab1a1ef55b2bfb9891b
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.11.18
10
+ - Package version: 3.11.19
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
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.11.18.gem
27
+ gem install ./ultracart_api-3.11.19.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.18.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.11.19.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.11.18'
35
+ gem 'ultracart_api', '~> 3.11.19'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -837,6 +837,7 @@ Class | Method | HTTP request | Description
837
837
  - [UltracartClient::ConversationVirtualAgentBudgetResponse](docs/ConversationVirtualAgentBudgetResponse.md)
838
838
  - [UltracartClient::ConversationVirtualAgentCapabilities](docs/ConversationVirtualAgentCapabilities.md)
839
839
  - [UltracartClient::ConversationVirtualAgentCapabilitiesResponse](docs/ConversationVirtualAgentCapabilitiesResponse.md)
840
+ - [UltracartClient::ConversationVirtualAgentCapabilityZohoDeskDepartment](docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md)
840
841
  - [UltracartClient::ConversationWebchatContext](docs/ConversationWebchatContext.md)
841
842
  - [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
842
843
  - [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
@@ -918,6 +919,7 @@ Class | Method | HTTP request | Description
918
919
  - [UltracartClient::CouponsResponse](docs/CouponsResponse.md)
919
920
  - [UltracartClient::Currency](docs/Currency.md)
920
921
  - [UltracartClient::CustomDashboard](docs/CustomDashboard.md)
922
+ - [UltracartClient::CustomDashboardExecutionParameter](docs/CustomDashboardExecutionParameter.md)
921
923
  - [UltracartClient::CustomDashboardPage](docs/CustomDashboardPage.md)
922
924
  - [UltracartClient::CustomDashboardPageReport](docs/CustomDashboardPageReport.md)
923
925
  - [UltracartClient::CustomDashboardResponse](docs/CustomDashboardResponse.md)
@@ -1569,6 +1571,7 @@ Not every change is committed to every SDK.
1569
1571
 
1570
1572
  | Version | Date | Comments |
1571
1573
  | --: | :-: | --- |
1574
+ | 3.11.19 | 08/04/2025 | conversations api - add zoho departments to getCapabilities call |
1572
1575
  | 3.11.18 | 08/04/2025 | more internal development on loyalty step for storefront flows |
1573
1576
  | 3.11.17 | 08/04/2025 | small changes to internal flow app to support loyalty tier moves |
1574
1577
  | 3.11.16 | 07/28/2025 | updated doc samples |
@@ -10,9 +10,12 @@ Name | Type | Description | Notes
10
10
  **open_support_ticket** | **BOOLEAN** | | [optional]
11
11
  **open_support_ticket_channel** | **String** | Channel to use to open the support ticket | [optional]
12
12
  **open_support_ticket_channel_email** | **String** | Email to send support ticket to | [optional]
13
+ **open_support_ticket_zoho_desk_department_id** | **String** | Department ID to open a Zoho Desk ticket for | [optional]
13
14
  **pause_subscription** | **BOOLEAN** | | [optional]
14
15
  **resume_subscription** | **BOOLEAN** | | [optional]
15
16
  **transfer_chat_to_live_agent** | **BOOLEAN** | | [optional]
16
17
  **update_subscription_credit_card** | **BOOLEAN** | | [optional]
18
+ **zoho_desk_available** | **BOOLEAN** | True if Zoho Desk is connected to UltraCart | [optional]
19
+ **zoho_desk_departments** | [**Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>**](ConversationVirtualAgentCapabilityZohoDeskDepartment.md) | Array of Zoho Desk Department if zoho desk is connected to UltraCart | [optional]
17
20
 
18
21
 
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ConversationVirtualAgentCapabilityZohoDeskDepartment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **department_id** | **String** | | [optional]
7
+ **department_name** | **String** | | [optional]
8
+
9
+
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
7
7
  **merchant_id** | **String** | | [optional]
8
8
  **name** | **String** | | [optional]
9
9
  **pages** | [**Array<CustomDashboardPage>**](CustomDashboardPage.md) | | [optional]
10
+ **parameters** | [**Array<CustomDashboardExecutionParameter>**](CustomDashboardExecutionParameter.md) | | [optional]
10
11
 
11
12
 
@@ -0,0 +1,11 @@
1
+ # UltracartClient::CustomDashboardExecutionParameter
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **quick_pick_key** | **String** | | [optional]
8
+ **type** | **String** | | [optional]
9
+ **value** | **String** | | [optional]
10
+
11
+
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **name** | **String** | | [optional]
7
+ **quick_pick_key** | **String** | | [optional]
7
8
  **type** | **String** | | [optional]
8
9
  **value** | **String** | | [optional]
9
10
 
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # Email to send support ticket to
31
31
  attr_accessor :open_support_ticket_channel_email
32
32
 
33
+ # Department ID to open a Zoho Desk ticket for
34
+ attr_accessor :open_support_ticket_zoho_desk_department_id
35
+
33
36
  attr_accessor :pause_subscription
34
37
 
35
38
  attr_accessor :resume_subscription
@@ -38,6 +41,12 @@ module UltracartClient
38
41
 
39
42
  attr_accessor :update_subscription_credit_card
40
43
 
44
+ # True if Zoho Desk is connected to UltraCart
45
+ attr_accessor :zoho_desk_available
46
+
47
+ # Array of Zoho Desk Department if zoho desk is connected to UltraCart
48
+ attr_accessor :zoho_desk_departments
49
+
41
50
  class EnumAttributeValidator
42
51
  attr_reader :datatype
43
52
  attr_reader :allowable_values
@@ -70,10 +79,13 @@ module UltracartClient
70
79
  :'open_support_ticket' => :'open_support_ticket',
71
80
  :'open_support_ticket_channel' => :'open_support_ticket_channel',
72
81
  :'open_support_ticket_channel_email' => :'open_support_ticket_channel_email',
82
+ :'open_support_ticket_zoho_desk_department_id' => :'open_support_ticket_zoho_desk_department_id',
73
83
  :'pause_subscription' => :'pause_subscription',
74
84
  :'resume_subscription' => :'resume_subscription',
75
85
  :'transfer_chat_to_live_agent' => :'transfer_chat_to_live_agent',
76
- :'update_subscription_credit_card' => :'update_subscription_credit_card'
86
+ :'update_subscription_credit_card' => :'update_subscription_credit_card',
87
+ :'zoho_desk_available' => :'zoho_desk_available',
88
+ :'zoho_desk_departments' => :'zoho_desk_departments'
77
89
  }
78
90
  end
79
91
 
@@ -87,10 +99,13 @@ module UltracartClient
87
99
  :'open_support_ticket' => :'BOOLEAN',
88
100
  :'open_support_ticket_channel' => :'String',
89
101
  :'open_support_ticket_channel_email' => :'String',
102
+ :'open_support_ticket_zoho_desk_department_id' => :'String',
90
103
  :'pause_subscription' => :'BOOLEAN',
91
104
  :'resume_subscription' => :'BOOLEAN',
92
105
  :'transfer_chat_to_live_agent' => :'BOOLEAN',
93
- :'update_subscription_credit_card' => :'BOOLEAN'
106
+ :'update_subscription_credit_card' => :'BOOLEAN',
107
+ :'zoho_desk_available' => :'BOOLEAN',
108
+ :'zoho_desk_departments' => :'Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>'
94
109
  }
95
110
  end
96
111
 
@@ -130,6 +145,10 @@ module UltracartClient
130
145
  self.open_support_ticket_channel_email = attributes[:'open_support_ticket_channel_email']
131
146
  end
132
147
 
148
+ if attributes.has_key?(:'open_support_ticket_zoho_desk_department_id')
149
+ self.open_support_ticket_zoho_desk_department_id = attributes[:'open_support_ticket_zoho_desk_department_id']
150
+ end
151
+
133
152
  if attributes.has_key?(:'pause_subscription')
134
153
  self.pause_subscription = attributes[:'pause_subscription']
135
154
  end
@@ -145,6 +164,16 @@ module UltracartClient
145
164
  if attributes.has_key?(:'update_subscription_credit_card')
146
165
  self.update_subscription_credit_card = attributes[:'update_subscription_credit_card']
147
166
  end
167
+
168
+ if attributes.has_key?(:'zoho_desk_available')
169
+ self.zoho_desk_available = attributes[:'zoho_desk_available']
170
+ end
171
+
172
+ if attributes.has_key?(:'zoho_desk_departments')
173
+ if (value = attributes[:'zoho_desk_departments']).is_a?(Array)
174
+ self.zoho_desk_departments = value
175
+ end
176
+ end
148
177
  end
149
178
 
150
179
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,7 +186,7 @@ module UltracartClient
157
186
  # Check to see if the all the properties in the model are valid
158
187
  # @return true if the model is valid
159
188
  def valid?
160
- open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', 'UltraCart Task', 'Zoho Desk Ticket'])
189
+ open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
161
190
  return false unless open_support_ticket_channel_validator.valid?(@open_support_ticket_channel)
162
191
  true
163
192
  end
@@ -165,7 +194,7 @@ module UltracartClient
165
194
  # Custom attribute writer method checking allowed values (enum).
166
195
  # @param [Object] open_support_ticket_channel Object to be assigned
167
196
  def open_support_ticket_channel=(open_support_ticket_channel)
168
- validator = EnumAttributeValidator.new('String', ['none', 'email', 'UltraCart Task', 'Zoho Desk Ticket'])
197
+ validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
169
198
  unless validator.valid?(open_support_ticket_channel)
170
199
  fail ArgumentError, 'invalid value for "open_support_ticket_channel", must be one of #{validator.allowable_values}.'
171
200
  end
@@ -184,10 +213,13 @@ module UltracartClient
184
213
  open_support_ticket == o.open_support_ticket &&
185
214
  open_support_ticket_channel == o.open_support_ticket_channel &&
186
215
  open_support_ticket_channel_email == o.open_support_ticket_channel_email &&
216
+ open_support_ticket_zoho_desk_department_id == o.open_support_ticket_zoho_desk_department_id &&
187
217
  pause_subscription == o.pause_subscription &&
188
218
  resume_subscription == o.resume_subscription &&
189
219
  transfer_chat_to_live_agent == o.transfer_chat_to_live_agent &&
190
- update_subscription_credit_card == o.update_subscription_credit_card
220
+ update_subscription_credit_card == o.update_subscription_credit_card &&
221
+ zoho_desk_available == o.zoho_desk_available &&
222
+ zoho_desk_departments == o.zoho_desk_departments
191
223
  end
192
224
 
193
225
  # @see the `==` method
@@ -199,7 +231,7 @@ module UltracartClient
199
231
  # Calculates hash code according to all attributes.
200
232
  # @return [Fixnum] Hash code
201
233
  def hash
202
- [cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card].hash
234
+ [cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, open_support_ticket_zoho_desk_department_id, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card, zoho_desk_available, zoho_desk_departments].hash
203
235
  end
204
236
 
205
237
  # Builds the object from hash
@@ -0,0 +1,193 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class ConversationVirtualAgentCapabilityZohoDeskDepartment
17
+ attr_accessor :department_id
18
+
19
+ attr_accessor :department_name
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'department_id' => :'department_id',
25
+ :'department_name' => :'department_name'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'department_id' => :'String',
33
+ :'department_name' => :'String'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ return unless attributes.is_a?(Hash)
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+
45
+ if attributes.has_key?(:'department_id')
46
+ self.department_id = attributes[:'department_id']
47
+ end
48
+
49
+ if attributes.has_key?(:'department_name')
50
+ self.department_name = attributes[:'department_name']
51
+ end
52
+ end
53
+
54
+ # Show invalid properties with the reasons. Usually used together with valid?
55
+ # @return Array for valid properties with the reasons
56
+ def list_invalid_properties
57
+ invalid_properties = Array.new
58
+ invalid_properties
59
+ end
60
+
61
+ # Check to see if the all the properties in the model are valid
62
+ # @return true if the model is valid
63
+ def valid?
64
+ true
65
+ end
66
+
67
+ # Checks equality by comparing each attribute.
68
+ # @param [Object] Object to be compared
69
+ def ==(o)
70
+ return true if self.equal?(o)
71
+ self.class == o.class &&
72
+ department_id == o.department_id &&
73
+ department_name == o.department_name
74
+ end
75
+
76
+ # @see the `==` method
77
+ # @param [Object] Object to be compared
78
+ def eql?(o)
79
+ self == o
80
+ end
81
+
82
+ # Calculates hash code according to all attributes.
83
+ # @return [Fixnum] Hash code
84
+ def hash
85
+ [department_id, department_name].hash
86
+ end
87
+
88
+ # Builds the object from hash
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ # @return [Object] Returns the model itself
91
+ def build_from_hash(attributes)
92
+ return nil unless attributes.is_a?(Hash)
93
+ self.class.swagger_types.each_pair do |key, type|
94
+ if type =~ /\AArray<(.*)>/i
95
+ # check to ensure the input is an array given that the attribute
96
+ # is documented as an array but the input is not
97
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
98
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ end
100
+ elsif !attributes[self.class.attribute_map[key]].nil?
101
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
102
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
103
+ end
104
+
105
+ self
106
+ end
107
+
108
+ # Deserializes the data based on type
109
+ # @param string type Data type
110
+ # @param string value Value to be deserialized
111
+ # @return [Object] Deserialized data
112
+ def _deserialize(type, value)
113
+ case type.to_sym
114
+ when :DateTime
115
+ DateTime.parse(value)
116
+ when :Date
117
+ Date.parse(value)
118
+ when :String
119
+ value.to_s
120
+ when :Integer
121
+ value.to_i
122
+ when :Float
123
+ value.to_f
124
+ when :BOOLEAN
125
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
126
+ true
127
+ else
128
+ false
129
+ end
130
+ when :Object
131
+ # generic object (usually a Hash), return directly
132
+ value
133
+ when /\AArray<(?<inner_type>.+)>\z/
134
+ inner_type = Regexp.last_match[:inner_type]
135
+ value.map { |v| _deserialize(inner_type, v) }
136
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
137
+ k_type = Regexp.last_match[:k_type]
138
+ v_type = Regexp.last_match[:v_type]
139
+ {}.tap do |hash|
140
+ value.each do |k, v|
141
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
142
+ end
143
+ end
144
+ else # model
145
+ temp_model = UltracartClient.const_get(type).new
146
+ temp_model.build_from_hash(value)
147
+ end
148
+ end
149
+
150
+ # Returns the string representation of the object
151
+ # @return [String] String presentation of the object
152
+ def to_s
153
+ to_hash.to_s
154
+ end
155
+
156
+ # to_body is an alias to to_hash (backward compatibility)
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_body
159
+ to_hash
160
+ end
161
+
162
+ # Returns the object in the form of hash
163
+ # @return [Hash] Returns the object in the form of hash
164
+ def to_hash
165
+ hash = {}
166
+ self.class.attribute_map.each_pair do |attr, param|
167
+ value = self.send(attr)
168
+ next if value.nil?
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ # Outputs non-array value in the form of hash
175
+ # For object, use to_hash. Otherwise, just return the value
176
+ # @param [Object] value Any valid value
177
+ # @return [Hash] Returns the value in the form of hash
178
+ def _to_hash(value)
179
+ if value.is_a?(Array)
180
+ value.compact.map { |v| _to_hash(v) }
181
+ elsif value.is_a?(Hash)
182
+ {}.tap do |hash|
183
+ value.each { |k, v| hash[k] = _to_hash(v) }
184
+ end
185
+ elsif value.respond_to? :to_hash
186
+ value.to_hash
187
+ else
188
+ value
189
+ end
190
+ end
191
+
192
+ end
193
+ end
@@ -22,13 +22,16 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :pages
24
24
 
25
+ attr_accessor :parameters
26
+
25
27
  # Attribute mapping from ruby-style variable name to JSON key.
26
28
  def self.attribute_map
27
29
  {
28
30
  :'data_warehouse_custom_dashboard_oid' => :'data_warehouse_custom_dashboard_oid',
29
31
  :'merchant_id' => :'merchant_id',
30
32
  :'name' => :'name',
31
- :'pages' => :'pages'
33
+ :'pages' => :'pages',
34
+ :'parameters' => :'parameters'
32
35
  }
33
36
  end
34
37
 
@@ -38,7 +41,8 @@ module UltracartClient
38
41
  :'data_warehouse_custom_dashboard_oid' => :'Integer',
39
42
  :'merchant_id' => :'String',
40
43
  :'name' => :'String',
41
- :'pages' => :'Array<CustomDashboardPage>'
44
+ :'pages' => :'Array<CustomDashboardPage>',
45
+ :'parameters' => :'Array<CustomDashboardExecutionParameter>'
42
46
  }
43
47
  end
44
48
 
@@ -67,6 +71,12 @@ module UltracartClient
67
71
  self.pages = value
68
72
  end
69
73
  end
74
+
75
+ if attributes.has_key?(:'parameters')
76
+ if (value = attributes[:'parameters']).is_a?(Array)
77
+ self.parameters = value
78
+ end
79
+ end
70
80
  end
71
81
 
72
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +100,8 @@ module UltracartClient
90
100
  data_warehouse_custom_dashboard_oid == o.data_warehouse_custom_dashboard_oid &&
91
101
  merchant_id == o.merchant_id &&
92
102
  name == o.name &&
93
- pages == o.pages
103
+ pages == o.pages &&
104
+ parameters == o.parameters
94
105
  end
95
106
 
96
107
  # @see the `==` method
@@ -102,7 +113,7 @@ module UltracartClient
102
113
  # Calculates hash code according to all attributes.
103
114
  # @return [Fixnum] Hash code
104
115
  def hash
105
- [data_warehouse_custom_dashboard_oid, merchant_id, name, pages].hash
116
+ [data_warehouse_custom_dashboard_oid, merchant_id, name, pages, parameters].hash
106
117
  end
107
118
 
108
119
  # Builds the object from hash
@@ -0,0 +1,211 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class CustomDashboardExecutionParameter
17
+ attr_accessor :name
18
+
19
+ attr_accessor :quick_pick_key
20
+
21
+ attr_accessor :type
22
+
23
+ attr_accessor :value
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'name' => :'name',
29
+ :'quick_pick_key' => :'quick_pick_key',
30
+ :'type' => :'type',
31
+ :'value' => :'value'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'name' => :'String',
39
+ :'quick_pick_key' => :'String',
40
+ :'type' => :'String',
41
+ :'value' => :'String'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'name')
54
+ self.name = attributes[:'name']
55
+ end
56
+
57
+ if attributes.has_key?(:'quick_pick_key')
58
+ self.quick_pick_key = attributes[:'quick_pick_key']
59
+ end
60
+
61
+ if attributes.has_key?(:'type')
62
+ self.type = attributes[:'type']
63
+ end
64
+
65
+ if attributes.has_key?(:'value')
66
+ self.value = attributes[:'value']
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ name == o.name &&
89
+ quick_pick_key == o.quick_pick_key &&
90
+ type == o.type &&
91
+ value == o.value
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Fixnum] Hash code
102
+ def hash
103
+ [name, quick_pick_key, type, value].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.swagger_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :BOOLEAN
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ temp_model = UltracartClient.const_get(type).new
164
+ temp_model.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ next if value.nil?
187
+ hash[param] = _to_hash(value)
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Outputs non-array value in the form of hash
193
+ # For object, use to_hash. Otherwise, just return the value
194
+ # @param [Object] value Any valid value
195
+ # @return [Hash] Returns the value in the form of hash
196
+ def _to_hash(value)
197
+ if value.is_a?(Array)
198
+ value.compact.map { |v| _to_hash(v) }
199
+ elsif value.is_a?(Hash)
200
+ {}.tap do |hash|
201
+ value.each { |k, v| hash[k] = _to_hash(v) }
202
+ end
203
+ elsif value.respond_to? :to_hash
204
+ value.to_hash
205
+ else
206
+ value
207
+ end
208
+ end
209
+
210
+ end
211
+ end
@@ -16,6 +16,8 @@ module UltracartClient
16
16
  class CustomReportExecutionParameter
17
17
  attr_accessor :name
18
18
 
19
+ attr_accessor :quick_pick_key
20
+
19
21
  attr_accessor :type
20
22
 
21
23
  attr_accessor :value
@@ -24,6 +26,7 @@ module UltracartClient
24
26
  def self.attribute_map
25
27
  {
26
28
  :'name' => :'name',
29
+ :'quick_pick_key' => :'quick_pick_key',
27
30
  :'type' => :'type',
28
31
  :'value' => :'value'
29
32
  }
@@ -33,6 +36,7 @@ module UltracartClient
33
36
  def self.swagger_types
34
37
  {
35
38
  :'name' => :'String',
39
+ :'quick_pick_key' => :'String',
36
40
  :'type' => :'String',
37
41
  :'value' => :'String'
38
42
  }
@@ -50,6 +54,10 @@ module UltracartClient
50
54
  self.name = attributes[:'name']
51
55
  end
52
56
 
57
+ if attributes.has_key?(:'quick_pick_key')
58
+ self.quick_pick_key = attributes[:'quick_pick_key']
59
+ end
60
+
53
61
  if attributes.has_key?(:'type')
54
62
  self.type = attributes[:'type']
55
63
  end
@@ -78,6 +86,7 @@ module UltracartClient
78
86
  return true if self.equal?(o)
79
87
  self.class == o.class &&
80
88
  name == o.name &&
89
+ quick_pick_key == o.quick_pick_key &&
81
90
  type == o.type &&
82
91
  value == o.value
83
92
  end
@@ -91,7 +100,7 @@ module UltracartClient
91
100
  # Calculates hash code according to all attributes.
92
101
  # @return [Fixnum] Hash code
93
102
  def hash
94
- [name, type, value].hash
103
+ [name, quick_pick_key, type, value].hash
95
104
  end
96
105
 
97
106
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.11.18'
14
+ VERSION = '3.11.19'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -242,6 +242,7 @@ require 'ultracart_api/models/conversation_virtual_agent_budget'
242
242
  require 'ultracart_api/models/conversation_virtual_agent_budget_response'
243
243
  require 'ultracart_api/models/conversation_virtual_agent_capabilities'
244
244
  require 'ultracart_api/models/conversation_virtual_agent_capabilities_response'
245
+ require 'ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department'
245
246
  require 'ultracart_api/models/conversation_webchat_context'
246
247
  require 'ultracart_api/models/conversation_webchat_queue_status'
247
248
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
@@ -323,6 +324,7 @@ require 'ultracart_api/models/coupons_request'
323
324
  require 'ultracart_api/models/coupons_response'
324
325
  require 'ultracart_api/models/currency'
325
326
  require 'ultracart_api/models/custom_dashboard'
327
+ require 'ultracart_api/models/custom_dashboard_execution_parameter'
326
328
  require 'ultracart_api/models/custom_dashboard_page'
327
329
  require 'ultracart_api/models/custom_dashboard_page_report'
328
330
  require 'ultracart_api/models/custom_dashboard_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.18
4
+ version: 3.11.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -452,6 +452,7 @@ files:
452
452
  - docs/ConversationVirtualAgentBudgetResponse.md
453
453
  - docs/ConversationVirtualAgentCapabilities.md
454
454
  - docs/ConversationVirtualAgentCapabilitiesResponse.md
455
+ - docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md
455
456
  - docs/ConversationWebchatContext.md
456
457
  - docs/ConversationWebchatQueueStatus.md
457
458
  - docs/ConversationWebchatQueueStatusAgent.md
@@ -534,6 +535,7 @@ files:
534
535
  - docs/CouponsResponse.md
535
536
  - docs/Currency.md
536
537
  - docs/CustomDashboard.md
538
+ - docs/CustomDashboardExecutionParameter.md
537
539
  - docs/CustomDashboardPage.md
538
540
  - docs/CustomDashboardPageReport.md
539
541
  - docs/CustomDashboardResponse.md
@@ -1378,6 +1380,7 @@ files:
1378
1380
  - lib/ultracart_api/models/conversation_virtual_agent_budget_response.rb
1379
1381
  - lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb
1380
1382
  - lib/ultracart_api/models/conversation_virtual_agent_capabilities_response.rb
1383
+ - lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb
1381
1384
  - lib/ultracart_api/models/conversation_webchat_context.rb
1382
1385
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
1383
1386
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
@@ -1459,6 +1462,7 @@ files:
1459
1462
  - lib/ultracart_api/models/coupons_response.rb
1460
1463
  - lib/ultracart_api/models/currency.rb
1461
1464
  - lib/ultracart_api/models/custom_dashboard.rb
1465
+ - lib/ultracart_api/models/custom_dashboard_execution_parameter.rb
1462
1466
  - lib/ultracart_api/models/custom_dashboard_page.rb
1463
1467
  - lib/ultracart_api/models/custom_dashboard_page_report.rb
1464
1468
  - lib/ultracart_api/models/custom_dashboard_response.rb