ultracart_api 3.10.70 → 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 +7 -4
- data/docs/ConversationApi.md +50 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/OrderItem.md +3 -0
- data/lib/ultracart_api/api/conversation_api.rb +54 -0
- data/lib/ultracart_api/models/conversation_message.rb +11 -1
- 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
|
|
@@ -135,6 +135,7 @@ Class | Method | HTTP request | Description
|
|
135
135
|
*UltracartClient::ConversationApi* | [**get_conversations**](docs/ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
136
136
|
*UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
137
137
|
*UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
138
|
+
*UltracartClient::ConversationApi* | [**mark_read_conversation**](docs/ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
|
138
139
|
*UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
139
140
|
*UltracartClient::ConversationApi* | [**update_conversation_webchat_queue_status**](docs/ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue
|
140
141
|
*UltracartClient::CouponApi* | [**delete_coupon**](docs/CouponApi.md#delete_coupon) | **DELETE** /coupon/coupons/{coupon_oid} | Delete a coupon
|
@@ -1224,6 +1225,8 @@ Not every change is committed to every SDK.
|
|
1224
1225
|
|
1225
1226
|
| Version | Date | Comments |
|
1226
1227
|
| --: | :-: | --- |
|
1228
|
+
| 3.10.72 | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
1229
|
+
| 3.10.71 | 11/29/2022 | converstation marked convo read method |
|
1227
1230
|
| 3.10.70 | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
1228
1231
|
| 3.10.69 | 11/21/2022 | conversation context method |
|
1229
1232
|
| 3.10.68 | 11/21/2022 | adjusted conversation event model |
|
data/docs/ConversationApi.md
CHANGED
@@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
[**get_conversations**](ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
15
15
|
[**join_conversation**](ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
16
16
|
[**leave_conversation**](ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
17
|
+
[**mark_read_conversation**](ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
|
17
18
|
[**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
18
19
|
[**update_conversation_webchat_queue_status**](ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue
|
19
20
|
|
@@ -518,6 +519,55 @@ nil (empty response body)
|
|
518
519
|
|
519
520
|
|
520
521
|
|
522
|
+
# **mark_read_conversation**
|
523
|
+
> mark_read_conversation(conversation_uuid)
|
524
|
+
|
525
|
+
Mark a conversation as read
|
526
|
+
|
527
|
+
Mark a conversation as read
|
528
|
+
|
529
|
+
### Example
|
530
|
+
```ruby
|
531
|
+
# load the gem
|
532
|
+
require 'ultracart_api'
|
533
|
+
|
534
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
535
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
536
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
537
|
+
|
538
|
+
|
539
|
+
conversation_uuid = 'conversation_uuid_example' # String |
|
540
|
+
|
541
|
+
|
542
|
+
begin
|
543
|
+
#Mark a conversation as read
|
544
|
+
api_instance.mark_read_conversation(conversation_uuid)
|
545
|
+
rescue UltracartClient::ApiError => e
|
546
|
+
puts "Exception when calling ConversationApi->mark_read_conversation: #{e}"
|
547
|
+
end
|
548
|
+
```
|
549
|
+
|
550
|
+
### Parameters
|
551
|
+
|
552
|
+
Name | Type | Description | Notes
|
553
|
+
------------- | ------------- | ------------- | -------------
|
554
|
+
**conversation_uuid** | **String**| |
|
555
|
+
|
556
|
+
### Return type
|
557
|
+
|
558
|
+
nil (empty response body)
|
559
|
+
|
560
|
+
### Authorization
|
561
|
+
|
562
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
563
|
+
|
564
|
+
### HTTP request headers
|
565
|
+
|
566
|
+
- **Content-Type**: application/json
|
567
|
+
- **Accept**: application/json
|
568
|
+
|
569
|
+
|
570
|
+
|
521
571
|
# **start_conversation**
|
522
572
|
> ConversationStartResponse start_conversation(start_request)
|
523
573
|
|
data/docs/ConversationMessage.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**body** | **String** | | [optional]
|
9
9
|
**client_message_id** | **String** | | [optional]
|
10
10
|
**conversation_message_uuid** | **String** | | [optional]
|
11
|
+
**delay_until_dts** | **String** | Delay message transmission until date/time | [optional]
|
11
12
|
**media_urls** | **Array<String>** | | [optional]
|
12
13
|
**merchant_id** | **String** | | [optional]
|
13
14
|
**message_dts** | **String** | Message date/time | [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]
|
@@ -579,6 +579,60 @@ module UltracartClient
|
|
579
579
|
end
|
580
580
|
return data, status_code, headers
|
581
581
|
end
|
582
|
+
# Mark a conversation as read
|
583
|
+
# Mark a conversation as read
|
584
|
+
# @param conversation_uuid
|
585
|
+
# @param [Hash] opts the optional parameters
|
586
|
+
# @return [nil]
|
587
|
+
def mark_read_conversation(conversation_uuid, opts = {})
|
588
|
+
mark_read_conversation_with_http_info(conversation_uuid, opts)
|
589
|
+
nil
|
590
|
+
end
|
591
|
+
|
592
|
+
# Mark a conversation as read
|
593
|
+
# Mark a conversation as read
|
594
|
+
# @param conversation_uuid
|
595
|
+
# @param [Hash] opts the optional parameters
|
596
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
597
|
+
def mark_read_conversation_with_http_info(conversation_uuid, opts = {})
|
598
|
+
if @api_client.config.debugging
|
599
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.mark_read_conversation ...'
|
600
|
+
end
|
601
|
+
# verify the required parameter 'conversation_uuid' is set
|
602
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
603
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.mark_read_conversation"
|
604
|
+
end
|
605
|
+
# resource path
|
606
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/markread'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
607
|
+
|
608
|
+
# query parameters
|
609
|
+
query_params = {}
|
610
|
+
|
611
|
+
# header parameters
|
612
|
+
header_params = {}
|
613
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
614
|
+
# HTTP header 'Accept' (if needed)
|
615
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
616
|
+
# HTTP header 'Content-Type'
|
617
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
618
|
+
|
619
|
+
# form parameters
|
620
|
+
form_params = {}
|
621
|
+
|
622
|
+
# http body (model)
|
623
|
+
post_body = nil
|
624
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
625
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
626
|
+
:header_params => header_params,
|
627
|
+
:query_params => query_params,
|
628
|
+
:form_params => form_params,
|
629
|
+
:body => post_body,
|
630
|
+
:auth_names => auth_names)
|
631
|
+
if @api_client.config.debugging
|
632
|
+
@api_client.config.logger.debug "API called: ConversationApi#mark_read_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
633
|
+
end
|
634
|
+
return data, status_code, headers
|
635
|
+
end
|
582
636
|
# Start a conversation
|
583
637
|
# Start a new conversation
|
584
638
|
# @param start_request Start request
|
@@ -24,6 +24,9 @@ module UltracartClient
|
|
24
24
|
|
25
25
|
attr_accessor :conversation_message_uuid
|
26
26
|
|
27
|
+
# Delay message transmission until date/time
|
28
|
+
attr_accessor :delay_until_dts
|
29
|
+
|
27
30
|
attr_accessor :media_urls
|
28
31
|
|
29
32
|
attr_accessor :merchant_id
|
@@ -71,6 +74,7 @@ module UltracartClient
|
|
71
74
|
:'body' => :'body',
|
72
75
|
:'client_message_id' => :'client_message_id',
|
73
76
|
:'conversation_message_uuid' => :'conversation_message_uuid',
|
77
|
+
:'delay_until_dts' => :'delay_until_dts',
|
74
78
|
:'media_urls' => :'media_urls',
|
75
79
|
:'merchant_id' => :'merchant_id',
|
76
80
|
:'message_dts' => :'message_dts',
|
@@ -89,6 +93,7 @@ module UltracartClient
|
|
89
93
|
:'body' => :'String',
|
90
94
|
:'client_message_id' => :'String',
|
91
95
|
:'conversation_message_uuid' => :'String',
|
96
|
+
:'delay_until_dts' => :'String',
|
92
97
|
:'media_urls' => :'Array<String>',
|
93
98
|
:'merchant_id' => :'String',
|
94
99
|
:'message_dts' => :'String',
|
@@ -127,6 +132,10 @@ module UltracartClient
|
|
127
132
|
self.conversation_message_uuid = attributes[:'conversation_message_uuid']
|
128
133
|
end
|
129
134
|
|
135
|
+
if attributes.has_key?(:'delay_until_dts')
|
136
|
+
self.delay_until_dts = attributes[:'delay_until_dts']
|
137
|
+
end
|
138
|
+
|
130
139
|
if attributes.has_key?(:'media_urls')
|
131
140
|
if (value = attributes[:'media_urls']).is_a?(Array)
|
132
141
|
self.media_urls = value
|
@@ -197,6 +206,7 @@ module UltracartClient
|
|
197
206
|
body == o.body &&
|
198
207
|
client_message_id == o.client_message_id &&
|
199
208
|
conversation_message_uuid == o.conversation_message_uuid &&
|
209
|
+
delay_until_dts == o.delay_until_dts &&
|
200
210
|
media_urls == o.media_urls &&
|
201
211
|
merchant_id == o.merchant_id &&
|
202
212
|
message_dts == o.message_dts &&
|
@@ -215,7 +225,7 @@ module UltracartClient
|
|
215
225
|
# Calculates hash code according to all attributes.
|
216
226
|
# @return [Fixnum] Hash code
|
217
227
|
def hash
|
218
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, media_urls, merchant_id, message_dts, message_epoch, transport_statuses, type, upload_keys].hash
|
228
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, delay_until_dts, media_urls, merchant_id, message_dts, message_epoch, transport_statuses, type, upload_keys].hash
|
219
229
|
end
|
220
230
|
|
221
231
|
# 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
|
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
|