ultracart_api 3.11.18 → 3.11.20

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -12
  3. data/docs/ConversationVirtualAgentCapabilities.md +3 -0
  4. data/docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md +9 -0
  5. data/docs/CustomDashboard.md +1 -0
  6. data/docs/CustomDashboardExecutionParameter.md +11 -0
  7. data/docs/CustomDashboardSchedule.md +12 -0
  8. data/docs/{ChargebackDisputeResponse.md → CustomDashboardScheduleResponse.md} +2 -2
  9. data/docs/{ChargebackDisputesResponse.md → CustomDashboardSchedulesResponse.md} +2 -2
  10. data/docs/CustomReport.md +1 -0
  11. data/docs/CustomReportExecutionParameter.md +1 -0
  12. data/docs/DatawarehouseApi.md +215 -0
  13. data/docs/EmailCampaign.md +2 -0
  14. data/lib/ultracart_api/api/datawarehouse_api.rb +243 -0
  15. data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +38 -6
  16. data/lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb +193 -0
  17. data/lib/ultracart_api/models/custom_dashboard.rb +15 -4
  18. data/lib/ultracart_api/models/custom_dashboard_execution_parameter.rb +211 -0
  19. data/lib/ultracart_api/models/custom_dashboard_schedule.rb +223 -0
  20. data/lib/ultracart_api/models/{chargeback_dispute_response.rb → custom_dashboard_schedule_response.rb} +11 -11
  21. data/lib/ultracart_api/models/{chargeback_disputes_response.rb → custom_dashboard_schedules_response.rb} +14 -13
  22. data/lib/ultracart_api/models/custom_report.rb +10 -1
  23. data/lib/ultracart_api/models/custom_report_execution_parameter.rb +10 -1
  24. data/lib/ultracart_api/models/email_campaign.rb +21 -1
  25. data/lib/ultracart_api/models/order_payment.rb +2 -2
  26. data/lib/ultracart_api/version.rb +1 -1
  27. data/lib/ultracart_api.rb +5 -4
  28. metadata +12 -10
  29. data/docs/ChargebackApi.md +0 -301
  30. data/docs/ChargebackDispute.md +0 -30
  31. data/lib/ultracart_api/api/chargeback_api.rb +0 -356
  32. data/lib/ultracart_api/models/chargeback_dispute.rb +0 -614
@@ -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
@@ -0,0 +1,223 @@
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 CustomDashboardSchedule
17
+ attr_accessor :cron_trigger_expression
18
+
19
+ attr_accessor :data_warehouse_custom_dashboard_oid
20
+
21
+ attr_accessor :data_warehouse_custom_dashboard_schedule_oid
22
+
23
+ attr_accessor :emails
24
+
25
+ # Date/time that the next send will occur.
26
+ attr_accessor :next_send_dts
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'cron_trigger_expression' => :'cron_trigger_expression',
32
+ :'data_warehouse_custom_dashboard_oid' => :'data_warehouse_custom_dashboard_oid',
33
+ :'data_warehouse_custom_dashboard_schedule_oid' => :'data_warehouse_custom_dashboard_schedule_oid',
34
+ :'emails' => :'emails',
35
+ :'next_send_dts' => :'next_send_dts'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'cron_trigger_expression' => :'String',
43
+ :'data_warehouse_custom_dashboard_oid' => :'Integer',
44
+ :'data_warehouse_custom_dashboard_schedule_oid' => :'Integer',
45
+ :'emails' => :'Array<String>',
46
+ :'next_send_dts' => :'String'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'cron_trigger_expression')
59
+ self.cron_trigger_expression = attributes[:'cron_trigger_expression']
60
+ end
61
+
62
+ if attributes.has_key?(:'data_warehouse_custom_dashboard_oid')
63
+ self.data_warehouse_custom_dashboard_oid = attributes[:'data_warehouse_custom_dashboard_oid']
64
+ end
65
+
66
+ if attributes.has_key?(:'data_warehouse_custom_dashboard_schedule_oid')
67
+ self.data_warehouse_custom_dashboard_schedule_oid = attributes[:'data_warehouse_custom_dashboard_schedule_oid']
68
+ end
69
+
70
+ if attributes.has_key?(:'emails')
71
+ if (value = attributes[:'emails']).is_a?(Array)
72
+ self.emails = value
73
+ end
74
+ end
75
+
76
+ if attributes.has_key?(:'next_send_dts')
77
+ self.next_send_dts = attributes[:'next_send_dts']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ cron_trigger_expression == o.cron_trigger_expression &&
100
+ data_warehouse_custom_dashboard_oid == o.data_warehouse_custom_dashboard_oid &&
101
+ data_warehouse_custom_dashboard_schedule_oid == o.data_warehouse_custom_dashboard_schedule_oid &&
102
+ emails == o.emails &&
103
+ next_send_dts == o.next_send_dts
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [cron_trigger_expression, data_warehouse_custom_dashboard_oid, data_warehouse_custom_dashboard_schedule_oid, emails, next_send_dts].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ self.class.swagger_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ DateTime.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :BOOLEAN
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ temp_model = UltracartClient.const_get(type).new
176
+ temp_model.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ next if value.nil?
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+ end
@@ -13,13 +13,13 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
13
13
  require 'date'
14
14
 
15
15
  module UltracartClient
16
- class ChargebackDisputeResponse
17
- attr_accessor :chargeback
18
-
16
+ class CustomDashboardScheduleResponse
19
17
  attr_accessor :error
20
18
 
21
19
  attr_accessor :metadata
22
20
 
21
+ attr_accessor :schedule
22
+
23
23
  # Indicates if API call was successful
24
24
  attr_accessor :success
25
25
 
@@ -28,9 +28,9 @@ module UltracartClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'chargeback' => :'chargeback',
32
31
  :'error' => :'error',
33
32
  :'metadata' => :'metadata',
33
+ :'schedule' => :'schedule',
34
34
  :'success' => :'success',
35
35
  :'warning' => :'warning'
36
36
  }
@@ -39,9 +39,9 @@ module UltracartClient
39
39
  # Attribute type mapping.
40
40
  def self.swagger_types
41
41
  {
42
- :'chargeback' => :'ChargebackDispute',
43
42
  :'error' => :'Error',
44
43
  :'metadata' => :'ResponseMetadata',
44
+ :'schedule' => :'CustomDashboardSchedule',
45
45
  :'success' => :'BOOLEAN',
46
46
  :'warning' => :'Warning'
47
47
  }
@@ -55,10 +55,6 @@ module UltracartClient
55
55
  # convert string to symbol for hash key
56
56
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
57
 
58
- if attributes.has_key?(:'chargeback')
59
- self.chargeback = attributes[:'chargeback']
60
- end
61
-
62
58
  if attributes.has_key?(:'error')
63
59
  self.error = attributes[:'error']
64
60
  end
@@ -67,6 +63,10 @@ module UltracartClient
67
63
  self.metadata = attributes[:'metadata']
68
64
  end
69
65
 
66
+ if attributes.has_key?(:'schedule')
67
+ self.schedule = attributes[:'schedule']
68
+ end
69
+
70
70
  if attributes.has_key?(:'success')
71
71
  self.success = attributes[:'success']
72
72
  end
@@ -94,9 +94,9 @@ module UltracartClient
94
94
  def ==(o)
95
95
  return true if self.equal?(o)
96
96
  self.class == o.class &&
97
- chargeback == o.chargeback &&
98
97
  error == o.error &&
99
98
  metadata == o.metadata &&
99
+ schedule == o.schedule &&
100
100
  success == o.success &&
101
101
  warning == o.warning
102
102
  end
@@ -110,7 +110,7 @@ module UltracartClient
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Fixnum] Hash code
112
112
  def hash
113
- [chargeback, error, metadata, success, warning].hash
113
+ [error, metadata, schedule, success, warning].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash
@@ -13,13 +13,14 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
13
13
  require 'date'
14
14
 
15
15
  module UltracartClient
16
- class ChargebackDisputesResponse
17
- attr_accessor :chargebacks
18
-
16
+ class CustomDashboardSchedulesResponse
19
17
  attr_accessor :error
20
18
 
21
19
  attr_accessor :metadata
22
20
 
21
+ # schedules
22
+ attr_accessor :schedules
23
+
23
24
  # Indicates if API call was successful
24
25
  attr_accessor :success
25
26
 
@@ -28,9 +29,9 @@ module UltracartClient
28
29
  # Attribute mapping from ruby-style variable name to JSON key.
29
30
  def self.attribute_map
30
31
  {
31
- :'chargebacks' => :'chargebacks',
32
32
  :'error' => :'error',
33
33
  :'metadata' => :'metadata',
34
+ :'schedules' => :'schedules',
34
35
  :'success' => :'success',
35
36
  :'warning' => :'warning'
36
37
  }
@@ -39,9 +40,9 @@ module UltracartClient
39
40
  # Attribute type mapping.
40
41
  def self.swagger_types
41
42
  {
42
- :'chargebacks' => :'Array<ChargebackDispute>',
43
43
  :'error' => :'Error',
44
44
  :'metadata' => :'ResponseMetadata',
45
+ :'schedules' => :'Array<CustomDashboardSchedule>',
45
46
  :'success' => :'BOOLEAN',
46
47
  :'warning' => :'Warning'
47
48
  }
@@ -55,12 +56,6 @@ module UltracartClient
55
56
  # convert string to symbol for hash key
56
57
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
58
 
58
- if attributes.has_key?(:'chargebacks')
59
- if (value = attributes[:'chargebacks']).is_a?(Array)
60
- self.chargebacks = value
61
- end
62
- end
63
-
64
59
  if attributes.has_key?(:'error')
65
60
  self.error = attributes[:'error']
66
61
  end
@@ -69,6 +64,12 @@ module UltracartClient
69
64
  self.metadata = attributes[:'metadata']
70
65
  end
71
66
 
67
+ if attributes.has_key?(:'schedules')
68
+ if (value = attributes[:'schedules']).is_a?(Array)
69
+ self.schedules = value
70
+ end
71
+ end
72
+
72
73
  if attributes.has_key?(:'success')
73
74
  self.success = attributes[:'success']
74
75
  end
@@ -96,9 +97,9 @@ module UltracartClient
96
97
  def ==(o)
97
98
  return true if self.equal?(o)
98
99
  self.class == o.class &&
99
- chargebacks == o.chargebacks &&
100
100
  error == o.error &&
101
101
  metadata == o.metadata &&
102
+ schedules == o.schedules &&
102
103
  success == o.success &&
103
104
  warning == o.warning
104
105
  end
@@ -112,7 +113,7 @@ module UltracartClient
112
113
  # Calculates hash code according to all attributes.
113
114
  # @return [Fixnum] Hash code
114
115
  def hash
115
- [chargebacks, error, metadata, success, warning].hash
116
+ [error, metadata, schedules, success, warning].hash
116
117
  end
117
118
 
118
119
  # Builds the object from hash
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class CustomReport
17
+ attr_accessor :business_analysis_prompt
18
+
17
19
  attr_accessor :chart_javascript
18
20
 
19
21
  attr_accessor :chart_javascript_url
@@ -37,6 +39,7 @@ module UltracartClient
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
42
+ :'business_analysis_prompt' => :'business_analysis_prompt',
40
43
  :'chart_javascript' => :'chart_javascript',
41
44
  :'chart_javascript_url' => :'chart_javascript_url',
42
45
  :'data_warehouse_report_config_oid' => :'data_warehouse_report_config_oid',
@@ -53,6 +56,7 @@ module UltracartClient
53
56
  # Attribute type mapping.
54
57
  def self.swagger_types
55
58
  {
59
+ :'business_analysis_prompt' => :'String',
56
60
  :'chart_javascript' => :'String',
57
61
  :'chart_javascript_url' => :'String',
58
62
  :'data_warehouse_report_config_oid' => :'Integer',
@@ -74,6 +78,10 @@ module UltracartClient
74
78
  # convert string to symbol for hash key
75
79
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
80
 
81
+ if attributes.has_key?(:'business_analysis_prompt')
82
+ self.business_analysis_prompt = attributes[:'business_analysis_prompt']
83
+ end
84
+
77
85
  if attributes.has_key?(:'chart_javascript')
78
86
  self.chart_javascript = attributes[:'chart_javascript']
79
87
  end
@@ -139,6 +147,7 @@ module UltracartClient
139
147
  def ==(o)
140
148
  return true if self.equal?(o)
141
149
  self.class == o.class &&
150
+ business_analysis_prompt == o.business_analysis_prompt &&
142
151
  chart_javascript == o.chart_javascript &&
143
152
  chart_javascript_url == o.chart_javascript_url &&
144
153
  data_warehouse_report_config_oid == o.data_warehouse_report_config_oid &&
@@ -160,7 +169,7 @@ module UltracartClient
160
169
  # Calculates hash code according to all attributes.
161
170
  # @return [Fixnum] Hash code
162
171
  def hash
163
- [chart_javascript, chart_javascript_url, data_warehouse_report_config_oid, dataset_security_level, group_name, merchant_id, name, parameters, queries, tooltips].hash
172
+ [business_analysis_prompt, chart_javascript, chart_javascript_url, data_warehouse_report_config_oid, dataset_security_level, group_name, merchant_id, name, parameters, queries, tooltips].hash
164
173
  end
165
174
 
166
175
  # Builds the object from hash
@@ -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