ultracart_api 4.0.64.rc → 4.0.65.rc

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,70 @@ module UltracartClient
32
32
  UltracartClient::ItemApi.new(api_client)
33
33
  end
34
34
 
35
+ # Delete a digital item, which is a file within the digital library, not an actual merchant item
36
+ # Delete a digital item on the UltraCart account.
37
+ # @param digital_item_oid [Integer] The digital item oid to delete.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [nil]
40
+ def delete_digital_item(digital_item_oid, opts = {})
41
+ delete_digital_item_with_http_info(digital_item_oid, opts)
42
+ nil
43
+ end
44
+
45
+ # Delete a digital item, which is a file within the digital library, not an actual merchant item
46
+ # Delete a digital item on the UltraCart account.
47
+ # @param digital_item_oid [Integer] The digital item oid to delete.
48
+ # @param [Hash] opts the optional parameters
49
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
50
+ def delete_digital_item_with_http_info(digital_item_oid, opts = {})
51
+ if @api_client.config.debugging
52
+ @api_client.config.logger.debug 'Calling API: ItemApi.delete_digital_item ...'
53
+ end
54
+ # verify the required parameter 'digital_item_oid' is set
55
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
56
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.delete_digital_item"
57
+ end
58
+ # resource path
59
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', CGI.escape(digital_item_oid.to_s))
60
+
61
+ # query parameters
62
+ query_params = opts[:query_params] || {}
63
+
64
+ # header parameters
65
+ header_params = opts[:header_params] || {}
66
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+
70
+ # form parameters
71
+ form_params = opts[:form_params] || {}
72
+
73
+ # http body (model)
74
+ post_body = opts[:debug_body]
75
+
76
+ # return_type
77
+ return_type = opts[:debug_return_type]
78
+
79
+ # auth_names
80
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
81
+
82
+ new_options = opts.merge(
83
+ :operation => :"ItemApi.delete_digital_item",
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => return_type
90
+ )
91
+
92
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: ItemApi#delete_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
35
99
  # Delete an item
36
100
  # Delete an item on the UltraCart account.
37
101
  # @param merchant_item_oid [Integer] The item oid to delete.
@@ -96,6 +160,164 @@ module UltracartClient
96
160
  return data, status_code, headers
97
161
  end
98
162
 
163
+ # Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
164
+ # 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
+ # @param digital_item_oid [Integer] The digital item oid to retrieve.
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
168
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
169
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
170
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
171
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
172
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
173
+ # @return [ItemDigitalItemResponse]
174
+ def get_digital_item(digital_item_oid, opts = {})
175
+ data, _status_code, _headers = get_digital_item_with_http_info(digital_item_oid, opts)
176
+ data
177
+ end
178
+
179
+ # Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
180
+ # 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.
181
+ # @param digital_item_oid [Integer] The digital item oid to retrieve.
182
+ # @param [Hash] opts the optional parameters
183
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
184
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
185
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
186
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
187
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
188
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
189
+ # @return [Array<(ItemDigitalItemResponse, Integer, Hash)>] ItemDigitalItemResponse data, response status code and response headers
190
+ def get_digital_item_with_http_info(digital_item_oid, opts = {})
191
+ if @api_client.config.debugging
192
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_digital_item ...'
193
+ end
194
+ # verify the required parameter 'digital_item_oid' is set
195
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
196
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.get_digital_item"
197
+ end
198
+ # resource path
199
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', CGI.escape(digital_item_oid.to_s))
200
+
201
+ # query parameters
202
+ query_params = opts[:query_params] || {}
203
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
204
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
205
+ query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
206
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
207
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
208
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
213
+ # HTTP header 'Accept' (if needed)
214
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
215
+
216
+ # form parameters
217
+ form_params = opts[:form_params] || {}
218
+
219
+ # http body (model)
220
+ post_body = opts[:debug_body]
221
+
222
+ # return_type
223
+ return_type = opts[:debug_return_type] || 'ItemDigitalItemResponse'
224
+
225
+ # auth_names
226
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
227
+
228
+ new_options = opts.merge(
229
+ :operation => :"ItemApi.get_digital_item",
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => return_type
236
+ )
237
+
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug "API called: ItemApi#get_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ return data, status_code, headers
243
+ end
244
+
245
+ # Retrieve digital items from the digital library which are digital files that may be attached to normal items
246
+ # Retrieves a group of digital items (file information) from the account. 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.
247
+ # @param [Hash] opts the optional parameters
248
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
249
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
250
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
251
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
252
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
253
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
254
+ # @return [ItemDigitalItemsResponse]
255
+ def get_digital_items(opts = {})
256
+ data, _status_code, _headers = get_digital_items_with_http_info(opts)
257
+ data
258
+ end
259
+
260
+ # Retrieve digital items from the digital library which are digital files that may be attached to normal items
261
+ # Retrieves a group of digital items (file information) from the account. 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.
262
+ # @param [Hash] opts the optional parameters
263
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
264
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
265
+ # @option opts [String] :_since Fetch items that have been created/modified since this date/time.
266
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
267
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
268
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
269
+ # @return [Array<(ItemDigitalItemsResponse, Integer, Hash)>] ItemDigitalItemsResponse data, response status code and response headers
270
+ def get_digital_items_with_http_info(opts = {})
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_digital_items ...'
273
+ end
274
+ # resource path
275
+ local_var_path = '/item/digital_library'
276
+
277
+ # query parameters
278
+ query_params = opts[:query_params] || {}
279
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
280
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
281
+ query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
282
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
283
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
284
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
285
+
286
+ # header parameters
287
+ header_params = opts[:header_params] || {}
288
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
289
+ # HTTP header 'Accept' (if needed)
290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
291
+
292
+ # form parameters
293
+ form_params = opts[:form_params] || {}
294
+
295
+ # http body (model)
296
+ post_body = opts[:debug_body]
297
+
298
+ # return_type
299
+ return_type = opts[:debug_return_type] || 'ItemDigitalItemsResponse'
300
+
301
+ # auth_names
302
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
303
+
304
+ new_options = opts.merge(
305
+ :operation => :"ItemApi.get_digital_items",
306
+ :header_params => header_params,
307
+ :query_params => query_params,
308
+ :form_params => form_params,
309
+ :body => post_body,
310
+ :auth_names => auth_names,
311
+ :return_type => return_type
312
+ )
313
+
314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "API called: ItemApi#get_digital_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
317
+ end
318
+ return data, status_code, headers
319
+ end
320
+
99
321
  # Retrieve an item
100
322
  # Retrieves a single item using the specified item oid.
101
323
  # @param merchant_item_oid [Integer] The item oid to retrieve.
@@ -379,6 +601,75 @@ module UltracartClient
379
601
  return data, status_code, headers
380
602
  end
381
603
 
604
+ # Create a file within the digital library
605
+ # Create a file within the digital library. This does not create an item, but makes this digital file available and selectable as part (or all) of an item.
606
+ # @param digital_item [ItemDigitalItem] Digital item to create
607
+ # @param [Hash] opts the optional parameters
608
+ # @return [ItemDigitalItemResponse]
609
+ def insert_digital_item(digital_item, opts = {})
610
+ data, _status_code, _headers = insert_digital_item_with_http_info(digital_item, opts)
611
+ data
612
+ end
613
+
614
+ # Create a file within the digital library
615
+ # Create a file within the digital library. This does not create an item, but makes this digital file available and selectable as part (or all) of an item.
616
+ # @param digital_item [ItemDigitalItem] Digital item to create
617
+ # @param [Hash] opts the optional parameters
618
+ # @return [Array<(ItemDigitalItemResponse, Integer, Hash)>] ItemDigitalItemResponse data, response status code and response headers
619
+ def insert_digital_item_with_http_info(digital_item, opts = {})
620
+ if @api_client.config.debugging
621
+ @api_client.config.logger.debug 'Calling API: ItemApi.insert_digital_item ...'
622
+ end
623
+ # verify the required parameter 'digital_item' is set
624
+ if @api_client.config.client_side_validation && digital_item.nil?
625
+ fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.insert_digital_item"
626
+ end
627
+ # resource path
628
+ local_var_path = '/item/digital_library'
629
+
630
+ # query parameters
631
+ query_params = opts[:query_params] || {}
632
+
633
+ # header parameters
634
+ header_params = opts[:header_params] || {}
635
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
636
+ # HTTP header 'Accept' (if needed)
637
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
638
+ # HTTP header 'Content-Type'
639
+ content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
640
+ if !content_type.nil?
641
+ header_params['Content-Type'] = content_type
642
+ end
643
+
644
+ # form parameters
645
+ form_params = opts[:form_params] || {}
646
+
647
+ # http body (model)
648
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(digital_item)
649
+
650
+ # return_type
651
+ return_type = opts[:debug_return_type] || 'ItemDigitalItemResponse'
652
+
653
+ # auth_names
654
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
655
+
656
+ new_options = opts.merge(
657
+ :operation => :"ItemApi.insert_digital_item",
658
+ :header_params => header_params,
659
+ :query_params => query_params,
660
+ :form_params => form_params,
661
+ :body => post_body,
662
+ :auth_names => auth_names,
663
+ :return_type => return_type
664
+ )
665
+
666
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
667
+ if @api_client.config.debugging
668
+ @api_client.config.logger.debug "API called: ItemApi#insert_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
669
+ end
670
+ return data, status_code, headers
671
+ end
672
+
382
673
  # Create an item
383
674
  # Create a new item on the UltraCart account.
384
675
  # @param item [Item] Item to create
@@ -454,6 +745,81 @@ module UltracartClient
454
745
  return data, status_code, headers
455
746
  end
456
747
 
748
+ # Updates a file within the digital library
749
+ # 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.
750
+ # @param digital_item_oid [Integer] The digital item oid to update.
751
+ # @param digital_item [ItemDigitalItem] Digital item to update
752
+ # @param [Hash] opts the optional parameters
753
+ # @return [ItemDigitalItemResponse]
754
+ def update_digital_item(digital_item_oid, digital_item, opts = {})
755
+ data, _status_code, _headers = update_digital_item_with_http_info(digital_item_oid, digital_item, opts)
756
+ data
757
+ end
758
+
759
+ # Updates a file within the digital library
760
+ # 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.
761
+ # @param digital_item_oid [Integer] The digital item oid to update.
762
+ # @param digital_item [ItemDigitalItem] Digital item to update
763
+ # @param [Hash] opts the optional parameters
764
+ # @return [Array<(ItemDigitalItemResponse, Integer, Hash)>] ItemDigitalItemResponse data, response status code and response headers
765
+ def update_digital_item_with_http_info(digital_item_oid, digital_item, opts = {})
766
+ if @api_client.config.debugging
767
+ @api_client.config.logger.debug 'Calling API: ItemApi.update_digital_item ...'
768
+ end
769
+ # verify the required parameter 'digital_item_oid' is set
770
+ if @api_client.config.client_side_validation && digital_item_oid.nil?
771
+ fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.update_digital_item"
772
+ end
773
+ # verify the required parameter 'digital_item' is set
774
+ if @api_client.config.client_side_validation && digital_item.nil?
775
+ fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.update_digital_item"
776
+ end
777
+ # resource path
778
+ local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', CGI.escape(digital_item_oid.to_s))
779
+
780
+ # query parameters
781
+ query_params = opts[:query_params] || {}
782
+
783
+ # header parameters
784
+ header_params = opts[:header_params] || {}
785
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
786
+ # HTTP header 'Accept' (if needed)
787
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
788
+ # HTTP header 'Content-Type'
789
+ content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
790
+ if !content_type.nil?
791
+ header_params['Content-Type'] = content_type
792
+ end
793
+
794
+ # form parameters
795
+ form_params = opts[:form_params] || {}
796
+
797
+ # http body (model)
798
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(digital_item)
799
+
800
+ # return_type
801
+ return_type = opts[:debug_return_type] || 'ItemDigitalItemResponse'
802
+
803
+ # auth_names
804
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
805
+
806
+ new_options = opts.merge(
807
+ :operation => :"ItemApi.update_digital_item",
808
+ :header_params => header_params,
809
+ :query_params => query_params,
810
+ :form_params => form_params,
811
+ :body => post_body,
812
+ :auth_names => auth_names,
813
+ :return_type => return_type
814
+ )
815
+
816
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
817
+ if @api_client.config.debugging
818
+ @api_client.config.logger.debug "API called: ItemApi#update_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
819
+ end
820
+ return data, status_code, headers
821
+ end
822
+
457
823
  # Update an item
458
824
  # Update a new item on the UltraCart account.
459
825
  # @param merchant_item_oid [Integer] The item oid to update.
@@ -15,29 +15,44 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ItemDigitalItem
18
+ # Click wrap agreement is presented to the customer before they can purchase your product.
19
+ attr_accessor :click_wrap_agreement
20
+
18
21
  # File creation date
19
22
  attr_accessor :creation_dts
20
23
 
21
24
  # Description of the digital item
22
25
  attr_accessor :description
23
26
 
27
+ # The Digital item oid is a primary key used internally by UltraCart. You should not set or change this value. Doing so will have no effect.
28
+ attr_accessor :digital_item_oid
29
+
24
30
  # File size
25
31
  attr_accessor :file_size
26
32
 
33
+ # This url is sourced to create or update a digital file in your digital library. It is only considered during an insert or update operation.
34
+ attr_accessor :import_from_url
35
+
27
36
  # Mime type associated with the file
28
37
  attr_accessor :mime_type
29
38
 
30
39
  # Original filename
31
40
  attr_accessor :original_filename
32
41
 
42
+ attr_accessor :pdf_meta
43
+
33
44
  # Attribute mapping from ruby-style variable name to JSON key.
34
45
  def self.attribute_map
35
46
  {
47
+ :'click_wrap_agreement' => :'click_wrap_agreement',
36
48
  :'creation_dts' => :'creation_dts',
37
49
  :'description' => :'description',
50
+ :'digital_item_oid' => :'digital_item_oid',
38
51
  :'file_size' => :'file_size',
52
+ :'import_from_url' => :'import_from_url',
39
53
  :'mime_type' => :'mime_type',
40
- :'original_filename' => :'original_filename'
54
+ :'original_filename' => :'original_filename',
55
+ :'pdf_meta' => :'pdf_meta'
41
56
  }
42
57
  end
43
58
 
@@ -49,11 +64,15 @@ module UltracartClient
49
64
  # Attribute type mapping.
50
65
  def self.openapi_types
51
66
  {
67
+ :'click_wrap_agreement' => :'String',
52
68
  :'creation_dts' => :'String',
53
69
  :'description' => :'String',
70
+ :'digital_item_oid' => :'Integer',
54
71
  :'file_size' => :'Integer',
72
+ :'import_from_url' => :'String',
55
73
  :'mime_type' => :'String',
56
- :'original_filename' => :'String'
74
+ :'original_filename' => :'String',
75
+ :'pdf_meta' => :'ItemDigitalItemPdfMeta'
57
76
  }
58
77
  end
59
78
 
@@ -78,6 +97,10 @@ module UltracartClient
78
97
  h[k.to_sym] = v
79
98
  }
80
99
 
100
+ if attributes.key?(:'click_wrap_agreement')
101
+ self.click_wrap_agreement = attributes[:'click_wrap_agreement']
102
+ end
103
+
81
104
  if attributes.key?(:'creation_dts')
82
105
  self.creation_dts = attributes[:'creation_dts']
83
106
  end
@@ -86,10 +109,18 @@ module UltracartClient
86
109
  self.description = attributes[:'description']
87
110
  end
88
111
 
112
+ if attributes.key?(:'digital_item_oid')
113
+ self.digital_item_oid = attributes[:'digital_item_oid']
114
+ end
115
+
89
116
  if attributes.key?(:'file_size')
90
117
  self.file_size = attributes[:'file_size']
91
118
  end
92
119
 
120
+ if attributes.key?(:'import_from_url')
121
+ self.import_from_url = attributes[:'import_from_url']
122
+ end
123
+
93
124
  if attributes.key?(:'mime_type')
94
125
  self.mime_type = attributes[:'mime_type']
95
126
  end
@@ -97,6 +128,10 @@ module UltracartClient
97
128
  if attributes.key?(:'original_filename')
98
129
  self.original_filename = attributes[:'original_filename']
99
130
  end
131
+
132
+ if attributes.key?(:'pdf_meta')
133
+ self.pdf_meta = attributes[:'pdf_meta']
134
+ end
100
135
  end
101
136
 
102
137
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,11 +197,15 @@ module UltracartClient
162
197
  def ==(o)
163
198
  return true if self.equal?(o)
164
199
  self.class == o.class &&
200
+ click_wrap_agreement == o.click_wrap_agreement &&
165
201
  creation_dts == o.creation_dts &&
166
202
  description == o.description &&
203
+ digital_item_oid == o.digital_item_oid &&
167
204
  file_size == o.file_size &&
205
+ import_from_url == o.import_from_url &&
168
206
  mime_type == o.mime_type &&
169
- original_filename == o.original_filename
207
+ original_filename == o.original_filename &&
208
+ pdf_meta == o.pdf_meta
170
209
  end
171
210
 
172
211
  # @see the `==` method
@@ -178,7 +217,7 @@ module UltracartClient
178
217
  # Calculates hash code according to all attributes.
179
218
  # @return [Integer] Hash code
180
219
  def hash
181
- [creation_dts, description, file_size, mime_type, original_filename].hash
220
+ [click_wrap_agreement, creation_dts, description, digital_item_oid, file_size, import_from_url, mime_type, original_filename, pdf_meta].hash
182
221
  end
183
222
 
184
223
  # Builds the object from hash