ultracart_api 4.0.153 → 4.0.155

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.
@@ -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
@@ -36,6 +36,9 @@ module UltracartClient
36
36
  # Primary key of AutoOrderItem
37
37
  attr_accessor :auto_order_item_oid
38
38
 
39
+ # Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
40
+ attr_accessor :first_order_dts
41
+
39
42
  # Frequency of the rebill if not a fixed schedule
40
43
  attr_accessor :frequency
41
44
 
@@ -69,6 +72,9 @@ module UltracartClient
69
72
  # The original quantity purchased
70
73
  attr_accessor :original_quantity
71
74
 
75
+ # True if paused. This field is an object instead of a primitive for backwards compatibility.
76
+ attr_accessor :paused
77
+
72
78
  # The PayPal Payer ID tied to this item
73
79
  attr_accessor :paypal_payer_id
74
80
 
@@ -118,6 +124,7 @@ module UltracartClient
118
124
  :'arbitrary_unit_cost' => :'arbitrary_unit_cost',
119
125
  :'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
120
126
  :'auto_order_item_oid' => :'auto_order_item_oid',
127
+ :'first_order_dts' => :'first_order_dts',
121
128
  :'frequency' => :'frequency',
122
129
  :'future_schedules' => :'future_schedules',
123
130
  :'last_order_dts' => :'last_order_dts',
@@ -129,6 +136,7 @@ module UltracartClient
129
136
  :'options' => :'options',
130
137
  :'original_item_id' => :'original_item_id',
131
138
  :'original_quantity' => :'original_quantity',
139
+ :'paused' => :'paused',
132
140
  :'paypal_payer_id' => :'paypal_payer_id',
133
141
  :'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
134
142
  :'preshipment_notice_sent' => :'preshipment_notice_sent',
@@ -153,6 +161,7 @@ module UltracartClient
153
161
  :'arbitrary_unit_cost' => :'Float',
154
162
  :'arbitrary_unit_cost_remaining_orders' => :'Integer',
155
163
  :'auto_order_item_oid' => :'Integer',
164
+ :'first_order_dts' => :'String',
156
165
  :'frequency' => :'String',
157
166
  :'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
158
167
  :'last_order_dts' => :'String',
@@ -164,6 +173,7 @@ module UltracartClient
164
173
  :'options' => :'Array<AutoOrderItemOption>',
165
174
  :'original_item_id' => :'String',
166
175
  :'original_quantity' => :'Float',
176
+ :'paused' => :'Boolean',
167
177
  :'paypal_payer_id' => :'String',
168
178
  :'paypal_recurring_payment_profile_id' => :'String',
169
179
  :'preshipment_notice_sent' => :'Boolean',
@@ -222,6 +232,10 @@ module UltracartClient
222
232
  self.auto_order_item_oid = attributes[:'auto_order_item_oid']
223
233
  end
224
234
 
235
+ if attributes.key?(:'first_order_dts')
236
+ self.first_order_dts = attributes[:'first_order_dts']
237
+ end
238
+
225
239
  if attributes.key?(:'frequency')
226
240
  self.frequency = attributes[:'frequency']
227
241
  end
@@ -270,6 +284,10 @@ module UltracartClient
270
284
  self.original_quantity = attributes[:'original_quantity']
271
285
  end
272
286
 
287
+ if attributes.key?(:'paused')
288
+ self.paused = attributes[:'paused']
289
+ end
290
+
273
291
  if attributes.key?(:'paypal_payer_id')
274
292
  self.paypal_payer_id = attributes[:'paypal_payer_id']
275
293
  end
@@ -332,6 +350,7 @@ module UltracartClient
332
350
  arbitrary_unit_cost == o.arbitrary_unit_cost &&
333
351
  arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
334
352
  auto_order_item_oid == o.auto_order_item_oid &&
353
+ first_order_dts == o.first_order_dts &&
335
354
  frequency == o.frequency &&
336
355
  future_schedules == o.future_schedules &&
337
356
  last_order_dts == o.last_order_dts &&
@@ -343,6 +362,7 @@ module UltracartClient
343
362
  options == o.options &&
344
363
  original_item_id == o.original_item_id &&
345
364
  original_quantity == o.original_quantity &&
365
+ paused == o.paused &&
346
366
  paypal_payer_id == o.paypal_payer_id &&
347
367
  paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
348
368
  preshipment_notice_sent == o.preshipment_notice_sent &&
@@ -360,7 +380,7 @@ module UltracartClient
360
380
  # Calculates hash code according to all attributes.
361
381
  # @return [Integer] Hash code
362
382
  def hash
363
- [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
383
+ [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
364
384
  end
365
385
 
366
386
  # Builds the object from hash
@@ -27,13 +27,17 @@ module UltracartClient
27
27
  # Multiple quantity
28
28
  attr_accessor :multiple_quantity
29
29
 
30
+ # Payment method validity
31
+ attr_accessor :payment_method_validity
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'cumulative_order_limit' => :'cumulative_order_limit',
34
37
  :'exempt_from_minimum_item_count' => :'exempt_from_minimum_item_count',
35
38
  :'individual_order_limit' => :'individual_order_limit',
36
- :'multiple_quantity' => :'multiple_quantity'
39
+ :'multiple_quantity' => :'multiple_quantity',
40
+ :'payment_method_validity' => :'payment_method_validity'
37
41
  }
38
42
  end
39
43
 
@@ -48,7 +52,8 @@ module UltracartClient
48
52
  :'cumulative_order_limit' => :'Integer',
49
53
  :'exempt_from_minimum_item_count' => :'Boolean',
50
54
  :'individual_order_limit' => :'Integer',
51
- :'multiple_quantity' => :'Integer'
55
+ :'multiple_quantity' => :'Integer',
56
+ :'payment_method_validity' => :'Array<String>'
52
57
  }
53
58
  end
54
59
 
@@ -88,6 +93,12 @@ module UltracartClient
88
93
  if attributes.key?(:'multiple_quantity')
89
94
  self.multiple_quantity = attributes[:'multiple_quantity']
90
95
  end
96
+
97
+ if attributes.key?(:'payment_method_validity')
98
+ if (value = attributes[:'payment_method_validity']).is_a?(Array)
99
+ self.payment_method_validity = value
100
+ end
101
+ end
91
102
  end
92
103
 
93
104
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +122,8 @@ module UltracartClient
111
122
  cumulative_order_limit == o.cumulative_order_limit &&
112
123
  exempt_from_minimum_item_count == o.exempt_from_minimum_item_count &&
113
124
  individual_order_limit == o.individual_order_limit &&
114
- multiple_quantity == o.multiple_quantity
125
+ multiple_quantity == o.multiple_quantity &&
126
+ payment_method_validity == o.payment_method_validity
115
127
  end
116
128
 
117
129
  # @see the `==` method
@@ -123,7 +135,7 @@ module UltracartClient
123
135
  # Calculates hash code according to all attributes.
124
136
  # @return [Integer] Hash code
125
137
  def hash
126
- [cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity].hash
138
+ [cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity, payment_method_validity].hash
127
139
  end
128
140
 
129
141
  # Builds the object from hash