ultracart_api 3.10.49 → 3.10.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -4
- data/docs/FileManagerDirectory.md +20 -0
- data/docs/FileManagerFile.md +26 -0
- data/docs/FileManagerPage.md +15 -0
- data/docs/FileManagerUploadRequest.md +10 -0
- data/docs/FileManagerUploadUrlResponse.md +12 -0
- data/docs/ItemApi.md +113 -0
- data/docs/ItemDigitalItem.md +1 -0
- data/docs/StorefrontApi.md +270 -0
- data/lib/ultracart_api/api/item_api.rb +122 -0
- data/lib/ultracart_api/api/storefront_api.rb +297 -0
- data/lib/ultracart_api/models/file_manager_directory.rb +292 -0
- data/lib/ultracart_api/models/file_manager_file.rb +346 -0
- data/lib/ultracart_api/models/file_manager_page.rb +253 -0
- data/lib/ultracart_api/models/file_manager_upload_request.rb +202 -0
- data/lib/ultracart_api/models/file_manager_upload_url_response.rb +221 -0
- data/lib/ultracart_api/models/item_digital_item.rb +26 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
data/docs/StorefrontApi.md
CHANGED
@@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
[**clone_email_flow**](StorefrontApi.md#clone_email_flow) | **POST** /storefront/{storefront_oid}/email/flows/{email_flow_uuid}/clone | Clone email flow
|
15
15
|
[**create_email_sending_domain**](StorefrontApi.md#create_email_sending_domain) | **POST** /storefront/email/sending_domains/{domain}/create | Create email campaign
|
16
16
|
[**create_email_sending_domain2**](StorefrontApi.md#create_email_sending_domain2) | **POST** /storefront/email/sending_domains | Create email sending domain for various providers
|
17
|
+
[**create_fs_directory**](StorefrontApi.md#create_fs_directory) | **POST** /storefront/{id}/fs/dir | Create file manager directory
|
17
18
|
[**create_twilio_account**](StorefrontApi.md#create_twilio_account) | **POST** /storefront/twilio/accounts | Create Twilio account
|
18
19
|
[**delete_email_campaign_folder**](StorefrontApi.md#delete_email_campaign_folder) | **DELETE** /storefront/{storefront_oid}/email/campaign_folders/{email_campaign_folder_uuid} | Delete email campaignFolder
|
19
20
|
[**delete_email_commseq_stat**](StorefrontApi.md#delete_email_commseq_stat) | **DELETE** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stat | Delete communication sequence stats
|
@@ -24,6 +25,7 @@ Method | HTTP request | Description
|
|
24
25
|
[**delete_email_postcard**](StorefrontApi.md#delete_email_postcard) | **DELETE** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid} | Delete email postcard
|
25
26
|
[**delete_email_sending_domain**](StorefrontApi.md#delete_email_sending_domain) | **DELETE** /storefront/email/sending_domains/{domain} | delete email campaign
|
26
27
|
[**delete_experiment**](StorefrontApi.md#delete_experiment) | **DELETE** /storefront/{storefront_oid}/experiments/{storefront_experiment_oid} | Delete experiment
|
28
|
+
[**delete_fs_file**](StorefrontApi.md#delete_fs_file) | **DELETE** /storefront/{id}/fs/file | Delete file manager directory
|
27
29
|
[**delete_heatmap**](StorefrontApi.md#delete_heatmap) | **DELETE** /storefront/{storefront_oid}/screen_recordings/heatmap | Delete screen recording heatmap
|
28
30
|
[**delete_library_item**](StorefrontApi.md#delete_library_item) | **DELETE** /storefront/code_library/{library_item_oid} | Delete library item
|
29
31
|
[**delete_library_item_published_versions**](StorefrontApi.md#delete_library_item_published_versions) | **DELETE** /storefront/code_library/{library_item_oid}/published_versions | Delete all published versions for a library item, including anything in review.
|
@@ -90,6 +92,7 @@ Method | HTTP request | Description
|
|
90
92
|
[**get_email_templates**](StorefrontApi.md#get_email_templates) | **GET** /storefront/{storefront_oid}/email/templates | Get email templates
|
91
93
|
[**get_email_third_party_providers**](StorefrontApi.md#get_email_third_party_providers) | **GET** /storefront/{storefront_oid}/email/third_party_providers | Get a list of third party email providers
|
92
94
|
[**get_experiments**](StorefrontApi.md#get_experiments) | **GET** /storefront/{storefront_oid}/experiments | Get experiments
|
95
|
+
[**get_fs_directory**](StorefrontApi.md#get_fs_directory) | **GET** /storefront/{id}/fs/dir | Get file manager directory
|
93
96
|
[**get_heatmap**](StorefrontApi.md#get_heatmap) | **POST** /storefront/{storefront_oid}/screen_recordings/heatmap | Get screen recording heatmap
|
94
97
|
[**get_heatmap_index**](StorefrontApi.md#get_heatmap_index) | **POST** /storefront/{storefront_oid}/screen_recordings/heatmap/index | Get screen recording heatmap index
|
95
98
|
[**get_histogram_property_names**](StorefrontApi.md#get_histogram_property_names) | **GET** /storefront/{storefront_oid}/email/histogram/property_names | Get histogram property names
|
@@ -113,6 +116,7 @@ Method | HTTP request | Description
|
|
113
116
|
[**get_transaction_email_screenshots**](StorefrontApi.md#get_transaction_email_screenshots) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id}/screenshots | Get transactional email screenshots
|
114
117
|
[**get_twilio_account**](StorefrontApi.md#get_twilio_account) | **GET** /storefront/twilio/accounts/{esp_twilio_uuid} | Get Twilio account
|
115
118
|
[**get_twilio_accounts**](StorefrontApi.md#get_twilio_accounts) | **GET** /storefront/twilio/accounts | Get all Twilio accounts
|
119
|
+
[**get_upload_fs_file_url**](StorefrontApi.md#get_upload_fs_file_url) | **GET** /storefront/{id}/fs/upload_url/{extension} | Retrieves a S3 url where a file may be uploaded. Once uploaded, use uploadFsFile to trigger the server into reading the S3 bucket and retrieving the file.
|
116
120
|
[**global_unsubscribe**](StorefrontApi.md#global_unsubscribe) | **POST** /storefront/{storefront_oid}/email/globalUnsubscribe | Globally unsubscribe a customer
|
117
121
|
[**import_email_third_party_provider_list**](StorefrontApi.md#import_email_third_party_provider_list) | **POST** /storefront/{storefront_oid}/email/third_party_providers/import | Import a third party provider list
|
118
122
|
[**insert_email_campaign**](StorefrontApi.md#insert_email_campaign) | **POST** /storefront/{storefront_oid}/email/campaigns | Insert email campaign
|
@@ -169,6 +173,7 @@ Method | HTTP request | Description
|
|
169
173
|
[**update_screen_recording_tags**](StorefrontApi.md#update_screen_recording_tags) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/tags | Update tags on a screen recording
|
170
174
|
[**update_transaction_email**](StorefrontApi.md#update_transaction_email) | **PUT** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Updates a transaction email object
|
171
175
|
[**update_twilio_account**](StorefrontApi.md#update_twilio_account) | **PUT** /storefront/twilio/accounts/{esp_twilio_uuid} | Update Twilio account
|
176
|
+
[**upload_fs_file**](StorefrontApi.md#upload_fs_file) | **POST** /storefront/{id}/fs/upload | This is the last step in uploading a file after 1) calling getUploadFsFileUrl and 2) uploading a file to the provided url, then finally 3) calling this method and providing the key to trigger the server into reading the S3 bucket and retrieving the file.
|
172
177
|
[**validate_ruler**](StorefrontApi.md#validate_ruler) | **POST** /storefront/ruler/validate | Validate AWS Event Ruler
|
173
178
|
|
174
179
|
|
@@ -684,6 +689,60 @@ Name | Type | Description | Notes
|
|
684
689
|
|
685
690
|
|
686
691
|
|
692
|
+
# **create_fs_directory**
|
693
|
+
> FileManagerPage create_fs_directory(id, opts)
|
694
|
+
|
695
|
+
Create file manager directory
|
696
|
+
|
697
|
+
### Example
|
698
|
+
```ruby
|
699
|
+
# load the gem
|
700
|
+
require 'ultracart_api'
|
701
|
+
|
702
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
703
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
704
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
705
|
+
|
706
|
+
|
707
|
+
id = 56 # Integer |
|
708
|
+
|
709
|
+
opts = {
|
710
|
+
name: 'name_example', # String |
|
711
|
+
parent_storefront_fs_directory_oid: 56 # Integer |
|
712
|
+
}
|
713
|
+
|
714
|
+
begin
|
715
|
+
#Create file manager directory
|
716
|
+
result = api_instance.create_fs_directory(id, opts)
|
717
|
+
p result
|
718
|
+
rescue UltracartClient::ApiError => e
|
719
|
+
puts "Exception when calling StorefrontApi->create_fs_directory: #{e}"
|
720
|
+
end
|
721
|
+
```
|
722
|
+
|
723
|
+
### Parameters
|
724
|
+
|
725
|
+
Name | Type | Description | Notes
|
726
|
+
------------- | ------------- | ------------- | -------------
|
727
|
+
**id** | **Integer**| |
|
728
|
+
**name** | **String**| | [optional]
|
729
|
+
**parent_storefront_fs_directory_oid** | **Integer**| | [optional]
|
730
|
+
|
731
|
+
### Return type
|
732
|
+
|
733
|
+
[**FileManagerPage**](FileManagerPage.md)
|
734
|
+
|
735
|
+
### Authorization
|
736
|
+
|
737
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
738
|
+
|
739
|
+
### HTTP request headers
|
740
|
+
|
741
|
+
- **Content-Type**: application/json
|
742
|
+
- **Accept**: application/json
|
743
|
+
|
744
|
+
|
745
|
+
|
687
746
|
# **create_twilio_account**
|
688
747
|
> TwilioResponse create_twilio_account(twilio)
|
689
748
|
|
@@ -1189,6 +1248,60 @@ nil (empty response body)
|
|
1189
1248
|
|
1190
1249
|
|
1191
1250
|
|
1251
|
+
# **delete_fs_file**
|
1252
|
+
> FileManagerPage delete_fs_file(id, opts)
|
1253
|
+
|
1254
|
+
Delete file manager directory
|
1255
|
+
|
1256
|
+
### Example
|
1257
|
+
```ruby
|
1258
|
+
# load the gem
|
1259
|
+
require 'ultracart_api'
|
1260
|
+
|
1261
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
1262
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
1263
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
1264
|
+
|
1265
|
+
|
1266
|
+
id = 56 # Integer |
|
1267
|
+
|
1268
|
+
opts = {
|
1269
|
+
parent_storefront_fs_directory_oid: 56, # Integer |
|
1270
|
+
storefront_fs_file_oid: 56 # Integer |
|
1271
|
+
}
|
1272
|
+
|
1273
|
+
begin
|
1274
|
+
#Delete file manager directory
|
1275
|
+
result = api_instance.delete_fs_file(id, opts)
|
1276
|
+
p result
|
1277
|
+
rescue UltracartClient::ApiError => e
|
1278
|
+
puts "Exception when calling StorefrontApi->delete_fs_file: #{e}"
|
1279
|
+
end
|
1280
|
+
```
|
1281
|
+
|
1282
|
+
### Parameters
|
1283
|
+
|
1284
|
+
Name | Type | Description | Notes
|
1285
|
+
------------- | ------------- | ------------- | -------------
|
1286
|
+
**id** | **Integer**| |
|
1287
|
+
**parent_storefront_fs_directory_oid** | **Integer**| | [optional]
|
1288
|
+
**storefront_fs_file_oid** | **Integer**| | [optional]
|
1289
|
+
|
1290
|
+
### Return type
|
1291
|
+
|
1292
|
+
[**FileManagerPage**](FileManagerPage.md)
|
1293
|
+
|
1294
|
+
### Authorization
|
1295
|
+
|
1296
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
1297
|
+
|
1298
|
+
### HTTP request headers
|
1299
|
+
|
1300
|
+
- **Content-Type**: application/json
|
1301
|
+
- **Accept**: application/json
|
1302
|
+
|
1303
|
+
|
1304
|
+
|
1192
1305
|
# **delete_heatmap**
|
1193
1306
|
> delete_heatmap(storefront_oid, query)
|
1194
1307
|
|
@@ -4534,6 +4647,62 @@ Name | Type | Description | Notes
|
|
4534
4647
|
|
4535
4648
|
|
4536
4649
|
|
4650
|
+
# **get_fs_directory**
|
4651
|
+
> FileManagerPage get_fs_directory(id, opts)
|
4652
|
+
|
4653
|
+
Get file manager directory
|
4654
|
+
|
4655
|
+
### Example
|
4656
|
+
```ruby
|
4657
|
+
# load the gem
|
4658
|
+
require 'ultracart_api'
|
4659
|
+
|
4660
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
4661
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
4662
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
4663
|
+
|
4664
|
+
|
4665
|
+
id = 56 # Integer |
|
4666
|
+
|
4667
|
+
opts = {
|
4668
|
+
path: 'path_example', # String |
|
4669
|
+
storefront_fs_directory_oid: 56, # Integer |
|
4670
|
+
storefront_theme_oid: 56 # Integer |
|
4671
|
+
}
|
4672
|
+
|
4673
|
+
begin
|
4674
|
+
#Get file manager directory
|
4675
|
+
result = api_instance.get_fs_directory(id, opts)
|
4676
|
+
p result
|
4677
|
+
rescue UltracartClient::ApiError => e
|
4678
|
+
puts "Exception when calling StorefrontApi->get_fs_directory: #{e}"
|
4679
|
+
end
|
4680
|
+
```
|
4681
|
+
|
4682
|
+
### Parameters
|
4683
|
+
|
4684
|
+
Name | Type | Description | Notes
|
4685
|
+
------------- | ------------- | ------------- | -------------
|
4686
|
+
**id** | **Integer**| |
|
4687
|
+
**path** | **String**| | [optional]
|
4688
|
+
**storefront_fs_directory_oid** | **Integer**| | [optional]
|
4689
|
+
**storefront_theme_oid** | **Integer**| | [optional]
|
4690
|
+
|
4691
|
+
### Return type
|
4692
|
+
|
4693
|
+
[**FileManagerPage**](FileManagerPage.md)
|
4694
|
+
|
4695
|
+
### Authorization
|
4696
|
+
|
4697
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
4698
|
+
|
4699
|
+
### HTTP request headers
|
4700
|
+
|
4701
|
+
- **Content-Type**: application/json
|
4702
|
+
- **Accept**: application/json
|
4703
|
+
|
4704
|
+
|
4705
|
+
|
4537
4706
|
# **get_heatmap**
|
4538
4707
|
> ScreenRecordingHeatmapResponse get_heatmap(storefront_oid, query)
|
4539
4708
|
|
@@ -5714,6 +5883,57 @@ This endpoint does not need any parameter.
|
|
5714
5883
|
|
5715
5884
|
|
5716
5885
|
|
5886
|
+
# **get_upload_fs_file_url**
|
5887
|
+
> FileManagerUploadUrlResponse get_upload_fs_file_url(id, extension)
|
5888
|
+
|
5889
|
+
Retrieves a S3 url where a file may be uploaded. Once uploaded, use uploadFsFile to trigger the server into reading the S3 bucket and retrieving the file.
|
5890
|
+
|
5891
|
+
### Example
|
5892
|
+
```ruby
|
5893
|
+
# load the gem
|
5894
|
+
require 'ultracart_api'
|
5895
|
+
|
5896
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
5897
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
5898
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
5899
|
+
|
5900
|
+
|
5901
|
+
id = 56 # Integer |
|
5902
|
+
|
5903
|
+
extension = 'extension_example' # String |
|
5904
|
+
|
5905
|
+
|
5906
|
+
begin
|
5907
|
+
#Retrieves a S3 url where a file may be uploaded. Once uploaded, use uploadFsFile to trigger the server into reading the S3 bucket and retrieving the file.
|
5908
|
+
result = api_instance.get_upload_fs_file_url(id, extension)
|
5909
|
+
p result
|
5910
|
+
rescue UltracartClient::ApiError => e
|
5911
|
+
puts "Exception when calling StorefrontApi->get_upload_fs_file_url: #{e}"
|
5912
|
+
end
|
5913
|
+
```
|
5914
|
+
|
5915
|
+
### Parameters
|
5916
|
+
|
5917
|
+
Name | Type | Description | Notes
|
5918
|
+
------------- | ------------- | ------------- | -------------
|
5919
|
+
**id** | **Integer**| |
|
5920
|
+
**extension** | **String**| |
|
5921
|
+
|
5922
|
+
### Return type
|
5923
|
+
|
5924
|
+
[**FileManagerUploadUrlResponse**](FileManagerUploadUrlResponse.md)
|
5925
|
+
|
5926
|
+
### Authorization
|
5927
|
+
|
5928
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
5929
|
+
|
5930
|
+
### HTTP request headers
|
5931
|
+
|
5932
|
+
- **Content-Type**: application/json
|
5933
|
+
- **Accept**: application/json
|
5934
|
+
|
5935
|
+
|
5936
|
+
|
5717
5937
|
# **global_unsubscribe**
|
5718
5938
|
> EmailGlobalUnsubscribeResponse global_unsubscribe(storefront_oid, unsubscribe)
|
5719
5939
|
|
@@ -8675,6 +8895,56 @@ Name | Type | Description | Notes
|
|
8675
8895
|
|
8676
8896
|
|
8677
8897
|
|
8898
|
+
# **upload_fs_file**
|
8899
|
+
> upload_fs_file(id, upload_request)
|
8900
|
+
|
8901
|
+
This is the last step in uploading a file after 1) calling getUploadFsFileUrl and 2) uploading a file to the provided url, then finally 3) calling this method and providing the key to trigger the server into reading the S3 bucket and retrieving the file.
|
8902
|
+
|
8903
|
+
### Example
|
8904
|
+
```ruby
|
8905
|
+
# load the gem
|
8906
|
+
require 'ultracart_api'
|
8907
|
+
|
8908
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
8909
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
8910
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
8911
|
+
|
8912
|
+
|
8913
|
+
id = 56 # Integer |
|
8914
|
+
|
8915
|
+
upload_request = UltracartClient::FileManagerUploadRequest.new # FileManagerUploadRequest | UploadRequest
|
8916
|
+
|
8917
|
+
|
8918
|
+
begin
|
8919
|
+
#This is the last step in uploading a file after 1) calling getUploadFsFileUrl and 2) uploading a file to the provided url, then finally 3) calling this method and providing the key to trigger the server into reading the S3 bucket and retrieving the file.
|
8920
|
+
api_instance.upload_fs_file(id, upload_request)
|
8921
|
+
rescue UltracartClient::ApiError => e
|
8922
|
+
puts "Exception when calling StorefrontApi->upload_fs_file: #{e}"
|
8923
|
+
end
|
8924
|
+
```
|
8925
|
+
|
8926
|
+
### Parameters
|
8927
|
+
|
8928
|
+
Name | Type | Description | Notes
|
8929
|
+
------------- | ------------- | ------------- | -------------
|
8930
|
+
**id** | **Integer**| |
|
8931
|
+
**upload_request** | [**FileManagerUploadRequest**](FileManagerUploadRequest.md)| UploadRequest |
|
8932
|
+
|
8933
|
+
### Return type
|
8934
|
+
|
8935
|
+
nil (empty response body)
|
8936
|
+
|
8937
|
+
### Authorization
|
8938
|
+
|
8939
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
8940
|
+
|
8941
|
+
### HTTP request headers
|
8942
|
+
|
8943
|
+
- **Content-Type**: application/json
|
8944
|
+
- **Accept**: application/json
|
8945
|
+
|
8946
|
+
|
8947
|
+
|
8678
8948
|
# **validate_ruler**
|
8679
8949
|
> RulerValidationResponse validate_ruler(ruler_validate_request)
|
8680
8950
|
|
@@ -262,6 +262,61 @@ module UltracartClient
|
|
262
262
|
end
|
263
263
|
return data, status_code, headers
|
264
264
|
end
|
265
|
+
# Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
|
266
|
+
# Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id. 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.
|
267
|
+
# @param external_id The external id to match against.
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [ItemDigitalItemsResponse]
|
270
|
+
def get_digital_items_by_external_id(external_id, opts = {})
|
271
|
+
data, _status_code, _headers = get_digital_items_by_external_id_with_http_info(external_id, opts)
|
272
|
+
data
|
273
|
+
end
|
274
|
+
|
275
|
+
# Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id
|
276
|
+
# Retrieves digital items from the digital library (which are digital files that may be attached to normal items) that having a matching external id. 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.
|
277
|
+
# @param external_id The external id to match against.
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [Array<(ItemDigitalItemsResponse, Fixnum, Hash)>] ItemDigitalItemsResponse data, response status code and response headers
|
280
|
+
def get_digital_items_by_external_id_with_http_info(external_id, opts = {})
|
281
|
+
if @api_client.config.debugging
|
282
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_digital_items_by_external_id ...'
|
283
|
+
end
|
284
|
+
# verify the required parameter 'external_id' is set
|
285
|
+
if @api_client.config.client_side_validation && external_id.nil?
|
286
|
+
fail ArgumentError, "Missing the required parameter 'external_id' when calling ItemApi.get_digital_items_by_external_id"
|
287
|
+
end
|
288
|
+
# resource path
|
289
|
+
local_var_path = '/item/digital_library/by_external/{external_id}'.sub('{' + 'external_id' + '}', external_id.to_s)
|
290
|
+
|
291
|
+
# query parameters
|
292
|
+
query_params = {}
|
293
|
+
|
294
|
+
# header parameters
|
295
|
+
header_params = {}
|
296
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
297
|
+
# HTTP header 'Accept' (if needed)
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
299
|
+
# HTTP header 'Content-Type'
|
300
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
301
|
+
|
302
|
+
# form parameters
|
303
|
+
form_params = {}
|
304
|
+
|
305
|
+
# http body (model)
|
306
|
+
post_body = nil
|
307
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
308
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
309
|
+
:header_params => header_params,
|
310
|
+
:query_params => query_params,
|
311
|
+
:form_params => form_params,
|
312
|
+
:body => post_body,
|
313
|
+
:auth_names => auth_names,
|
314
|
+
:return_type => 'ItemDigitalItemsResponse')
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug "API called: ItemApi#get_digital_items_by_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
317
|
+
end
|
318
|
+
return data, status_code, headers
|
319
|
+
end
|
265
320
|
# Retrieve an item
|
266
321
|
# Retrieves a single item using the specified item oid.
|
267
322
|
# @param merchant_item_oid The item oid to retrieve.
|
@@ -509,6 +564,73 @@ module UltracartClient
|
|
509
564
|
end
|
510
565
|
return data, status_code, headers
|
511
566
|
end
|
567
|
+
# 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
|
+
# 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
|
+
# @param [Hash] opts the optional parameters
|
570
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000) (default to 100)
|
571
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
572
|
+
# @option opts [String] :_since Fetch items that have been created/modified since this date/time.
|
573
|
+
# @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.
|
574
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
575
|
+
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
576
|
+
# @return [ItemDigitalItemsResponse]
|
577
|
+
def get_unassociated_digital_items(opts = {})
|
578
|
+
data, _status_code, _headers = get_unassociated_digital_items_with_http_info(opts)
|
579
|
+
data
|
580
|
+
end
|
581
|
+
|
582
|
+
# Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
|
583
|
+
# 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.
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 2000)
|
586
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
587
|
+
# @option opts [String] :_since Fetch items that have been created/modified since this date/time.
|
588
|
+
# @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.
|
589
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
590
|
+
# @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
|
591
|
+
# @return [Array<(ItemDigitalItemsResponse, Fixnum, Hash)>] ItemDigitalItemsResponse data, response status code and response headers
|
592
|
+
def get_unassociated_digital_items_with_http_info(opts = {})
|
593
|
+
if @api_client.config.debugging
|
594
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.get_unassociated_digital_items ...'
|
595
|
+
end
|
596
|
+
# resource path
|
597
|
+
local_var_path = '/item/digital_library/unassociated'
|
598
|
+
|
599
|
+
# query parameters
|
600
|
+
query_params = {}
|
601
|
+
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
602
|
+
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
603
|
+
query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
|
604
|
+
query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
|
605
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
606
|
+
query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
|
607
|
+
|
608
|
+
# header parameters
|
609
|
+
header_params = {}
|
610
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
611
|
+
# HTTP header 'Accept' (if needed)
|
612
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
613
|
+
# HTTP header 'Content-Type'
|
614
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
615
|
+
|
616
|
+
# form parameters
|
617
|
+
form_params = {}
|
618
|
+
|
619
|
+
# http body (model)
|
620
|
+
post_body = nil
|
621
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
622
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
623
|
+
:header_params => header_params,
|
624
|
+
:query_params => query_params,
|
625
|
+
:form_params => form_params,
|
626
|
+
:body => post_body,
|
627
|
+
:auth_names => auth_names,
|
628
|
+
:return_type => 'ItemDigitalItemsResponse')
|
629
|
+
if @api_client.config.debugging
|
630
|
+
@api_client.config.logger.debug "API called: ItemApi#get_unassociated_digital_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
631
|
+
end
|
632
|
+
return data, status_code, headers
|
633
|
+
end
|
512
634
|
# Create a file within the digital library
|
513
635
|
# 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
636
|
# @param digital_item Digital item to create
|