ultracart_api 3.10.159 → 3.10.160
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 +4 -4
- data/README.md +5 -4
- data/docs/ItemIdentifiers.md +4 -0
- data/docs/OrderItem.md +4 -0
- data/lib/ultracart_api/models/item_identifiers.rb +101 -1
- data/lib/ultracart_api/models/order_item.rb +101 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b030241bd9251e1cbbf04675286624f2c471a9dc2b2e2f77f7c5cd2b0518bf80
|
|
4
|
+
data.tar.gz: 97cf966347d315d15e257abf4fc8383e6a090422a9bc3615e9a3567a24bab2d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ed33851dec92aeb545a1cadc1e7a7c6e1f6f2ea91c0caaeea443b66f402a800681ebaf611d4e5aabbf9454ff14ac81f369c6a84b7ab5ac8e3f1c43f902d3532
|
|
7
|
+
data.tar.gz: d0c593c87739d88de0b81979ab3aeff624e9fb5342afabe38fa8af1898032baaa0ae8295e280f2ba18a0c3335fbaf3b6e0fdb0f6ab557f471439022ba93d3b6c
|
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.
|
|
10
|
+
- Package version: 3.10.160
|
|
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.
|
|
27
|
+
gem install ./ultracart_api-3.10.160.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.160.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.
|
|
35
|
+
gem 'ultracart_api', '~> 3.10.160'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -1362,6 +1362,7 @@ Not every change is committed to every SDK.
|
|
|
1362
1362
|
|
|
1363
1363
|
| Version | Date | Comments |
|
|
1364
1364
|
| --: | :-: | --- |
|
|
1365
|
+
| 3.10.160 | 09/15/2023 | new item fields for additional barcodes |
|
|
1365
1366
|
| 3.10.159 | 09/12/2023 | added oids to customer properties |
|
|
1366
1367
|
| 3.10.158 | 09/06/2023 | esp condition for survey trigger |
|
|
1367
1368
|
| 3.10.157 | 09/05/2023 | auto order schedule - add intervals for 4 6 and 8 weeks |
|
data/docs/ItemIdentifiers.md
CHANGED
|
@@ -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]
|
|
@@ -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
|
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.
|
|
4
|
+
version: 3.10.160
|
|
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-
|
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|