ultracart_api 4.0.66.rc → 4.0.68.rc
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 +42 -0
- data/docs/FileManagerFile.md +54 -0
- data/docs/FileManagerPage.md +32 -0
- data/docs/FileManagerUploadRequest.md +22 -0
- data/docs/FileManagerUploadUrlResponse.md +26 -0
- data/docs/ItemApi.md +156 -0
- data/docs/ItemDigitalItem.md +2 -0
- data/docs/StorefrontApi.md +373 -0
- data/lib/ultracart_api/api/item_api.rb +140 -0
- data/lib/ultracart_api/api/storefront_api.rb +348 -0
- data/lib/ultracart_api/models/file_manager_directory.rb +327 -0
- data/lib/ultracart_api/models/file_manager_file.rb +381 -0
- data/lib/ultracart_api/models/file_manager_page.rb +288 -0
- data/lib/ultracart_api/models/file_manager_upload_request.rb +237 -0
- data/lib/ultracart_api/models/file_manager_upload_url_response.rb +256 -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
@@ -726,6 +726,74 @@ module UltracartClient
|
|
726
726
|
return data, status_code, headers
|
727
727
|
end
|
728
728
|
|
729
|
+
# Create file manager directory
|
730
|
+
# @param id [Integer]
|
731
|
+
# @param [Hash] opts the optional parameters
|
732
|
+
# @option opts [String] :name
|
733
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
734
|
+
# @return [FileManagerPage]
|
735
|
+
def create_fs_directory(id, opts = {})
|
736
|
+
data, _status_code, _headers = create_fs_directory_with_http_info(id, opts)
|
737
|
+
data
|
738
|
+
end
|
739
|
+
|
740
|
+
# Create file manager directory
|
741
|
+
# @param id [Integer]
|
742
|
+
# @param [Hash] opts the optional parameters
|
743
|
+
# @option opts [String] :name
|
744
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
745
|
+
# @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
|
746
|
+
def create_fs_directory_with_http_info(id, opts = {})
|
747
|
+
if @api_client.config.debugging
|
748
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_fs_directory ...'
|
749
|
+
end
|
750
|
+
# verify the required parameter 'id' is set
|
751
|
+
if @api_client.config.client_side_validation && id.nil?
|
752
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_fs_directory"
|
753
|
+
end
|
754
|
+
# resource path
|
755
|
+
local_var_path = '/storefront/{id}/fs/dir'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
756
|
+
|
757
|
+
# query parameters
|
758
|
+
query_params = opts[:query_params] || {}
|
759
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
760
|
+
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
761
|
+
|
762
|
+
# header parameters
|
763
|
+
header_params = opts[:header_params] || {}
|
764
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
765
|
+
# HTTP header 'Accept' (if needed)
|
766
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
767
|
+
|
768
|
+
# form parameters
|
769
|
+
form_params = opts[:form_params] || {}
|
770
|
+
|
771
|
+
# http body (model)
|
772
|
+
post_body = opts[:debug_body]
|
773
|
+
|
774
|
+
# return_type
|
775
|
+
return_type = opts[:debug_return_type] || 'FileManagerPage'
|
776
|
+
|
777
|
+
# auth_names
|
778
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
779
|
+
|
780
|
+
new_options = opts.merge(
|
781
|
+
:operation => :"StorefrontApi.create_fs_directory",
|
782
|
+
:header_params => header_params,
|
783
|
+
:query_params => query_params,
|
784
|
+
:form_params => form_params,
|
785
|
+
:body => post_body,
|
786
|
+
:auth_names => auth_names,
|
787
|
+
:return_type => return_type
|
788
|
+
)
|
789
|
+
|
790
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
791
|
+
if @api_client.config.debugging
|
792
|
+
@api_client.config.logger.debug "API called: StorefrontApi#create_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
793
|
+
end
|
794
|
+
return data, status_code, headers
|
795
|
+
end
|
796
|
+
|
729
797
|
# Create Twilio account
|
730
798
|
# @param twilio [Twilio] Twilio
|
731
799
|
# @param [Hash] opts the optional parameters
|
@@ -1405,6 +1473,74 @@ module UltracartClient
|
|
1405
1473
|
return data, status_code, headers
|
1406
1474
|
end
|
1407
1475
|
|
1476
|
+
# Delete file manager directory
|
1477
|
+
# @param id [Integer]
|
1478
|
+
# @param [Hash] opts the optional parameters
|
1479
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
1480
|
+
# @option opts [Integer] :storefront_fs_file_oid
|
1481
|
+
# @return [FileManagerPage]
|
1482
|
+
def delete_fs_file(id, opts = {})
|
1483
|
+
data, _status_code, _headers = delete_fs_file_with_http_info(id, opts)
|
1484
|
+
data
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# Delete file manager directory
|
1488
|
+
# @param id [Integer]
|
1489
|
+
# @param [Hash] opts the optional parameters
|
1490
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
1491
|
+
# @option opts [Integer] :storefront_fs_file_oid
|
1492
|
+
# @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
|
1493
|
+
def delete_fs_file_with_http_info(id, opts = {})
|
1494
|
+
if @api_client.config.debugging
|
1495
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.delete_fs_file ...'
|
1496
|
+
end
|
1497
|
+
# verify the required parameter 'id' is set
|
1498
|
+
if @api_client.config.client_side_validation && id.nil?
|
1499
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.delete_fs_file"
|
1500
|
+
end
|
1501
|
+
# resource path
|
1502
|
+
local_var_path = '/storefront/{id}/fs/file'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1503
|
+
|
1504
|
+
# query parameters
|
1505
|
+
query_params = opts[:query_params] || {}
|
1506
|
+
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
1507
|
+
query_params[:'storefront_fs_file_oid'] = opts[:'storefront_fs_file_oid'] if !opts[:'storefront_fs_file_oid'].nil?
|
1508
|
+
|
1509
|
+
# header parameters
|
1510
|
+
header_params = opts[:header_params] || {}
|
1511
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1512
|
+
# HTTP header 'Accept' (if needed)
|
1513
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1514
|
+
|
1515
|
+
# form parameters
|
1516
|
+
form_params = opts[:form_params] || {}
|
1517
|
+
|
1518
|
+
# http body (model)
|
1519
|
+
post_body = opts[:debug_body]
|
1520
|
+
|
1521
|
+
# return_type
|
1522
|
+
return_type = opts[:debug_return_type] || 'FileManagerPage'
|
1523
|
+
|
1524
|
+
# auth_names
|
1525
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
1526
|
+
|
1527
|
+
new_options = opts.merge(
|
1528
|
+
:operation => :"StorefrontApi.delete_fs_file",
|
1529
|
+
:header_params => header_params,
|
1530
|
+
:query_params => query_params,
|
1531
|
+
:form_params => form_params,
|
1532
|
+
:body => post_body,
|
1533
|
+
:auth_names => auth_names,
|
1534
|
+
:return_type => return_type
|
1535
|
+
)
|
1536
|
+
|
1537
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1538
|
+
if @api_client.config.debugging
|
1539
|
+
@api_client.config.logger.debug "API called: StorefrontApi#delete_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1540
|
+
end
|
1541
|
+
return data, status_code, headers
|
1542
|
+
end
|
1543
|
+
|
1408
1544
|
# Delete screen recording heatmap
|
1409
1545
|
# Delete screen recording heatmap
|
1410
1546
|
# @param storefront_oid [Integer]
|
@@ -5857,6 +5993,77 @@ module UltracartClient
|
|
5857
5993
|
return data, status_code, headers
|
5858
5994
|
end
|
5859
5995
|
|
5996
|
+
# Get file manager directory
|
5997
|
+
# @param id [Integer]
|
5998
|
+
# @param [Hash] opts the optional parameters
|
5999
|
+
# @option opts [String] :path
|
6000
|
+
# @option opts [Integer] :storefront_fs_directory_oid
|
6001
|
+
# @option opts [Integer] :storefront_theme_oid
|
6002
|
+
# @return [FileManagerPage]
|
6003
|
+
def get_fs_directory(id, opts = {})
|
6004
|
+
data, _status_code, _headers = get_fs_directory_with_http_info(id, opts)
|
6005
|
+
data
|
6006
|
+
end
|
6007
|
+
|
6008
|
+
# Get file manager directory
|
6009
|
+
# @param id [Integer]
|
6010
|
+
# @param [Hash] opts the optional parameters
|
6011
|
+
# @option opts [String] :path
|
6012
|
+
# @option opts [Integer] :storefront_fs_directory_oid
|
6013
|
+
# @option opts [Integer] :storefront_theme_oid
|
6014
|
+
# @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
|
6015
|
+
def get_fs_directory_with_http_info(id, opts = {})
|
6016
|
+
if @api_client.config.debugging
|
6017
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_fs_directory ...'
|
6018
|
+
end
|
6019
|
+
# verify the required parameter 'id' is set
|
6020
|
+
if @api_client.config.client_side_validation && id.nil?
|
6021
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_fs_directory"
|
6022
|
+
end
|
6023
|
+
# resource path
|
6024
|
+
local_var_path = '/storefront/{id}/fs/dir'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
6025
|
+
|
6026
|
+
# query parameters
|
6027
|
+
query_params = opts[:query_params] || {}
|
6028
|
+
query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
|
6029
|
+
query_params[:'storefront_fs_directory_oid'] = opts[:'storefront_fs_directory_oid'] if !opts[:'storefront_fs_directory_oid'].nil?
|
6030
|
+
query_params[:'storefront_theme_oid'] = opts[:'storefront_theme_oid'] if !opts[:'storefront_theme_oid'].nil?
|
6031
|
+
|
6032
|
+
# header parameters
|
6033
|
+
header_params = opts[:header_params] || {}
|
6034
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
6035
|
+
# HTTP header 'Accept' (if needed)
|
6036
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6037
|
+
|
6038
|
+
# form parameters
|
6039
|
+
form_params = opts[:form_params] || {}
|
6040
|
+
|
6041
|
+
# http body (model)
|
6042
|
+
post_body = opts[:debug_body]
|
6043
|
+
|
6044
|
+
# return_type
|
6045
|
+
return_type = opts[:debug_return_type] || 'FileManagerPage'
|
6046
|
+
|
6047
|
+
# auth_names
|
6048
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
6049
|
+
|
6050
|
+
new_options = opts.merge(
|
6051
|
+
:operation => :"StorefrontApi.get_fs_directory",
|
6052
|
+
:header_params => header_params,
|
6053
|
+
:query_params => query_params,
|
6054
|
+
:form_params => form_params,
|
6055
|
+
:body => post_body,
|
6056
|
+
:auth_names => auth_names,
|
6057
|
+
:return_type => return_type
|
6058
|
+
)
|
6059
|
+
|
6060
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
6061
|
+
if @api_client.config.debugging
|
6062
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6063
|
+
end
|
6064
|
+
return data, status_code, headers
|
6065
|
+
end
|
6066
|
+
|
5860
6067
|
# Get screen recording heatmap
|
5861
6068
|
# Get screen recording heatmap
|
5862
6069
|
# @param storefront_oid [Integer]
|
@@ -7405,6 +7612,74 @@ module UltracartClient
|
|
7405
7612
|
return data, status_code, headers
|
7406
7613
|
end
|
7407
7614
|
|
7615
|
+
# 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.
|
7616
|
+
# @param id [Integer]
|
7617
|
+
# @param extension [String]
|
7618
|
+
# @param [Hash] opts the optional parameters
|
7619
|
+
# @return [FileManagerUploadUrlResponse]
|
7620
|
+
def get_upload_fs_file_url(id, extension, opts = {})
|
7621
|
+
data, _status_code, _headers = get_upload_fs_file_url_with_http_info(id, extension, opts)
|
7622
|
+
data
|
7623
|
+
end
|
7624
|
+
|
7625
|
+
# 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.
|
7626
|
+
# @param id [Integer]
|
7627
|
+
# @param extension [String]
|
7628
|
+
# @param [Hash] opts the optional parameters
|
7629
|
+
# @return [Array<(FileManagerUploadUrlResponse, Integer, Hash)>] FileManagerUploadUrlResponse data, response status code and response headers
|
7630
|
+
def get_upload_fs_file_url_with_http_info(id, extension, opts = {})
|
7631
|
+
if @api_client.config.debugging
|
7632
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_upload_fs_file_url ...'
|
7633
|
+
end
|
7634
|
+
# verify the required parameter 'id' is set
|
7635
|
+
if @api_client.config.client_side_validation && id.nil?
|
7636
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_upload_fs_file_url"
|
7637
|
+
end
|
7638
|
+
# verify the required parameter 'extension' is set
|
7639
|
+
if @api_client.config.client_side_validation && extension.nil?
|
7640
|
+
fail ArgumentError, "Missing the required parameter 'extension' when calling StorefrontApi.get_upload_fs_file_url"
|
7641
|
+
end
|
7642
|
+
# resource path
|
7643
|
+
local_var_path = '/storefront/{id}/fs/upload_url/{extension}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'extension' + '}', CGI.escape(extension.to_s))
|
7644
|
+
|
7645
|
+
# query parameters
|
7646
|
+
query_params = opts[:query_params] || {}
|
7647
|
+
|
7648
|
+
# header parameters
|
7649
|
+
header_params = opts[:header_params] || {}
|
7650
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
7651
|
+
# HTTP header 'Accept' (if needed)
|
7652
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7653
|
+
|
7654
|
+
# form parameters
|
7655
|
+
form_params = opts[:form_params] || {}
|
7656
|
+
|
7657
|
+
# http body (model)
|
7658
|
+
post_body = opts[:debug_body]
|
7659
|
+
|
7660
|
+
# return_type
|
7661
|
+
return_type = opts[:debug_return_type] || 'FileManagerUploadUrlResponse'
|
7662
|
+
|
7663
|
+
# auth_names
|
7664
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
7665
|
+
|
7666
|
+
new_options = opts.merge(
|
7667
|
+
:operation => :"StorefrontApi.get_upload_fs_file_url",
|
7668
|
+
:header_params => header_params,
|
7669
|
+
:query_params => query_params,
|
7670
|
+
:form_params => form_params,
|
7671
|
+
:body => post_body,
|
7672
|
+
:auth_names => auth_names,
|
7673
|
+
:return_type => return_type
|
7674
|
+
)
|
7675
|
+
|
7676
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
7677
|
+
if @api_client.config.debugging
|
7678
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_upload_fs_file_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7679
|
+
end
|
7680
|
+
return data, status_code, headers
|
7681
|
+
end
|
7682
|
+
|
7408
7683
|
# Globally unsubscribe a customer
|
7409
7684
|
# @param storefront_oid [Integer]
|
7410
7685
|
# @param unsubscribe [EmailGlobalUnsubscribeRequest] Unsubscribe
|
@@ -11607,6 +11882,79 @@ module UltracartClient
|
|
11607
11882
|
return data, status_code, headers
|
11608
11883
|
end
|
11609
11884
|
|
11885
|
+
# 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.
|
11886
|
+
# @param id [Integer]
|
11887
|
+
# @param upload_request [FileManagerUploadRequest] UploadRequest
|
11888
|
+
# @param [Hash] opts the optional parameters
|
11889
|
+
# @return [nil]
|
11890
|
+
def upload_fs_file(id, upload_request, opts = {})
|
11891
|
+
upload_fs_file_with_http_info(id, upload_request, opts)
|
11892
|
+
nil
|
11893
|
+
end
|
11894
|
+
|
11895
|
+
# 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.
|
11896
|
+
# @param id [Integer]
|
11897
|
+
# @param upload_request [FileManagerUploadRequest] UploadRequest
|
11898
|
+
# @param [Hash] opts the optional parameters
|
11899
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
11900
|
+
def upload_fs_file_with_http_info(id, upload_request, opts = {})
|
11901
|
+
if @api_client.config.debugging
|
11902
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.upload_fs_file ...'
|
11903
|
+
end
|
11904
|
+
# verify the required parameter 'id' is set
|
11905
|
+
if @api_client.config.client_side_validation && id.nil?
|
11906
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.upload_fs_file"
|
11907
|
+
end
|
11908
|
+
# verify the required parameter 'upload_request' is set
|
11909
|
+
if @api_client.config.client_side_validation && upload_request.nil?
|
11910
|
+
fail ArgumentError, "Missing the required parameter 'upload_request' when calling StorefrontApi.upload_fs_file"
|
11911
|
+
end
|
11912
|
+
# resource path
|
11913
|
+
local_var_path = '/storefront/{id}/fs/upload'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
11914
|
+
|
11915
|
+
# query parameters
|
11916
|
+
query_params = opts[:query_params] || {}
|
11917
|
+
|
11918
|
+
# header parameters
|
11919
|
+
header_params = opts[:header_params] || {}
|
11920
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
11921
|
+
# HTTP header 'Accept' (if needed)
|
11922
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
11923
|
+
# HTTP header 'Content-Type'
|
11924
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
11925
|
+
if !content_type.nil?
|
11926
|
+
header_params['Content-Type'] = content_type
|
11927
|
+
end
|
11928
|
+
|
11929
|
+
# form parameters
|
11930
|
+
form_params = opts[:form_params] || {}
|
11931
|
+
|
11932
|
+
# http body (model)
|
11933
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(upload_request)
|
11934
|
+
|
11935
|
+
# return_type
|
11936
|
+
return_type = opts[:debug_return_type]
|
11937
|
+
|
11938
|
+
# auth_names
|
11939
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
11940
|
+
|
11941
|
+
new_options = opts.merge(
|
11942
|
+
:operation => :"StorefrontApi.upload_fs_file",
|
11943
|
+
:header_params => header_params,
|
11944
|
+
:query_params => query_params,
|
11945
|
+
:form_params => form_params,
|
11946
|
+
:body => post_body,
|
11947
|
+
:auth_names => auth_names,
|
11948
|
+
:return_type => return_type
|
11949
|
+
)
|
11950
|
+
|
11951
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
11952
|
+
if @api_client.config.debugging
|
11953
|
+
@api_client.config.logger.debug "API called: StorefrontApi#upload_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11954
|
+
end
|
11955
|
+
return data, status_code, headers
|
11956
|
+
end
|
11957
|
+
|
11610
11958
|
# Validate AWS Event Ruler
|
11611
11959
|
# @param ruler_validate_request [RulerValidationRequest] Ruler Validate Request
|
11612
11960
|
# @param [Hash] opts the optional parameters
|