ultracart_api 3.10.50 → 3.10.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -8
- data/docs/FileManagerDirectory.md +20 -0
- data/docs/FileManagerFile.md +26 -0
- data/docs/FileManagerPage.md +3 -0
- data/docs/FileManagerPageResponse.md +12 -0
- data/docs/FileManagerUploadRequest.md +10 -0
- data/docs/FileManagerUploadUrlResponse.md +12 -0
- data/docs/ItemApi.md +51 -0
- data/docs/ItemDigitalItem.md +1 -0
- data/docs/StorefrontApi.md +240 -190
- data/lib/ultracart_api/api/item_api.rb +55 -0
- data/lib/ultracart_api/api/storefront_api.rb +279 -218
- 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 +34 -1
- data/lib/ultracart_api/models/file_manager_page_response.rb +221 -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
@@ -510,121 +510,6 @@ module UltracartClient
|
|
510
510
|
end
|
511
511
|
return data, status_code, headers
|
512
512
|
end
|
513
|
-
# Create file manager directory for admin panel
|
514
|
-
# @param id
|
515
|
-
# @param [Hash] opts the optional parameters
|
516
|
-
# @option opts [String] :name
|
517
|
-
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
518
|
-
# @return [FileManagerPage]
|
519
|
-
def create_admin_panel_fs_directory(id, opts = {})
|
520
|
-
data, _status_code, _headers = create_admin_panel_fs_directory_with_http_info(id, opts)
|
521
|
-
data
|
522
|
-
end
|
523
|
-
|
524
|
-
# Create file manager directory for admin panel
|
525
|
-
# @param id
|
526
|
-
# @param [Hash] opts the optional parameters
|
527
|
-
# @option opts [String] :name
|
528
|
-
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
529
|
-
# @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
|
530
|
-
def create_admin_panel_fs_directory_with_http_info(id, opts = {})
|
531
|
-
if @api_client.config.debugging
|
532
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_admin_panel_fs_directory ...'
|
533
|
-
end
|
534
|
-
# verify the required parameter 'id' is set
|
535
|
-
if @api_client.config.client_side_validation && id.nil?
|
536
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_admin_panel_fs_directory"
|
537
|
-
end
|
538
|
-
# resource path
|
539
|
-
local_var_path = '/storefront/{id}/adminPanel/fs/dir'.sub('{' + 'id' + '}', id.to_s)
|
540
|
-
|
541
|
-
# query parameters
|
542
|
-
query_params = {}
|
543
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
544
|
-
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
545
|
-
|
546
|
-
# header parameters
|
547
|
-
header_params = {}
|
548
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
549
|
-
# HTTP header 'Accept' (if needed)
|
550
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
551
|
-
# HTTP header 'Content-Type'
|
552
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
553
|
-
|
554
|
-
# form parameters
|
555
|
-
form_params = {}
|
556
|
-
|
557
|
-
# http body (model)
|
558
|
-
post_body = nil
|
559
|
-
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
560
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
561
|
-
:header_params => header_params,
|
562
|
-
:query_params => query_params,
|
563
|
-
:form_params => form_params,
|
564
|
-
:body => post_body,
|
565
|
-
:auth_names => auth_names,
|
566
|
-
:return_type => 'FileManagerPage')
|
567
|
-
if @api_client.config.debugging
|
568
|
-
@api_client.config.logger.debug "API called: StorefrontApi#create_admin_panel_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
569
|
-
end
|
570
|
-
return data, status_code, headers
|
571
|
-
end
|
572
|
-
# Upload file manager file for admin panel
|
573
|
-
# @param id
|
574
|
-
# @param [Hash] opts the optional parameters
|
575
|
-
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
576
|
-
# @return [FileManagerPage]
|
577
|
-
def create_admin_panel_fs_file_upload(id, opts = {})
|
578
|
-
data, _status_code, _headers = create_admin_panel_fs_file_upload_with_http_info(id, opts)
|
579
|
-
data
|
580
|
-
end
|
581
|
-
|
582
|
-
# Upload file manager file for admin panel
|
583
|
-
# @param id
|
584
|
-
# @param [Hash] opts the optional parameters
|
585
|
-
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
586
|
-
# @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
|
587
|
-
def create_admin_panel_fs_file_upload_with_http_info(id, opts = {})
|
588
|
-
if @api_client.config.debugging
|
589
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_admin_panel_fs_file_upload ...'
|
590
|
-
end
|
591
|
-
# verify the required parameter 'id' is set
|
592
|
-
if @api_client.config.client_side_validation && id.nil?
|
593
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_admin_panel_fs_file_upload"
|
594
|
-
end
|
595
|
-
# resource path
|
596
|
-
local_var_path = '/storefront/{id}/adminPanel/fs/file'.sub('{' + 'id' + '}', id.to_s)
|
597
|
-
|
598
|
-
# query parameters
|
599
|
-
query_params = {}
|
600
|
-
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
601
|
-
|
602
|
-
# header parameters
|
603
|
-
header_params = {}
|
604
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
605
|
-
# HTTP header 'Accept' (if needed)
|
606
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
607
|
-
# HTTP header 'Content-Type'
|
608
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
609
|
-
|
610
|
-
# form parameters
|
611
|
-
form_params = {}
|
612
|
-
|
613
|
-
# http body (model)
|
614
|
-
post_body = nil
|
615
|
-
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
616
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
617
|
-
:header_params => header_params,
|
618
|
-
:query_params => query_params,
|
619
|
-
:form_params => form_params,
|
620
|
-
:body => post_body,
|
621
|
-
:auth_names => auth_names,
|
622
|
-
:return_type => 'FileManagerPage')
|
623
|
-
if @api_client.config.debugging
|
624
|
-
@api_client.config.logger.debug "API called: StorefrontApi#create_admin_panel_fs_file_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
625
|
-
end
|
626
|
-
return data, status_code, headers
|
627
|
-
end
|
628
513
|
# Create email campaign
|
629
514
|
# @param domain
|
630
515
|
# @param [Hash] opts the optional parameters
|
@@ -731,32 +616,38 @@ module UltracartClient
|
|
731
616
|
end
|
732
617
|
return data, status_code, headers
|
733
618
|
end
|
734
|
-
# Create
|
735
|
-
# @param
|
619
|
+
# Create file manager directory
|
620
|
+
# @param id
|
736
621
|
# @param [Hash] opts the optional parameters
|
737
|
-
# @
|
738
|
-
|
739
|
-
|
622
|
+
# @option opts [String] :name
|
623
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
624
|
+
# @return [FileManagerPageResponse]
|
625
|
+
def create_fs_directory(id, opts = {})
|
626
|
+
data, _status_code, _headers = create_fs_directory_with_http_info(id, opts)
|
740
627
|
data
|
741
628
|
end
|
742
629
|
|
743
|
-
# Create
|
744
|
-
# @param
|
630
|
+
# Create file manager directory
|
631
|
+
# @param id
|
745
632
|
# @param [Hash] opts the optional parameters
|
746
|
-
# @
|
747
|
-
|
633
|
+
# @option opts [String] :name
|
634
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
635
|
+
# @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
|
636
|
+
def create_fs_directory_with_http_info(id, opts = {})
|
748
637
|
if @api_client.config.debugging
|
749
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.
|
638
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_fs_directory ...'
|
750
639
|
end
|
751
|
-
# verify the required parameter '
|
752
|
-
if @api_client.config.client_side_validation &&
|
753
|
-
fail ArgumentError, "Missing the required parameter '
|
640
|
+
# verify the required parameter 'id' is set
|
641
|
+
if @api_client.config.client_side_validation && id.nil?
|
642
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_fs_directory"
|
754
643
|
end
|
755
644
|
# resource path
|
756
|
-
local_var_path = '/storefront/
|
645
|
+
local_var_path = '/storefront/{id}/fs/dir'.sub('{' + 'id' + '}', id.to_s)
|
757
646
|
|
758
647
|
# query parameters
|
759
648
|
query_params = {}
|
649
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
650
|
+
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
760
651
|
|
761
652
|
# header parameters
|
762
653
|
header_params = {}
|
@@ -770,7 +661,7 @@ module UltracartClient
|
|
770
661
|
form_params = {}
|
771
662
|
|
772
663
|
# http body (model)
|
773
|
-
post_body =
|
664
|
+
post_body = nil
|
774
665
|
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
775
666
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
776
667
|
:header_params => header_params,
|
@@ -778,44 +669,38 @@ module UltracartClient
|
|
778
669
|
:form_params => form_params,
|
779
670
|
:body => post_body,
|
780
671
|
:auth_names => auth_names,
|
781
|
-
:return_type => '
|
672
|
+
:return_type => 'FileManagerPageResponse')
|
782
673
|
if @api_client.config.debugging
|
783
|
-
@api_client.config.logger.debug "API called: StorefrontApi#
|
674
|
+
@api_client.config.logger.debug "API called: StorefrontApi#create_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
784
675
|
end
|
785
676
|
return data, status_code, headers
|
786
677
|
end
|
787
|
-
#
|
788
|
-
# @param
|
678
|
+
# Create Twilio account
|
679
|
+
# @param twilio Twilio
|
789
680
|
# @param [Hash] opts the optional parameters
|
790
|
-
# @
|
791
|
-
|
792
|
-
|
793
|
-
def delete_admin_panel_fs_file(id, opts = {})
|
794
|
-
data, _status_code, _headers = delete_admin_panel_fs_file_with_http_info(id, opts)
|
681
|
+
# @return [TwilioResponse]
|
682
|
+
def create_twilio_account(twilio, opts = {})
|
683
|
+
data, _status_code, _headers = create_twilio_account_with_http_info(twilio, opts)
|
795
684
|
data
|
796
685
|
end
|
797
686
|
|
798
|
-
#
|
799
|
-
# @param
|
687
|
+
# Create Twilio account
|
688
|
+
# @param twilio Twilio
|
800
689
|
# @param [Hash] opts the optional parameters
|
801
|
-
# @
|
802
|
-
|
803
|
-
# @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
|
804
|
-
def delete_admin_panel_fs_file_with_http_info(id, opts = {})
|
690
|
+
# @return [Array<(TwilioResponse, Fixnum, Hash)>] TwilioResponse data, response status code and response headers
|
691
|
+
def create_twilio_account_with_http_info(twilio, opts = {})
|
805
692
|
if @api_client.config.debugging
|
806
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.
|
693
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_twilio_account ...'
|
807
694
|
end
|
808
|
-
# verify the required parameter '
|
809
|
-
if @api_client.config.client_side_validation &&
|
810
|
-
fail ArgumentError, "Missing the required parameter '
|
695
|
+
# verify the required parameter 'twilio' is set
|
696
|
+
if @api_client.config.client_side_validation && twilio.nil?
|
697
|
+
fail ArgumentError, "Missing the required parameter 'twilio' when calling StorefrontApi.create_twilio_account"
|
811
698
|
end
|
812
699
|
# resource path
|
813
|
-
local_var_path = '/storefront/
|
700
|
+
local_var_path = '/storefront/twilio/accounts'
|
814
701
|
|
815
702
|
# query parameters
|
816
703
|
query_params = {}
|
817
|
-
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
818
|
-
query_params[:'storefront_fs_file_oid'] = opts[:'storefront_fs_file_oid'] if !opts[:'storefront_fs_file_oid'].nil?
|
819
704
|
|
820
705
|
# header parameters
|
821
706
|
header_params = {}
|
@@ -829,17 +714,17 @@ module UltracartClient
|
|
829
714
|
form_params = {}
|
830
715
|
|
831
716
|
# http body (model)
|
832
|
-
post_body =
|
717
|
+
post_body = @api_client.object_to_http_body(twilio)
|
833
718
|
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
834
|
-
data, status_code, headers = @api_client.call_api(:
|
719
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
835
720
|
:header_params => header_params,
|
836
721
|
:query_params => query_params,
|
837
722
|
:form_params => form_params,
|
838
723
|
:body => post_body,
|
839
724
|
:auth_names => auth_names,
|
840
|
-
:return_type => '
|
725
|
+
:return_type => 'TwilioResponse')
|
841
726
|
if @api_client.config.debugging
|
842
|
-
@api_client.config.logger.debug "API called: StorefrontApi#
|
727
|
+
@api_client.config.logger.debug "API called: StorefrontApi#create_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
843
728
|
end
|
844
729
|
return data, status_code, headers
|
845
730
|
end
|
@@ -1372,6 +1257,65 @@ module UltracartClient
|
|
1372
1257
|
end
|
1373
1258
|
return data, status_code, headers
|
1374
1259
|
end
|
1260
|
+
# Delete file manager directory
|
1261
|
+
# @param id
|
1262
|
+
# @param [Hash] opts the optional parameters
|
1263
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
1264
|
+
# @option opts [Integer] :storefront_fs_file_oid
|
1265
|
+
# @return [FileManagerPageResponse]
|
1266
|
+
def delete_fs_file(id, opts = {})
|
1267
|
+
data, _status_code, _headers = delete_fs_file_with_http_info(id, opts)
|
1268
|
+
data
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# Delete file manager directory
|
1272
|
+
# @param id
|
1273
|
+
# @param [Hash] opts the optional parameters
|
1274
|
+
# @option opts [Integer] :parent_storefront_fs_directory_oid
|
1275
|
+
# @option opts [Integer] :storefront_fs_file_oid
|
1276
|
+
# @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
|
1277
|
+
def delete_fs_file_with_http_info(id, opts = {})
|
1278
|
+
if @api_client.config.debugging
|
1279
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.delete_fs_file ...'
|
1280
|
+
end
|
1281
|
+
# verify the required parameter 'id' is set
|
1282
|
+
if @api_client.config.client_side_validation && id.nil?
|
1283
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.delete_fs_file"
|
1284
|
+
end
|
1285
|
+
# resource path
|
1286
|
+
local_var_path = '/storefront/{id}/fs/file'.sub('{' + 'id' + '}', id.to_s)
|
1287
|
+
|
1288
|
+
# query parameters
|
1289
|
+
query_params = {}
|
1290
|
+
query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
|
1291
|
+
query_params[:'storefront_fs_file_oid'] = opts[:'storefront_fs_file_oid'] if !opts[:'storefront_fs_file_oid'].nil?
|
1292
|
+
|
1293
|
+
# header parameters
|
1294
|
+
header_params = {}
|
1295
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1296
|
+
# HTTP header 'Accept' (if needed)
|
1297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1298
|
+
# HTTP header 'Content-Type'
|
1299
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1300
|
+
|
1301
|
+
# form parameters
|
1302
|
+
form_params = {}
|
1303
|
+
|
1304
|
+
# http body (model)
|
1305
|
+
post_body = nil
|
1306
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
1307
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1308
|
+
:header_params => header_params,
|
1309
|
+
:query_params => query_params,
|
1310
|
+
:form_params => form_params,
|
1311
|
+
:body => post_body,
|
1312
|
+
:auth_names => auth_names,
|
1313
|
+
:return_type => 'FileManagerPageResponse')
|
1314
|
+
if @api_client.config.debugging
|
1315
|
+
@api_client.config.logger.debug "API called: StorefrontApi#delete_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1316
|
+
end
|
1317
|
+
return data, status_code, headers
|
1318
|
+
end
|
1375
1319
|
# Delete screen recording heatmap
|
1376
1320
|
# Delete screen recording heatmap
|
1377
1321
|
# @param storefront_oid
|
@@ -1819,68 +1763,6 @@ module UltracartClient
|
|
1819
1763
|
end
|
1820
1764
|
return data, status_code, headers
|
1821
1765
|
end
|
1822
|
-
# Get file manager directory for admin panel
|
1823
|
-
# @param id
|
1824
|
-
# @param [Hash] opts the optional parameters
|
1825
|
-
# @option opts [String] :path
|
1826
|
-
# @option opts [Integer] :storefront_fs_directory_oid
|
1827
|
-
# @option opts [Integer] :storefront_theme_oid
|
1828
|
-
# @return [FileManagerPage]
|
1829
|
-
def get_admin_panel_fs_directory(id, opts = {})
|
1830
|
-
data, _status_code, _headers = get_admin_panel_fs_directory_with_http_info(id, opts)
|
1831
|
-
data
|
1832
|
-
end
|
1833
|
-
|
1834
|
-
# Get file manager directory for admin panel
|
1835
|
-
# @param id
|
1836
|
-
# @param [Hash] opts the optional parameters
|
1837
|
-
# @option opts [String] :path
|
1838
|
-
# @option opts [Integer] :storefront_fs_directory_oid
|
1839
|
-
# @option opts [Integer] :storefront_theme_oid
|
1840
|
-
# @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
|
1841
|
-
def get_admin_panel_fs_directory_with_http_info(id, opts = {})
|
1842
|
-
if @api_client.config.debugging
|
1843
|
-
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_admin_panel_fs_directory ...'
|
1844
|
-
end
|
1845
|
-
# verify the required parameter 'id' is set
|
1846
|
-
if @api_client.config.client_side_validation && id.nil?
|
1847
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_admin_panel_fs_directory"
|
1848
|
-
end
|
1849
|
-
# resource path
|
1850
|
-
local_var_path = '/storefront/{id}/adminPanel/fs/dir'.sub('{' + 'id' + '}', id.to_s)
|
1851
|
-
|
1852
|
-
# query parameters
|
1853
|
-
query_params = {}
|
1854
|
-
query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
|
1855
|
-
query_params[:'storefront_fs_directory_oid'] = opts[:'storefront_fs_directory_oid'] if !opts[:'storefront_fs_directory_oid'].nil?
|
1856
|
-
query_params[:'storefront_theme_oid'] = opts[:'storefront_theme_oid'] if !opts[:'storefront_theme_oid'].nil?
|
1857
|
-
|
1858
|
-
# header parameters
|
1859
|
-
header_params = {}
|
1860
|
-
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1861
|
-
# HTTP header 'Accept' (if needed)
|
1862
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1863
|
-
# HTTP header 'Content-Type'
|
1864
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1865
|
-
|
1866
|
-
# form parameters
|
1867
|
-
form_params = {}
|
1868
|
-
|
1869
|
-
# http body (model)
|
1870
|
-
post_body = nil
|
1871
|
-
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
1872
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1873
|
-
:header_params => header_params,
|
1874
|
-
:query_params => query_params,
|
1875
|
-
:form_params => form_params,
|
1876
|
-
:body => post_body,
|
1877
|
-
:auth_names => auth_names,
|
1878
|
-
:return_type => 'FileManagerPage')
|
1879
|
-
if @api_client.config.debugging
|
1880
|
-
@api_client.config.logger.debug "API called: StorefrontApi#get_admin_panel_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1881
|
-
end
|
1882
|
-
return data, status_code, headers
|
1883
|
-
end
|
1884
1766
|
# Get countries
|
1885
1767
|
# Obtain a list of all the countries
|
1886
1768
|
# @param storefront_oid
|
@@ -5247,6 +5129,68 @@ module UltracartClient
|
|
5247
5129
|
end
|
5248
5130
|
return data, status_code, headers
|
5249
5131
|
end
|
5132
|
+
# Get file manager directory
|
5133
|
+
# @param id
|
5134
|
+
# @param [Hash] opts the optional parameters
|
5135
|
+
# @option opts [String] :path
|
5136
|
+
# @option opts [Integer] :storefront_fs_directory_oid
|
5137
|
+
# @option opts [Integer] :storefront_theme_oid
|
5138
|
+
# @return [FileManagerPageResponse]
|
5139
|
+
def get_fs_directory(id, opts = {})
|
5140
|
+
data, _status_code, _headers = get_fs_directory_with_http_info(id, opts)
|
5141
|
+
data
|
5142
|
+
end
|
5143
|
+
|
5144
|
+
# Get file manager directory
|
5145
|
+
# @param id
|
5146
|
+
# @param [Hash] opts the optional parameters
|
5147
|
+
# @option opts [String] :path
|
5148
|
+
# @option opts [Integer] :storefront_fs_directory_oid
|
5149
|
+
# @option opts [Integer] :storefront_theme_oid
|
5150
|
+
# @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
|
5151
|
+
def get_fs_directory_with_http_info(id, opts = {})
|
5152
|
+
if @api_client.config.debugging
|
5153
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_fs_directory ...'
|
5154
|
+
end
|
5155
|
+
# verify the required parameter 'id' is set
|
5156
|
+
if @api_client.config.client_side_validation && id.nil?
|
5157
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_fs_directory"
|
5158
|
+
end
|
5159
|
+
# resource path
|
5160
|
+
local_var_path = '/storefront/{id}/fs/dir'.sub('{' + 'id' + '}', id.to_s)
|
5161
|
+
|
5162
|
+
# query parameters
|
5163
|
+
query_params = {}
|
5164
|
+
query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
|
5165
|
+
query_params[:'storefront_fs_directory_oid'] = opts[:'storefront_fs_directory_oid'] if !opts[:'storefront_fs_directory_oid'].nil?
|
5166
|
+
query_params[:'storefront_theme_oid'] = opts[:'storefront_theme_oid'] if !opts[:'storefront_theme_oid'].nil?
|
5167
|
+
|
5168
|
+
# header parameters
|
5169
|
+
header_params = {}
|
5170
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
5171
|
+
# HTTP header 'Accept' (if needed)
|
5172
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5173
|
+
# HTTP header 'Content-Type'
|
5174
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5175
|
+
|
5176
|
+
# form parameters
|
5177
|
+
form_params = {}
|
5178
|
+
|
5179
|
+
# http body (model)
|
5180
|
+
post_body = nil
|
5181
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
5182
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
5183
|
+
:header_params => header_params,
|
5184
|
+
:query_params => query_params,
|
5185
|
+
:form_params => form_params,
|
5186
|
+
:body => post_body,
|
5187
|
+
:auth_names => auth_names,
|
5188
|
+
:return_type => 'FileManagerPageResponse')
|
5189
|
+
if @api_client.config.debugging
|
5190
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5191
|
+
end
|
5192
|
+
return data, status_code, headers
|
5193
|
+
end
|
5250
5194
|
# Get screen recording heatmap
|
5251
5195
|
# Get screen recording heatmap
|
5252
5196
|
# @param storefront_oid
|
@@ -6568,6 +6512,65 @@ module UltracartClient
|
|
6568
6512
|
end
|
6569
6513
|
return data, status_code, headers
|
6570
6514
|
end
|
6515
|
+
# 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.
|
6516
|
+
# @param id
|
6517
|
+
# @param extension
|
6518
|
+
# @param [Hash] opts the optional parameters
|
6519
|
+
# @return [FileManagerUploadUrlResponse]
|
6520
|
+
def get_upload_fs_file_url(id, extension, opts = {})
|
6521
|
+
data, _status_code, _headers = get_upload_fs_file_url_with_http_info(id, extension, opts)
|
6522
|
+
data
|
6523
|
+
end
|
6524
|
+
|
6525
|
+
# 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.
|
6526
|
+
# @param id
|
6527
|
+
# @param extension
|
6528
|
+
# @param [Hash] opts the optional parameters
|
6529
|
+
# @return [Array<(FileManagerUploadUrlResponse, Fixnum, Hash)>] FileManagerUploadUrlResponse data, response status code and response headers
|
6530
|
+
def get_upload_fs_file_url_with_http_info(id, extension, opts = {})
|
6531
|
+
if @api_client.config.debugging
|
6532
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_upload_fs_file_url ...'
|
6533
|
+
end
|
6534
|
+
# verify the required parameter 'id' is set
|
6535
|
+
if @api_client.config.client_side_validation && id.nil?
|
6536
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_upload_fs_file_url"
|
6537
|
+
end
|
6538
|
+
# verify the required parameter 'extension' is set
|
6539
|
+
if @api_client.config.client_side_validation && extension.nil?
|
6540
|
+
fail ArgumentError, "Missing the required parameter 'extension' when calling StorefrontApi.get_upload_fs_file_url"
|
6541
|
+
end
|
6542
|
+
# resource path
|
6543
|
+
local_var_path = '/storefront/{id}/fs/upload_url/{extension}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'extension' + '}', extension.to_s)
|
6544
|
+
|
6545
|
+
# query parameters
|
6546
|
+
query_params = {}
|
6547
|
+
|
6548
|
+
# header parameters
|
6549
|
+
header_params = {}
|
6550
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
6551
|
+
# HTTP header 'Accept' (if needed)
|
6552
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6553
|
+
# HTTP header 'Content-Type'
|
6554
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6555
|
+
|
6556
|
+
# form parameters
|
6557
|
+
form_params = {}
|
6558
|
+
|
6559
|
+
# http body (model)
|
6560
|
+
post_body = nil
|
6561
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
6562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6563
|
+
:header_params => header_params,
|
6564
|
+
:query_params => query_params,
|
6565
|
+
:form_params => form_params,
|
6566
|
+
:body => post_body,
|
6567
|
+
:auth_names => auth_names,
|
6568
|
+
:return_type => 'FileManagerUploadUrlResponse')
|
6569
|
+
if @api_client.config.debugging
|
6570
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_upload_fs_file_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6571
|
+
end
|
6572
|
+
return data, status_code, headers
|
6573
|
+
end
|
6571
6574
|
# Globally unsubscribe a customer
|
6572
6575
|
# @param storefront_oid
|
6573
6576
|
# @param unsubscribe Unsubscribe
|
@@ -10020,6 +10023,64 @@ module UltracartClient
|
|
10020
10023
|
end
|
10021
10024
|
return data, status_code, headers
|
10022
10025
|
end
|
10026
|
+
# 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.
|
10027
|
+
# @param id
|
10028
|
+
# @param upload_request UploadRequest
|
10029
|
+
# @param [Hash] opts the optional parameters
|
10030
|
+
# @return [nil]
|
10031
|
+
def upload_fs_file(id, upload_request, opts = {})
|
10032
|
+
upload_fs_file_with_http_info(id, upload_request, opts)
|
10033
|
+
nil
|
10034
|
+
end
|
10035
|
+
|
10036
|
+
# 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.
|
10037
|
+
# @param id
|
10038
|
+
# @param upload_request UploadRequest
|
10039
|
+
# @param [Hash] opts the optional parameters
|
10040
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
10041
|
+
def upload_fs_file_with_http_info(id, upload_request, opts = {})
|
10042
|
+
if @api_client.config.debugging
|
10043
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.upload_fs_file ...'
|
10044
|
+
end
|
10045
|
+
# verify the required parameter 'id' is set
|
10046
|
+
if @api_client.config.client_side_validation && id.nil?
|
10047
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.upload_fs_file"
|
10048
|
+
end
|
10049
|
+
# verify the required parameter 'upload_request' is set
|
10050
|
+
if @api_client.config.client_side_validation && upload_request.nil?
|
10051
|
+
fail ArgumentError, "Missing the required parameter 'upload_request' when calling StorefrontApi.upload_fs_file"
|
10052
|
+
end
|
10053
|
+
# resource path
|
10054
|
+
local_var_path = '/storefront/{id}/fs/upload'.sub('{' + 'id' + '}', id.to_s)
|
10055
|
+
|
10056
|
+
# query parameters
|
10057
|
+
query_params = {}
|
10058
|
+
|
10059
|
+
# header parameters
|
10060
|
+
header_params = {}
|
10061
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
10062
|
+
# HTTP header 'Accept' (if needed)
|
10063
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
10064
|
+
# HTTP header 'Content-Type'
|
10065
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10066
|
+
|
10067
|
+
# form parameters
|
10068
|
+
form_params = {}
|
10069
|
+
|
10070
|
+
# http body (model)
|
10071
|
+
post_body = @api_client.object_to_http_body(upload_request)
|
10072
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
10073
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
10074
|
+
:header_params => header_params,
|
10075
|
+
:query_params => query_params,
|
10076
|
+
:form_params => form_params,
|
10077
|
+
:body => post_body,
|
10078
|
+
:auth_names => auth_names)
|
10079
|
+
if @api_client.config.debugging
|
10080
|
+
@api_client.config.logger.debug "API called: StorefrontApi#upload_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10081
|
+
end
|
10082
|
+
return data, status_code, headers
|
10083
|
+
end
|
10023
10084
|
# Validate AWS Event Ruler
|
10024
10085
|
# @param ruler_validate_request Ruler Validate Request
|
10025
10086
|
# @param [Hash] opts the optional parameters
|