ultracart_api 3.10.136 → 3.10.138
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -4
- data/docs/AutoOrderItem.md +2 -0
- data/docs/ItemApi.md +269 -0
- data/docs/ItemPricingTierLimit.md +1 -0
- data/docs/ItemReview.md +17 -17
- data/docs/ItemReviewResponse.md +12 -0
- data/docs/ItemReviewsResponse.md +12 -0
- data/docs/ReportDataSet.md +1 -0
- data/lib/ultracart_api/api/item_api.rb +304 -0
- data/lib/ultracart_api/models/auto_order_item.rb +21 -1
- data/lib/ultracart_api/models/item_pricing_tier_limit.rb +16 -4
- data/lib/ultracart_api/models/item_review.rb +291 -0
- data/lib/ultracart_api/models/item_review_response.rb +221 -0
- data/lib/ultracart_api/models/item_reviews_response.rb +224 -0
- data/lib/ultracart_api/models/report_data_set.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
@@ -140,6 +140,66 @@ module UltracartClient
|
|
140
140
|
end
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
143
|
+
# Delete a review
|
144
|
+
# Delete an item review.
|
145
|
+
# @param review_oid The review oid to delete.
|
146
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @return [nil]
|
149
|
+
def delete_review(review_oid, merchant_item_oid, opts = {})
|
150
|
+
delete_review_with_http_info(review_oid, merchant_item_oid, opts)
|
151
|
+
nil
|
152
|
+
end
|
153
|
+
|
154
|
+
# Delete a review
|
155
|
+
# Delete an item review.
|
156
|
+
# @param review_oid The review oid to delete.
|
157
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
160
|
+
def delete_review_with_http_info(review_oid, merchant_item_oid, opts = {})
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.delete_review ...'
|
163
|
+
end
|
164
|
+
# verify the required parameter 'review_oid' is set
|
165
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.delete_review"
|
167
|
+
end
|
168
|
+
# verify the required parameter 'merchant_item_oid' is set
|
169
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.delete_review"
|
171
|
+
end
|
172
|
+
# resource path
|
173
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', review_oid.to_s).sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s)
|
174
|
+
|
175
|
+
# query parameters
|
176
|
+
query_params = {}
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = {}
|
180
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
|
+
# HTTP header 'Content-Type'
|
184
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
185
|
+
|
186
|
+
# form parameters
|
187
|
+
form_params = {}
|
188
|
+
|
189
|
+
# http body (model)
|
190
|
+
post_body = nil
|
191
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
192
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
193
|
+
:header_params => header_params,
|
194
|
+
:query_params => query_params,
|
195
|
+
:form_params => form_params,
|
196
|
+
:body => post_body,
|
197
|
+
:auth_names => auth_names)
|
198
|
+
if @api_client.config.debugging
|
199
|
+
@api_client.config.logger.debug "API called: ItemApi#delete_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
200
|
+
end
|
201
|
+
return data, status_code, headers
|
202
|
+
end
|
143
203
|
# Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
144
204
|
# 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.
|
145
205
|
# @param digital_item_oid The digital item oid to retrieve.
|
@@ -564,6 +624,122 @@ module UltracartClient
|
|
564
624
|
end
|
565
625
|
return data, status_code, headers
|
566
626
|
end
|
627
|
+
# Get a review
|
628
|
+
# Retrieve an item review.
|
629
|
+
# @param review_oid The review oid to retrieve.
|
630
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
631
|
+
# @param [Hash] opts the optional parameters
|
632
|
+
# @return [ItemReviewResponse]
|
633
|
+
def get_review(review_oid, merchant_item_oid, opts = {})
|
634
|
+
data, _status_code, _headers = get_review_with_http_info(review_oid, merchant_item_oid, opts)
|
635
|
+
data
|
636
|
+
end
|
637
|
+
|
638
|
+
# Get a review
|
639
|
+
# Retrieve an item review.
|
640
|
+
# @param review_oid The review oid to retrieve.
|
641
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
642
|
+
# @param [Hash] opts the optional parameters
|
643
|
+
# @return [Array<(ItemReviewResponse, Fixnum, Hash)>] ItemReviewResponse data, response status code and response headers
|
644
|
+
def get_review_with_http_info(review_oid, merchant_item_oid, opts = {})
|
645
|
+
if @api_client.config.debugging
|
646
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_review ...'
|
647
|
+
end
|
648
|
+
# verify the required parameter 'review_oid' is set
|
649
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
650
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.get_review"
|
651
|
+
end
|
652
|
+
# verify the required parameter 'merchant_item_oid' is set
|
653
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
654
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_review"
|
655
|
+
end
|
656
|
+
# resource path
|
657
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', review_oid.to_s).sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s)
|
658
|
+
|
659
|
+
# query parameters
|
660
|
+
query_params = {}
|
661
|
+
|
662
|
+
# header parameters
|
663
|
+
header_params = {}
|
664
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
665
|
+
# HTTP header 'Accept' (if needed)
|
666
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
667
|
+
# HTTP header 'Content-Type'
|
668
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
669
|
+
|
670
|
+
# form parameters
|
671
|
+
form_params = {}
|
672
|
+
|
673
|
+
# http body (model)
|
674
|
+
post_body = nil
|
675
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
676
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
677
|
+
:header_params => header_params,
|
678
|
+
:query_params => query_params,
|
679
|
+
:form_params => form_params,
|
680
|
+
:body => post_body,
|
681
|
+
:auth_names => auth_names,
|
682
|
+
:return_type => 'ItemReviewResponse')
|
683
|
+
if @api_client.config.debugging
|
684
|
+
@api_client.config.logger.debug "API called: ItemApi#get_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
685
|
+
end
|
686
|
+
return data, status_code, headers
|
687
|
+
end
|
688
|
+
# Get reviews for an item
|
689
|
+
# Retrieve item reviews.
|
690
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
691
|
+
# @param [Hash] opts the optional parameters
|
692
|
+
# @return [ItemReviewsResponse]
|
693
|
+
def get_reviews(merchant_item_oid, opts = {})
|
694
|
+
data, _status_code, _headers = get_reviews_with_http_info(merchant_item_oid, opts)
|
695
|
+
data
|
696
|
+
end
|
697
|
+
|
698
|
+
# Get reviews for an item
|
699
|
+
# Retrieve item reviews.
|
700
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
701
|
+
# @param [Hash] opts the optional parameters
|
702
|
+
# @return [Array<(ItemReviewsResponse, Fixnum, Hash)>] ItemReviewsResponse data, response status code and response headers
|
703
|
+
def get_reviews_with_http_info(merchant_item_oid, opts = {})
|
704
|
+
if @api_client.config.debugging
|
705
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_reviews ...'
|
706
|
+
end
|
707
|
+
# verify the required parameter 'merchant_item_oid' is set
|
708
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
709
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_reviews"
|
710
|
+
end
|
711
|
+
# resource path
|
712
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews'.sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s)
|
713
|
+
|
714
|
+
# query parameters
|
715
|
+
query_params = {}
|
716
|
+
|
717
|
+
# header parameters
|
718
|
+
header_params = {}
|
719
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
720
|
+
# HTTP header 'Accept' (if needed)
|
721
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
722
|
+
# HTTP header 'Content-Type'
|
723
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
724
|
+
|
725
|
+
# form parameters
|
726
|
+
form_params = {}
|
727
|
+
|
728
|
+
# http body (model)
|
729
|
+
post_body = nil
|
730
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
731
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
732
|
+
:header_params => header_params,
|
733
|
+
:query_params => query_params,
|
734
|
+
:form_params => form_params,
|
735
|
+
:body => post_body,
|
736
|
+
:auth_names => auth_names,
|
737
|
+
:return_type => 'ItemReviewsResponse')
|
738
|
+
if @api_client.config.debugging
|
739
|
+
@api_client.config.logger.debug "API called: ItemApi#get_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
740
|
+
end
|
741
|
+
return data, status_code, headers
|
742
|
+
end
|
567
743
|
# Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
|
568
744
|
# 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.
|
569
745
|
# @param [Hash] opts the optional parameters
|
@@ -747,6 +923,67 @@ module UltracartClient
|
|
747
923
|
end
|
748
924
|
return data, status_code, headers
|
749
925
|
end
|
926
|
+
# Insert a review
|
927
|
+
# Insert a item review.
|
928
|
+
# @param review Review to insert
|
929
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
930
|
+
# @param [Hash] opts the optional parameters
|
931
|
+
# @return [ItemReviewResponse]
|
932
|
+
def insert_review(review, merchant_item_oid, opts = {})
|
933
|
+
data, _status_code, _headers = insert_review_with_http_info(review, merchant_item_oid, opts)
|
934
|
+
data
|
935
|
+
end
|
936
|
+
|
937
|
+
# Insert a review
|
938
|
+
# Insert a item review.
|
939
|
+
# @param review Review to insert
|
940
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @return [Array<(ItemReviewResponse, Fixnum, Hash)>] ItemReviewResponse data, response status code and response headers
|
943
|
+
def insert_review_with_http_info(review, merchant_item_oid, opts = {})
|
944
|
+
if @api_client.config.debugging
|
945
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.insert_review ...'
|
946
|
+
end
|
947
|
+
# verify the required parameter 'review' is set
|
948
|
+
if @api_client.config.client_side_validation && review.nil?
|
949
|
+
fail ArgumentError, "Missing the required parameter 'review' when calling ItemApi.insert_review"
|
950
|
+
end
|
951
|
+
# verify the required parameter 'merchant_item_oid' is set
|
952
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
953
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.insert_review"
|
954
|
+
end
|
955
|
+
# resource path
|
956
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews'.sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s)
|
957
|
+
|
958
|
+
# query parameters
|
959
|
+
query_params = {}
|
960
|
+
|
961
|
+
# header parameters
|
962
|
+
header_params = {}
|
963
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
964
|
+
# HTTP header 'Accept' (if needed)
|
965
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
966
|
+
# HTTP header 'Content-Type'
|
967
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
968
|
+
|
969
|
+
# form parameters
|
970
|
+
form_params = {}
|
971
|
+
|
972
|
+
# http body (model)
|
973
|
+
post_body = @api_client.object_to_http_body(review)
|
974
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
975
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
976
|
+
:header_params => header_params,
|
977
|
+
:query_params => query_params,
|
978
|
+
:form_params => form_params,
|
979
|
+
:body => post_body,
|
980
|
+
:auth_names => auth_names,
|
981
|
+
:return_type => 'ItemReviewResponse')
|
982
|
+
if @api_client.config.debugging
|
983
|
+
@api_client.config.logger.debug "API called: ItemApi#insert_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
984
|
+
end
|
985
|
+
return data, status_code, headers
|
986
|
+
end
|
750
987
|
# Updates a file within the digital library
|
751
988
|
# 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.
|
752
989
|
# @param digital_item_oid The digital item oid to update.
|
@@ -939,6 +1176,73 @@ module UltracartClient
|
|
939
1176
|
end
|
940
1177
|
return data, status_code, headers
|
941
1178
|
end
|
1179
|
+
# Update a review
|
1180
|
+
# Update an item review.
|
1181
|
+
# @param review Review to update
|
1182
|
+
# @param review_oid The review oid to update.
|
1183
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
1184
|
+
# @param [Hash] opts the optional parameters
|
1185
|
+
# @return [ItemReviewResponse]
|
1186
|
+
def update_review(review, review_oid, merchant_item_oid, opts = {})
|
1187
|
+
data, _status_code, _headers = update_review_with_http_info(review, review_oid, merchant_item_oid, opts)
|
1188
|
+
data
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# Update a review
|
1192
|
+
# Update an item review.
|
1193
|
+
# @param review Review to update
|
1194
|
+
# @param review_oid The review oid to update.
|
1195
|
+
# @param merchant_item_oid The item oid the review is associated with.
|
1196
|
+
# @param [Hash] opts the optional parameters
|
1197
|
+
# @return [Array<(ItemReviewResponse, Fixnum, Hash)>] ItemReviewResponse data, response status code and response headers
|
1198
|
+
def update_review_with_http_info(review, review_oid, merchant_item_oid, opts = {})
|
1199
|
+
if @api_client.config.debugging
|
1200
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.update_review ...'
|
1201
|
+
end
|
1202
|
+
# verify the required parameter 'review' is set
|
1203
|
+
if @api_client.config.client_side_validation && review.nil?
|
1204
|
+
fail ArgumentError, "Missing the required parameter 'review' when calling ItemApi.update_review"
|
1205
|
+
end
|
1206
|
+
# verify the required parameter 'review_oid' is set
|
1207
|
+
if @api_client.config.client_side_validation && review_oid.nil?
|
1208
|
+
fail ArgumentError, "Missing the required parameter 'review_oid' when calling ItemApi.update_review"
|
1209
|
+
end
|
1210
|
+
# verify the required parameter 'merchant_item_oid' is set
|
1211
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
1212
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.update_review"
|
1213
|
+
end
|
1214
|
+
# resource path
|
1215
|
+
local_var_path = '/item/items/{merchant_item_oid}/reviews/{review_oid}'.sub('{' + 'review_oid' + '}', review_oid.to_s).sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s)
|
1216
|
+
|
1217
|
+
# query parameters
|
1218
|
+
query_params = {}
|
1219
|
+
|
1220
|
+
# header parameters
|
1221
|
+
header_params = {}
|
1222
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1223
|
+
# HTTP header 'Accept' (if needed)
|
1224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1225
|
+
# HTTP header 'Content-Type'
|
1226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1227
|
+
|
1228
|
+
# form parameters
|
1229
|
+
form_params = {}
|
1230
|
+
|
1231
|
+
# http body (model)
|
1232
|
+
post_body = @api_client.object_to_http_body(review)
|
1233
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1234
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1235
|
+
:header_params => header_params,
|
1236
|
+
:query_params => query_params,
|
1237
|
+
:form_params => form_params,
|
1238
|
+
:body => post_body,
|
1239
|
+
:auth_names => auth_names,
|
1240
|
+
:return_type => 'ItemReviewResponse')
|
1241
|
+
if @api_client.config.debugging
|
1242
|
+
@api_client.config.logger.debug "API called: ItemApi#update_review\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1243
|
+
end
|
1244
|
+
return data, status_code, headers
|
1245
|
+
end
|
942
1246
|
# Upload an image to the temporary multimedia.
|
943
1247
|
# Uploads an image and returns back meta information about the image as well as the identifier needed for the item update.
|
944
1248
|
# @param file File to upload
|
@@ -35,6 +35,9 @@ module UltracartClient
|
|
35
35
|
# Primary key of AutoOrderItem
|
36
36
|
attr_accessor :auto_order_item_oid
|
37
37
|
|
38
|
+
# Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
39
|
+
attr_accessor :first_order_dts
|
40
|
+
|
38
41
|
# Frequency of the rebill if not a fixed schedule
|
39
42
|
attr_accessor :frequency
|
40
43
|
|
@@ -68,6 +71,9 @@ module UltracartClient
|
|
68
71
|
# The original quantity purchased
|
69
72
|
attr_accessor :original_quantity
|
70
73
|
|
74
|
+
# True if paused. This field is an object instead of a primitive for backwards compatibility.
|
75
|
+
attr_accessor :paused
|
76
|
+
|
71
77
|
# The PayPal Payer ID tied to this item
|
72
78
|
attr_accessor :paypal_payer_id
|
73
79
|
|
@@ -117,6 +123,7 @@ module UltracartClient
|
|
117
123
|
:'arbitrary_unit_cost' => :'arbitrary_unit_cost',
|
118
124
|
:'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
|
119
125
|
:'auto_order_item_oid' => :'auto_order_item_oid',
|
126
|
+
:'first_order_dts' => :'first_order_dts',
|
120
127
|
:'frequency' => :'frequency',
|
121
128
|
:'future_schedules' => :'future_schedules',
|
122
129
|
:'last_order_dts' => :'last_order_dts',
|
@@ -128,6 +135,7 @@ module UltracartClient
|
|
128
135
|
:'options' => :'options',
|
129
136
|
:'original_item_id' => :'original_item_id',
|
130
137
|
:'original_quantity' => :'original_quantity',
|
138
|
+
:'paused' => :'paused',
|
131
139
|
:'paypal_payer_id' => :'paypal_payer_id',
|
132
140
|
:'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
|
133
141
|
:'preshipment_notice_sent' => :'preshipment_notice_sent',
|
@@ -147,6 +155,7 @@ module UltracartClient
|
|
147
155
|
:'arbitrary_unit_cost' => :'Float',
|
148
156
|
:'arbitrary_unit_cost_remaining_orders' => :'Integer',
|
149
157
|
:'auto_order_item_oid' => :'Integer',
|
158
|
+
:'first_order_dts' => :'String',
|
150
159
|
:'frequency' => :'String',
|
151
160
|
:'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
|
152
161
|
:'last_order_dts' => :'String',
|
@@ -158,6 +167,7 @@ module UltracartClient
|
|
158
167
|
:'options' => :'Array<AutoOrderItemOption>',
|
159
168
|
:'original_item_id' => :'String',
|
160
169
|
:'original_quantity' => :'Float',
|
170
|
+
:'paused' => :'BOOLEAN',
|
161
171
|
:'paypal_payer_id' => :'String',
|
162
172
|
:'paypal_recurring_payment_profile_id' => :'String',
|
163
173
|
:'preshipment_notice_sent' => :'BOOLEAN',
|
@@ -203,6 +213,10 @@ module UltracartClient
|
|
203
213
|
self.auto_order_item_oid = attributes[:'auto_order_item_oid']
|
204
214
|
end
|
205
215
|
|
216
|
+
if attributes.has_key?(:'first_order_dts')
|
217
|
+
self.first_order_dts = attributes[:'first_order_dts']
|
218
|
+
end
|
219
|
+
|
206
220
|
if attributes.has_key?(:'frequency')
|
207
221
|
self.frequency = attributes[:'frequency']
|
208
222
|
end
|
@@ -251,6 +265,10 @@ module UltracartClient
|
|
251
265
|
self.original_quantity = attributes[:'original_quantity']
|
252
266
|
end
|
253
267
|
|
268
|
+
if attributes.has_key?(:'paused')
|
269
|
+
self.paused = attributes[:'paused']
|
270
|
+
end
|
271
|
+
|
254
272
|
if attributes.has_key?(:'paypal_payer_id')
|
255
273
|
self.paypal_payer_id = attributes[:'paypal_payer_id']
|
256
274
|
end
|
@@ -313,6 +331,7 @@ module UltracartClient
|
|
313
331
|
arbitrary_unit_cost == o.arbitrary_unit_cost &&
|
314
332
|
arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
|
315
333
|
auto_order_item_oid == o.auto_order_item_oid &&
|
334
|
+
first_order_dts == o.first_order_dts &&
|
316
335
|
frequency == o.frequency &&
|
317
336
|
future_schedules == o.future_schedules &&
|
318
337
|
last_order_dts == o.last_order_dts &&
|
@@ -324,6 +343,7 @@ module UltracartClient
|
|
324
343
|
options == o.options &&
|
325
344
|
original_item_id == o.original_item_id &&
|
326
345
|
original_quantity == o.original_quantity &&
|
346
|
+
paused == o.paused &&
|
327
347
|
paypal_payer_id == o.paypal_payer_id &&
|
328
348
|
paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
|
329
349
|
preshipment_notice_sent == o.preshipment_notice_sent &&
|
@@ -341,7 +361,7 @@ module UltracartClient
|
|
341
361
|
# Calculates hash code according to all attributes.
|
342
362
|
# @return [Fixnum] Hash code
|
343
363
|
def hash
|
344
|
-
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
364
|
+
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
345
365
|
end
|
346
366
|
|
347
367
|
# Builds the object from hash
|
@@ -26,13 +26,17 @@ module UltracartClient
|
|
26
26
|
# Multiple quantity
|
27
27
|
attr_accessor :multiple_quantity
|
28
28
|
|
29
|
+
# Payment method validity
|
30
|
+
attr_accessor :payment_method_validity
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'cumulative_order_limit' => :'cumulative_order_limit',
|
33
36
|
:'exempt_from_minimum_item_count' => :'exempt_from_minimum_item_count',
|
34
37
|
:'individual_order_limit' => :'individual_order_limit',
|
35
|
-
:'multiple_quantity' => :'multiple_quantity'
|
38
|
+
:'multiple_quantity' => :'multiple_quantity',
|
39
|
+
:'payment_method_validity' => :'payment_method_validity'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module UltracartClient
|
|
42
46
|
:'cumulative_order_limit' => :'Integer',
|
43
47
|
:'exempt_from_minimum_item_count' => :'BOOLEAN',
|
44
48
|
:'individual_order_limit' => :'Integer',
|
45
|
-
:'multiple_quantity' => :'Integer'
|
49
|
+
:'multiple_quantity' => :'Integer',
|
50
|
+
:'payment_method_validity' => :'Array<String>'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -69,6 +74,12 @@ module UltracartClient
|
|
69
74
|
if attributes.has_key?(:'multiple_quantity')
|
70
75
|
self.multiple_quantity = attributes[:'multiple_quantity']
|
71
76
|
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'payment_method_validity')
|
79
|
+
if (value = attributes[:'payment_method_validity']).is_a?(Array)
|
80
|
+
self.payment_method_validity = value
|
81
|
+
end
|
82
|
+
end
|
72
83
|
end
|
73
84
|
|
74
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -92,7 +103,8 @@ module UltracartClient
|
|
92
103
|
cumulative_order_limit == o.cumulative_order_limit &&
|
93
104
|
exempt_from_minimum_item_count == o.exempt_from_minimum_item_count &&
|
94
105
|
individual_order_limit == o.individual_order_limit &&
|
95
|
-
multiple_quantity == o.multiple_quantity
|
106
|
+
multiple_quantity == o.multiple_quantity &&
|
107
|
+
payment_method_validity == o.payment_method_validity
|
96
108
|
end
|
97
109
|
|
98
110
|
# @see the `==` method
|
@@ -104,7 +116,7 @@ module UltracartClient
|
|
104
116
|
# Calculates hash code according to all attributes.
|
105
117
|
# @return [Fixnum] Hash code
|
106
118
|
def hash
|
107
|
-
[cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity].hash
|
119
|
+
[cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity, payment_method_validity].hash
|
108
120
|
end
|
109
121
|
|
110
122
|
# Builds the object from hash
|