ultracart_api 3.10.136 → 3.10.137

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -27,24 +27,34 @@ module UltracartClient
27
27
 
28
28
  attr_accessor :overall
29
29
 
30
+ # Rating Name 1
30
31
  attr_accessor :rating_name1
31
32
 
33
+ # Rating Name 10
32
34
  attr_accessor :rating_name10
33
35
 
36
+ # Rating Name 2
34
37
  attr_accessor :rating_name2
35
38
 
39
+ # Rating Name 3
36
40
  attr_accessor :rating_name3
37
41
 
42
+ # Rating Name 4
38
43
  attr_accessor :rating_name4
39
44
 
45
+ # Rating Name 5
40
46
  attr_accessor :rating_name5
41
47
 
48
+ # Rating Name 6
42
49
  attr_accessor :rating_name6
43
50
 
51
+ # Rating Name 7
44
52
  attr_accessor :rating_name7
45
53
 
54
+ # Rating Name 8
46
55
  attr_accessor :rating_name8
47
56
 
57
+ # Rating Name 9
48
58
  attr_accessor :rating_name9
49
59
 
50
60
  attr_accessor :rating_score1
@@ -71,25 +81,54 @@ module UltracartClient
71
81
 
72
82
  attr_accessor :recommend_to_friend
73
83
 
84
+ # Review
74
85
  attr_accessor :review
75
86
 
76
87
  attr_accessor :review_oid
77
88
 
89
+ # Nickname
78
90
  attr_accessor :reviewed_nickname
79
91
 
92
+ # Reviewer Email
80
93
  attr_accessor :reviewer_email
81
94
 
95
+ # Location
82
96
  attr_accessor :reviewer_location
83
97
 
98
+ # Status of the review
84
99
  attr_accessor :status
85
100
 
101
+ # Store Feedback
86
102
  attr_accessor :store_feedback
87
103
 
88
104
  # Date/time of review submission
89
105
  attr_accessor :submitted_dts
90
106
 
107
+ # Title
91
108
  attr_accessor :title
92
109
 
110
+ class EnumAttributeValidator
111
+ attr_reader :datatype
112
+ attr_reader :allowable_values
113
+
114
+ def initialize(datatype, allowable_values)
115
+ @allowable_values = allowable_values.map do |value|
116
+ case datatype.to_s
117
+ when /Integer/i
118
+ value.to_i
119
+ when /Float/i
120
+ value.to_f
121
+ else
122
+ value
123
+ end
124
+ end
125
+ end
126
+
127
+ def valid?(value)
128
+ !value || allowable_values.include?(value)
129
+ end
130
+ end
131
+
93
132
  # Attribute mapping from ruby-style variable name to JSON key.
94
133
  def self.attribute_map
95
134
  {
@@ -337,15 +376,267 @@ module UltracartClient
337
376
  # @return Array for valid properties with the reasons
338
377
  def list_invalid_properties
339
378
  invalid_properties = Array.new
379
+ if !@rating_name1.nil? && @rating_name1.to_s.length > 100
380
+ invalid_properties.push('invalid value for "rating_name1", the character length must be smaller than or equal to 100.')
381
+ end
382
+
383
+ if !@rating_name10.nil? && @rating_name10.to_s.length > 100
384
+ invalid_properties.push('invalid value for "rating_name10", the character length must be smaller than or equal to 100.')
385
+ end
386
+
387
+ if !@rating_name2.nil? && @rating_name2.to_s.length > 100
388
+ invalid_properties.push('invalid value for "rating_name2", the character length must be smaller than or equal to 100.')
389
+ end
390
+
391
+ if !@rating_name3.nil? && @rating_name3.to_s.length > 100
392
+ invalid_properties.push('invalid value for "rating_name3", the character length must be smaller than or equal to 100.')
393
+ end
394
+
395
+ if !@rating_name4.nil? && @rating_name4.to_s.length > 100
396
+ invalid_properties.push('invalid value for "rating_name4", the character length must be smaller than or equal to 100.')
397
+ end
398
+
399
+ if !@rating_name5.nil? && @rating_name5.to_s.length > 100
400
+ invalid_properties.push('invalid value for "rating_name5", the character length must be smaller than or equal to 100.')
401
+ end
402
+
403
+ if !@rating_name6.nil? && @rating_name6.to_s.length > 100
404
+ invalid_properties.push('invalid value for "rating_name6", the character length must be smaller than or equal to 100.')
405
+ end
406
+
407
+ if !@rating_name7.nil? && @rating_name7.to_s.length > 100
408
+ invalid_properties.push('invalid value for "rating_name7", the character length must be smaller than or equal to 100.')
409
+ end
410
+
411
+ if !@rating_name8.nil? && @rating_name8.to_s.length > 100
412
+ invalid_properties.push('invalid value for "rating_name8", the character length must be smaller than or equal to 100.')
413
+ end
414
+
415
+ if !@rating_name9.nil? && @rating_name9.to_s.length > 100
416
+ invalid_properties.push('invalid value for "rating_name9", the character length must be smaller than or equal to 100.')
417
+ end
418
+
419
+ if !@review.nil? && @review.to_s.length > 10000
420
+ invalid_properties.push('invalid value for "review", the character length must be smaller than or equal to 10000.')
421
+ end
422
+
423
+ if !@reviewed_nickname.nil? && @reviewed_nickname.to_s.length > 25
424
+ invalid_properties.push('invalid value for "reviewed_nickname", the character length must be smaller than or equal to 25.')
425
+ end
426
+
427
+ if !@reviewer_email.nil? && @reviewer_email.to_s.length > 100
428
+ invalid_properties.push('invalid value for "reviewer_email", the character length must be smaller than or equal to 100.')
429
+ end
430
+
431
+ if !@reviewer_location.nil? && @reviewer_location.to_s.length > 25
432
+ invalid_properties.push('invalid value for "reviewer_location", the character length must be smaller than or equal to 25.')
433
+ end
434
+
435
+ if !@store_feedback.nil? && @store_feedback.to_s.length > 10000
436
+ invalid_properties.push('invalid value for "store_feedback", the character length must be smaller than or equal to 10000.')
437
+ end
438
+
439
+ if !@title.nil? && @title.to_s.length > 250
440
+ invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 250.')
441
+ end
442
+
340
443
  invalid_properties
341
444
  end
342
445
 
343
446
  # Check to see if the all the properties in the model are valid
344
447
  # @return true if the model is valid
345
448
  def valid?
449
+ return false if !@rating_name1.nil? && @rating_name1.to_s.length > 100
450
+ return false if !@rating_name10.nil? && @rating_name10.to_s.length > 100
451
+ return false if !@rating_name2.nil? && @rating_name2.to_s.length > 100
452
+ return false if !@rating_name3.nil? && @rating_name3.to_s.length > 100
453
+ return false if !@rating_name4.nil? && @rating_name4.to_s.length > 100
454
+ return false if !@rating_name5.nil? && @rating_name5.to_s.length > 100
455
+ return false if !@rating_name6.nil? && @rating_name6.to_s.length > 100
456
+ return false if !@rating_name7.nil? && @rating_name7.to_s.length > 100
457
+ return false if !@rating_name8.nil? && @rating_name8.to_s.length > 100
458
+ return false if !@rating_name9.nil? && @rating_name9.to_s.length > 100
459
+ return false if !@review.nil? && @review.to_s.length > 10000
460
+ return false if !@reviewed_nickname.nil? && @reviewed_nickname.to_s.length > 25
461
+ return false if !@reviewer_email.nil? && @reviewer_email.to_s.length > 100
462
+ return false if !@reviewer_location.nil? && @reviewer_location.to_s.length > 25
463
+ status_validator = EnumAttributeValidator.new('String', ['approved', 'unapproved', 'rejected', 'multimedia processing'])
464
+ return false unless status_validator.valid?(@status)
465
+ return false if !@store_feedback.nil? && @store_feedback.to_s.length > 10000
466
+ return false if !@title.nil? && @title.to_s.length > 250
346
467
  true
347
468
  end
348
469
 
470
+ # Custom attribute writer method with validation
471
+ # @param [Object] rating_name1 Value to be assigned
472
+ def rating_name1=(rating_name1)
473
+ if !rating_name1.nil? && rating_name1.to_s.length > 100
474
+ fail ArgumentError, 'invalid value for "rating_name1", the character length must be smaller than or equal to 100.'
475
+ end
476
+
477
+ @rating_name1 = rating_name1
478
+ end
479
+
480
+ # Custom attribute writer method with validation
481
+ # @param [Object] rating_name10 Value to be assigned
482
+ def rating_name10=(rating_name10)
483
+ if !rating_name10.nil? && rating_name10.to_s.length > 100
484
+ fail ArgumentError, 'invalid value for "rating_name10", the character length must be smaller than or equal to 100.'
485
+ end
486
+
487
+ @rating_name10 = rating_name10
488
+ end
489
+
490
+ # Custom attribute writer method with validation
491
+ # @param [Object] rating_name2 Value to be assigned
492
+ def rating_name2=(rating_name2)
493
+ if !rating_name2.nil? && rating_name2.to_s.length > 100
494
+ fail ArgumentError, 'invalid value for "rating_name2", the character length must be smaller than or equal to 100.'
495
+ end
496
+
497
+ @rating_name2 = rating_name2
498
+ end
499
+
500
+ # Custom attribute writer method with validation
501
+ # @param [Object] rating_name3 Value to be assigned
502
+ def rating_name3=(rating_name3)
503
+ if !rating_name3.nil? && rating_name3.to_s.length > 100
504
+ fail ArgumentError, 'invalid value for "rating_name3", the character length must be smaller than or equal to 100.'
505
+ end
506
+
507
+ @rating_name3 = rating_name3
508
+ end
509
+
510
+ # Custom attribute writer method with validation
511
+ # @param [Object] rating_name4 Value to be assigned
512
+ def rating_name4=(rating_name4)
513
+ if !rating_name4.nil? && rating_name4.to_s.length > 100
514
+ fail ArgumentError, 'invalid value for "rating_name4", the character length must be smaller than or equal to 100.'
515
+ end
516
+
517
+ @rating_name4 = rating_name4
518
+ end
519
+
520
+ # Custom attribute writer method with validation
521
+ # @param [Object] rating_name5 Value to be assigned
522
+ def rating_name5=(rating_name5)
523
+ if !rating_name5.nil? && rating_name5.to_s.length > 100
524
+ fail ArgumentError, 'invalid value for "rating_name5", the character length must be smaller than or equal to 100.'
525
+ end
526
+
527
+ @rating_name5 = rating_name5
528
+ end
529
+
530
+ # Custom attribute writer method with validation
531
+ # @param [Object] rating_name6 Value to be assigned
532
+ def rating_name6=(rating_name6)
533
+ if !rating_name6.nil? && rating_name6.to_s.length > 100
534
+ fail ArgumentError, 'invalid value for "rating_name6", the character length must be smaller than or equal to 100.'
535
+ end
536
+
537
+ @rating_name6 = rating_name6
538
+ end
539
+
540
+ # Custom attribute writer method with validation
541
+ # @param [Object] rating_name7 Value to be assigned
542
+ def rating_name7=(rating_name7)
543
+ if !rating_name7.nil? && rating_name7.to_s.length > 100
544
+ fail ArgumentError, 'invalid value for "rating_name7", the character length must be smaller than or equal to 100.'
545
+ end
546
+
547
+ @rating_name7 = rating_name7
548
+ end
549
+
550
+ # Custom attribute writer method with validation
551
+ # @param [Object] rating_name8 Value to be assigned
552
+ def rating_name8=(rating_name8)
553
+ if !rating_name8.nil? && rating_name8.to_s.length > 100
554
+ fail ArgumentError, 'invalid value for "rating_name8", the character length must be smaller than or equal to 100.'
555
+ end
556
+
557
+ @rating_name8 = rating_name8
558
+ end
559
+
560
+ # Custom attribute writer method with validation
561
+ # @param [Object] rating_name9 Value to be assigned
562
+ def rating_name9=(rating_name9)
563
+ if !rating_name9.nil? && rating_name9.to_s.length > 100
564
+ fail ArgumentError, 'invalid value for "rating_name9", the character length must be smaller than or equal to 100.'
565
+ end
566
+
567
+ @rating_name9 = rating_name9
568
+ end
569
+
570
+ # Custom attribute writer method with validation
571
+ # @param [Object] review Value to be assigned
572
+ def review=(review)
573
+ if !review.nil? && review.to_s.length > 10000
574
+ fail ArgumentError, 'invalid value for "review", the character length must be smaller than or equal to 10000.'
575
+ end
576
+
577
+ @review = review
578
+ end
579
+
580
+ # Custom attribute writer method with validation
581
+ # @param [Object] reviewed_nickname Value to be assigned
582
+ def reviewed_nickname=(reviewed_nickname)
583
+ if !reviewed_nickname.nil? && reviewed_nickname.to_s.length > 25
584
+ fail ArgumentError, 'invalid value for "reviewed_nickname", the character length must be smaller than or equal to 25.'
585
+ end
586
+
587
+ @reviewed_nickname = reviewed_nickname
588
+ end
589
+
590
+ # Custom attribute writer method with validation
591
+ # @param [Object] reviewer_email Value to be assigned
592
+ def reviewer_email=(reviewer_email)
593
+ if !reviewer_email.nil? && reviewer_email.to_s.length > 100
594
+ fail ArgumentError, 'invalid value for "reviewer_email", the character length must be smaller than or equal to 100.'
595
+ end
596
+
597
+ @reviewer_email = reviewer_email
598
+ end
599
+
600
+ # Custom attribute writer method with validation
601
+ # @param [Object] reviewer_location Value to be assigned
602
+ def reviewer_location=(reviewer_location)
603
+ if !reviewer_location.nil? && reviewer_location.to_s.length > 25
604
+ fail ArgumentError, 'invalid value for "reviewer_location", the character length must be smaller than or equal to 25.'
605
+ end
606
+
607
+ @reviewer_location = reviewer_location
608
+ end
609
+
610
+ # Custom attribute writer method checking allowed values (enum).
611
+ # @param [Object] status Object to be assigned
612
+ def status=(status)
613
+ validator = EnumAttributeValidator.new('String', ['approved', 'unapproved', 'rejected', 'multimedia processing'])
614
+ unless validator.valid?(status)
615
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
616
+ end
617
+ @status = status
618
+ end
619
+
620
+ # Custom attribute writer method with validation
621
+ # @param [Object] store_feedback Value to be assigned
622
+ def store_feedback=(store_feedback)
623
+ if !store_feedback.nil? && store_feedback.to_s.length > 10000
624
+ fail ArgumentError, 'invalid value for "store_feedback", the character length must be smaller than or equal to 10000.'
625
+ end
626
+
627
+ @store_feedback = store_feedback
628
+ end
629
+
630
+ # Custom attribute writer method with validation
631
+ # @param [Object] title Value to be assigned
632
+ def title=(title)
633
+ if !title.nil? && title.to_s.length > 250
634
+ fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 250.'
635
+ end
636
+
637
+ @title = title
638
+ end
639
+
349
640
  # Checks equality by comparing each attribute.
350
641
  # @param [Object] Object to be compared
351
642
  def ==(o)