ultracart_api 3.10.71 → 3.10.73

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: 8c7426f708a2732a49b6b1d0acde9c62450df77d0c306ae15dffd84b5c0087eb
4
- data.tar.gz: c868275006dca84d6e5aa55d1714720a664aa1ce054d18d446942b06d91aad67
3
+ metadata.gz: dc14606b1afc57da9f86873291a29fcf6926727765ee8c27d1e537cadd739c09
4
+ data.tar.gz: dad1ffff57a1c4dda799f1331c2db1a39eeb166d160e49dbe70c79cb472b0f39
5
5
  SHA512:
6
- metadata.gz: 6dd95ac18e894a49cafbc4d2901aa50b8b0bb6086f326e6cd19cae049bf531ce7c5763b43d486cfd4c281df16b06b2186b38d71b967e9436886657bd2080f70f
7
- data.tar.gz: 19ea9f0798d761d980be54530e0aee1f7c547d1d15ff686b472a124ebc48a8784a86b4b8afe76438e5cdc6ecf75a4ff46a1473320fd15d5666efbd8b19888628
6
+ metadata.gz: d7ed042b8ef645836ae669da451b8e6aadd9eb70d47b549fc0f820c7fc48f012fc3b061afa77b799990fecc86ee1beda8d26d2c66439968a3761fd3c4ba5685a
7
+ data.tar.gz: 0dcc9c0cd37c901082c0df88a38abb5fed99cd9a98ee37e0d67227e49eebd5875d04baf042fdd0d26c094491bf85040a6b895e68e66bd2ab20212099df335f06
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.71
10
+ - Package version: 3.10.73
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.71.gem
27
+ gem install ./ultracart_api-3.10.73.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.71.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.73.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.71'
35
+ gem 'ultracart_api', '~> 3.10.73'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1225,6 +1225,8 @@ Not every change is committed to every SDK.
1225
1225
 
1226
1226
  | Version | Date | Comments |
1227
1227
  | --: | :-: | --- |
1228
+ | 3.10.73 | 11/30/2022 | conversations - add order and auto order information to webchat context |
1229
+ | 3.10.72 | 11/30/2022 | order item - addl fields for linking kits to kit components |
1228
1230
  | 3.10.71 | 11/29/2022 | converstation marked convo read method |
1229
1231
  | 3.10.70 | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
1230
1232
  | 3.10.69 | 11/21/2022 | conversation context method |
@@ -3,8 +3,10 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **auto_orders** | [**Array<AutoOrder>**](AutoOrder.md) | | [optional]
6
7
  **cart** | [**Cart**](Cart.md) | | [optional]
7
8
  **current_url** | **String** | | [optional]
9
+ **orders** | [**Array<Order>**](Order.md) | | [optional]
8
10
  **page_view** | [**Array<HitPageView>**](HitPageView.md) | | [optional]
9
11
  **session_start** | [**HitSessionStart**](HitSessionStart.md) | | [optional]
10
12
  **session_utm** | [**HitSessionUtm**](HitSessionUtm.md) | | [optional]
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]
@@ -14,10 +14,14 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ConversationWebchatContext
17
+ attr_accessor :auto_orders
18
+
17
19
  attr_accessor :cart
18
20
 
19
21
  attr_accessor :current_url
20
22
 
23
+ attr_accessor :orders
24
+
21
25
  attr_accessor :page_view
22
26
 
23
27
  attr_accessor :session_start
@@ -27,8 +31,10 @@ module UltracartClient
27
31
  # Attribute mapping from ruby-style variable name to JSON key.
28
32
  def self.attribute_map
29
33
  {
34
+ :'auto_orders' => :'auto_orders',
30
35
  :'cart' => :'cart',
31
36
  :'current_url' => :'current_url',
37
+ :'orders' => :'orders',
32
38
  :'page_view' => :'page_view',
33
39
  :'session_start' => :'session_start',
34
40
  :'session_utm' => :'session_utm'
@@ -38,8 +44,10 @@ module UltracartClient
38
44
  # Attribute type mapping.
39
45
  def self.swagger_types
40
46
  {
47
+ :'auto_orders' => :'Array<AutoOrder>',
41
48
  :'cart' => :'Cart',
42
49
  :'current_url' => :'String',
50
+ :'orders' => :'Array<Order>',
43
51
  :'page_view' => :'Array<HitPageView>',
44
52
  :'session_start' => :'HitSessionStart',
45
53
  :'session_utm' => :'HitSessionUtm'
@@ -54,6 +62,12 @@ module UltracartClient
54
62
  # convert string to symbol for hash key
55
63
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
64
 
65
+ if attributes.has_key?(:'auto_orders')
66
+ if (value = attributes[:'auto_orders']).is_a?(Array)
67
+ self.auto_orders = value
68
+ end
69
+ end
70
+
57
71
  if attributes.has_key?(:'cart')
58
72
  self.cart = attributes[:'cart']
59
73
  end
@@ -62,6 +76,12 @@ module UltracartClient
62
76
  self.current_url = attributes[:'current_url']
63
77
  end
64
78
 
79
+ if attributes.has_key?(:'orders')
80
+ if (value = attributes[:'orders']).is_a?(Array)
81
+ self.orders = value
82
+ end
83
+ end
84
+
65
85
  if attributes.has_key?(:'page_view')
66
86
  if (value = attributes[:'page_view']).is_a?(Array)
67
87
  self.page_view = value
@@ -95,8 +115,10 @@ module UltracartClient
95
115
  def ==(o)
96
116
  return true if self.equal?(o)
97
117
  self.class == o.class &&
118
+ auto_orders == o.auto_orders &&
98
119
  cart == o.cart &&
99
120
  current_url == o.current_url &&
121
+ orders == o.orders &&
100
122
  page_view == o.page_view &&
101
123
  session_start == o.session_start &&
102
124
  session_utm == o.session_utm
@@ -111,7 +133,7 @@ module UltracartClient
111
133
  # Calculates hash code according to all attributes.
112
134
  # @return [Fixnum] Hash code
113
135
  def hash
114
- [cart, current_url, page_view, session_start, session_utm].hash
136
+ [auto_orders, cart, current_url, orders, page_view, session_start, session_utm].hash
115
137
  end
116
138
 
117
139
  # Builds the object from hash
@@ -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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.71'
14
+ VERSION = '3.10.73'
15
15
  end
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.71
4
+ version: 3.10.73
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-29 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus