ultracart_api 3.10.47 → 3.10.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/docs/ItemApi.md +268 -0
- data/docs/ItemDigitalItem.md +4 -0
- data/docs/ItemDigitalItemPdfMeta.md +18 -0
- data/docs/ItemDigitalItemResponse.md +12 -0
- data/docs/ItemDigitalItemsResponse.md +12 -0
- data/lib/ultracart_api/api/item_api.rb +292 -0
- data/lib/ultracart_api/models/item_digital_item.rb +43 -4
- data/lib/ultracart_api/models/item_digital_item_pdf_meta.rb +315 -0
- data/lib/ultracart_api/models/item_digital_item_response.rb +221 -0
- data/lib/ultracart_api/models/item_digital_items_response.rb +224 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
@@ -32,6 +32,60 @@ 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 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 The digital item oid to delete.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @return [Array<(nil, Fixnum, 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' + '}', digital_item_oid.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
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
|
+
# HTTP header 'Content-Type'
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: ItemApi#delete_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
35
89
|
# Delete an item
|
36
90
|
# Delete an item on the UltraCart account.
|
37
91
|
# @param merchant_item_oid The item oid to delete.
|
@@ -86,6 +140,128 @@ module UltracartClient
|
|
86
140
|
end
|
87
141
|
return data, status_code, headers
|
88
142
|
end
|
143
|
+
# Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
144
|
+
# 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
|
+
# @param digital_item_oid The digital item oid to retrieve.
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @return [ItemDigitalItemResponse]
|
148
|
+
def get_digital_item(digital_item_oid, opts = {})
|
149
|
+
data, _status_code, _headers = get_digital_item_with_http_info(digital_item_oid, opts)
|
150
|
+
data
|
151
|
+
end
|
152
|
+
|
153
|
+
# Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
154
|
+
# 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.
|
155
|
+
# @param digital_item_oid The digital item oid to retrieve.
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
|
158
|
+
def get_digital_item_with_http_info(digital_item_oid, opts = {})
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_digital_item ...'
|
161
|
+
end
|
162
|
+
# verify the required parameter 'digital_item_oid' is set
|
163
|
+
if @api_client.config.client_side_validation && digital_item_oid.nil?
|
164
|
+
fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.get_digital_item"
|
165
|
+
end
|
166
|
+
# resource path
|
167
|
+
local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', digital_item_oid.to_s)
|
168
|
+
|
169
|
+
# query parameters
|
170
|
+
query_params = {}
|
171
|
+
|
172
|
+
# header parameters
|
173
|
+
header_params = {}
|
174
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
|
+
# HTTP header 'Content-Type'
|
178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = nil
|
185
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
187
|
+
:header_params => header_params,
|
188
|
+
:query_params => query_params,
|
189
|
+
:form_params => form_params,
|
190
|
+
:body => post_body,
|
191
|
+
:auth_names => auth_names,
|
192
|
+
:return_type => 'ItemDigitalItemResponse')
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: ItemApi#get_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
# Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
199
|
+
# 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.
|
200
|
+
# @param [Hash] opts the optional parameters
|
201
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
|
202
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
203
|
+
# @option opts [String] :_since Fetch items that have been created/modified since this date/time.
|
204
|
+
# @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.
|
205
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
206
|
+
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
207
|
+
# @return [ItemDigitalItemsResponse]
|
208
|
+
def get_digital_items(opts = {})
|
209
|
+
data, _status_code, _headers = get_digital_items_with_http_info(opts)
|
210
|
+
data
|
211
|
+
end
|
212
|
+
|
213
|
+
# Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
214
|
+
# 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.
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000)
|
217
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
218
|
+
# @option opts [String] :_since Fetch items that have been created/modified since this date/time.
|
219
|
+
# @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.
|
220
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
221
|
+
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
222
|
+
# @return [Array<(ItemDigitalItemsResponse, Fixnum, Hash)>] ItemDigitalItemsResponse data, response status code and response headers
|
223
|
+
def get_digital_items_with_http_info(opts = {})
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_digital_items ...'
|
226
|
+
end
|
227
|
+
# resource path
|
228
|
+
local_var_path = '/item/digital_library'
|
229
|
+
|
230
|
+
# query parameters
|
231
|
+
query_params = {}
|
232
|
+
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
233
|
+
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
234
|
+
query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
|
235
|
+
query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
|
236
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
237
|
+
query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
|
238
|
+
|
239
|
+
# header parameters
|
240
|
+
header_params = {}
|
241
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
242
|
+
# HTTP header 'Accept' (if needed)
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
244
|
+
# HTTP header 'Content-Type'
|
245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = nil
|
252
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => 'ItemDigitalItemsResponse')
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "API called: ItemApi#get_digital_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
262
|
+
end
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
89
265
|
# Retrieve an item
|
90
266
|
# Retrieves a single item using the specified item oid.
|
91
267
|
# @param merchant_item_oid The item oid to retrieve.
|
@@ -333,6 +509,61 @@ module UltracartClient
|
|
333
509
|
end
|
334
510
|
return data, status_code, headers
|
335
511
|
end
|
512
|
+
# Create a file within the digital library
|
513
|
+
# 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.
|
514
|
+
# @param digital_item Digital item to create
|
515
|
+
# @param [Hash] opts the optional parameters
|
516
|
+
# @return [ItemDigitalItemResponse]
|
517
|
+
def insert_digital_item(digital_item, opts = {})
|
518
|
+
data, _status_code, _headers = insert_digital_item_with_http_info(digital_item, opts)
|
519
|
+
data
|
520
|
+
end
|
521
|
+
|
522
|
+
# Create a file within the digital library
|
523
|
+
# 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.
|
524
|
+
# @param digital_item Digital item to create
|
525
|
+
# @param [Hash] opts the optional parameters
|
526
|
+
# @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
|
527
|
+
def insert_digital_item_with_http_info(digital_item, opts = {})
|
528
|
+
if @api_client.config.debugging
|
529
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.insert_digital_item ...'
|
530
|
+
end
|
531
|
+
# verify the required parameter 'digital_item' is set
|
532
|
+
if @api_client.config.client_side_validation && digital_item.nil?
|
533
|
+
fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.insert_digital_item"
|
534
|
+
end
|
535
|
+
# resource path
|
536
|
+
local_var_path = '/item/digital_library'
|
537
|
+
|
538
|
+
# query parameters
|
539
|
+
query_params = {}
|
540
|
+
|
541
|
+
# header parameters
|
542
|
+
header_params = {}
|
543
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
544
|
+
# HTTP header 'Accept' (if needed)
|
545
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
546
|
+
# HTTP header 'Content-Type'
|
547
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
548
|
+
|
549
|
+
# form parameters
|
550
|
+
form_params = {}
|
551
|
+
|
552
|
+
# http body (model)
|
553
|
+
post_body = @api_client.object_to_http_body(digital_item)
|
554
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
555
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
556
|
+
:header_params => header_params,
|
557
|
+
:query_params => query_params,
|
558
|
+
:form_params => form_params,
|
559
|
+
:body => post_body,
|
560
|
+
:auth_names => auth_names,
|
561
|
+
:return_type => 'ItemDigitalItemResponse')
|
562
|
+
if @api_client.config.debugging
|
563
|
+
@api_client.config.logger.debug "API called: ItemApi#insert_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
564
|
+
end
|
565
|
+
return data, status_code, headers
|
566
|
+
end
|
336
567
|
# Create an item
|
337
568
|
# Create a new item on the UltraCart account.
|
338
569
|
# @param item Item to create
|
@@ -394,6 +625,67 @@ module UltracartClient
|
|
394
625
|
end
|
395
626
|
return data, status_code, headers
|
396
627
|
end
|
628
|
+
# Updates a file within the digital library
|
629
|
+
# 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.
|
630
|
+
# @param digital_item_oid The digital item oid to update.
|
631
|
+
# @param digital_item Digital item to update
|
632
|
+
# @param [Hash] opts the optional parameters
|
633
|
+
# @return [ItemDigitalItemResponse]
|
634
|
+
def update_digital_item(digital_item_oid, digital_item, opts = {})
|
635
|
+
data, _status_code, _headers = update_digital_item_with_http_info(digital_item_oid, digital_item, opts)
|
636
|
+
data
|
637
|
+
end
|
638
|
+
|
639
|
+
# Updates a file within the digital library
|
640
|
+
# 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.
|
641
|
+
# @param digital_item_oid The digital item oid to update.
|
642
|
+
# @param digital_item Digital item to update
|
643
|
+
# @param [Hash] opts the optional parameters
|
644
|
+
# @return [Array<(ItemDigitalItemResponse, Fixnum, Hash)>] ItemDigitalItemResponse data, response status code and response headers
|
645
|
+
def update_digital_item_with_http_info(digital_item_oid, digital_item, opts = {})
|
646
|
+
if @api_client.config.debugging
|
647
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.update_digital_item ...'
|
648
|
+
end
|
649
|
+
# verify the required parameter 'digital_item_oid' is set
|
650
|
+
if @api_client.config.client_side_validation && digital_item_oid.nil?
|
651
|
+
fail ArgumentError, "Missing the required parameter 'digital_item_oid' when calling ItemApi.update_digital_item"
|
652
|
+
end
|
653
|
+
# verify the required parameter 'digital_item' is set
|
654
|
+
if @api_client.config.client_side_validation && digital_item.nil?
|
655
|
+
fail ArgumentError, "Missing the required parameter 'digital_item' when calling ItemApi.update_digital_item"
|
656
|
+
end
|
657
|
+
# resource path
|
658
|
+
local_var_path = '/item/digital_library/{digital_item_oid}'.sub('{' + 'digital_item_oid' + '}', digital_item_oid.to_s)
|
659
|
+
|
660
|
+
# query parameters
|
661
|
+
query_params = {}
|
662
|
+
|
663
|
+
# header parameters
|
664
|
+
header_params = {}
|
665
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
666
|
+
# HTTP header 'Accept' (if needed)
|
667
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
668
|
+
# HTTP header 'Content-Type'
|
669
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
670
|
+
|
671
|
+
# form parameters
|
672
|
+
form_params = {}
|
673
|
+
|
674
|
+
# http body (model)
|
675
|
+
post_body = @api_client.object_to_http_body(digital_item)
|
676
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
677
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
678
|
+
:header_params => header_params,
|
679
|
+
:query_params => query_params,
|
680
|
+
:form_params => form_params,
|
681
|
+
:body => post_body,
|
682
|
+
:auth_names => auth_names,
|
683
|
+
:return_type => 'ItemDigitalItemResponse')
|
684
|
+
if @api_client.config.debugging
|
685
|
+
@api_client.config.logger.debug "API called: ItemApi#update_digital_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
686
|
+
end
|
687
|
+
return data, status_code, headers
|
688
|
+
end
|
397
689
|
# Update an item
|
398
690
|
# Update a new item on the UltraCart account.
|
399
691
|
# @param item Item to update
|
@@ -14,40 +14,59 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ItemDigitalItem
|
17
|
+
# Click wrap agreement is presented to the customer before they can purchase your product.
|
18
|
+
attr_accessor :click_wrap_agreement
|
19
|
+
|
17
20
|
# File creation date
|
18
21
|
attr_accessor :creation_dts
|
19
22
|
|
20
23
|
# Description of the digital item
|
21
24
|
attr_accessor :description
|
22
25
|
|
26
|
+
# 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.
|
27
|
+
attr_accessor :digital_item_oid
|
28
|
+
|
23
29
|
# File size
|
24
30
|
attr_accessor :file_size
|
25
31
|
|
32
|
+
# 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.
|
33
|
+
attr_accessor :import_from_url
|
34
|
+
|
26
35
|
# Mime type associated with the file
|
27
36
|
attr_accessor :mime_type
|
28
37
|
|
29
38
|
# Original filename
|
30
39
|
attr_accessor :original_filename
|
31
40
|
|
41
|
+
attr_accessor :pdf_meta
|
42
|
+
|
32
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
44
|
def self.attribute_map
|
34
45
|
{
|
46
|
+
:'click_wrap_agreement' => :'click_wrap_agreement',
|
35
47
|
:'creation_dts' => :'creation_dts',
|
36
48
|
:'description' => :'description',
|
49
|
+
:'digital_item_oid' => :'digital_item_oid',
|
37
50
|
:'file_size' => :'file_size',
|
51
|
+
:'import_from_url' => :'import_from_url',
|
38
52
|
:'mime_type' => :'mime_type',
|
39
|
-
:'original_filename' => :'original_filename'
|
53
|
+
:'original_filename' => :'original_filename',
|
54
|
+
:'pdf_meta' => :'pdf_meta'
|
40
55
|
}
|
41
56
|
end
|
42
57
|
|
43
58
|
# Attribute type mapping.
|
44
59
|
def self.swagger_types
|
45
60
|
{
|
61
|
+
:'click_wrap_agreement' => :'String',
|
46
62
|
:'creation_dts' => :'String',
|
47
63
|
:'description' => :'String',
|
64
|
+
:'digital_item_oid' => :'Integer',
|
48
65
|
:'file_size' => :'Integer',
|
66
|
+
:'import_from_url' => :'String',
|
49
67
|
:'mime_type' => :'String',
|
50
|
-
:'original_filename' => :'String'
|
68
|
+
:'original_filename' => :'String',
|
69
|
+
:'pdf_meta' => :'ItemDigitalItemPdfMeta'
|
51
70
|
}
|
52
71
|
end
|
53
72
|
|
@@ -59,6 +78,10 @@ module UltracartClient
|
|
59
78
|
# convert string to symbol for hash key
|
60
79
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
61
80
|
|
81
|
+
if attributes.has_key?(:'click_wrap_agreement')
|
82
|
+
self.click_wrap_agreement = attributes[:'click_wrap_agreement']
|
83
|
+
end
|
84
|
+
|
62
85
|
if attributes.has_key?(:'creation_dts')
|
63
86
|
self.creation_dts = attributes[:'creation_dts']
|
64
87
|
end
|
@@ -67,10 +90,18 @@ module UltracartClient
|
|
67
90
|
self.description = attributes[:'description']
|
68
91
|
end
|
69
92
|
|
93
|
+
if attributes.has_key?(:'digital_item_oid')
|
94
|
+
self.digital_item_oid = attributes[:'digital_item_oid']
|
95
|
+
end
|
96
|
+
|
70
97
|
if attributes.has_key?(:'file_size')
|
71
98
|
self.file_size = attributes[:'file_size']
|
72
99
|
end
|
73
100
|
|
101
|
+
if attributes.has_key?(:'import_from_url')
|
102
|
+
self.import_from_url = attributes[:'import_from_url']
|
103
|
+
end
|
104
|
+
|
74
105
|
if attributes.has_key?(:'mime_type')
|
75
106
|
self.mime_type = attributes[:'mime_type']
|
76
107
|
end
|
@@ -78,6 +109,10 @@ module UltracartClient
|
|
78
109
|
if attributes.has_key?(:'original_filename')
|
79
110
|
self.original_filename = attributes[:'original_filename']
|
80
111
|
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'pdf_meta')
|
114
|
+
self.pdf_meta = attributes[:'pdf_meta']
|
115
|
+
end
|
81
116
|
end
|
82
117
|
|
83
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -143,11 +178,15 @@ module UltracartClient
|
|
143
178
|
def ==(o)
|
144
179
|
return true if self.equal?(o)
|
145
180
|
self.class == o.class &&
|
181
|
+
click_wrap_agreement == o.click_wrap_agreement &&
|
146
182
|
creation_dts == o.creation_dts &&
|
147
183
|
description == o.description &&
|
184
|
+
digital_item_oid == o.digital_item_oid &&
|
148
185
|
file_size == o.file_size &&
|
186
|
+
import_from_url == o.import_from_url &&
|
149
187
|
mime_type == o.mime_type &&
|
150
|
-
original_filename == o.original_filename
|
188
|
+
original_filename == o.original_filename &&
|
189
|
+
pdf_meta == o.pdf_meta
|
151
190
|
end
|
152
191
|
|
153
192
|
# @see the `==` method
|
@@ -159,7 +198,7 @@ module UltracartClient
|
|
159
198
|
# Calculates hash code according to all attributes.
|
160
199
|
# @return [Fixnum] Hash code
|
161
200
|
def hash
|
162
|
-
[creation_dts, description, file_size, mime_type, original_filename].hash
|
201
|
+
[click_wrap_agreement, creation_dts, description, digital_item_oid, file_size, import_from_url, mime_type, original_filename, pdf_meta].hash
|
163
202
|
end
|
164
203
|
|
165
204
|
# Builds the object from hash
|