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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ebc62fd60c282ea9b80e3b07b9959862b9a6d02179021263b60cad8d774f33f
|
4
|
+
data.tar.gz: 4cb04512260cb399cd45849b12f7a002c9548dd3e0e4e201e497b0e97b2ff8e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f3ce3d82d8d56569140b5a7852e59bc4022626189967842ba565bba5d752ccd8f280118e4109e252a07a50f7ec64e1bf5edd020c1b559bb4fc944d322267a1a
|
7
|
+
data.tar.gz: e07d68cf1df0ed74d9d0b0c71288787bc4fa39072ed98ab9844fb592117d945ce08cd09af8b255b15cc545e2a8061bdb10782e41baa39c0faedf709cca330ad0
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.49
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.49.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.49.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.49'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -193,12 +193,17 @@ Class | Method | HTTP request | Description
|
|
193
193
|
*UltracartClient::IntegrationLogApi* | [**get_integration_log_file_pdf**](docs/IntegrationLogApi.md#get_integration_log_file_pdf) | **GET** /integration_log/query/{pk}/{sk}/{uuid}/pdf | Retrieve an integration log file converted to PDF
|
194
194
|
*UltracartClient::IntegrationLogApi* | [**get_integration_log_summaries_query**](docs/IntegrationLogApi.md#get_integration_log_summaries_query) | **POST** /integration_log/summary/query | Retrieve integration log summaries
|
195
195
|
*UltracartClient::IntegrationLogApi* | [**get_integration_logs_query**](docs/IntegrationLogApi.md#get_integration_logs_query) | **POST** /integration_log/query | Retrieve integration logs
|
196
|
+
*UltracartClient::ItemApi* | [**delete_digital_item**](docs/ItemApi.md#delete_digital_item) | **DELETE** /item/digital_library/{digital_item_oid} | Delete a digital item, which is a file within the digital library, not an actual merchant item
|
196
197
|
*UltracartClient::ItemApi* | [**delete_item**](docs/ItemApi.md#delete_item) | **DELETE** /item/items/{merchant_item_oid} | Delete an item
|
198
|
+
*UltracartClient::ItemApi* | [**get_digital_item**](docs/ItemApi.md#get_digital_item) | **GET** /item/digital_library/{digital_item_oid} | Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
199
|
+
*UltracartClient::ItemApi* | [**get_digital_items**](docs/ItemApi.md#get_digital_items) | **GET** /item/digital_library | Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
197
200
|
*UltracartClient::ItemApi* | [**get_item**](docs/ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
|
198
201
|
*UltracartClient::ItemApi* | [**get_item_by_merchant_item_id**](docs/ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
199
202
|
*UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
200
203
|
*UltracartClient::ItemApi* | [**get_pricing_tiers**](docs/ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
|
204
|
+
*UltracartClient::ItemApi* | [**insert_digital_item**](docs/ItemApi.md#insert_digital_item) | **POST** /item/digital_library | Create a file within the digital library
|
201
205
|
*UltracartClient::ItemApi* | [**insert_item**](docs/ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
206
|
+
*UltracartClient::ItemApi* | [**update_digital_item**](docs/ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
|
202
207
|
*UltracartClient::ItemApi* | [**update_item**](docs/ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
|
203
208
|
*UltracartClient::ItemApi* | [**update_items**](docs/ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
|
204
209
|
*UltracartClient::ItemApi* | [**upload_temporary_multimedia**](docs/ItemApi.md#upload_temporary_multimedia) | **POST** /item/temp_multimedia | Upload an image to the temporary multimedia.
|
@@ -856,6 +861,9 @@ Class | Method | HTTP request | Description
|
|
856
861
|
- [UltracartClient::ItemContentMultimediaThumbnail](docs/ItemContentMultimediaThumbnail.md)
|
857
862
|
- [UltracartClient::ItemDigitalDelivery](docs/ItemDigitalDelivery.md)
|
858
863
|
- [UltracartClient::ItemDigitalItem](docs/ItemDigitalItem.md)
|
864
|
+
- [UltracartClient::ItemDigitalItemPdfMeta](docs/ItemDigitalItemPdfMeta.md)
|
865
|
+
- [UltracartClient::ItemDigitalItemResponse](docs/ItemDigitalItemResponse.md)
|
866
|
+
- [UltracartClient::ItemDigitalItemsResponse](docs/ItemDigitalItemsResponse.md)
|
859
867
|
- [UltracartClient::ItemEbay](docs/ItemEbay.md)
|
860
868
|
- [UltracartClient::ItemEbayCategorySpecific](docs/ItemEbayCategorySpecific.md)
|
861
869
|
- [UltracartClient::ItemEbayMarketListing](docs/ItemEbayMarketListing.md)
|
@@ -1188,6 +1196,8 @@ Not every change is committed to every SDK.
|
|
1188
1196
|
|
1189
1197
|
| Version | Date | Comments |
|
1190
1198
|
| --: | :-: | --- |
|
1199
|
+
| 3.10.49 | 09/22/2022 | digital item mgmt testing |
|
1200
|
+
| 3.10.48 | 09/22/2022 | testing digital file mgmt calls |
|
1191
1201
|
| 3.10.47 | 09/19/2022 | conversations pagination |
|
1192
1202
|
| 3.10.46 | 09/13/2022 | storefront comms - postcard tracking |
|
1193
1203
|
| 3.10.45 | 09/12/2022 | storefront comm - send back reviews.io configured flag on getEmailSettings |
|
data/docs/ItemApi.md
CHANGED
@@ -4,17 +4,71 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**delete_digital_item**](ItemApi.md#delete_digital_item) | **DELETE** /item/digital_library/{digital_item_oid} | Delete a digital item, which is a file within the digital library, not an actual merchant item
|
7
8
|
[**delete_item**](ItemApi.md#delete_item) | **DELETE** /item/items/{merchant_item_oid} | Delete an item
|
9
|
+
[**get_digital_item**](ItemApi.md#get_digital_item) | **GET** /item/digital_library/{digital_item_oid} | Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
10
|
+
[**get_digital_items**](ItemApi.md#get_digital_items) | **GET** /item/digital_library | Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
8
11
|
[**get_item**](ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
|
9
12
|
[**get_item_by_merchant_item_id**](ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
10
13
|
[**get_items**](ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
11
14
|
[**get_pricing_tiers**](ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
|
15
|
+
[**insert_digital_item**](ItemApi.md#insert_digital_item) | **POST** /item/digital_library | Create a file within the digital library
|
12
16
|
[**insert_item**](ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
17
|
+
[**update_digital_item**](ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
|
13
18
|
[**update_item**](ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
|
14
19
|
[**update_items**](ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
|
15
20
|
[**upload_temporary_multimedia**](ItemApi.md#upload_temporary_multimedia) | **POST** /item/temp_multimedia | Upload an image to the temporary multimedia.
|
16
21
|
|
17
22
|
|
23
|
+
# **delete_digital_item**
|
24
|
+
> delete_digital_item(digital_item_oid)
|
25
|
+
|
26
|
+
Delete a digital item, which is a file within the digital library, not an actual merchant item
|
27
|
+
|
28
|
+
Delete a digital item on the UltraCart account.
|
29
|
+
|
30
|
+
### Example
|
31
|
+
```ruby
|
32
|
+
# load the gem
|
33
|
+
require 'ultracart_api'
|
34
|
+
|
35
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
36
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
37
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
38
|
+
|
39
|
+
|
40
|
+
digital_item_oid = 56 # Integer | The digital item oid to delete.
|
41
|
+
|
42
|
+
|
43
|
+
begin
|
44
|
+
#Delete a digital item, which is a file within the digital library, not an actual merchant item
|
45
|
+
api_instance.delete_digital_item(digital_item_oid)
|
46
|
+
rescue UltracartClient::ApiError => e
|
47
|
+
puts "Exception when calling ItemApi->delete_digital_item: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**digital_item_oid** | **Integer**| The digital item oid to delete. |
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
nil (empty response body)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
18
72
|
# **delete_item**
|
19
73
|
> delete_item(merchant_item_oid)
|
20
74
|
|
@@ -64,6 +118,117 @@ nil (empty response body)
|
|
64
118
|
|
65
119
|
|
66
120
|
|
121
|
+
# **get_digital_item**
|
122
|
+
> ItemDigitalItemResponse get_digital_item(digital_item_oid)
|
123
|
+
|
124
|
+
Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
125
|
+
|
126
|
+
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.
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'ultracart_api'
|
132
|
+
|
133
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
134
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
135
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
136
|
+
|
137
|
+
|
138
|
+
digital_item_oid = 56 # Integer | The digital item oid to retrieve.
|
139
|
+
|
140
|
+
|
141
|
+
begin
|
142
|
+
#Retrieve a digital item from the digital library, which are digital files that may be attached to normal items
|
143
|
+
result = api_instance.get_digital_item(digital_item_oid)
|
144
|
+
p result
|
145
|
+
rescue UltracartClient::ApiError => e
|
146
|
+
puts "Exception when calling ItemApi->get_digital_item: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
Name | Type | Description | Notes
|
153
|
+
------------- | ------------- | ------------- | -------------
|
154
|
+
**digital_item_oid** | **Integer**| The digital item oid to retrieve. |
|
155
|
+
|
156
|
+
### Return type
|
157
|
+
|
158
|
+
[**ItemDigitalItemResponse**](ItemDigitalItemResponse.md)
|
159
|
+
|
160
|
+
### Authorization
|
161
|
+
|
162
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
163
|
+
|
164
|
+
### HTTP request headers
|
165
|
+
|
166
|
+
- **Content-Type**: application/json
|
167
|
+
- **Accept**: application/json
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# **get_digital_items**
|
172
|
+
> ItemDigitalItemsResponse get_digital_items(opts)
|
173
|
+
|
174
|
+
Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
175
|
+
|
176
|
+
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.
|
177
|
+
|
178
|
+
### Example
|
179
|
+
```ruby
|
180
|
+
# load the gem
|
181
|
+
require 'ultracart_api'
|
182
|
+
|
183
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
184
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
185
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
186
|
+
|
187
|
+
|
188
|
+
opts = {
|
189
|
+
_limit: 100, # Integer | The maximum number of records to return on this one API call. (Default 100, Max 2000)
|
190
|
+
_offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
|
191
|
+
_since: '_since_example', # String | Fetch items that have been created/modified since this date/time.
|
192
|
+
_sort: '_sort_example', # String | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
|
193
|
+
_expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
|
194
|
+
_placeholders: true # BOOLEAN | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
195
|
+
}
|
196
|
+
|
197
|
+
begin
|
198
|
+
#Retrieve digital items from the digital library which are digital files that may be attached to normal items
|
199
|
+
result = api_instance.get_digital_items(opts)
|
200
|
+
p result
|
201
|
+
rescue UltracartClient::ApiError => e
|
202
|
+
puts "Exception when calling ItemApi->get_digital_items: #{e}"
|
203
|
+
end
|
204
|
+
```
|
205
|
+
|
206
|
+
### Parameters
|
207
|
+
|
208
|
+
Name | Type | Description | Notes
|
209
|
+
------------- | ------------- | ------------- | -------------
|
210
|
+
**_limit** | **Integer**| The maximum number of records to return on this one API call. (Default 100, Max 2000) | [optional] [default to 100]
|
211
|
+
**_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
|
212
|
+
**_since** | **String**| Fetch items that have been created/modified since this date/time. | [optional]
|
213
|
+
**_sort** | **String**| The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
|
214
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
215
|
+
**_placeholders** | **BOOLEAN**| Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional]
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**ItemDigitalItemsResponse**](ItemDigitalItemsResponse.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: application/json
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
|
67
232
|
# **get_item**
|
68
233
|
> ItemResponse get_item(merchant_item_oid, opts)
|
69
234
|
|
@@ -292,6 +457,56 @@ Name | Type | Description | Notes
|
|
292
457
|
|
293
458
|
|
294
459
|
|
460
|
+
# **insert_digital_item**
|
461
|
+
> ItemDigitalItemResponse insert_digital_item(digital_item)
|
462
|
+
|
463
|
+
Create a file within the digital library
|
464
|
+
|
465
|
+
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.
|
466
|
+
|
467
|
+
### Example
|
468
|
+
```ruby
|
469
|
+
# load the gem
|
470
|
+
require 'ultracart_api'
|
471
|
+
|
472
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
473
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
474
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
475
|
+
|
476
|
+
|
477
|
+
digital_item = UltracartClient::ItemDigitalItem.new # ItemDigitalItem | Digital item to create
|
478
|
+
|
479
|
+
|
480
|
+
begin
|
481
|
+
#Create a file within the digital library
|
482
|
+
result = api_instance.insert_digital_item(digital_item)
|
483
|
+
p result
|
484
|
+
rescue UltracartClient::ApiError => e
|
485
|
+
puts "Exception when calling ItemApi->insert_digital_item: #{e}"
|
486
|
+
end
|
487
|
+
```
|
488
|
+
|
489
|
+
### Parameters
|
490
|
+
|
491
|
+
Name | Type | Description | Notes
|
492
|
+
------------- | ------------- | ------------- | -------------
|
493
|
+
**digital_item** | [**ItemDigitalItem**](ItemDigitalItem.md)| Digital item to create |
|
494
|
+
|
495
|
+
### Return type
|
496
|
+
|
497
|
+
[**ItemDigitalItemResponse**](ItemDigitalItemResponse.md)
|
498
|
+
|
499
|
+
### Authorization
|
500
|
+
|
501
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
502
|
+
|
503
|
+
### HTTP request headers
|
504
|
+
|
505
|
+
- **Content-Type**: application/json; charset=UTF-8
|
506
|
+
- **Accept**: application/json
|
507
|
+
|
508
|
+
|
509
|
+
|
295
510
|
# **insert_item**
|
296
511
|
> ItemResponse insert_item(item, opts)
|
297
512
|
|
@@ -348,6 +563,59 @@ Name | Type | Description | Notes
|
|
348
563
|
|
349
564
|
|
350
565
|
|
566
|
+
# **update_digital_item**
|
567
|
+
> ItemDigitalItemResponse update_digital_item(digital_item_oid, digital_item)
|
568
|
+
|
569
|
+
Updates a file within the digital library
|
570
|
+
|
571
|
+
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.
|
572
|
+
|
573
|
+
### Example
|
574
|
+
```ruby
|
575
|
+
# load the gem
|
576
|
+
require 'ultracart_api'
|
577
|
+
|
578
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
579
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
580
|
+
api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
|
581
|
+
|
582
|
+
|
583
|
+
digital_item_oid = 56 # Integer | The digital item oid to update.
|
584
|
+
|
585
|
+
digital_item = UltracartClient::ItemDigitalItem.new # ItemDigitalItem | Digital item to update
|
586
|
+
|
587
|
+
|
588
|
+
begin
|
589
|
+
#Updates a file within the digital library
|
590
|
+
result = api_instance.update_digital_item(digital_item_oid, digital_item)
|
591
|
+
p result
|
592
|
+
rescue UltracartClient::ApiError => e
|
593
|
+
puts "Exception when calling ItemApi->update_digital_item: #{e}"
|
594
|
+
end
|
595
|
+
```
|
596
|
+
|
597
|
+
### Parameters
|
598
|
+
|
599
|
+
Name | Type | Description | Notes
|
600
|
+
------------- | ------------- | ------------- | -------------
|
601
|
+
**digital_item_oid** | **Integer**| The digital item oid to update. |
|
602
|
+
**digital_item** | [**ItemDigitalItem**](ItemDigitalItem.md)| Digital item to update |
|
603
|
+
|
604
|
+
### Return type
|
605
|
+
|
606
|
+
[**ItemDigitalItemResponse**](ItemDigitalItemResponse.md)
|
607
|
+
|
608
|
+
### Authorization
|
609
|
+
|
610
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
611
|
+
|
612
|
+
### HTTP request headers
|
613
|
+
|
614
|
+
- **Content-Type**: application/json; charset=UTF-8
|
615
|
+
- **Accept**: application/json
|
616
|
+
|
617
|
+
|
618
|
+
|
351
619
|
# **update_item**
|
352
620
|
> ItemResponse update_item(item, merchant_item_oid, opts)
|
353
621
|
|
data/docs/ItemDigitalItem.md
CHANGED
@@ -3,10 +3,14 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**click_wrap_agreement** | **String** | Click wrap agreement is presented to the customer before they can purchase your product. | [optional]
|
6
7
|
**creation_dts** | **String** | File creation date | [optional]
|
7
8
|
**description** | **String** | Description of the digital item | [optional]
|
9
|
+
**digital_item_oid** | **Integer** | 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. | [optional]
|
8
10
|
**file_size** | **Integer** | File size | [optional]
|
11
|
+
**import_from_url** | **String** | 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. | [optional]
|
9
12
|
**mime_type** | **String** | Mime type associated with the file | [optional]
|
10
13
|
**original_filename** | **String** | Original filename | [optional]
|
14
|
+
**pdf_meta** | [**ItemDigitalItemPdfMeta**](ItemDigitalItemPdfMeta.md) | | [optional]
|
11
15
|
|
12
16
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::ItemDigitalItemPdfMeta
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**assembly_allowed** | **BOOLEAN** | Assembly allowed | [optional]
|
7
|
+
**copy_allowed** | **BOOLEAN** | Copy/Paste is allowed | [optional]
|
8
|
+
**custom_footer** | **String** | A custom footer for each pdf page | [optional]
|
9
|
+
**custom_header** | **String** | A custom header for each pdf page | [optional]
|
10
|
+
**degraded_printing_allowed** | **BOOLEAN** | Degraded printing allowed | [optional]
|
11
|
+
**fillin_allowed** | **BOOLEAN** | Fillin is allowed | [optional]
|
12
|
+
**modify_annotations_allowed** | **BOOLEAN** | Modifying annotations is allowed | [optional]
|
13
|
+
**modify_contents_allowed** | **BOOLEAN** | Modifying contents is allowed | [optional]
|
14
|
+
**printing_allowed** | **BOOLEAN** | Printing is allowed | [optional]
|
15
|
+
**screen_readers_allowed** | **BOOLEAN** | Screen readers are allowed | [optional]
|
16
|
+
**tagged** | **BOOLEAN** | PDF is tagged | [optional]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::ItemDigitalItemResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**digital_item** | [**ItemDigitalItem**](ItemDigitalItem.md) | | [optional]
|
7
|
+
**error** | [**Error**](Error.md) | | [optional]
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::ItemDigitalItemsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**digital_items** | [**Array<ItemDigitalItem>**](ItemDigitalItem.md) | digital_items | [optional]
|
7
|
+
**error** | [**Error**](Error.md) | | [optional]
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
|
+
|
12
|
+
|