ultracart_api 4.0.88.rc → 4.0.90.rc
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33716e5c02b452d1bc9b8d2972d7959dcbb6f1d9c98cefbb25fdea95876715c6
|
4
|
+
data.tar.gz: 9e8c56875abfccb19e1cc52cab7b22ce005ca061d8cd795afa337efa853f7cd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee903116eba65e05721cdde09a1e1a1bd302eae5cf5706d1d5605004590cf3899e7dd0664cb33615170d2b54dc03d0bfa9fa4081ce019cea884f291a448ab29
|
7
|
+
data.tar.gz: ba2723a88627e54139b9ee1478a6c7a8b5331d7b7b337408b8bc6a136fdcf3c34db1acc5ab1338fd62fbd9892f8ee8089039af6f42b561437b121e08a2d09b00
|
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.90.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.90.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.90.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.90.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1234,6 +1234,8 @@ Not every change is committed to every SDK.
|
|
1234
1234
|
|
1235
1235
|
| Version | Date | Comments |
|
1236
1236
|
| --: | :-: | --- |
|
1237
|
+
| 4.0.90-RC | 11/30/2022 | conversations - add order and auto order information to webchat context |
|
1238
|
+
| 4.0.89-RC | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
1237
1239
|
| 4.0.88-RC | 11/29/2022 | converstation marked convo read method |
|
1238
1240
|
| 4.0.87-RC | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
1239
1241
|
| 4.0.86-RC | 11/21/2022 | conversation context method |
|
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **auto_orders** | [**Array<AutoOrder>**](AutoOrder.md) | | [optional] |
|
7
8
|
| **cart** | [**Cart**](Cart.md) | | [optional] |
|
8
9
|
| **current_url** | **String** | | [optional] |
|
10
|
+
| **orders** | [**Array<Order>**](Order.md) | | [optional] |
|
9
11
|
| **page_view** | [**Array<HitPageView>**](HitPageView.md) | | [optional] |
|
10
12
|
| **session_start** | [**HitSessionStart**](HitSessionStart.md) | | [optional] |
|
11
13
|
| **session_utm** | [**HitSessionUtm**](HitSessionUtm.md) | | [optional] |
|
@@ -16,8 +18,10 @@
|
|
16
18
|
require 'ultracart_api'
|
17
19
|
|
18
20
|
instance = UltracartClient::ConversationWebchatContext.new(
|
21
|
+
auto_orders: null,
|
19
22
|
cart: null,
|
20
23
|
current_url: null,
|
24
|
+
orders: null,
|
21
25
|
page_view: null,
|
22
26
|
session_start: null,
|
23
27
|
session_utm: null
|
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,
|
@@ -15,10 +15,14 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationWebchatContext
|
18
|
+
attr_accessor :auto_orders
|
19
|
+
|
18
20
|
attr_accessor :cart
|
19
21
|
|
20
22
|
attr_accessor :current_url
|
21
23
|
|
24
|
+
attr_accessor :orders
|
25
|
+
|
22
26
|
attr_accessor :page_view
|
23
27
|
|
24
28
|
attr_accessor :session_start
|
@@ -28,8 +32,10 @@ module UltracartClient
|
|
28
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
33
|
def self.attribute_map
|
30
34
|
{
|
35
|
+
:'auto_orders' => :'auto_orders',
|
31
36
|
:'cart' => :'cart',
|
32
37
|
:'current_url' => :'current_url',
|
38
|
+
:'orders' => :'orders',
|
33
39
|
:'page_view' => :'page_view',
|
34
40
|
:'session_start' => :'session_start',
|
35
41
|
:'session_utm' => :'session_utm'
|
@@ -44,8 +50,10 @@ module UltracartClient
|
|
44
50
|
# Attribute type mapping.
|
45
51
|
def self.openapi_types
|
46
52
|
{
|
53
|
+
:'auto_orders' => :'Array<AutoOrder>',
|
47
54
|
:'cart' => :'Cart',
|
48
55
|
:'current_url' => :'String',
|
56
|
+
:'orders' => :'Array<Order>',
|
49
57
|
:'page_view' => :'Array<HitPageView>',
|
50
58
|
:'session_start' => :'HitSessionStart',
|
51
59
|
:'session_utm' => :'HitSessionUtm'
|
@@ -73,6 +81,12 @@ module UltracartClient
|
|
73
81
|
h[k.to_sym] = v
|
74
82
|
}
|
75
83
|
|
84
|
+
if attributes.key?(:'auto_orders')
|
85
|
+
if (value = attributes[:'auto_orders']).is_a?(Array)
|
86
|
+
self.auto_orders = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
76
90
|
if attributes.key?(:'cart')
|
77
91
|
self.cart = attributes[:'cart']
|
78
92
|
end
|
@@ -81,6 +95,12 @@ module UltracartClient
|
|
81
95
|
self.current_url = attributes[:'current_url']
|
82
96
|
end
|
83
97
|
|
98
|
+
if attributes.key?(:'orders')
|
99
|
+
if (value = attributes[:'orders']).is_a?(Array)
|
100
|
+
self.orders = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
84
104
|
if attributes.key?(:'page_view')
|
85
105
|
if (value = attributes[:'page_view']).is_a?(Array)
|
86
106
|
self.page_view = value
|
@@ -114,8 +134,10 @@ module UltracartClient
|
|
114
134
|
def ==(o)
|
115
135
|
return true if self.equal?(o)
|
116
136
|
self.class == o.class &&
|
137
|
+
auto_orders == o.auto_orders &&
|
117
138
|
cart == o.cart &&
|
118
139
|
current_url == o.current_url &&
|
140
|
+
orders == o.orders &&
|
119
141
|
page_view == o.page_view &&
|
120
142
|
session_start == o.session_start &&
|
121
143
|
session_utm == o.session_utm
|
@@ -130,7 +152,7 @@ module UltracartClient
|
|
130
152
|
# Calculates hash code according to all attributes.
|
131
153
|
# @return [Integer] Hash code
|
132
154
|
def hash
|
133
|
-
[cart, current_url, page_view, session_start, session_utm].hash
|
155
|
+
[auto_orders, cart, current_url, orders, page_view, session_start, session_utm].hash
|
134
156
|
end
|
135
157
|
|
136
158
|
# Builds the object from hash
|
@@ -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.90.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
|