ultracart_api 4.0.87.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 +7 -4
- data/docs/ConversationApi.md +71 -0
- data/docs/ConversationMessage.md +2 -0
- data/docs/OrderItem.md +6 -0
- data/lib/ultracart_api/api/conversation_api.rb +64 -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: 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
|
|
@@ -141,6 +141,7 @@ Class | Method | HTTP request | Description
|
|
141
141
|
*UltracartClient::ConversationApi* | [**get_conversations**](docs/ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
142
142
|
*UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
143
143
|
*UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
144
|
+
*UltracartClient::ConversationApi* | [**mark_read_conversation**](docs/ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
|
144
145
|
*UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
145
146
|
*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
|
146
147
|
*UltracartClient::CouponApi* | [**delete_coupon**](docs/CouponApi.md#delete_coupon) | **DELETE** /coupon/coupons/{coupon_oid} | Delete a coupon
|
@@ -1233,6 +1234,8 @@ Not every change is committed to every SDK.
|
|
1233
1234
|
|
1234
1235
|
| Version | Date | Comments |
|
1235
1236
|
| --: | :-: | --- |
|
1237
|
+
| 4.0.89-RC | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
1238
|
+
| 4.0.88-RC | 11/29/2022 | converstation marked convo read method |
|
1236
1239
|
| 4.0.87-RC | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
1237
1240
|
| 4.0.86-RC | 11/21/2022 | conversation context method |
|
1238
1241
|
| 4.0.85-RC | 11/21/2022 | adjusted conversation event model |
|
data/docs/ConversationApi.md
CHANGED
@@ -14,6 +14,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
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
|
|
@@ -734,6 +735,76 @@ nil (empty response body)
|
|
734
735
|
- **Accept**: application/json
|
735
736
|
|
736
737
|
|
738
|
+
## mark_read_conversation
|
739
|
+
|
740
|
+
> mark_read_conversation(conversation_uuid)
|
741
|
+
|
742
|
+
Mark a conversation as read
|
743
|
+
|
744
|
+
Mark a conversation as read
|
745
|
+
|
746
|
+
### Examples
|
747
|
+
|
748
|
+
```ruby
|
749
|
+
require 'time'
|
750
|
+
require 'ultracart_api'
|
751
|
+
require 'json'
|
752
|
+
require 'yaml'
|
753
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
754
|
+
|
755
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
756
|
+
# As such, this might not be the best way to use this object.
|
757
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
758
|
+
|
759
|
+
api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
760
|
+
conversation_uuid = 'conversation_uuid_example' # String |
|
761
|
+
|
762
|
+
begin
|
763
|
+
# Mark a conversation as read
|
764
|
+
api_instance.mark_read_conversation(conversation_uuid)
|
765
|
+
rescue UltracartClient::ApiError => e
|
766
|
+
puts "Error when calling ConversationApi->mark_read_conversation: #{e}"
|
767
|
+
end
|
768
|
+
```
|
769
|
+
|
770
|
+
#### Using the mark_read_conversation_with_http_info variant
|
771
|
+
|
772
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
773
|
+
|
774
|
+
> <Array(nil, Integer, Hash)> mark_read_conversation_with_http_info(conversation_uuid)
|
775
|
+
|
776
|
+
```ruby
|
777
|
+
begin
|
778
|
+
# Mark a conversation as read
|
779
|
+
data, status_code, headers = api_instance.mark_read_conversation_with_http_info(conversation_uuid)
|
780
|
+
p status_code # => 2xx
|
781
|
+
p headers # => { ... }
|
782
|
+
p data # => nil
|
783
|
+
rescue UltracartClient::ApiError => e
|
784
|
+
puts "Error when calling ConversationApi->mark_read_conversation_with_http_info: #{e}"
|
785
|
+
end
|
786
|
+
```
|
787
|
+
|
788
|
+
### Parameters
|
789
|
+
|
790
|
+
| Name | Type | Description | Notes |
|
791
|
+
| ---- | ---- | ----------- | ----- |
|
792
|
+
| **conversation_uuid** | **String** | | |
|
793
|
+
|
794
|
+
### Return type
|
795
|
+
|
796
|
+
nil (empty response body)
|
797
|
+
|
798
|
+
### Authorization
|
799
|
+
|
800
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
801
|
+
|
802
|
+
### HTTP request headers
|
803
|
+
|
804
|
+
- **Content-Type**: Not defined
|
805
|
+
- **Accept**: application/json
|
806
|
+
|
807
|
+
|
737
808
|
## start_conversation
|
738
809
|
|
739
810
|
> <ConversationStartResponse> start_conversation(start_request)
|
data/docs/ConversationMessage.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
| **body** | **String** | | [optional] |
|
10
10
|
| **client_message_id** | **String** | | [optional] |
|
11
11
|
| **conversation_message_uuid** | **String** | | [optional] |
|
12
|
+
| **delay_until_dts** | **String** | Delay message transmission until date/time | [optional] |
|
12
13
|
| **media_urls** | **Array<String>** | | [optional] |
|
13
14
|
| **merchant_id** | **String** | | [optional] |
|
14
15
|
| **message_dts** | **String** | Message date/time | [optional] |
|
@@ -28,6 +29,7 @@ instance = UltracartClient::ConversationMessage.new(
|
|
28
29
|
body: null,
|
29
30
|
client_message_id: null,
|
30
31
|
conversation_message_uuid: null,
|
32
|
+
delay_until_dts: null,
|
31
33
|
media_urls: null,
|
32
34
|
merchant_id: null,
|
33
35
|
message_dts: 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,
|
@@ -672,6 +672,70 @@ module UltracartClient
|
|
672
672
|
return data, status_code, headers
|
673
673
|
end
|
674
674
|
|
675
|
+
# Mark a conversation as read
|
676
|
+
# Mark a conversation as read
|
677
|
+
# @param conversation_uuid [String]
|
678
|
+
# @param [Hash] opts the optional parameters
|
679
|
+
# @return [nil]
|
680
|
+
def mark_read_conversation(conversation_uuid, opts = {})
|
681
|
+
mark_read_conversation_with_http_info(conversation_uuid, opts)
|
682
|
+
nil
|
683
|
+
end
|
684
|
+
|
685
|
+
# Mark a conversation as read
|
686
|
+
# Mark a conversation as read
|
687
|
+
# @param conversation_uuid [String]
|
688
|
+
# @param [Hash] opts the optional parameters
|
689
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
690
|
+
def mark_read_conversation_with_http_info(conversation_uuid, opts = {})
|
691
|
+
if @api_client.config.debugging
|
692
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.mark_read_conversation ...'
|
693
|
+
end
|
694
|
+
# verify the required parameter 'conversation_uuid' is set
|
695
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
696
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.mark_read_conversation"
|
697
|
+
end
|
698
|
+
# resource path
|
699
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/markread'.sub('{' + 'conversation_uuid' + '}', CGI.escape(conversation_uuid.to_s))
|
700
|
+
|
701
|
+
# query parameters
|
702
|
+
query_params = opts[:query_params] || {}
|
703
|
+
|
704
|
+
# header parameters
|
705
|
+
header_params = opts[:header_params] || {}
|
706
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
707
|
+
# HTTP header 'Accept' (if needed)
|
708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
709
|
+
|
710
|
+
# form parameters
|
711
|
+
form_params = opts[:form_params] || {}
|
712
|
+
|
713
|
+
# http body (model)
|
714
|
+
post_body = opts[:debug_body]
|
715
|
+
|
716
|
+
# return_type
|
717
|
+
return_type = opts[:debug_return_type]
|
718
|
+
|
719
|
+
# auth_names
|
720
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
721
|
+
|
722
|
+
new_options = opts.merge(
|
723
|
+
:operation => :"ConversationApi.mark_read_conversation",
|
724
|
+
:header_params => header_params,
|
725
|
+
:query_params => query_params,
|
726
|
+
:form_params => form_params,
|
727
|
+
:body => post_body,
|
728
|
+
:auth_names => auth_names,
|
729
|
+
:return_type => return_type
|
730
|
+
)
|
731
|
+
|
732
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
733
|
+
if @api_client.config.debugging
|
734
|
+
@api_client.config.logger.debug "API called: ConversationApi#mark_read_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
735
|
+
end
|
736
|
+
return data, status_code, headers
|
737
|
+
end
|
738
|
+
|
675
739
|
# Start a conversation
|
676
740
|
# Start a new conversation
|
677
741
|
# @param start_request [ConversationStartRequest] Start request
|
@@ -25,6 +25,9 @@ module UltracartClient
|
|
25
25
|
|
26
26
|
attr_accessor :conversation_message_uuid
|
27
27
|
|
28
|
+
# Delay message transmission until date/time
|
29
|
+
attr_accessor :delay_until_dts
|
30
|
+
|
28
31
|
attr_accessor :media_urls
|
29
32
|
|
30
33
|
attr_accessor :merchant_id
|
@@ -72,6 +75,7 @@ module UltracartClient
|
|
72
75
|
:'body' => :'body',
|
73
76
|
:'client_message_id' => :'client_message_id',
|
74
77
|
:'conversation_message_uuid' => :'conversation_message_uuid',
|
78
|
+
:'delay_until_dts' => :'delay_until_dts',
|
75
79
|
:'media_urls' => :'media_urls',
|
76
80
|
:'merchant_id' => :'merchant_id',
|
77
81
|
:'message_dts' => :'message_dts',
|
@@ -95,6 +99,7 @@ module UltracartClient
|
|
95
99
|
:'body' => :'String',
|
96
100
|
:'client_message_id' => :'String',
|
97
101
|
:'conversation_message_uuid' => :'String',
|
102
|
+
:'delay_until_dts' => :'String',
|
98
103
|
:'media_urls' => :'Array<String>',
|
99
104
|
:'merchant_id' => :'String',
|
100
105
|
:'message_dts' => :'String',
|
@@ -146,6 +151,10 @@ module UltracartClient
|
|
146
151
|
self.conversation_message_uuid = attributes[:'conversation_message_uuid']
|
147
152
|
end
|
148
153
|
|
154
|
+
if attributes.key?(:'delay_until_dts')
|
155
|
+
self.delay_until_dts = attributes[:'delay_until_dts']
|
156
|
+
end
|
157
|
+
|
149
158
|
if attributes.key?(:'media_urls')
|
150
159
|
if (value = attributes[:'media_urls']).is_a?(Array)
|
151
160
|
self.media_urls = value
|
@@ -216,6 +225,7 @@ module UltracartClient
|
|
216
225
|
body == o.body &&
|
217
226
|
client_message_id == o.client_message_id &&
|
218
227
|
conversation_message_uuid == o.conversation_message_uuid &&
|
228
|
+
delay_until_dts == o.delay_until_dts &&
|
219
229
|
media_urls == o.media_urls &&
|
220
230
|
merchant_id == o.merchant_id &&
|
221
231
|
message_dts == o.message_dts &&
|
@@ -234,7 +244,7 @@ module UltracartClient
|
|
234
244
|
# Calculates hash code according to all attributes.
|
235
245
|
# @return [Integer] Hash code
|
236
246
|
def hash
|
237
|
-
[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
|
247
|
+
[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
|
238
248
|
end
|
239
249
|
|
240
250
|
# 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.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
|