ultracart_api 3.10.71 → 3.10.72
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/OrderItem.md +3 -0
- data/lib/ultracart_api/models/order_item.rb +46 -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: a23cf90af37f343bfa79e47b903d3ba2bb171456e8f9b8bc6e2da4cb436806da
|
4
|
+
data.tar.gz: 6934ff83c022f9ab12072850e831ae87872138cc066cc8b6ab80a3c7b83debd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d89fc6270427f74a77797c57e1f8262d29628c6647ffac2cd79583f1d467467d8e41bd7945c26990bbca4686f7a282282bc5a9f763622833ed575c06c1f3e755
|
7
|
+
data.tar.gz: 654c0c2e4dbe086109db9ad680a03a17e1f0af6c28c482bbc07a7ea68e1a8380c55caa9b1cc289c310d40d59c110040df4f46a0e3fcbc6ac19673f0740aa25b1
|
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.72
|
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.72.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.72.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.72'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1225,6 +1225,7 @@ Not every change is committed to every SDK.
|
|
1225
1225
|
|
1226
1226
|
| Version | Date | Comments |
|
1227
1227
|
| --: | :-: | --- |
|
1228
|
+
| 3.10.72 | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
1228
1229
|
| 3.10.71 | 11/29/2022 | converstation marked convo read method |
|
1229
1230
|
| 3.10.70 | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
1230
1231
|
| 3.10.69 | 11/21/2022 | conversation context method |
|
data/docs/OrderItem.md
CHANGED
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|
25
25
|
**free_shipping** | **BOOLEAN** | True if the item receives free shipping | [optional]
|
26
26
|
**hazmat** | **BOOLEAN** | Hazardous materials indicator | [optional]
|
27
27
|
**height** | [**Distance**](Distance.md) | | [optional]
|
28
|
+
**item_index** | **Integer** | Index of the item on the order (one based index) | [optional]
|
28
29
|
**item_reference_oid** | **Integer** | Item reference object identifier used to linked to auto order item record | [optional]
|
29
30
|
**kit** | **BOOLEAN** | True if this item is a kit | [optional]
|
30
31
|
**kit_component** | **BOOLEAN** | True if this item is a kit component | [optional]
|
@@ -37,6 +38,8 @@ Name | Type | Description | Notes
|
|
37
38
|
**no_shipping_discount** | **BOOLEAN** | True if this item is excluded from shipping discounts | [optional]
|
38
39
|
**options** | [**Array<OrderItemOption>**](OrderItemOption.md) | Options | [optional]
|
39
40
|
**packed_by_user** | **String** | Packed by user | [optional]
|
41
|
+
**parent_item_index** | **Integer** | If this item is a kit component, this is the item index of the parent item (kit) | [optional]
|
42
|
+
**parent_merchant_item_id** | **String** | If this item is a kit component, this is the item id of the parent item (kit) | [optional]
|
40
43
|
**perishable_class** | **String** | Perishable class of the item | [optional]
|
41
44
|
**pricing_tier_name** | **String** | Pricing tier that granted the particular price for this item if the customer profile had pricing tiers assigned | [optional]
|
42
45
|
**properties** | [**Array<OrderItemProperty>**](OrderItemProperty.md) | Properties | [optional]
|
@@ -74,6 +74,9 @@ module UltracartClient
|
|
74
74
|
|
75
75
|
attr_accessor :height
|
76
76
|
|
77
|
+
# Index of the item on the order (one based index)
|
78
|
+
attr_accessor :item_index
|
79
|
+
|
77
80
|
# Item reference object identifier used to linked to auto order item record
|
78
81
|
attr_accessor :item_reference_oid
|
79
82
|
|
@@ -109,6 +112,12 @@ module UltracartClient
|
|
109
112
|
# Packed by user
|
110
113
|
attr_accessor :packed_by_user
|
111
114
|
|
115
|
+
# If this item is a kit component, this is the item index of the parent item (kit)
|
116
|
+
attr_accessor :parent_item_index
|
117
|
+
|
118
|
+
# If this item is a kit component, this is the item id of the parent item (kit)
|
119
|
+
attr_accessor :parent_merchant_item_id
|
120
|
+
|
112
121
|
# Perishable class of the item
|
113
122
|
attr_accessor :perishable_class
|
114
123
|
|
@@ -216,6 +225,7 @@ module UltracartClient
|
|
216
225
|
:'free_shipping' => :'free_shipping',
|
217
226
|
:'hazmat' => :'hazmat',
|
218
227
|
:'height' => :'height',
|
228
|
+
:'item_index' => :'item_index',
|
219
229
|
:'item_reference_oid' => :'item_reference_oid',
|
220
230
|
:'kit' => :'kit',
|
221
231
|
:'kit_component' => :'kit_component',
|
@@ -228,6 +238,8 @@ module UltracartClient
|
|
228
238
|
:'no_shipping_discount' => :'no_shipping_discount',
|
229
239
|
:'options' => :'options',
|
230
240
|
:'packed_by_user' => :'packed_by_user',
|
241
|
+
:'parent_item_index' => :'parent_item_index',
|
242
|
+
:'parent_merchant_item_id' => :'parent_merchant_item_id',
|
231
243
|
:'perishable_class' => :'perishable_class',
|
232
244
|
:'pricing_tier_name' => :'pricing_tier_name',
|
233
245
|
:'properties' => :'properties',
|
@@ -278,6 +290,7 @@ module UltracartClient
|
|
278
290
|
:'free_shipping' => :'BOOLEAN',
|
279
291
|
:'hazmat' => :'BOOLEAN',
|
280
292
|
:'height' => :'Distance',
|
293
|
+
:'item_index' => :'Integer',
|
281
294
|
:'item_reference_oid' => :'Integer',
|
282
295
|
:'kit' => :'BOOLEAN',
|
283
296
|
:'kit_component' => :'BOOLEAN',
|
@@ -290,6 +303,8 @@ module UltracartClient
|
|
290
303
|
:'no_shipping_discount' => :'BOOLEAN',
|
291
304
|
:'options' => :'Array<OrderItemOption>',
|
292
305
|
:'packed_by_user' => :'String',
|
306
|
+
:'parent_item_index' => :'Integer',
|
307
|
+
:'parent_merchant_item_id' => :'String',
|
293
308
|
:'perishable_class' => :'String',
|
294
309
|
:'pricing_tier_name' => :'String',
|
295
310
|
:'properties' => :'Array<OrderItemProperty>',
|
@@ -413,6 +428,10 @@ module UltracartClient
|
|
413
428
|
self.height = attributes[:'height']
|
414
429
|
end
|
415
430
|
|
431
|
+
if attributes.has_key?(:'item_index')
|
432
|
+
self.item_index = attributes[:'item_index']
|
433
|
+
end
|
434
|
+
|
416
435
|
if attributes.has_key?(:'item_reference_oid')
|
417
436
|
self.item_reference_oid = attributes[:'item_reference_oid']
|
418
437
|
end
|
@@ -463,6 +482,14 @@ module UltracartClient
|
|
463
482
|
self.packed_by_user = attributes[:'packed_by_user']
|
464
483
|
end
|
465
484
|
|
485
|
+
if attributes.has_key?(:'parent_item_index')
|
486
|
+
self.parent_item_index = attributes[:'parent_item_index']
|
487
|
+
end
|
488
|
+
|
489
|
+
if attributes.has_key?(:'parent_merchant_item_id')
|
490
|
+
self.parent_merchant_item_id = attributes[:'parent_merchant_item_id']
|
491
|
+
end
|
492
|
+
|
466
493
|
if attributes.has_key?(:'perishable_class')
|
467
494
|
self.perishable_class = attributes[:'perishable_class']
|
468
495
|
end
|
@@ -576,6 +603,10 @@ module UltracartClient
|
|
576
603
|
invalid_properties.push('invalid value for "merchant_item_id", the character length must be smaller than or equal to 20.')
|
577
604
|
end
|
578
605
|
|
606
|
+
if !@parent_merchant_item_id.nil? && @parent_merchant_item_id.to_s.length > 20
|
607
|
+
invalid_properties.push('invalid value for "parent_merchant_item_id", the character length must be smaller than or equal to 20.')
|
608
|
+
end
|
609
|
+
|
579
610
|
if !@perishable_class.nil? && @perishable_class.to_s.length > 50
|
580
611
|
invalid_properties.push('invalid value for "perishable_class", the character length must be smaller than or equal to 50.')
|
581
612
|
end
|
@@ -594,6 +625,7 @@ module UltracartClient
|
|
594
625
|
return false if !@country_code_of_origin.nil? && @country_code_of_origin.to_s.length > 2
|
595
626
|
return false if !@description.nil? && @description.to_s.length > 2000
|
596
627
|
return false if !@merchant_item_id.nil? && @merchant_item_id.to_s.length > 20
|
628
|
+
return false if !@parent_merchant_item_id.nil? && @parent_merchant_item_id.to_s.length > 20
|
597
629
|
return false if !@perishable_class.nil? && @perishable_class.to_s.length > 50
|
598
630
|
return false if !@quickbooks_class.nil? && @quickbooks_class.to_s.length > 31
|
599
631
|
tax_product_type_validator = EnumAttributeValidator.new('String', ['', 'digital', 'physical', 'service'])
|
@@ -641,6 +673,16 @@ module UltracartClient
|
|
641
673
|
@merchant_item_id = merchant_item_id
|
642
674
|
end
|
643
675
|
|
676
|
+
# Custom attribute writer method with validation
|
677
|
+
# @param [Object] parent_merchant_item_id Value to be assigned
|
678
|
+
def parent_merchant_item_id=(parent_merchant_item_id)
|
679
|
+
if !parent_merchant_item_id.nil? && parent_merchant_item_id.to_s.length > 20
|
680
|
+
fail ArgumentError, 'invalid value for "parent_merchant_item_id", the character length must be smaller than or equal to 20.'
|
681
|
+
end
|
682
|
+
|
683
|
+
@parent_merchant_item_id = parent_merchant_item_id
|
684
|
+
end
|
685
|
+
|
644
686
|
# Custom attribute writer method with validation
|
645
687
|
# @param [Object] perishable_class Value to be assigned
|
646
688
|
def perishable_class=(perishable_class)
|
@@ -698,6 +740,7 @@ module UltracartClient
|
|
698
740
|
free_shipping == o.free_shipping &&
|
699
741
|
hazmat == o.hazmat &&
|
700
742
|
height == o.height &&
|
743
|
+
item_index == o.item_index &&
|
701
744
|
item_reference_oid == o.item_reference_oid &&
|
702
745
|
kit == o.kit &&
|
703
746
|
kit_component == o.kit_component &&
|
@@ -710,6 +753,8 @@ module UltracartClient
|
|
710
753
|
no_shipping_discount == o.no_shipping_discount &&
|
711
754
|
options == o.options &&
|
712
755
|
packed_by_user == o.packed_by_user &&
|
756
|
+
parent_item_index == o.parent_item_index &&
|
757
|
+
parent_merchant_item_id == o.parent_merchant_item_id &&
|
713
758
|
perishable_class == o.perishable_class &&
|
714
759
|
pricing_tier_name == o.pricing_tier_name &&
|
715
760
|
properties == o.properties &&
|
@@ -743,7 +788,7 @@ module UltracartClient
|
|
743
788
|
# Calculates hash code according to all attributes.
|
744
789
|
# @return [Fixnum] Hash code
|
745
790
|
def hash
|
746
|
-
[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_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, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, 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
|
791
|
+
[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, 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
|
747
792
|
end
|
748
793
|
|
749
794
|
# 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.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|