ultracart_api 4.1.179 → 4.1.181
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.
- checksums.yaml +4 -4
- data/README.md +15 -2
- data/docs/AutoOrderApi.md +54 -0
- data/docs/OrderApi.md +165 -0
- data/docs/OrderAssignRmaRequest.md +18 -0
- data/docs/OrderAutoOrderUpdateBillingUrlResponse.md +26 -0
- data/docs/SfvbApi.md +109 -0
- data/docs/SfvbBlogPostDetail.md +8 -2
- data/docs/SfvbBlogPostRequest.md +6 -0
- data/docs/SfvbRecordingSettings.md +34 -0
- data/docs/SfvbRecordingSettingsRequest.md +18 -0
- data/docs/SfvbRecordingSettingsResponse.md +20 -0
- data/lib/ultracart_api/api/auto_order_api.rb +64 -0
- data/lib/ultracart_api/api/order_api.rb +209 -0
- data/lib/ultracart_api/api/sfvb_api.rb +139 -0
- data/lib/ultracart_api/models/order_assign_rma_request.rb +235 -0
- data/lib/ultracart_api/models/order_auto_order_update_billing_url_response.rb +257 -0
- data/lib/ultracart_api/models/sfvb_blog_post_detail.rb +33 -3
- data/lib/ultracart_api/models/sfvb_blog_post_request.rb +31 -1
- data/lib/ultracart_api/models/sfvb_recording_settings.rb +300 -0
- data/lib/ultracart_api/models/sfvb_recording_settings_request.rb +220 -0
- data/lib/ultracart_api/models/sfvb_recording_settings_response.rb +229 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbRecordingSettingsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **changed** | **Boolean** | On a change only. False when recording was already in the requested state, so nothing was saved. | [optional] |
|
|
8
|
+
| **settings** | [**SfvbRecordingSettings**](SfvbRecordingSettings.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbRecordingSettingsResponse.new(
|
|
16
|
+
changed: null,
|
|
17
|
+
settings: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -647,6 +647,70 @@ module UltracartClient
|
|
|
647
647
|
return data, status_code, headers
|
|
648
648
|
end
|
|
649
649
|
|
|
650
|
+
# Generate an auto order update billing url
|
|
651
|
+
# Generates the url a customer can use to update the billing information on this auto order. This is the same url sent in the auto order update billing email.
|
|
652
|
+
# @param auto_order_oid [Integer] The auto order oid to generate the update billing url for.
|
|
653
|
+
# @param [Hash] opts the optional parameters
|
|
654
|
+
# @return [OrderAutoOrderUpdateBillingUrlResponse]
|
|
655
|
+
def get_auto_order_update_billing_url(auto_order_oid, opts = {})
|
|
656
|
+
data, _status_code, _headers = get_auto_order_update_billing_url_with_http_info(auto_order_oid, opts)
|
|
657
|
+
data
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
# Generate an auto order update billing url
|
|
661
|
+
# Generates the url a customer can use to update the billing information on this auto order. This is the same url sent in the auto order update billing email.
|
|
662
|
+
# @param auto_order_oid [Integer] The auto order oid to generate the update billing url for.
|
|
663
|
+
# @param [Hash] opts the optional parameters
|
|
664
|
+
# @return [Array<(OrderAutoOrderUpdateBillingUrlResponse, Integer, Hash)>] OrderAutoOrderUpdateBillingUrlResponse data, response status code and response headers
|
|
665
|
+
def get_auto_order_update_billing_url_with_http_info(auto_order_oid, opts = {})
|
|
666
|
+
if @api_client.config.debugging
|
|
667
|
+
@api_client.config.logger.debug 'Calling API: AutoOrderApi.get_auto_order_update_billing_url ...'
|
|
668
|
+
end
|
|
669
|
+
# verify the required parameter 'auto_order_oid' is set
|
|
670
|
+
if @api_client.config.client_side_validation && auto_order_oid.nil?
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'auto_order_oid' when calling AutoOrderApi.get_auto_order_update_billing_url"
|
|
672
|
+
end
|
|
673
|
+
# resource path
|
|
674
|
+
local_var_path = '/auto_order/auto_orders/{auto_order_oid}/update_billing_url'.sub('{' + 'auto_order_oid' + '}', CGI.escape(auto_order_oid.to_s))
|
|
675
|
+
|
|
676
|
+
# query parameters
|
|
677
|
+
query_params = opts[:query_params] || {}
|
|
678
|
+
|
|
679
|
+
# header parameters
|
|
680
|
+
header_params = opts[:header_params] || {}
|
|
681
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
682
|
+
# HTTP header 'Accept' (if needed)
|
|
683
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
684
|
+
|
|
685
|
+
# form parameters
|
|
686
|
+
form_params = opts[:form_params] || {}
|
|
687
|
+
|
|
688
|
+
# http body (model)
|
|
689
|
+
post_body = opts[:debug_body]
|
|
690
|
+
|
|
691
|
+
# return_type
|
|
692
|
+
return_type = opts[:debug_return_type] || 'OrderAutoOrderUpdateBillingUrlResponse'
|
|
693
|
+
|
|
694
|
+
# auth_names
|
|
695
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
696
|
+
|
|
697
|
+
new_options = opts.merge(
|
|
698
|
+
:operation => :"AutoOrderApi.get_auto_order_update_billing_url",
|
|
699
|
+
:header_params => header_params,
|
|
700
|
+
:query_params => query_params,
|
|
701
|
+
:form_params => form_params,
|
|
702
|
+
:body => post_body,
|
|
703
|
+
:auth_names => auth_names,
|
|
704
|
+
:return_type => return_type
|
|
705
|
+
)
|
|
706
|
+
|
|
707
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
708
|
+
if @api_client.config.debugging
|
|
709
|
+
@api_client.config.logger.debug "API called: AutoOrderApi#get_auto_order_update_billing_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
710
|
+
end
|
|
711
|
+
return data, status_code, headers
|
|
712
|
+
end
|
|
713
|
+
|
|
650
714
|
# Retrieve auto orders
|
|
651
715
|
# Retrieves auto orders from the account. If no parameters are specified, all auto orders will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
652
716
|
# @param [Hash] opts the optional parameters
|
|
@@ -102,6 +102,84 @@ module UltracartClient
|
|
|
102
102
|
return data, status_code, headers
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
+
# Associates an RMA with an order
|
|
106
|
+
# Associates an RMA number with an order. Any existing RMA on the order is replaced.
|
|
107
|
+
# @param order_id [String] The order id to associate the RMA with.
|
|
108
|
+
# @param assign_rma_request [OrderAssignRmaRequest] Assign RMA request
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
111
|
+
# @return [OrderResponse]
|
|
112
|
+
def assign_rma(order_id, assign_rma_request, opts = {})
|
|
113
|
+
data, _status_code, _headers = assign_rma_with_http_info(order_id, assign_rma_request, opts)
|
|
114
|
+
data
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Associates an RMA with an order
|
|
118
|
+
# Associates an RMA number with an order. Any existing RMA on the order is replaced.
|
|
119
|
+
# @param order_id [String] The order id to associate the RMA with.
|
|
120
|
+
# @param assign_rma_request [OrderAssignRmaRequest] Assign RMA request
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
123
|
+
# @return [Array<(OrderResponse, Integer, Hash)>] OrderResponse data, response status code and response headers
|
|
124
|
+
def assign_rma_with_http_info(order_id, assign_rma_request, opts = {})
|
|
125
|
+
if @api_client.config.debugging
|
|
126
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.assign_rma ...'
|
|
127
|
+
end
|
|
128
|
+
# verify the required parameter 'order_id' is set
|
|
129
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
130
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.assign_rma"
|
|
131
|
+
end
|
|
132
|
+
# verify the required parameter 'assign_rma_request' is set
|
|
133
|
+
if @api_client.config.client_side_validation && assign_rma_request.nil?
|
|
134
|
+
fail ArgumentError, "Missing the required parameter 'assign_rma_request' when calling OrderApi.assign_rma"
|
|
135
|
+
end
|
|
136
|
+
# resource path
|
|
137
|
+
local_var_path = '/order/orders/{order_id}/rma'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s))
|
|
138
|
+
|
|
139
|
+
# query parameters
|
|
140
|
+
query_params = opts[:query_params] || {}
|
|
141
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
|
142
|
+
|
|
143
|
+
# header parameters
|
|
144
|
+
header_params = opts[:header_params] || {}
|
|
145
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
146
|
+
# HTTP header 'Accept' (if needed)
|
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
148
|
+
# HTTP header 'Content-Type'
|
|
149
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
150
|
+
if !content_type.nil?
|
|
151
|
+
header_params['Content-Type'] = content_type
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# form parameters
|
|
155
|
+
form_params = opts[:form_params] || {}
|
|
156
|
+
|
|
157
|
+
# http body (model)
|
|
158
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(assign_rma_request)
|
|
159
|
+
|
|
160
|
+
# return_type
|
|
161
|
+
return_type = opts[:debug_return_type] || 'OrderResponse'
|
|
162
|
+
|
|
163
|
+
# auth_names
|
|
164
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
165
|
+
|
|
166
|
+
new_options = opts.merge(
|
|
167
|
+
:operation => :"OrderApi.assign_rma",
|
|
168
|
+
:header_params => header_params,
|
|
169
|
+
:query_params => query_params,
|
|
170
|
+
:form_params => form_params,
|
|
171
|
+
:body => post_body,
|
|
172
|
+
:auth_names => auth_names,
|
|
173
|
+
:return_type => return_type
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
177
|
+
if @api_client.config.debugging
|
|
178
|
+
@api_client.config.logger.debug "API called: OrderApi#assign_rma\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
179
|
+
end
|
|
180
|
+
return data, status_code, headers
|
|
181
|
+
end
|
|
182
|
+
|
|
105
183
|
# Assigns an order to an affiliate
|
|
106
184
|
# Assigns an order to an affiliate.
|
|
107
185
|
# @param order_id [String] The order id to assign to the affiliate.
|
|
@@ -1810,6 +1888,137 @@ module UltracartClient
|
|
|
1810
1888
|
return data, status_code, headers
|
|
1811
1889
|
end
|
|
1812
1890
|
|
|
1891
|
+
# Retrieve orders by RMA
|
|
1892
|
+
# Retrieves the orders associated with the specified RMA number. The RMA must be an exact value; wildcards are not permitted.
|
|
1893
|
+
# @param rma [String] The RMA number to search for.
|
|
1894
|
+
# @param [Hash] opts the optional parameters
|
|
1895
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1896
|
+
# @return [OrdersResponse]
|
|
1897
|
+
def get_orders_by_rma(rma, opts = {})
|
|
1898
|
+
data, _status_code, _headers = get_orders_by_rma_with_http_info(rma, opts)
|
|
1899
|
+
data
|
|
1900
|
+
end
|
|
1901
|
+
|
|
1902
|
+
# Retrieve orders by RMA
|
|
1903
|
+
# Retrieves the orders associated with the specified RMA number. The RMA must be an exact value; wildcards are not permitted.
|
|
1904
|
+
# @param rma [String] The RMA number to search for.
|
|
1905
|
+
# @param [Hash] opts the optional parameters
|
|
1906
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
|
1907
|
+
# @return [Array<(OrdersResponse, Integer, Hash)>] OrdersResponse data, response status code and response headers
|
|
1908
|
+
def get_orders_by_rma_with_http_info(rma, opts = {})
|
|
1909
|
+
if @api_client.config.debugging
|
|
1910
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.get_orders_by_rma ...'
|
|
1911
|
+
end
|
|
1912
|
+
# verify the required parameter 'rma' is set
|
|
1913
|
+
if @api_client.config.client_side_validation && rma.nil?
|
|
1914
|
+
fail ArgumentError, "Missing the required parameter 'rma' when calling OrderApi.get_orders_by_rma"
|
|
1915
|
+
end
|
|
1916
|
+
# resource path
|
|
1917
|
+
local_var_path = '/order/orders/rma/{rma}'.sub('{' + 'rma' + '}', CGI.escape(rma.to_s))
|
|
1918
|
+
|
|
1919
|
+
# query parameters
|
|
1920
|
+
query_params = opts[:query_params] || {}
|
|
1921
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
|
1922
|
+
|
|
1923
|
+
# header parameters
|
|
1924
|
+
header_params = opts[:header_params] || {}
|
|
1925
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1926
|
+
# HTTP header 'Accept' (if needed)
|
|
1927
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1928
|
+
|
|
1929
|
+
# form parameters
|
|
1930
|
+
form_params = opts[:form_params] || {}
|
|
1931
|
+
|
|
1932
|
+
# http body (model)
|
|
1933
|
+
post_body = opts[:debug_body]
|
|
1934
|
+
|
|
1935
|
+
# return_type
|
|
1936
|
+
return_type = opts[:debug_return_type] || 'OrdersResponse'
|
|
1937
|
+
|
|
1938
|
+
# auth_names
|
|
1939
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1940
|
+
|
|
1941
|
+
new_options = opts.merge(
|
|
1942
|
+
:operation => :"OrderApi.get_orders_by_rma",
|
|
1943
|
+
:header_params => header_params,
|
|
1944
|
+
:query_params => query_params,
|
|
1945
|
+
:form_params => form_params,
|
|
1946
|
+
:body => post_body,
|
|
1947
|
+
:auth_names => auth_names,
|
|
1948
|
+
:return_type => return_type
|
|
1949
|
+
)
|
|
1950
|
+
|
|
1951
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1952
|
+
if @api_client.config.debugging
|
|
1953
|
+
@api_client.config.logger.debug "API called: OrderApi#get_orders_by_rma\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1954
|
+
end
|
|
1955
|
+
return data, status_code, headers
|
|
1956
|
+
end
|
|
1957
|
+
|
|
1958
|
+
# Generate an auto order update billing url
|
|
1959
|
+
# Generates the url a customer can use to update the billing information on the auto order associated with this order. This is the same url sent in the auto order update billing email.
|
|
1960
|
+
# @param order_id [String] The order id to generate the update billing url for.
|
|
1961
|
+
# @param [Hash] opts the optional parameters
|
|
1962
|
+
# @return [OrderAutoOrderUpdateBillingUrlResponse]
|
|
1963
|
+
def get_update_billing_url(order_id, opts = {})
|
|
1964
|
+
data, _status_code, _headers = get_update_billing_url_with_http_info(order_id, opts)
|
|
1965
|
+
data
|
|
1966
|
+
end
|
|
1967
|
+
|
|
1968
|
+
# Generate an auto order update billing url
|
|
1969
|
+
# Generates the url a customer can use to update the billing information on the auto order associated with this order. This is the same url sent in the auto order update billing email.
|
|
1970
|
+
# @param order_id [String] The order id to generate the update billing url for.
|
|
1971
|
+
# @param [Hash] opts the optional parameters
|
|
1972
|
+
# @return [Array<(OrderAutoOrderUpdateBillingUrlResponse, Integer, Hash)>] OrderAutoOrderUpdateBillingUrlResponse data, response status code and response headers
|
|
1973
|
+
def get_update_billing_url_with_http_info(order_id, opts = {})
|
|
1974
|
+
if @api_client.config.debugging
|
|
1975
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.get_update_billing_url ...'
|
|
1976
|
+
end
|
|
1977
|
+
# verify the required parameter 'order_id' is set
|
|
1978
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
1979
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.get_update_billing_url"
|
|
1980
|
+
end
|
|
1981
|
+
# resource path
|
|
1982
|
+
local_var_path = '/order/orders/{order_id}/auto_order_update_billing_url'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s))
|
|
1983
|
+
|
|
1984
|
+
# query parameters
|
|
1985
|
+
query_params = opts[:query_params] || {}
|
|
1986
|
+
|
|
1987
|
+
# header parameters
|
|
1988
|
+
header_params = opts[:header_params] || {}
|
|
1989
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1990
|
+
# HTTP header 'Accept' (if needed)
|
|
1991
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1992
|
+
|
|
1993
|
+
# form parameters
|
|
1994
|
+
form_params = opts[:form_params] || {}
|
|
1995
|
+
|
|
1996
|
+
# http body (model)
|
|
1997
|
+
post_body = opts[:debug_body]
|
|
1998
|
+
|
|
1999
|
+
# return_type
|
|
2000
|
+
return_type = opts[:debug_return_type] || 'OrderAutoOrderUpdateBillingUrlResponse'
|
|
2001
|
+
|
|
2002
|
+
# auth_names
|
|
2003
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2004
|
+
|
|
2005
|
+
new_options = opts.merge(
|
|
2006
|
+
:operation => :"OrderApi.get_update_billing_url",
|
|
2007
|
+
:header_params => header_params,
|
|
2008
|
+
:query_params => query_params,
|
|
2009
|
+
:form_params => form_params,
|
|
2010
|
+
:body => post_body,
|
|
2011
|
+
:auth_names => auth_names,
|
|
2012
|
+
:return_type => return_type
|
|
2013
|
+
)
|
|
2014
|
+
|
|
2015
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2016
|
+
if @api_client.config.debugging
|
|
2017
|
+
@api_client.config.logger.debug "API called: OrderApi#get_update_billing_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2018
|
+
end
|
|
2019
|
+
return data, status_code, headers
|
|
2020
|
+
end
|
|
2021
|
+
|
|
1813
2022
|
# Add items and release a held order
|
|
1814
2023
|
# This method adds items to an order in the hold stage and releases it
|
|
1815
2024
|
# @param order_id [String] The order id to release.
|
|
@@ -3076,6 +3076,70 @@ module UltracartClient
|
|
|
3076
3076
|
return data, status_code, headers
|
|
3077
3077
|
end
|
|
3078
3078
|
|
|
3079
|
+
# Get the storefront's screen recording settings
|
|
3080
|
+
# Whether real shoppers' sessions on this storefront are being recorded, what recording costs per 1,000 sessions after the 14 day free trial, how long recordings are kept, and how many sessions were recorded in the current and last billing periods. Recording only collects from the moment it is turned on, so when it is on but was turned on recently, check the analytics warehouse for rows before reporting that there is no data.
|
|
3081
|
+
# @param storefront_oid [Integer]
|
|
3082
|
+
# @param [Hash] opts the optional parameters
|
|
3083
|
+
# @return [SfvbRecordingSettingsResponse]
|
|
3084
|
+
def get_sfvb_recording_settings(storefront_oid, opts = {})
|
|
3085
|
+
data, _status_code, _headers = get_sfvb_recording_settings_with_http_info(storefront_oid, opts)
|
|
3086
|
+
data
|
|
3087
|
+
end
|
|
3088
|
+
|
|
3089
|
+
# Get the storefront's screen recording settings
|
|
3090
|
+
# Whether real shoppers' sessions on this storefront are being recorded, what recording costs per 1,000 sessions after the 14 day free trial, how long recordings are kept, and how many sessions were recorded in the current and last billing periods. Recording only collects from the moment it is turned on, so when it is on but was turned on recently, check the analytics warehouse for rows before reporting that there is no data.
|
|
3091
|
+
# @param storefront_oid [Integer]
|
|
3092
|
+
# @param [Hash] opts the optional parameters
|
|
3093
|
+
# @return [Array<(SfvbRecordingSettingsResponse, Integer, Hash)>] SfvbRecordingSettingsResponse data, response status code and response headers
|
|
3094
|
+
def get_sfvb_recording_settings_with_http_info(storefront_oid, opts = {})
|
|
3095
|
+
if @api_client.config.debugging
|
|
3096
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_recording_settings ...'
|
|
3097
|
+
end
|
|
3098
|
+
# verify the required parameter 'storefront_oid' is set
|
|
3099
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
3100
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_recording_settings"
|
|
3101
|
+
end
|
|
3102
|
+
# resource path
|
|
3103
|
+
local_var_path = '/sfvb/storefronts/{storefront_oid}/recording_settings'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s))
|
|
3104
|
+
|
|
3105
|
+
# query parameters
|
|
3106
|
+
query_params = opts[:query_params] || {}
|
|
3107
|
+
|
|
3108
|
+
# header parameters
|
|
3109
|
+
header_params = opts[:header_params] || {}
|
|
3110
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
3111
|
+
# HTTP header 'Accept' (if needed)
|
|
3112
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3113
|
+
|
|
3114
|
+
# form parameters
|
|
3115
|
+
form_params = opts[:form_params] || {}
|
|
3116
|
+
|
|
3117
|
+
# http body (model)
|
|
3118
|
+
post_body = opts[:debug_body]
|
|
3119
|
+
|
|
3120
|
+
# return_type
|
|
3121
|
+
return_type = opts[:debug_return_type] || 'SfvbRecordingSettingsResponse'
|
|
3122
|
+
|
|
3123
|
+
# auth_names
|
|
3124
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
3125
|
+
|
|
3126
|
+
new_options = opts.merge(
|
|
3127
|
+
:operation => :"SfvbApi.get_sfvb_recording_settings",
|
|
3128
|
+
:header_params => header_params,
|
|
3129
|
+
:query_params => query_params,
|
|
3130
|
+
:form_params => form_params,
|
|
3131
|
+
:body => post_body,
|
|
3132
|
+
:auth_names => auth_names,
|
|
3133
|
+
:return_type => return_type
|
|
3134
|
+
)
|
|
3135
|
+
|
|
3136
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3137
|
+
if @api_client.config.debugging
|
|
3138
|
+
@api_client.config.logger.debug "API called: SfvbApi#get_sfvb_recording_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3139
|
+
end
|
|
3140
|
+
return data, status_code, headers
|
|
3141
|
+
end
|
|
3142
|
+
|
|
3079
3143
|
# Get one storefront render log
|
|
3080
3144
|
# One render's server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
|
|
3081
3145
|
# @param storefront_oid [Integer]
|
|
@@ -6237,6 +6301,81 @@ module UltracartClient
|
|
|
6237
6301
|
return data, status_code, headers
|
|
6238
6302
|
end
|
|
6239
6303
|
|
|
6304
|
+
# Turn the storefront's screen recording on or off
|
|
6305
|
+
# Turning it on records real shoppers' sessions from that moment, with no history before it. The first time starts a 14 day free trial, after which recorded sessions are billed per 1,000. Only change it when the merchant has asked for it. Asking for the state it is already in changes nothing, and changed comes back false. Always needs sfvb_publish, in both directions, because it decides whether live shoppers are recorded. Limited per storefront to 5 changes a minute, 20 an hour and 50 a day.
|
|
6306
|
+
# @param storefront_oid [Integer]
|
|
6307
|
+
# @param recording_settings_request [SfvbRecordingSettingsRequest] Whether to record
|
|
6308
|
+
# @param [Hash] opts the optional parameters
|
|
6309
|
+
# @return [SfvbRecordingSettingsResponse]
|
|
6310
|
+
def put_sfvb_recording_settings(storefront_oid, recording_settings_request, opts = {})
|
|
6311
|
+
data, _status_code, _headers = put_sfvb_recording_settings_with_http_info(storefront_oid, recording_settings_request, opts)
|
|
6312
|
+
data
|
|
6313
|
+
end
|
|
6314
|
+
|
|
6315
|
+
# Turn the storefront's screen recording on or off
|
|
6316
|
+
# Turning it on records real shoppers' sessions from that moment, with no history before it. The first time starts a 14 day free trial, after which recorded sessions are billed per 1,000. Only change it when the merchant has asked for it. Asking for the state it is already in changes nothing, and changed comes back false. Always needs sfvb_publish, in both directions, because it decides whether live shoppers are recorded. Limited per storefront to 5 changes a minute, 20 an hour and 50 a day.
|
|
6317
|
+
# @param storefront_oid [Integer]
|
|
6318
|
+
# @param recording_settings_request [SfvbRecordingSettingsRequest] Whether to record
|
|
6319
|
+
# @param [Hash] opts the optional parameters
|
|
6320
|
+
# @return [Array<(SfvbRecordingSettingsResponse, Integer, Hash)>] SfvbRecordingSettingsResponse data, response status code and response headers
|
|
6321
|
+
def put_sfvb_recording_settings_with_http_info(storefront_oid, recording_settings_request, opts = {})
|
|
6322
|
+
if @api_client.config.debugging
|
|
6323
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.put_sfvb_recording_settings ...'
|
|
6324
|
+
end
|
|
6325
|
+
# verify the required parameter 'storefront_oid' is set
|
|
6326
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
6327
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.put_sfvb_recording_settings"
|
|
6328
|
+
end
|
|
6329
|
+
# verify the required parameter 'recording_settings_request' is set
|
|
6330
|
+
if @api_client.config.client_side_validation && recording_settings_request.nil?
|
|
6331
|
+
fail ArgumentError, "Missing the required parameter 'recording_settings_request' when calling SfvbApi.put_sfvb_recording_settings"
|
|
6332
|
+
end
|
|
6333
|
+
# resource path
|
|
6334
|
+
local_var_path = '/sfvb/storefronts/{storefront_oid}/recording_settings'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s))
|
|
6335
|
+
|
|
6336
|
+
# query parameters
|
|
6337
|
+
query_params = opts[:query_params] || {}
|
|
6338
|
+
|
|
6339
|
+
# header parameters
|
|
6340
|
+
header_params = opts[:header_params] || {}
|
|
6341
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
6342
|
+
# HTTP header 'Accept' (if needed)
|
|
6343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
6344
|
+
# HTTP header 'Content-Type'
|
|
6345
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
|
6346
|
+
if !content_type.nil?
|
|
6347
|
+
header_params['Content-Type'] = content_type
|
|
6348
|
+
end
|
|
6349
|
+
|
|
6350
|
+
# form parameters
|
|
6351
|
+
form_params = opts[:form_params] || {}
|
|
6352
|
+
|
|
6353
|
+
# http body (model)
|
|
6354
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(recording_settings_request)
|
|
6355
|
+
|
|
6356
|
+
# return_type
|
|
6357
|
+
return_type = opts[:debug_return_type] || 'SfvbRecordingSettingsResponse'
|
|
6358
|
+
|
|
6359
|
+
# auth_names
|
|
6360
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
6361
|
+
|
|
6362
|
+
new_options = opts.merge(
|
|
6363
|
+
:operation => :"SfvbApi.put_sfvb_recording_settings",
|
|
6364
|
+
:header_params => header_params,
|
|
6365
|
+
:query_params => query_params,
|
|
6366
|
+
:form_params => form_params,
|
|
6367
|
+
:body => post_body,
|
|
6368
|
+
:auth_names => auth_names,
|
|
6369
|
+
:return_type => return_type
|
|
6370
|
+
)
|
|
6371
|
+
|
|
6372
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
6373
|
+
if @api_client.config.debugging
|
|
6374
|
+
@api_client.config.logger.debug "API called: SfvbApi#put_sfvb_recording_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6375
|
+
end
|
|
6376
|
+
return data, status_code, headers
|
|
6377
|
+
end
|
|
6378
|
+
|
|
6240
6379
|
# Change a storefront's site attributes
|
|
6241
6380
|
# A partial update. Only the attributes you name are changed. Every entry is checked before any is written. List, video list, mailing list and item set attributes are refused, and so are the General screen settings other than the title, the SEO description and keywords and the social account names. Credentials are refused. Always needs sfvb_publish, because every theme reads the same attributes and there is no dormant copy to change instead. The admin General screen saves the whole storefront, so a merchant with it open can still overwrite a change made here.
|
|
6242
6381
|
# @param storefront_oid [Integer]
|