ultracart_api 4.0.152 → 4.0.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -4
- data/docs/ItemApi.md +369 -0
- data/docs/ItemPricingTierLimit.md +2 -0
- data/docs/ItemReview.md +17 -17
- data/docs/ItemReviewResponse.md +26 -0
- data/docs/ItemReviewsResponse.md +26 -0
- data/lib/ultracart_api/api/item_api.rb +360 -0
- data/lib/ultracart_api/models/item_pricing_tier_limit.rb +11 -1
- data/lib/ultracart_api/models/item_review.rb +291 -0
- data/lib/ultracart_api/models/item_review_response.rb +256 -0
- data/lib/ultracart_api/models/item_reviews_response.rb +259 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
@@ -160,6 +160,76 @@ module UltracartClient
|
|
160
160
|
return data, status_code, headers
|
161
161
|
end
|
162
162
|
|
163
|
+
# Delete a review
|
164
|
+
# Delete an item review.
|
165
|
+
# @param review_oid [Integer] The review oid to delete.
|
166
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [nil]
|
169
|
+
def delete_review(review_oid, merchant_item_oid, opts = {})
|
170
|
+
delete_review_with_http_info(review_oid, merchant_item_oid, opts)
|
171
|
+
nil
|
172
|
+
end
|
173
|
+
|
174
|
+
# Delete a review
|
175
|
+
# Delete an item review.
|
176
|
+
# @param review_oid [Integer] The review oid to delete.
|
177
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
180
|
+
def delete_review_with_http_info(review_oid, merchant_item_oid, opts = {})
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.delete_review ...'
|
183
|
+
end
|
184
|
+
# verify the required parameter 'review_oid' is set
|
185
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.delete_review"
|
187
|
+
end
|
188
|
+
# verify the required parameter 'merchant_item_oid' is set
|
189
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.delete_review"
|
191
|
+
end
|
192
|
+
# resource path
|
193
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', CGI.escape(review_oid.to_s)).sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
194
|
+
|
195
|
+
# query parameters
|
196
|
+
query_params = opts[:query_params] || {}
|
197
|
+
|
198
|
+
# header parameters
|
199
|
+
header_params = opts[:header_params] || {}
|
200
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
201
|
+
# HTTP header 'Accept' (if needed)
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
|
+
|
204
|
+
# form parameters
|
205
|
+
form_params = opts[:form_params] || {}
|
206
|
+
|
207
|
+
# http body (model)
|
208
|
+
post_body = opts[:debug_body]
|
209
|
+
|
210
|
+
# return_type
|
211
|
+
return_type = opts[:debug_return_type]
|
212
|
+
|
213
|
+
# auth_names
|
214
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
215
|
+
|
216
|
+
new_options = opts.merge(
|
217
|
+
:operation => :"ItemApi.delete_review",
|
218
|
+
:header_params => header_params,
|
219
|
+
:query_params => query_params,
|
220
|
+
:form_params => form_params,
|
221
|
+
:body => post_body,
|
222
|
+
:auth_names => auth_names,
|
223
|
+
:return_type => return_type
|
224
|
+
)
|
225
|
+
|
226
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug "API called: ItemApi#delete_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
+
end
|
230
|
+
return data, status_code, headers
|
231
|
+
end
|
232
|
+
|
163
233
|
# Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
164
234
|
# Retrieves a digital item (file information) from the account. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items.
|
165
235
|
# @param digital_item_oid [Integer] The digital item oid to retrieve.
|
@@ -647,6 +717,140 @@ module UltracartClient
|
|
647
717
|
return data, status_code, headers
|
648
718
|
end
|
649
719
|
|
720
|
+
# get a review
|
721
|
+
# Retrieve an item review.
|
722
|
+
# @param review_oid [Integer] The review oid to retrieve.
|
723
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
724
|
+
# @param [Hash] opts the optional parameters
|
725
|
+
# @return [ItemReviewResponse]
|
726
|
+
def get_review(review_oid, merchant_item_oid, opts = {})
|
727
|
+
data, _status_code, _headers = get_review_with_http_info(review_oid, merchant_item_oid, opts)
|
728
|
+
data
|
729
|
+
end
|
730
|
+
|
731
|
+
# get a review
|
732
|
+
# Retrieve an item review.
|
733
|
+
# @param review_oid [Integer] The review oid to retrieve.
|
734
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
735
|
+
# @param [Hash] opts the optional parameters
|
736
|
+
# @return [Array<(ItemReviewResponse, Integer, Hash)>] ItemReviewResponse data, response status code and response headers
|
737
|
+
def get_review_with_http_info(review_oid, merchant_item_oid, opts = {})
|
738
|
+
if @api_client.config.debugging
|
739
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_review ...'
|
740
|
+
end
|
741
|
+
# verify the required parameter 'review_oid' is set
|
742
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
743
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.get_review"
|
744
|
+
end
|
745
|
+
# verify the required parameter 'merchant_item_oid' is set
|
746
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
747
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_review"
|
748
|
+
end
|
749
|
+
# resource path
|
750
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', CGI.escape(review_oid.to_s)).sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
751
|
+
|
752
|
+
# query parameters
|
753
|
+
query_params = opts[:query_params] || {}
|
754
|
+
|
755
|
+
# header parameters
|
756
|
+
header_params = opts[:header_params] || {}
|
757
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
758
|
+
# HTTP header 'Accept' (if needed)
|
759
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
760
|
+
|
761
|
+
# form parameters
|
762
|
+
form_params = opts[:form_params] || {}
|
763
|
+
|
764
|
+
# http body (model)
|
765
|
+
post_body = opts[:debug_body]
|
766
|
+
|
767
|
+
# return_type
|
768
|
+
return_type = opts[:debug_return_type] || 'ItemReviewResponse'
|
769
|
+
|
770
|
+
# auth_names
|
771
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
772
|
+
|
773
|
+
new_options = opts.merge(
|
774
|
+
:operation => :"ItemApi.get_review",
|
775
|
+
:header_params => header_params,
|
776
|
+
:query_params => query_params,
|
777
|
+
:form_params => form_params,
|
778
|
+
:body => post_body,
|
779
|
+
:auth_names => auth_names,
|
780
|
+
:return_type => return_type
|
781
|
+
)
|
782
|
+
|
783
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
784
|
+
if @api_client.config.debugging
|
785
|
+
@api_client.config.logger.debug "API called: ItemApi#get_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
786
|
+
end
|
787
|
+
return data, status_code, headers
|
788
|
+
end
|
789
|
+
|
790
|
+
# get reviews for an item
|
791
|
+
# Retrieve item reviews.
|
792
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
793
|
+
# @param [Hash] opts the optional parameters
|
794
|
+
# @return [ItemReviewsResponse]
|
795
|
+
def get_reviews(merchant_item_oid, opts = {})
|
796
|
+
data, _status_code, _headers = get_reviews_with_http_info(merchant_item_oid, opts)
|
797
|
+
data
|
798
|
+
end
|
799
|
+
|
800
|
+
# get reviews for an item
|
801
|
+
# Retrieve item reviews.
|
802
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
803
|
+
# @param [Hash] opts the optional parameters
|
804
|
+
# @return [Array<(ItemReviewsResponse, Integer, Hash)>] ItemReviewsResponse data, response status code and response headers
|
805
|
+
def get_reviews_with_http_info(merchant_item_oid, opts = {})
|
806
|
+
if @api_client.config.debugging
|
807
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_reviews ...'
|
808
|
+
end
|
809
|
+
# verify the required parameter 'merchant_item_oid' is set
|
810
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
811
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_reviews"
|
812
|
+
end
|
813
|
+
# resource path
|
814
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews'.sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
815
|
+
|
816
|
+
# query parameters
|
817
|
+
query_params = opts[:query_params] || {}
|
818
|
+
|
819
|
+
# header parameters
|
820
|
+
header_params = opts[:header_params] || {}
|
821
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
822
|
+
# HTTP header 'Accept' (if needed)
|
823
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
824
|
+
|
825
|
+
# form parameters
|
826
|
+
form_params = opts[:form_params] || {}
|
827
|
+
|
828
|
+
# http body (model)
|
829
|
+
post_body = opts[:debug_body]
|
830
|
+
|
831
|
+
# return_type
|
832
|
+
return_type = opts[:debug_return_type] || 'ItemReviewsResponse'
|
833
|
+
|
834
|
+
# auth_names
|
835
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
836
|
+
|
837
|
+
new_options = opts.merge(
|
838
|
+
:operation => :"ItemApi.get_reviews",
|
839
|
+
:header_params => header_params,
|
840
|
+
:query_params => query_params,
|
841
|
+
:form_params => form_params,
|
842
|
+
:body => post_body,
|
843
|
+
:auth_names => auth_names,
|
844
|
+
:return_type => return_type
|
845
|
+
)
|
846
|
+
|
847
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
848
|
+
if @api_client.config.debugging
|
849
|
+
@api_client.config.logger.debug "API called: ItemApi#get_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
850
|
+
end
|
851
|
+
return data, status_code, headers
|
852
|
+
end
|
853
|
+
|
650
854
|
# Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
|
651
855
|
# Retrieves a group of digital items (file information) from the account that are not yet associated with any actual items. If no parameters are specified, all digital items will be returned. Be aware that these are not normal items that can be added to a shopping cart. Rather, they are digital files that may be associated with normal items. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
652
856
|
# @param [Hash] opts the optional parameters
|
@@ -867,6 +1071,81 @@ module UltracartClient
|
|
867
1071
|
return data, status_code, headers
|
868
1072
|
end
|
869
1073
|
|
1074
|
+
# Insert a review
|
1075
|
+
# Insert a item review.
|
1076
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
1077
|
+
# @param review [ItemReview] Review to insert
|
1078
|
+
# @param [Hash] opts the optional parameters
|
1079
|
+
# @return [ItemReviewResponse]
|
1080
|
+
def insert_review(merchant_item_oid, review, opts = {})
|
1081
|
+
data, _status_code, _headers = insert_review_with_http_info(merchant_item_oid, review, opts)
|
1082
|
+
data
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# Insert a review
|
1086
|
+
# Insert a item review.
|
1087
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
1088
|
+
# @param review [ItemReview] Review to insert
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @return [Array<(ItemReviewResponse, Integer, Hash)>] ItemReviewResponse data, response status code and response headers
|
1091
|
+
def insert_review_with_http_info(merchant_item_oid, review, opts = {})
|
1092
|
+
if @api_client.config.debugging
|
1093
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.insert_review ...'
|
1094
|
+
end
|
1095
|
+
# verify the required parameter 'merchant_item_oid' is set
|
1096
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.insert_review"
|
1098
|
+
end
|
1099
|
+
# verify the required parameter 'review' is set
|
1100
|
+
if @api_client.config.client_side_validation && review.nil?
|
1101
|
+
fail ArgumentError, "Missing the required parameter 'review' when calling ItemApi.insert_review"
|
1102
|
+
end
|
1103
|
+
# resource path
|
1104
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews'.sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
1105
|
+
|
1106
|
+
# query parameters
|
1107
|
+
query_params = opts[:query_params] || {}
|
1108
|
+
|
1109
|
+
# header parameters
|
1110
|
+
header_params = opts[:header_params] || {}
|
1111
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1112
|
+
# HTTP header 'Accept' (if needed)
|
1113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1114
|
+
# HTTP header 'Content-Type'
|
1115
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1116
|
+
if !content_type.nil?
|
1117
|
+
header_params['Content-Type'] = content_type
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# form parameters
|
1121
|
+
form_params = opts[:form_params] || {}
|
1122
|
+
|
1123
|
+
# http body (model)
|
1124
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(review)
|
1125
|
+
|
1126
|
+
# return_type
|
1127
|
+
return_type = opts[:debug_return_type] || 'ItemReviewResponse'
|
1128
|
+
|
1129
|
+
# auth_names
|
1130
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1131
|
+
|
1132
|
+
new_options = opts.merge(
|
1133
|
+
:operation => :"ItemApi.insert_review",
|
1134
|
+
:header_params => header_params,
|
1135
|
+
:query_params => query_params,
|
1136
|
+
:form_params => form_params,
|
1137
|
+
:body => post_body,
|
1138
|
+
:auth_names => auth_names,
|
1139
|
+
:return_type => return_type
|
1140
|
+
)
|
1141
|
+
|
1142
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1143
|
+
if @api_client.config.debugging
|
1144
|
+
@api_client.config.logger.debug "API called: ItemApi#insert_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1145
|
+
end
|
1146
|
+
return data, status_code, headers
|
1147
|
+
end
|
1148
|
+
|
870
1149
|
# Updates a file within the digital library
|
871
1150
|
# Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
872
1151
|
# @param digital_item_oid [Integer] The digital item oid to update.
|
@@ -1101,6 +1380,87 @@ module UltracartClient
|
|
1101
1380
|
return data, status_code, headers
|
1102
1381
|
end
|
1103
1382
|
|
1383
|
+
# Update a review
|
1384
|
+
# Update an item review.
|
1385
|
+
# @param review_oid [Integer] The review oid to update.
|
1386
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
1387
|
+
# @param review [ItemReview] Review to update
|
1388
|
+
# @param [Hash] opts the optional parameters
|
1389
|
+
# @return [ItemReviewResponse]
|
1390
|
+
def update_review(review_oid, merchant_item_oid, review, opts = {})
|
1391
|
+
data, _status_code, _headers = update_review_with_http_info(review_oid, merchant_item_oid, review, opts)
|
1392
|
+
data
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
# Update a review
|
1396
|
+
# Update an item review.
|
1397
|
+
# @param review_oid [Integer] The review oid to update.
|
1398
|
+
# @param merchant_item_oid [Integer] The item oid the review is associated with.
|
1399
|
+
# @param review [ItemReview] Review to update
|
1400
|
+
# @param [Hash] opts the optional parameters
|
1401
|
+
# @return [Array<(ItemReviewResponse, Integer, Hash)>] ItemReviewResponse data, response status code and response headers
|
1402
|
+
def update_review_with_http_info(review_oid, merchant_item_oid, review, opts = {})
|
1403
|
+
if @api_client.config.debugging
|
1404
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.update_review ...'
|
1405
|
+
end
|
1406
|
+
# verify the required parameter 'review_oid' is set
|
1407
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
1408
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.update_review"
|
1409
|
+
end
|
1410
|
+
# verify the required parameter 'merchant_item_oid' is set
|
1411
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.update_review"
|
1413
|
+
end
|
1414
|
+
# verify the required parameter 'review' is set
|
1415
|
+
if @api_client.config.client_side_validation && review.nil?
|
1416
|
+
fail ArgumentError, "Missing the required parameter 'review' when calling ItemApi.update_review"
|
1417
|
+
end
|
1418
|
+
# resource path
|
1419
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', CGI.escape(review_oid.to_s)).sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
1420
|
+
|
1421
|
+
# query parameters
|
1422
|
+
query_params = opts[:query_params] || {}
|
1423
|
+
|
1424
|
+
# header parameters
|
1425
|
+
header_params = opts[:header_params] || {}
|
1426
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1427
|
+
# HTTP header 'Accept' (if needed)
|
1428
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1429
|
+
# HTTP header 'Content-Type'
|
1430
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1431
|
+
if !content_type.nil?
|
1432
|
+
header_params['Content-Type'] = content_type
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
# form parameters
|
1436
|
+
form_params = opts[:form_params] || {}
|
1437
|
+
|
1438
|
+
# http body (model)
|
1439
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(review)
|
1440
|
+
|
1441
|
+
# return_type
|
1442
|
+
return_type = opts[:debug_return_type] || 'ItemReviewResponse'
|
1443
|
+
|
1444
|
+
# auth_names
|
1445
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1446
|
+
|
1447
|
+
new_options = opts.merge(
|
1448
|
+
:operation => :"ItemApi.update_review",
|
1449
|
+
:header_params => header_params,
|
1450
|
+
:query_params => query_params,
|
1451
|
+
:form_params => form_params,
|
1452
|
+
:body => post_body,
|
1453
|
+
:auth_names => auth_names,
|
1454
|
+
:return_type => return_type
|
1455
|
+
)
|
1456
|
+
|
1457
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1458
|
+
if @api_client.config.debugging
|
1459
|
+
@api_client.config.logger.debug "API called: ItemApi#update_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1460
|
+
end
|
1461
|
+
return data, status_code, headers
|
1462
|
+
end
|
1463
|
+
|
1104
1464
|
# Upload an image to the temporary multimedia.
|
1105
1465
|
# Uploads an image and returns back meta information about the image as well as the identifier needed for the item update.
|
1106
1466
|
# @param file [File] File to upload
|
@@ -18,6 +18,9 @@ module UltracartClient
|
|
18
18
|
# Cumulative order limit
|
19
19
|
attr_accessor :cumulative_order_limit
|
20
20
|
|
21
|
+
# Exempt from Minimum Item Count
|
22
|
+
attr_accessor :exempt_from_minimum_item_count
|
23
|
+
|
21
24
|
# Individual order limit
|
22
25
|
attr_accessor :individual_order_limit
|
23
26
|
|
@@ -28,6 +31,7 @@ module UltracartClient
|
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'cumulative_order_limit' => :'cumulative_order_limit',
|
34
|
+
:'exempt_from_minimum_item_count' => :'exempt_from_minimum_item_count',
|
31
35
|
:'individual_order_limit' => :'individual_order_limit',
|
32
36
|
:'multiple_quantity' => :'multiple_quantity'
|
33
37
|
}
|
@@ -42,6 +46,7 @@ module UltracartClient
|
|
42
46
|
def self.openapi_types
|
43
47
|
{
|
44
48
|
:'cumulative_order_limit' => :'Integer',
|
49
|
+
:'exempt_from_minimum_item_count' => :'Boolean',
|
45
50
|
:'individual_order_limit' => :'Integer',
|
46
51
|
:'multiple_quantity' => :'Integer'
|
47
52
|
}
|
@@ -72,6 +77,10 @@ module UltracartClient
|
|
72
77
|
self.cumulative_order_limit = attributes[:'cumulative_order_limit']
|
73
78
|
end
|
74
79
|
|
80
|
+
if attributes.key?(:'exempt_from_minimum_item_count')
|
81
|
+
self.exempt_from_minimum_item_count = attributes[:'exempt_from_minimum_item_count']
|
82
|
+
end
|
83
|
+
|
75
84
|
if attributes.key?(:'individual_order_limit')
|
76
85
|
self.individual_order_limit = attributes[:'individual_order_limit']
|
77
86
|
end
|
@@ -100,6 +109,7 @@ module UltracartClient
|
|
100
109
|
return true if self.equal?(o)
|
101
110
|
self.class == o.class &&
|
102
111
|
cumulative_order_limit == o.cumulative_order_limit &&
|
112
|
+
exempt_from_minimum_item_count == o.exempt_from_minimum_item_count &&
|
103
113
|
individual_order_limit == o.individual_order_limit &&
|
104
114
|
multiple_quantity == o.multiple_quantity
|
105
115
|
end
|
@@ -113,7 +123,7 @@ module UltracartClient
|
|
113
123
|
# Calculates hash code according to all attributes.
|
114
124
|
# @return [Integer] Hash code
|
115
125
|
def hash
|
116
|
-
[cumulative_order_limit, individual_order_limit, multiple_quantity].hash
|
126
|
+
[cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity].hash
|
117
127
|
end
|
118
128
|
|
119
129
|
# Builds the object from hash
|