ultracart_api 4.0.67.rc → 4.0.69.rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -597,139 +597,6 @@ module UltracartClient
597
597
  return data, status_code, headers
598
598
  end
599
599
 
600
- # Create file manager directory for admin panel
601
- # @param id [Integer]
602
- # @param [Hash] opts the optional parameters
603
- # @option opts [String] :name
604
- # @option opts [Integer] :parent_storefront_fs_directory_oid
605
- # @return [FileManagerPage]
606
- def create_admin_panel_fs_directory(id, opts = {})
607
- data, _status_code, _headers = create_admin_panel_fs_directory_with_http_info(id, opts)
608
- data
609
- end
610
-
611
- # Create file manager directory for admin panel
612
- # @param id [Integer]
613
- # @param [Hash] opts the optional parameters
614
- # @option opts [String] :name
615
- # @option opts [Integer] :parent_storefront_fs_directory_oid
616
- # @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
617
- def create_admin_panel_fs_directory_with_http_info(id, opts = {})
618
- if @api_client.config.debugging
619
- @api_client.config.logger.debug 'Calling API: StorefrontApi.create_admin_panel_fs_directory ...'
620
- end
621
- # verify the required parameter 'id' is set
622
- if @api_client.config.client_side_validation && id.nil?
623
- fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_admin_panel_fs_directory"
624
- end
625
- # resource path
626
- local_var_path = '/storefront/{id}/adminPanel/fs/dir'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
627
-
628
- # query parameters
629
- query_params = opts[:query_params] || {}
630
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
631
- query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
632
-
633
- # header parameters
634
- header_params = opts[:header_params] || {}
635
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
636
- # HTTP header 'Accept' (if needed)
637
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
638
-
639
- # form parameters
640
- form_params = opts[:form_params] || {}
641
-
642
- # http body (model)
643
- post_body = opts[:debug_body]
644
-
645
- # return_type
646
- return_type = opts[:debug_return_type] || 'FileManagerPage'
647
-
648
- # auth_names
649
- auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
650
-
651
- new_options = opts.merge(
652
- :operation => :"StorefrontApi.create_admin_panel_fs_directory",
653
- :header_params => header_params,
654
- :query_params => query_params,
655
- :form_params => form_params,
656
- :body => post_body,
657
- :auth_names => auth_names,
658
- :return_type => return_type
659
- )
660
-
661
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
662
- if @api_client.config.debugging
663
- @api_client.config.logger.debug "API called: StorefrontApi#create_admin_panel_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
- end
665
- return data, status_code, headers
666
- end
667
-
668
- # Upload file manager file for admin panel
669
- # @param id [Integer]
670
- # @param [Hash] opts the optional parameters
671
- # @option opts [Integer] :parent_storefront_fs_directory_oid
672
- # @return [FileManagerPage]
673
- def create_admin_panel_fs_file_upload(id, opts = {})
674
- data, _status_code, _headers = create_admin_panel_fs_file_upload_with_http_info(id, opts)
675
- data
676
- end
677
-
678
- # Upload file manager file for admin panel
679
- # @param id [Integer]
680
- # @param [Hash] opts the optional parameters
681
- # @option opts [Integer] :parent_storefront_fs_directory_oid
682
- # @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
683
- def create_admin_panel_fs_file_upload_with_http_info(id, opts = {})
684
- if @api_client.config.debugging
685
- @api_client.config.logger.debug 'Calling API: StorefrontApi.create_admin_panel_fs_file_upload ...'
686
- end
687
- # verify the required parameter 'id' is set
688
- if @api_client.config.client_side_validation && id.nil?
689
- fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.create_admin_panel_fs_file_upload"
690
- end
691
- # resource path
692
- local_var_path = '/storefront/{id}/adminPanel/fs/file'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
693
-
694
- # query parameters
695
- query_params = opts[:query_params] || {}
696
- query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
697
-
698
- # header parameters
699
- header_params = opts[:header_params] || {}
700
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
701
- # HTTP header 'Accept' (if needed)
702
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
703
-
704
- # form parameters
705
- form_params = opts[:form_params] || {}
706
-
707
- # http body (model)
708
- post_body = opts[:debug_body]
709
-
710
- # return_type
711
- return_type = opts[:debug_return_type] || 'FileManagerPage'
712
-
713
- # auth_names
714
- auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
715
-
716
- new_options = opts.merge(
717
- :operation => :"StorefrontApi.create_admin_panel_fs_file_upload",
718
- :header_params => header_params,
719
- :query_params => query_params,
720
- :form_params => form_params,
721
- :body => post_body,
722
- :auth_names => auth_names,
723
- :return_type => return_type
724
- )
725
-
726
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
727
- if @api_client.config.debugging
728
- @api_client.config.logger.debug "API called: StorefrontApi#create_admin_panel_fs_file_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
729
- end
730
- return data, status_code, headers
731
- end
732
-
733
600
  # Create email campaign
734
601
  # @param domain [String]
735
602
  # @param [Hash] opts the optional parameters
@@ -859,58 +726,59 @@ module UltracartClient
859
726
  return data, status_code, headers
860
727
  end
861
728
 
862
- # Create Twilio account
863
- # @param twilio [Twilio] Twilio
729
+ # Create file manager directory
730
+ # @param id [Integer]
864
731
  # @param [Hash] opts the optional parameters
865
- # @return [TwilioResponse]
866
- def create_twilio_account(twilio, opts = {})
867
- data, _status_code, _headers = create_twilio_account_with_http_info(twilio, opts)
732
+ # @option opts [String] :name
733
+ # @option opts [Integer] :parent_storefront_fs_directory_oid
734
+ # @return [FileManagerPageResponse]
735
+ def create_fs_directory(id, opts = {})
736
+ data, _status_code, _headers = create_fs_directory_with_http_info(id, opts)
868
737
  data
869
738
  end
870
739
 
871
- # Create Twilio account
872
- # @param twilio [Twilio] Twilio
740
+ # Create file manager directory
741
+ # @param id [Integer]
873
742
  # @param [Hash] opts the optional parameters
874
- # @return [Array<(TwilioResponse, Integer, Hash)>] TwilioResponse data, response status code and response headers
875
- def create_twilio_account_with_http_info(twilio, opts = {})
743
+ # @option opts [String] :name
744
+ # @option opts [Integer] :parent_storefront_fs_directory_oid
745
+ # @return [Array<(FileManagerPageResponse, Integer, Hash)>] FileManagerPageResponse data, response status code and response headers
746
+ def create_fs_directory_with_http_info(id, opts = {})
876
747
  if @api_client.config.debugging
877
- @api_client.config.logger.debug 'Calling API: StorefrontApi.create_twilio_account ...'
748
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.create_fs_directory ...'
878
749
  end
879
- # verify the required parameter 'twilio' is set
880
- if @api_client.config.client_side_validation && twilio.nil?
881
- fail ArgumentError, "Missing the required parameter 'twilio' when calling StorefrontApi.create_twilio_account"
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"
882
753
  end
883
754
  # resource path
884
- local_var_path = '/storefront/twilio/accounts'
755
+ local_var_path = '/storefront/{id}/fs/dir'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
885
756
 
886
757
  # query parameters
887
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?
888
761
 
889
762
  # header parameters
890
763
  header_params = opts[:header_params] || {}
891
764
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
892
765
  # HTTP header 'Accept' (if needed)
893
766
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
894
- # HTTP header 'Content-Type'
895
- content_type = @api_client.select_header_content_type(['application/json'])
896
- if !content_type.nil?
897
- header_params['Content-Type'] = content_type
898
- end
899
767
 
900
768
  # form parameters
901
769
  form_params = opts[:form_params] || {}
902
770
 
903
771
  # http body (model)
904
- post_body = opts[:debug_body] || @api_client.object_to_http_body(twilio)
772
+ post_body = opts[:debug_body]
905
773
 
906
774
  # return_type
907
- return_type = opts[:debug_return_type] || 'TwilioResponse'
775
+ return_type = opts[:debug_return_type] || 'FileManagerPageResponse'
908
776
 
909
777
  # auth_names
910
778
  auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
911
779
 
912
780
  new_options = opts.merge(
913
- :operation => :"StorefrontApi.create_twilio_account",
781
+ :operation => :"StorefrontApi.create_fs_directory",
914
782
  :header_params => header_params,
915
783
  :query_params => query_params,
916
784
  :form_params => form_params,
@@ -921,64 +789,63 @@ module UltracartClient
921
789
 
922
790
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
923
791
  if @api_client.config.debugging
924
- @api_client.config.logger.debug "API called: StorefrontApi#create_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
792
+ @api_client.config.logger.debug "API called: StorefrontApi#create_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
925
793
  end
926
794
  return data, status_code, headers
927
795
  end
928
796
 
929
- # Delete file manager directory for admin panel
930
- # @param id [Integer]
797
+ # Create Twilio account
798
+ # @param twilio [Twilio] Twilio
931
799
  # @param [Hash] opts the optional parameters
932
- # @option opts [Integer] :parent_storefront_fs_directory_oid
933
- # @option opts [Integer] :storefront_fs_file_oid
934
- # @return [FileManagerPage]
935
- def delete_admin_panel_fs_file(id, opts = {})
936
- data, _status_code, _headers = delete_admin_panel_fs_file_with_http_info(id, opts)
800
+ # @return [TwilioResponse]
801
+ def create_twilio_account(twilio, opts = {})
802
+ data, _status_code, _headers = create_twilio_account_with_http_info(twilio, opts)
937
803
  data
938
804
  end
939
805
 
940
- # Delete file manager directory for admin panel
941
- # @param id [Integer]
806
+ # Create Twilio account
807
+ # @param twilio [Twilio] Twilio
942
808
  # @param [Hash] opts the optional parameters
943
- # @option opts [Integer] :parent_storefront_fs_directory_oid
944
- # @option opts [Integer] :storefront_fs_file_oid
945
- # @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
946
- def delete_admin_panel_fs_file_with_http_info(id, opts = {})
809
+ # @return [Array<(TwilioResponse, Integer, Hash)>] TwilioResponse data, response status code and response headers
810
+ def create_twilio_account_with_http_info(twilio, opts = {})
947
811
  if @api_client.config.debugging
948
- @api_client.config.logger.debug 'Calling API: StorefrontApi.delete_admin_panel_fs_file ...'
812
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.create_twilio_account ...'
949
813
  end
950
- # verify the required parameter 'id' is set
951
- if @api_client.config.client_side_validation && id.nil?
952
- fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.delete_admin_panel_fs_file"
814
+ # verify the required parameter 'twilio' is set
815
+ if @api_client.config.client_side_validation && twilio.nil?
816
+ fail ArgumentError, "Missing the required parameter 'twilio' when calling StorefrontApi.create_twilio_account"
953
817
  end
954
818
  # resource path
955
- local_var_path = '/storefront/{id}/adminPanel/fs/file'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
819
+ local_var_path = '/storefront/twilio/accounts'
956
820
 
957
821
  # query parameters
958
822
  query_params = opts[:query_params] || {}
959
- query_params[:'parent_storefront_fs_directory_oid'] = opts[:'parent_storefront_fs_directory_oid'] if !opts[:'parent_storefront_fs_directory_oid'].nil?
960
- query_params[:'storefront_fs_file_oid'] = opts[:'storefront_fs_file_oid'] if !opts[:'storefront_fs_file_oid'].nil?
961
823
 
962
824
  # header parameters
963
825
  header_params = opts[:header_params] || {}
964
826
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
965
827
  # HTTP header 'Accept' (if needed)
966
828
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
829
+ # HTTP header 'Content-Type'
830
+ content_type = @api_client.select_header_content_type(['application/json'])
831
+ if !content_type.nil?
832
+ header_params['Content-Type'] = content_type
833
+ end
967
834
 
968
835
  # form parameters
969
836
  form_params = opts[:form_params] || {}
970
837
 
971
838
  # http body (model)
972
- post_body = opts[:debug_body]
839
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(twilio)
973
840
 
974
841
  # return_type
975
- return_type = opts[:debug_return_type] || 'FileManagerPage'
842
+ return_type = opts[:debug_return_type] || 'TwilioResponse'
976
843
 
977
844
  # auth_names
978
845
  auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
979
846
 
980
847
  new_options = opts.merge(
981
- :operation => :"StorefrontApi.delete_admin_panel_fs_file",
848
+ :operation => :"StorefrontApi.create_twilio_account",
982
849
  :header_params => header_params,
983
850
  :query_params => query_params,
984
851
  :form_params => form_params,
@@ -987,9 +854,9 @@ module UltracartClient
987
854
  :return_type => return_type
988
855
  )
989
856
 
990
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
857
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
991
858
  if @api_client.config.debugging
992
- @api_client.config.logger.debug "API called: StorefrontApi#delete_admin_panel_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
859
+ @api_client.config.logger.debug "API called: StorefrontApi#create_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
993
860
  end
994
861
  return data, status_code, headers
995
862
  end
@@ -1606,6 +1473,74 @@ module UltracartClient
1606
1473
  return data, status_code, headers
1607
1474
  end
1608
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 [FileManagerPageResponse]
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<(FileManagerPageResponse, Integer, Hash)>] FileManagerPageResponse 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] || 'FileManagerPageResponse'
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
+
1609
1544
  # Delete screen recording heatmap
1610
1545
  # Delete screen recording heatmap
1611
1546
  # @param storefront_oid [Integer]
@@ -2140,77 +2075,6 @@ module UltracartClient
2140
2075
  return data, status_code, headers
2141
2076
  end
2142
2077
 
2143
- # Get file manager directory for admin panel
2144
- # @param id [Integer]
2145
- # @param [Hash] opts the optional parameters
2146
- # @option opts [String] :path
2147
- # @option opts [Integer] :storefront_fs_directory_oid
2148
- # @option opts [Integer] :storefront_theme_oid
2149
- # @return [FileManagerPage]
2150
- def get_admin_panel_fs_directory(id, opts = {})
2151
- data, _status_code, _headers = get_admin_panel_fs_directory_with_http_info(id, opts)
2152
- data
2153
- end
2154
-
2155
- # Get file manager directory for admin panel
2156
- # @param id [Integer]
2157
- # @param [Hash] opts the optional parameters
2158
- # @option opts [String] :path
2159
- # @option opts [Integer] :storefront_fs_directory_oid
2160
- # @option opts [Integer] :storefront_theme_oid
2161
- # @return [Array<(FileManagerPage, Integer, Hash)>] FileManagerPage data, response status code and response headers
2162
- def get_admin_panel_fs_directory_with_http_info(id, opts = {})
2163
- if @api_client.config.debugging
2164
- @api_client.config.logger.debug 'Calling API: StorefrontApi.get_admin_panel_fs_directory ...'
2165
- end
2166
- # verify the required parameter 'id' is set
2167
- if @api_client.config.client_side_validation && id.nil?
2168
- fail ArgumentError, "Missing the required parameter 'id' when calling StorefrontApi.get_admin_panel_fs_directory"
2169
- end
2170
- # resource path
2171
- local_var_path = '/storefront/{id}/adminPanel/fs/dir'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2172
-
2173
- # query parameters
2174
- query_params = opts[:query_params] || {}
2175
- query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
2176
- query_params[:'storefront_fs_directory_oid'] = opts[:'storefront_fs_directory_oid'] if !opts[:'storefront_fs_directory_oid'].nil?
2177
- query_params[:'storefront_theme_oid'] = opts[:'storefront_theme_oid'] if !opts[:'storefront_theme_oid'].nil?
2178
-
2179
- # header parameters
2180
- header_params = opts[:header_params] || {}
2181
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
2182
- # HTTP header 'Accept' (if needed)
2183
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2184
-
2185
- # form parameters
2186
- form_params = opts[:form_params] || {}
2187
-
2188
- # http body (model)
2189
- post_body = opts[:debug_body]
2190
-
2191
- # return_type
2192
- return_type = opts[:debug_return_type] || 'FileManagerPage'
2193
-
2194
- # auth_names
2195
- auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
2196
-
2197
- new_options = opts.merge(
2198
- :operation => :"StorefrontApi.get_admin_panel_fs_directory",
2199
- :header_params => header_params,
2200
- :query_params => query_params,
2201
- :form_params => form_params,
2202
- :body => post_body,
2203
- :auth_names => auth_names,
2204
- :return_type => return_type
2205
- )
2206
-
2207
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2208
- if @api_client.config.debugging
2209
- @api_client.config.logger.debug "API called: StorefrontApi#get_admin_panel_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2210
- end
2211
- return data, status_code, headers
2212
- end
2213
-
2214
2078
  # Get countries
2215
2079
  # Obtain a list of all the countries
2216
2080
  # @param storefront_oid [Integer]
@@ -6129,6 +5993,77 @@ module UltracartClient
6129
5993
  return data, status_code, headers
6130
5994
  end
6131
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 [FileManagerPageResponse]
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<(FileManagerPageResponse, Integer, Hash)>] FileManagerPageResponse 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] || 'FileManagerPageResponse'
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
+
6132
6067
  # Get screen recording heatmap
6133
6068
  # Get screen recording heatmap
6134
6069
  # @param storefront_oid [Integer]
@@ -7677,6 +7612,74 @@ module UltracartClient
7677
7612
  return data, status_code, headers
7678
7613
  end
7679
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
+
7680
7683
  # Globally unsubscribe a customer
7681
7684
  # @param storefront_oid [Integer]
7682
7685
  # @param unsubscribe [EmailGlobalUnsubscribeRequest] Unsubscribe
@@ -11879,6 +11882,79 @@ module UltracartClient
11879
11882
  return data, status_code, headers
11880
11883
  end
11881
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
+
11882
11958
  # Validate AWS Event Ruler
11883
11959
  # @param ruler_validate_request [RulerValidationRequest] Ruler Validate Request
11884
11960
  # @param [Hash] opts the optional parameters