ultracart_api 4.0.88.rc → 4.0.89.rc
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 +6 -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: 7b469eeecc0d51c0bebb12a9deb5217117004f9975de5088f47d140c460e7d6c
|
4
|
+
data.tar.gz: 31325d41f33f34f3e02a837f56d499c904c47f0cb5339b99c68f21130168b073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd6f127b9a177e1ed7ad74928639285064b6835a893966821389834d39656bfeaecfe554930314e5b8629179f27aa72e6ee5700bb39aad297f8fc70d9a45bf30
|
7
|
+
data.tar.gz: 8e758950eb6899ec4a60e2d80624764b669b2b79c072c3487bc7e809af973ae42db1d31370c5bd8781a1fd653f8fc5f0ae9a10890199505641bb8e30c00ee724
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.89.rc
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.89.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.89.rc.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.89.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1234,6 +1234,7 @@ Not every change is committed to every SDK.
|
|
1234
1234
|
|
1235
1235
|
| Version | Date | Comments |
|
1236
1236
|
| --: | :-: | --- |
|
1237
|
+
| 4.0.89-RC | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
1237
1238
|
| 4.0.88-RC | 11/29/2022 | converstation marked convo read method |
|
1238
1239
|
| 4.0.87-RC | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
1239
1240
|
| 4.0.86-RC | 11/21/2022 | conversation context method |
|
data/docs/OrderItem.md
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
| **free_shipping** | **Boolean** | True if the item receives free shipping | [optional] |
|
27
27
|
| **hazmat** | **Boolean** | Hazardous materials indicator | [optional] |
|
28
28
|
| **height** | [**Distance**](Distance.md) | | [optional] |
|
29
|
+
| **item_index** | **Integer** | Index of the item on the order (one based index) | [optional] |
|
29
30
|
| **item_reference_oid** | **Integer** | Item reference object identifier used to linked to auto order item record | [optional] |
|
30
31
|
| **kit** | **Boolean** | True if this item is a kit | [optional] |
|
31
32
|
| **kit_component** | **Boolean** | True if this item is a kit component | [optional] |
|
@@ -38,6 +39,8 @@
|
|
38
39
|
| **no_shipping_discount** | **Boolean** | True if this item is excluded from shipping discounts | [optional] |
|
39
40
|
| **options** | [**Array<OrderItemOption>**](OrderItemOption.md) | Options | [optional] |
|
40
41
|
| **packed_by_user** | **String** | Packed by user | [optional] |
|
42
|
+
| **parent_item_index** | **Integer** | If this item is a kit component, this is the item index of the parent item (kit) | [optional] |
|
43
|
+
| **parent_merchant_item_id** | **String** | If this item is a kit component, this is the item id of the parent item (kit) | [optional] |
|
41
44
|
| **perishable_class** | **String** | Perishable class of the item | [optional] |
|
42
45
|
| **pricing_tier_name** | **String** | Pricing tier that granted the particular price for this item if the customer profile had pricing tiers assigned | [optional] |
|
43
46
|
| **properties** | [**Array<OrderItemProperty>**](OrderItemProperty.md) | Properties | [optional] |
|
@@ -89,6 +92,7 @@ instance = UltracartClient::OrderItem.new(
|
|
89
92
|
free_shipping: null,
|
90
93
|
hazmat: null,
|
91
94
|
height: null,
|
95
|
+
item_index: null,
|
92
96
|
item_reference_oid: null,
|
93
97
|
kit: null,
|
94
98
|
kit_component: null,
|
@@ -101,6 +105,8 @@ instance = UltracartClient::OrderItem.new(
|
|
101
105
|
no_shipping_discount: null,
|
102
106
|
options: null,
|
103
107
|
packed_by_user: null,
|
108
|
+
parent_item_index: null,
|
109
|
+
parent_merchant_item_id: null,
|
104
110
|
perishable_class: null,
|
105
111
|
pricing_tier_name: null,
|
106
112
|
properties: null,
|
@@ -75,6 +75,9 @@ module UltracartClient
|
|
75
75
|
|
76
76
|
attr_accessor :height
|
77
77
|
|
78
|
+
# Index of the item on the order (one based index)
|
79
|
+
attr_accessor :item_index
|
80
|
+
|
78
81
|
# Item reference object identifier used to linked to auto order item record
|
79
82
|
attr_accessor :item_reference_oid
|
80
83
|
|
@@ -110,6 +113,12 @@ module UltracartClient
|
|
110
113
|
# Packed by user
|
111
114
|
attr_accessor :packed_by_user
|
112
115
|
|
116
|
+
# If this item is a kit component, this is the item index of the parent item (kit)
|
117
|
+
attr_accessor :parent_item_index
|
118
|
+
|
119
|
+
# If this item is a kit component, this is the item id of the parent item (kit)
|
120
|
+
attr_accessor :parent_merchant_item_id
|
121
|
+
|
113
122
|
# Perishable class of the item
|
114
123
|
attr_accessor :perishable_class
|
115
124
|
|
@@ -217,6 +226,7 @@ module UltracartClient
|
|
217
226
|
:'free_shipping' => :'free_shipping',
|
218
227
|
:'hazmat' => :'hazmat',
|
219
228
|
:'height' => :'height',
|
229
|
+
:'item_index' => :'item_index',
|
220
230
|
:'item_reference_oid' => :'item_reference_oid',
|
221
231
|
:'kit' => :'kit',
|
222
232
|
:'kit_component' => :'kit_component',
|
@@ -229,6 +239,8 @@ module UltracartClient
|
|
229
239
|
:'no_shipping_discount' => :'no_shipping_discount',
|
230
240
|
:'options' => :'options',
|
231
241
|
:'packed_by_user' => :'packed_by_user',
|
242
|
+
:'parent_item_index' => :'parent_item_index',
|
243
|
+
:'parent_merchant_item_id' => :'parent_merchant_item_id',
|
232
244
|
:'perishable_class' => :'perishable_class',
|
233
245
|
:'pricing_tier_name' => :'pricing_tier_name',
|
234
246
|
:'properties' => :'properties',
|
@@ -284,6 +296,7 @@ module UltracartClient
|
|
284
296
|
:'free_shipping' => :'Boolean',
|
285
297
|
:'hazmat' => :'Boolean',
|
286
298
|
:'height' => :'Distance',
|
299
|
+
:'item_index' => :'Integer',
|
287
300
|
:'item_reference_oid' => :'Integer',
|
288
301
|
:'kit' => :'Boolean',
|
289
302
|
:'kit_component' => :'Boolean',
|
@@ -296,6 +309,8 @@ module UltracartClient
|
|
296
309
|
:'no_shipping_discount' => :'Boolean',
|
297
310
|
:'options' => :'Array<OrderItemOption>',
|
298
311
|
:'packed_by_user' => :'String',
|
312
|
+
:'parent_item_index' => :'Integer',
|
313
|
+
:'parent_merchant_item_id' => :'String',
|
299
314
|
:'perishable_class' => :'String',
|
300
315
|
:'pricing_tier_name' => :'String',
|
301
316
|
:'properties' => :'Array<OrderItemProperty>',
|
@@ -432,6 +447,10 @@ module UltracartClient
|
|
432
447
|
self.height = attributes[:'height']
|
433
448
|
end
|
434
449
|
|
450
|
+
if attributes.key?(:'item_index')
|
451
|
+
self.item_index = attributes[:'item_index']
|
452
|
+
end
|
453
|
+
|
435
454
|
if attributes.key?(:'item_reference_oid')
|
436
455
|
self.item_reference_oid = attributes[:'item_reference_oid']
|
437
456
|
end
|
@@ -482,6 +501,14 @@ module UltracartClient
|
|
482
501
|
self.packed_by_user = attributes[:'packed_by_user']
|
483
502
|
end
|
484
503
|
|
504
|
+
if attributes.key?(:'parent_item_index')
|
505
|
+
self.parent_item_index = attributes[:'parent_item_index']
|
506
|
+
end
|
507
|
+
|
508
|
+
if attributes.key?(:'parent_merchant_item_id')
|
509
|
+
self.parent_merchant_item_id = attributes[:'parent_merchant_item_id']
|
510
|
+
end
|
511
|
+
|
485
512
|
if attributes.key?(:'perishable_class')
|
486
513
|
self.perishable_class = attributes[:'perishable_class']
|
487
514
|
end
|
@@ -595,6 +622,10 @@ module UltracartClient
|
|
595
622
|
invalid_properties.push('invalid value for "merchant_item_id", the character length must be smaller than or equal to 20.')
|
596
623
|
end
|
597
624
|
|
625
|
+
if !@parent_merchant_item_id.nil? && @parent_merchant_item_id.to_s.length > 20
|
626
|
+
invalid_properties.push('invalid value for "parent_merchant_item_id", the character length must be smaller than or equal to 20.')
|
627
|
+
end
|
628
|
+
|
598
629
|
if !@perishable_class.nil? && @perishable_class.to_s.length > 50
|
599
630
|
invalid_properties.push('invalid value for "perishable_class", the character length must be smaller than or equal to 50.')
|
600
631
|
end
|
@@ -613,6 +644,7 @@ module UltracartClient
|
|
613
644
|
return false if !@country_code_of_origin.nil? && @country_code_of_origin.to_s.length > 2
|
614
645
|
return false if !@description.nil? && @description.to_s.length > 2000
|
615
646
|
return false if !@merchant_item_id.nil? && @merchant_item_id.to_s.length > 20
|
647
|
+
return false if !@parent_merchant_item_id.nil? && @parent_merchant_item_id.to_s.length > 20
|
616
648
|
return false if !@perishable_class.nil? && @perishable_class.to_s.length > 50
|
617
649
|
return false if !@quickbooks_class.nil? && @quickbooks_class.to_s.length > 31
|
618
650
|
tax_product_type_validator = EnumAttributeValidator.new('String', ["", "digital", "physical", "service"])
|
@@ -660,6 +692,16 @@ module UltracartClient
|
|
660
692
|
@merchant_item_id = merchant_item_id
|
661
693
|
end
|
662
694
|
|
695
|
+
# Custom attribute writer method with validation
|
696
|
+
# @param [Object] parent_merchant_item_id Value to be assigned
|
697
|
+
def parent_merchant_item_id=(parent_merchant_item_id)
|
698
|
+
if !parent_merchant_item_id.nil? && parent_merchant_item_id.to_s.length > 20
|
699
|
+
fail ArgumentError, 'invalid value for "parent_merchant_item_id", the character length must be smaller than or equal to 20.'
|
700
|
+
end
|
701
|
+
|
702
|
+
@parent_merchant_item_id = parent_merchant_item_id
|
703
|
+
end
|
704
|
+
|
663
705
|
# Custom attribute writer method with validation
|
664
706
|
# @param [Object] perishable_class Value to be assigned
|
665
707
|
def perishable_class=(perishable_class)
|
@@ -717,6 +759,7 @@ module UltracartClient
|
|
717
759
|
free_shipping == o.free_shipping &&
|
718
760
|
hazmat == o.hazmat &&
|
719
761
|
height == o.height &&
|
762
|
+
item_index == o.item_index &&
|
720
763
|
item_reference_oid == o.item_reference_oid &&
|
721
764
|
kit == o.kit &&
|
722
765
|
kit_component == o.kit_component &&
|
@@ -729,6 +772,8 @@ module UltracartClient
|
|
729
772
|
no_shipping_discount == o.no_shipping_discount &&
|
730
773
|
options == o.options &&
|
731
774
|
packed_by_user == o.packed_by_user &&
|
775
|
+
parent_item_index == o.parent_item_index &&
|
776
|
+
parent_merchant_item_id == o.parent_merchant_item_id &&
|
732
777
|
perishable_class == o.perishable_class &&
|
733
778
|
pricing_tier_name == o.pricing_tier_name &&
|
734
779
|
properties == o.properties &&
|
@@ -762,7 +807,7 @@ module UltracartClient
|
|
762
807
|
# Calculates hash code according to all attributes.
|
763
808
|
# @return [Integer] Hash code
|
764
809
|
def hash
|
765
|
-
[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
|
810
|
+
[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
|
766
811
|
end
|
767
812
|
|
768
813
|
# 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: 4.0.
|
4
|
+
version: 4.0.89.rc
|
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
|