ultracart_api 4.1.14 → 4.1.15

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -2
  3. data/docs/CartUpsellAfter.md +6 -2
  4. data/docs/ConversationVirtualAgentCapabilities.md +4 -0
  5. data/docs/CustomReport.md +36 -0
  6. data/docs/CustomReportAccountConfig.md +34 -0
  7. data/docs/CustomReportAccountConfigResponse.md +26 -0
  8. data/docs/CustomReportExecutionParameter.md +22 -0
  9. data/docs/CustomReportExecutionRequest.md +18 -0
  10. data/docs/CustomReportParameter.md +28 -0
  11. data/docs/CustomReportParameterOption.md +20 -0
  12. data/docs/CustomReportQuery.md +28 -0
  13. data/docs/CustomReportResponse.md +26 -0
  14. data/docs/CustomReportTooltip.md +20 -0
  15. data/docs/DatawarehouseApi.md +378 -0
  16. data/docs/Item.md +1 -1
  17. data/docs/OrderApi.md +109 -0
  18. data/lib/ultracart_api/api/datawarehouse_api.rb +474 -0
  19. data/lib/ultracart_api/api/order_api.rb +131 -0
  20. data/lib/ultracart_api/models/cart_upsell_after.rb +25 -5
  21. data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +55 -1
  22. data/lib/ultracart_api/models/custom_report.rb +306 -0
  23. data/lib/ultracart_api/models/custom_report_account_config.rb +296 -0
  24. data/lib/ultracart_api/models/custom_report_account_config_response.rb +256 -0
  25. data/lib/ultracart_api/models/custom_report_execution_parameter.rb +237 -0
  26. data/lib/ultracart_api/models/custom_report_execution_request.rb +221 -0
  27. data/lib/ultracart_api/models/custom_report_parameter.rb +266 -0
  28. data/lib/ultracart_api/models/custom_report_parameter_option.rb +228 -0
  29. data/lib/ultracart_api/models/custom_report_query.rb +266 -0
  30. data/lib/ultracart_api/models/custom_report_response.rb +256 -0
  31. data/lib/ultracart_api/models/custom_report_tooltip.rb +228 -0
  32. data/lib/ultracart_api/models/item.rb +1 -1
  33. data/lib/ultracart_api/version.rb +1 -1
  34. data/lib/ultracart_api.rb +10 -0
  35. metadata +22 -2
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class CustomReportTooltip
18
+ attr_accessor :column_name
19
+
20
+ attr_accessor :tooltip
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'column_name' => :'column_name',
26
+ :'tooltip' => :'tooltip'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'column_name' => :'String',
39
+ :'tooltip' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::CustomReportTooltip` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::CustomReportTooltip`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'column_name')
65
+ self.column_name = attributes[:'column_name']
66
+ end
67
+
68
+ if attributes.key?(:'tooltip')
69
+ self.tooltip = attributes[:'tooltip']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ column_name == o.column_name &&
92
+ tooltip == o.tooltip
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [column_name, tooltip].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = UltracartClient.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -91,7 +91,7 @@ module UltracartClient
91
91
  # Parent category of the item. Zero indicates the root folder.
92
92
  attr_accessor :parent_category_id
93
93
 
94
- # Parent category path. / indicates the root folder.
94
+ # Parent category path. / indicates the root folder. This is the folder structure within item management.
95
95
  attr_accessor :parent_category_path
96
96
 
97
97
  attr_accessor :payment_processing
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.14'
14
+ VERSION = '4.1.15'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -321,6 +321,16 @@ require 'ultracart_api/models/coupon_type'
321
321
  require 'ultracart_api/models/coupons_request'
322
322
  require 'ultracart_api/models/coupons_response'
323
323
  require 'ultracart_api/models/currency'
324
+ require 'ultracart_api/models/custom_report'
325
+ require 'ultracart_api/models/custom_report_account_config'
326
+ require 'ultracart_api/models/custom_report_account_config_response'
327
+ require 'ultracart_api/models/custom_report_execution_parameter'
328
+ require 'ultracart_api/models/custom_report_execution_request'
329
+ require 'ultracart_api/models/custom_report_parameter'
330
+ require 'ultracart_api/models/custom_report_parameter_option'
331
+ require 'ultracart_api/models/custom_report_query'
332
+ require 'ultracart_api/models/custom_report_response'
333
+ require 'ultracart_api/models/custom_report_tooltip'
324
334
  require 'ultracart_api/models/customer'
325
335
  require 'ultracart_api/models/customer_activity'
326
336
  require 'ultracart_api/models/customer_affiliate'
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: 4.1.14
4
+ version: 4.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-10 00:00:00.000000000 Z
11
+ date: 2025-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -372,6 +372,16 @@ files:
372
372
  - docs/CouponsRequest.md
373
373
  - docs/CouponsResponse.md
374
374
  - docs/Currency.md
375
+ - docs/CustomReport.md
376
+ - docs/CustomReportAccountConfig.md
377
+ - docs/CustomReportAccountConfigResponse.md
378
+ - docs/CustomReportExecutionParameter.md
379
+ - docs/CustomReportExecutionRequest.md
380
+ - docs/CustomReportParameter.md
381
+ - docs/CustomReportParameterOption.md
382
+ - docs/CustomReportQuery.md
383
+ - docs/CustomReportResponse.md
384
+ - docs/CustomReportTooltip.md
375
385
  - docs/Customer.md
376
386
  - docs/CustomerActivity.md
377
387
  - docs/CustomerAffiliate.md
@@ -1275,6 +1285,16 @@ files:
1275
1285
  - lib/ultracart_api/models/coupons_request.rb
1276
1286
  - lib/ultracart_api/models/coupons_response.rb
1277
1287
  - lib/ultracart_api/models/currency.rb
1288
+ - lib/ultracart_api/models/custom_report.rb
1289
+ - lib/ultracart_api/models/custom_report_account_config.rb
1290
+ - lib/ultracart_api/models/custom_report_account_config_response.rb
1291
+ - lib/ultracart_api/models/custom_report_execution_parameter.rb
1292
+ - lib/ultracart_api/models/custom_report_execution_request.rb
1293
+ - lib/ultracart_api/models/custom_report_parameter.rb
1294
+ - lib/ultracart_api/models/custom_report_parameter_option.rb
1295
+ - lib/ultracart_api/models/custom_report_query.rb
1296
+ - lib/ultracart_api/models/custom_report_response.rb
1297
+ - lib/ultracart_api/models/custom_report_tooltip.rb
1278
1298
  - lib/ultracart_api/models/customer.rb
1279
1299
  - lib/ultracart_api/models/customer_activity.rb
1280
1300
  - lib/ultracart_api/models/customer_affiliate.rb