ultracart_api 3.10.159 → 3.10.161

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: 0bfd4bffb7834445a19af4a845dcb8d2297d9e9383aedfd5a3adc387619284ab
4
- data.tar.gz: 934b36fb39da7ee391b25485550bbdd9a3660a7f9046447bd52997df65d236cf
3
+ metadata.gz: 91d06ded053441fa51cbc536473c18fa3272c7faef94b4659eada67106a6fb4d
4
+ data.tar.gz: 3c2fea2b478dc3d604337b36350fc0317416016feb1eddf57d1180d8efcd8ea1
5
5
  SHA512:
6
- metadata.gz: 02ed595c62b74b8b28d0f182b4c85404195377a74d5e5988eec3a55b29f76f103757076e14ede8cc64bd493bb55c8e4d8d98e393033795f28ce89192ce2abc9c
7
- data.tar.gz: 2cfdd4da8fed47136a2e2a95df016bc224cfdcf19991005c2353d9fea6de4a8cdee2d981a3ca548f166318331cbdcab0726f74424e8bd62250a441a373839c13
6
+ metadata.gz: a2ee526b862b5cf858d7007649c623cabbdd538260a1989eb08dcceda37f29bbcf04f1ea427de37d4c8cc64276e6b80dbef25e87a41311a5b32b14d956784bd6
7
+ data.tar.gz: b35c18a4dd266b50f2570d787b12b14875f3751d5ad7c40f4c9cc78663ea52275cf2b64646a49ca2ebb8af0c926b03643c9a143c71e139a774ae45f56c4eb224
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.159
10
+ - Package version: 3.10.161
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.159.gem
27
+ gem install ./ultracart_api-3.10.161.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.159.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.161.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.159'
35
+ gem 'ultracart_api', '~> 3.10.161'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1154,6 +1154,7 @@ Class | Method | HTTP request | Description
1154
1154
  - [UltracartClient::ReportDataSetPage](docs/ReportDataSetPage.md)
1155
1155
  - [UltracartClient::ReportDataSetPageResponse](docs/ReportDataSetPageResponse.md)
1156
1156
  - [UltracartClient::ReportDataSetQuery](docs/ReportDataSetQuery.md)
1157
+ - [UltracartClient::ReportDataSetQueryOrderByColumn](docs/ReportDataSetQueryOrderByColumn.md)
1157
1158
  - [UltracartClient::ReportDataSetResponse](docs/ReportDataSetResponse.md)
1158
1159
  - [UltracartClient::ReportDataSetRow](docs/ReportDataSetRow.md)
1159
1160
  - [UltracartClient::ReportDataSetSchema](docs/ReportDataSetSchema.md)
@@ -1362,6 +1363,8 @@ Not every change is committed to every SDK.
1362
1363
 
1363
1364
  | Version | Date | Comments |
1364
1365
  | --: | :-: | --- |
1366
+ | 3.10.161 | 09/22/2023 | dwbi - new option to control order-by of result set |
1367
+ | 3.10.160 | 09/15/2023 | new item fields for additional barcodes |
1365
1368
  | 3.10.159 | 09/12/2023 | added oids to customer properties |
1366
1369
  | 3.10.158 | 09/06/2023 | esp condition for survey trigger |
1367
1370
  | 3.10.157 | 09/05/2023 | auto order schedule - add intervals for 4 6 and 8 weeks |
@@ -4,6 +4,10 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **barcode** | **String** | Barcode | [optional]
7
+ **barcode_gtin12** | **String** | Barcode - GTIN 12 | [optional]
8
+ **barcode_gtin14** | **String** | Barcode - GTIN 14 | [optional]
9
+ **barcode_upc11** | **String** | Barcode - UPC 11 | [optional]
10
+ **barcode_upc12** | **String** | Barcode - UPC 12 | [optional]
7
11
  **manufacturer_name** | **String** | Manufacturer Name | [optional]
8
12
  **manufacturer_sku** | **String** | Manufacturer SKU | [optional]
9
13
  **unspsc** | **String** | UNSPSC | [optional]
data/docs/OrderItem.md CHANGED
@@ -9,6 +9,10 @@ Name | Type | Description | Notes
9
9
  **auto_order_last_rebill_dts** | **String** | Date/time of the last rebill, used only during order insert to help project future rebills | [optional]
10
10
  **auto_order_schedule** | **String** | Auto order schedule, used only during inserts supplying the recurring schedule | [optional]
11
11
  **barcode** | **String** | Barcode | [optional]
12
+ **barcode_gtin12** | **String** | Barcode - GTIN 12 | [optional]
13
+ **barcode_gtin14** | **String** | Barcode - GTIN 14 | [optional]
14
+ **barcode_upc11** | **String** | Barcode - UPC 11 | [optional]
15
+ **barcode_upc12** | **String** | Barcode - UPC 12 | [optional]
12
16
  **channel_partner_item_id** | **String** | Channel partner item id if this order came through a channel partner and the channel partner item id was mapped to an internal item id | [optional]
13
17
  **cogs** | **Float** | Cost of goods sold | [optional]
14
18
  **component_unit_value** | **Float** | Value of the kit component item | [optional]
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional]
12
12
  **for_object_type** | **String** | The type of object this data set is for | [optional]
13
13
  **metrics** | [**Array<ReportPageVisualizationMetric>**](ReportPageVisualizationMetric.md) | | [optional]
14
+ **order_by_columns** | [**Array<ReportDataSetQueryOrderByColumn>**](ReportDataSetQueryOrderByColumn.md) | The columns to order by in the final result. If not specified the dimensions will be used | [optional]
14
15
  **page_size** | **Integer** | Result set page size. The default value is 200 records. Max is 10000. | [optional]
15
16
  **selected_filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional]
16
17
  **skip_cache** | **BOOLEAN** | True if the 15 minute cache should be skipped. | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ReportDataSetQueryOrderByColumn
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ascending** | **BOOLEAN** | | [optional]
7
+ **column_name** | **String** | | [optional]
8
+
9
+
@@ -17,6 +17,18 @@ module UltracartClient
17
17
  # Barcode
18
18
  attr_accessor :barcode
19
19
 
20
+ # Barcode - GTIN 12
21
+ attr_accessor :barcode_gtin12
22
+
23
+ # Barcode - GTIN 14
24
+ attr_accessor :barcode_gtin14
25
+
26
+ # Barcode - UPC 11
27
+ attr_accessor :barcode_upc11
28
+
29
+ # Barcode - UPC 12
30
+ attr_accessor :barcode_upc12
31
+
20
32
  # Manufacturer Name
21
33
  attr_accessor :manufacturer_name
22
34
 
@@ -30,6 +42,10 @@ module UltracartClient
30
42
  def self.attribute_map
31
43
  {
32
44
  :'barcode' => :'barcode',
45
+ :'barcode_gtin12' => :'barcode_gtin12',
46
+ :'barcode_gtin14' => :'barcode_gtin14',
47
+ :'barcode_upc11' => :'barcode_upc11',
48
+ :'barcode_upc12' => :'barcode_upc12',
33
49
  :'manufacturer_name' => :'manufacturer_name',
34
50
  :'manufacturer_sku' => :'manufacturer_sku',
35
51
  :'unspsc' => :'unspsc'
@@ -40,6 +56,10 @@ module UltracartClient
40
56
  def self.swagger_types
41
57
  {
42
58
  :'barcode' => :'String',
59
+ :'barcode_gtin12' => :'String',
60
+ :'barcode_gtin14' => :'String',
61
+ :'barcode_upc11' => :'String',
62
+ :'barcode_upc12' => :'String',
43
63
  :'manufacturer_name' => :'String',
44
64
  :'manufacturer_sku' => :'String',
45
65
  :'unspsc' => :'String'
@@ -58,6 +78,22 @@ module UltracartClient
58
78
  self.barcode = attributes[:'barcode']
59
79
  end
60
80
 
81
+ if attributes.has_key?(:'barcode_gtin12')
82
+ self.barcode_gtin12 = attributes[:'barcode_gtin12']
83
+ end
84
+
85
+ if attributes.has_key?(:'barcode_gtin14')
86
+ self.barcode_gtin14 = attributes[:'barcode_gtin14']
87
+ end
88
+
89
+ if attributes.has_key?(:'barcode_upc11')
90
+ self.barcode_upc11 = attributes[:'barcode_upc11']
91
+ end
92
+
93
+ if attributes.has_key?(:'barcode_upc12')
94
+ self.barcode_upc12 = attributes[:'barcode_upc12']
95
+ end
96
+
61
97
  if attributes.has_key?(:'manufacturer_name')
62
98
  self.manufacturer_name = attributes[:'manufacturer_name']
63
99
  end
@@ -79,6 +115,22 @@ module UltracartClient
79
115
  invalid_properties.push('invalid value for "barcode", the character length must be smaller than or equal to 30.')
80
116
  end
81
117
 
118
+ if !@barcode_gtin12.nil? && @barcode_gtin12.to_s.length > 12
119
+ invalid_properties.push('invalid value for "barcode_gtin12", the character length must be smaller than or equal to 12.')
120
+ end
121
+
122
+ if !@barcode_gtin14.nil? && @barcode_gtin14.to_s.length > 14
123
+ invalid_properties.push('invalid value for "barcode_gtin14", the character length must be smaller than or equal to 14.')
124
+ end
125
+
126
+ if !@barcode_upc11.nil? && @barcode_upc11.to_s.length > 11
127
+ invalid_properties.push('invalid value for "barcode_upc11", the character length must be smaller than or equal to 11.')
128
+ end
129
+
130
+ if !@barcode_upc12.nil? && @barcode_upc12.to_s.length > 12
131
+ invalid_properties.push('invalid value for "barcode_upc12", the character length must be smaller than or equal to 12.')
132
+ end
133
+
82
134
  if !@manufacturer_name.nil? && @manufacturer_name.to_s.length > 50
83
135
  invalid_properties.push('invalid value for "manufacturer_name", the character length must be smaller than or equal to 50.')
84
136
  end
@@ -98,6 +150,10 @@ module UltracartClient
98
150
  # @return true if the model is valid
99
151
  def valid?
100
152
  return false if !@barcode.nil? && @barcode.to_s.length > 30
153
+ return false if !@barcode_gtin12.nil? && @barcode_gtin12.to_s.length > 12
154
+ return false if !@barcode_gtin14.nil? && @barcode_gtin14.to_s.length > 14
155
+ return false if !@barcode_upc11.nil? && @barcode_upc11.to_s.length > 11
156
+ return false if !@barcode_upc12.nil? && @barcode_upc12.to_s.length > 12
101
157
  return false if !@manufacturer_name.nil? && @manufacturer_name.to_s.length > 50
102
158
  return false if !@manufacturer_sku.nil? && @manufacturer_sku.to_s.length > 25
103
159
  return false if !@unspsc.nil? && @unspsc.to_s.length > 20
@@ -114,6 +170,46 @@ module UltracartClient
114
170
  @barcode = barcode
115
171
  end
116
172
 
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] barcode_gtin12 Value to be assigned
175
+ def barcode_gtin12=(barcode_gtin12)
176
+ if !barcode_gtin12.nil? && barcode_gtin12.to_s.length > 12
177
+ fail ArgumentError, 'invalid value for "barcode_gtin12", the character length must be smaller than or equal to 12.'
178
+ end
179
+
180
+ @barcode_gtin12 = barcode_gtin12
181
+ end
182
+
183
+ # Custom attribute writer method with validation
184
+ # @param [Object] barcode_gtin14 Value to be assigned
185
+ def barcode_gtin14=(barcode_gtin14)
186
+ if !barcode_gtin14.nil? && barcode_gtin14.to_s.length > 14
187
+ fail ArgumentError, 'invalid value for "barcode_gtin14", the character length must be smaller than or equal to 14.'
188
+ end
189
+
190
+ @barcode_gtin14 = barcode_gtin14
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] barcode_upc11 Value to be assigned
195
+ def barcode_upc11=(barcode_upc11)
196
+ if !barcode_upc11.nil? && barcode_upc11.to_s.length > 11
197
+ fail ArgumentError, 'invalid value for "barcode_upc11", the character length must be smaller than or equal to 11.'
198
+ end
199
+
200
+ @barcode_upc11 = barcode_upc11
201
+ end
202
+
203
+ # Custom attribute writer method with validation
204
+ # @param [Object] barcode_upc12 Value to be assigned
205
+ def barcode_upc12=(barcode_upc12)
206
+ if !barcode_upc12.nil? && barcode_upc12.to_s.length > 12
207
+ fail ArgumentError, 'invalid value for "barcode_upc12", the character length must be smaller than or equal to 12.'
208
+ end
209
+
210
+ @barcode_upc12 = barcode_upc12
211
+ end
212
+
117
213
  # Custom attribute writer method with validation
118
214
  # @param [Object] manufacturer_name Value to be assigned
119
215
  def manufacturer_name=(manufacturer_name)
@@ -150,6 +246,10 @@ module UltracartClient
150
246
  return true if self.equal?(o)
151
247
  self.class == o.class &&
152
248
  barcode == o.barcode &&
249
+ barcode_gtin12 == o.barcode_gtin12 &&
250
+ barcode_gtin14 == o.barcode_gtin14 &&
251
+ barcode_upc11 == o.barcode_upc11 &&
252
+ barcode_upc12 == o.barcode_upc12 &&
153
253
  manufacturer_name == o.manufacturer_name &&
154
254
  manufacturer_sku == o.manufacturer_sku &&
155
255
  unspsc == o.unspsc
@@ -164,7 +264,7 @@ module UltracartClient
164
264
  # Calculates hash code according to all attributes.
165
265
  # @return [Fixnum] Hash code
166
266
  def hash
167
- [barcode, manufacturer_name, manufacturer_sku, unspsc].hash
267
+ [barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, manufacturer_name, manufacturer_sku, unspsc].hash
168
268
  end
169
269
 
170
270
  # Builds the object from hash
@@ -31,6 +31,18 @@ module UltracartClient
31
31
  # Barcode
32
32
  attr_accessor :barcode
33
33
 
34
+ # Barcode - GTIN 12
35
+ attr_accessor :barcode_gtin12
36
+
37
+ # Barcode - GTIN 14
38
+ attr_accessor :barcode_gtin14
39
+
40
+ # Barcode - UPC 11
41
+ attr_accessor :barcode_upc11
42
+
43
+ # Barcode - UPC 12
44
+ attr_accessor :barcode_upc12
45
+
34
46
  # Channel partner item id if this order came through a channel partner and the channel partner item id was mapped to an internal item id
35
47
  attr_accessor :channel_partner_item_id
36
48
 
@@ -215,6 +227,10 @@ module UltracartClient
215
227
  :'auto_order_last_rebill_dts' => :'auto_order_last_rebill_dts',
216
228
  :'auto_order_schedule' => :'auto_order_schedule',
217
229
  :'barcode' => :'barcode',
230
+ :'barcode_gtin12' => :'barcode_gtin12',
231
+ :'barcode_gtin14' => :'barcode_gtin14',
232
+ :'barcode_upc11' => :'barcode_upc11',
233
+ :'barcode_upc12' => :'barcode_upc12',
218
234
  :'channel_partner_item_id' => :'channel_partner_item_id',
219
235
  :'cogs' => :'cogs',
220
236
  :'component_unit_value' => :'component_unit_value',
@@ -282,6 +298,10 @@ module UltracartClient
282
298
  :'auto_order_last_rebill_dts' => :'String',
283
299
  :'auto_order_schedule' => :'String',
284
300
  :'barcode' => :'String',
301
+ :'barcode_gtin12' => :'String',
302
+ :'barcode_gtin14' => :'String',
303
+ :'barcode_upc11' => :'String',
304
+ :'barcode_upc12' => :'String',
285
305
  :'channel_partner_item_id' => :'String',
286
306
  :'cogs' => :'Float',
287
307
  :'component_unit_value' => :'Float',
@@ -374,6 +394,22 @@ module UltracartClient
374
394
  self.barcode = attributes[:'barcode']
375
395
  end
376
396
 
397
+ if attributes.has_key?(:'barcode_gtin12')
398
+ self.barcode_gtin12 = attributes[:'barcode_gtin12']
399
+ end
400
+
401
+ if attributes.has_key?(:'barcode_gtin14')
402
+ self.barcode_gtin14 = attributes[:'barcode_gtin14']
403
+ end
404
+
405
+ if attributes.has_key?(:'barcode_upc11')
406
+ self.barcode_upc11 = attributes[:'barcode_upc11']
407
+ end
408
+
409
+ if attributes.has_key?(:'barcode_upc12')
410
+ self.barcode_upc12 = attributes[:'barcode_upc12']
411
+ end
412
+
377
413
  if attributes.has_key?(:'channel_partner_item_id')
378
414
  self.channel_partner_item_id = attributes[:'channel_partner_item_id']
379
415
  end
@@ -605,6 +641,22 @@ module UltracartClient
605
641
  # @return Array for valid properties with the reasons
606
642
  def list_invalid_properties
607
643
  invalid_properties = Array.new
644
+ if !@barcode_gtin12.nil? && @barcode_gtin12.to_s.length > 12
645
+ invalid_properties.push('invalid value for "barcode_gtin12", the character length must be smaller than or equal to 12.')
646
+ end
647
+
648
+ if !@barcode_gtin14.nil? && @barcode_gtin14.to_s.length > 14
649
+ invalid_properties.push('invalid value for "barcode_gtin14", the character length must be smaller than or equal to 14.')
650
+ end
651
+
652
+ if !@barcode_upc11.nil? && @barcode_upc11.to_s.length > 11
653
+ invalid_properties.push('invalid value for "barcode_upc11", the character length must be smaller than or equal to 11.')
654
+ end
655
+
656
+ if !@barcode_upc12.nil? && @barcode_upc12.to_s.length > 12
657
+ invalid_properties.push('invalid value for "barcode_upc12", the character length must be smaller than or equal to 12.')
658
+ end
659
+
608
660
  if !@channel_partner_item_id.nil? && @channel_partner_item_id.to_s.length > 30
609
661
  invalid_properties.push('invalid value for "channel_partner_item_id", the character length must be smaller than or equal to 30.')
610
662
  end
@@ -639,6 +691,10 @@ module UltracartClient
639
691
  # Check to see if the all the properties in the model are valid
640
692
  # @return true if the model is valid
641
693
  def valid?
694
+ return false if !@barcode_gtin12.nil? && @barcode_gtin12.to_s.length > 12
695
+ return false if !@barcode_gtin14.nil? && @barcode_gtin14.to_s.length > 14
696
+ return false if !@barcode_upc11.nil? && @barcode_upc11.to_s.length > 11
697
+ return false if !@barcode_upc12.nil? && @barcode_upc12.to_s.length > 12
642
698
  return false if !@channel_partner_item_id.nil? && @channel_partner_item_id.to_s.length > 30
643
699
  return false if !@country_code_of_origin.nil? && @country_code_of_origin.to_s.length > 2
644
700
  return false if !@description.nil? && @description.to_s.length > 2000
@@ -651,6 +707,46 @@ module UltracartClient
651
707
  true
652
708
  end
653
709
 
710
+ # Custom attribute writer method with validation
711
+ # @param [Object] barcode_gtin12 Value to be assigned
712
+ def barcode_gtin12=(barcode_gtin12)
713
+ if !barcode_gtin12.nil? && barcode_gtin12.to_s.length > 12
714
+ fail ArgumentError, 'invalid value for "barcode_gtin12", the character length must be smaller than or equal to 12.'
715
+ end
716
+
717
+ @barcode_gtin12 = barcode_gtin12
718
+ end
719
+
720
+ # Custom attribute writer method with validation
721
+ # @param [Object] barcode_gtin14 Value to be assigned
722
+ def barcode_gtin14=(barcode_gtin14)
723
+ if !barcode_gtin14.nil? && barcode_gtin14.to_s.length > 14
724
+ fail ArgumentError, 'invalid value for "barcode_gtin14", the character length must be smaller than or equal to 14.'
725
+ end
726
+
727
+ @barcode_gtin14 = barcode_gtin14
728
+ end
729
+
730
+ # Custom attribute writer method with validation
731
+ # @param [Object] barcode_upc11 Value to be assigned
732
+ def barcode_upc11=(barcode_upc11)
733
+ if !barcode_upc11.nil? && barcode_upc11.to_s.length > 11
734
+ fail ArgumentError, 'invalid value for "barcode_upc11", the character length must be smaller than or equal to 11.'
735
+ end
736
+
737
+ @barcode_upc11 = barcode_upc11
738
+ end
739
+
740
+ # Custom attribute writer method with validation
741
+ # @param [Object] barcode_upc12 Value to be assigned
742
+ def barcode_upc12=(barcode_upc12)
743
+ if !barcode_upc12.nil? && barcode_upc12.to_s.length > 12
744
+ fail ArgumentError, 'invalid value for "barcode_upc12", the character length must be smaller than or equal to 12.'
745
+ end
746
+
747
+ @barcode_upc12 = barcode_upc12
748
+ end
749
+
654
750
  # Custom attribute writer method with validation
655
751
  # @param [Object] channel_partner_item_id Value to be assigned
656
752
  def channel_partner_item_id=(channel_partner_item_id)
@@ -742,6 +838,10 @@ module UltracartClient
742
838
  auto_order_last_rebill_dts == o.auto_order_last_rebill_dts &&
743
839
  auto_order_schedule == o.auto_order_schedule &&
744
840
  barcode == o.barcode &&
841
+ barcode_gtin12 == o.barcode_gtin12 &&
842
+ barcode_gtin14 == o.barcode_gtin14 &&
843
+ barcode_upc11 == o.barcode_upc11 &&
844
+ barcode_upc12 == o.barcode_upc12 &&
745
845
  channel_partner_item_id == o.channel_partner_item_id &&
746
846
  cogs == o.cogs &&
747
847
  component_unit_value == o.component_unit_value &&
@@ -808,7 +908,7 @@ module UltracartClient
808
908
  # Calculates hash code according to all attributes.
809
909
  # @return [Fixnum] Hash code
810
910
  def hash
811
- [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_index, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
911
+ [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_index, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
812
912
  end
813
913
 
814
914
  # Builds the object from hash
@@ -34,6 +34,9 @@ module UltracartClient
34
34
 
35
35
  attr_accessor :metrics
36
36
 
37
+ # The columns to order by in the final result. If not specified the dimensions will be used
38
+ attr_accessor :order_by_columns
39
+
37
40
  # Result set page size. The default value is 200 records. Max is 10000.
38
41
  attr_accessor :page_size
39
42
 
@@ -78,6 +81,7 @@ module UltracartClient
78
81
  :'for_object_id' => :'for_object_id',
79
82
  :'for_object_type' => :'for_object_type',
80
83
  :'metrics' => :'metrics',
84
+ :'order_by_columns' => :'order_by_columns',
81
85
  :'page_size' => :'page_size',
82
86
  :'selected_filters' => :'selected_filters',
83
87
  :'skip_cache' => :'skip_cache',
@@ -96,6 +100,7 @@ module UltracartClient
96
100
  :'for_object_id' => :'String',
97
101
  :'for_object_type' => :'String',
98
102
  :'metrics' => :'Array<ReportPageVisualizationMetric>',
103
+ :'order_by_columns' => :'Array<ReportDataSetQueryOrderByColumn>',
99
104
  :'page_size' => :'Integer',
100
105
  :'selected_filters' => :'Array<ReportFilter>',
101
106
  :'skip_cache' => :'BOOLEAN',
@@ -147,6 +152,12 @@ module UltracartClient
147
152
  end
148
153
  end
149
154
 
155
+ if attributes.has_key?(:'order_by_columns')
156
+ if (value = attributes[:'order_by_columns']).is_a?(Array)
157
+ self.order_by_columns = value
158
+ end
159
+ end
160
+
150
161
  if attributes.has_key?(:'page_size')
151
162
  self.page_size = attributes[:'page_size']
152
163
  end
@@ -204,6 +215,7 @@ module UltracartClient
204
215
  for_object_id == o.for_object_id &&
205
216
  for_object_type == o.for_object_type &&
206
217
  metrics == o.metrics &&
218
+ order_by_columns == o.order_by_columns &&
207
219
  page_size == o.page_size &&
208
220
  selected_filters == o.selected_filters &&
209
221
  skip_cache == o.skip_cache &&
@@ -219,7 +231,7 @@ module UltracartClient
219
231
  # Calculates hash code according to all attributes.
220
232
  # @return [Fixnum] Hash code
221
233
  def hash
222
- [comparison_results, data_set_query_uuid, data_source, dimensions, filter, for_object_id, for_object_type, metrics, page_size, selected_filters, skip_cache, user_data].hash
234
+ [comparison_results, data_set_query_uuid, data_source, dimensions, filter, for_object_id, for_object_type, metrics, order_by_columns, page_size, selected_filters, skip_cache, user_data].hash
223
235
  end
224
236
 
225
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 ReportDataSetQueryOrderByColumn
17
+ attr_accessor :ascending
18
+
19
+ attr_accessor :column_name
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'ascending' => :'ascending',
25
+ :'column_name' => :'column_name'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'ascending' => :'BOOLEAN',
33
+ :'column_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?(:'ascending')
46
+ self.ascending = attributes[:'ascending']
47
+ end
48
+
49
+ if attributes.has_key?(:'column_name')
50
+ self.column_name = attributes[:'column_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
+ ascending == o.ascending &&
73
+ column_name == o.column_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
+ [ascending, column_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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.159'
14
+ VERSION = '3.10.161'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -660,6 +660,7 @@ require 'ultracart_api/models/report_data_set_column'
660
660
  require 'ultracart_api/models/report_data_set_page'
661
661
  require 'ultracart_api/models/report_data_set_page_response'
662
662
  require 'ultracart_api/models/report_data_set_query'
663
+ require 'ultracart_api/models/report_data_set_query_order_by_column'
663
664
  require 'ultracart_api/models/report_data_set_response'
664
665
  require 'ultracart_api/models/report_data_set_row'
665
666
  require 'ultracart_api/models/report_data_set_schema'
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.159
4
+ version: 3.10.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -879,6 +879,7 @@ files:
879
879
  - docs/ReportDataSetPage.md
880
880
  - docs/ReportDataSetPageResponse.md
881
881
  - docs/ReportDataSetQuery.md
882
+ - docs/ReportDataSetQueryOrderByColumn.md
882
883
  - docs/ReportDataSetResponse.md
883
884
  - docs/ReportDataSetRow.md
884
885
  - docs/ReportDataSetSchema.md
@@ -1690,6 +1691,7 @@ files:
1690
1691
  - lib/ultracart_api/models/report_data_set_page.rb
1691
1692
  - lib/ultracart_api/models/report_data_set_page_response.rb
1692
1693
  - lib/ultracart_api/models/report_data_set_query.rb
1694
+ - lib/ultracart_api/models/report_data_set_query_order_by_column.rb
1693
1695
  - lib/ultracart_api/models/report_data_set_response.rb
1694
1696
  - lib/ultracart_api/models/report_data_set_row.rb
1695
1697
  - lib/ultracart_api/models/report_data_set_schema.rb