ultracart_api 4.1.233 → 4.1.235
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 +17 -2
- data/docs/SfvbApi.md +178 -5
- data/docs/SfvbApprovalParams.md +1 -1
- data/docs/SfvbCommsLookupOwner.md +2 -0
- data/docs/SfvbCommsLookupResponse.md +2 -0
- data/docs/SfvbPreviewTrackingHtmlRequest.md +20 -0
- data/docs/SfvbServerLog.md +1 -1
- data/docs/SfvbTrackingCheckPlan.md +42 -0
- data/docs/SfvbTrackingCheckPlanEvent.md +22 -0
- data/docs/SfvbTrackingCheckPlanGate.md +20 -0
- data/docs/SfvbTrackingCheckPlanProvider.md +34 -0
- data/docs/SfvbTrackingCheckPlanRequest.md +24 -0
- data/docs/SfvbTrackingCheckPlanServerSide.md +20 -0
- data/docs/SfvbTrackingCheckPlanUnchecked.md +20 -0
- data/docs/SfvbTrackingHtmlRenderRequest.md +20 -0
- data/docs/SfvbTrackingHtmlRenderResponse.md +32 -0
- data/docs/SfvbTrackingProvider.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +255 -4
- data/lib/ultracart_api/models/sfvb_approval_params.rb +1 -1
- data/lib/ultracart_api/models/sfvb_comms_lookup_owner.rb +11 -1
- data/lib/ultracart_api/models/sfvb_comms_lookup_response.rb +11 -1
- data/lib/ultracart_api/models/sfvb_preview_tracking_html_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_server_log.rb +1 -1
- data/lib/ultracart_api/models/sfvb_tracking_check_plan.rb +394 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_event.rb +274 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_gate.rb +276 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_provider.rb +349 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_request.rb +284 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_server_side.rb +230 -0
- data/lib/ultracart_api/models/sfvb_tracking_check_plan_unchecked.rb +230 -0
- data/lib/ultracart_api/models/sfvb_tracking_html_render_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_tracking_html_render_response.rb +328 -0
- data/lib/ultracart_api/models/sfvb_tracking_provider.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +10 -0
- metadata +22 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbTrackingHtmlRenderResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **content_sha256** | **String** | The SHA-256 of the HTML rendered, before rendering, as the slot would store it. For a draft, the hash a tracking_html.put approval binds. | [optional] |
|
|
8
|
+
| **html** | **String** | The rendered HTML, with order tokens filled and Velocity run, as the receipt would inject it. Empty when the slot is empty. | [optional] |
|
|
9
|
+
| **order_id** | **String** | The test order rendered against. | [optional] |
|
|
10
|
+
| **provides** | **Array<String>** | The Velocity references the render provides. Any other reference the receipt page has is left as written. | [optional] |
|
|
11
|
+
| **size_bytes** | **Integer** | The size of html in UTF-8 bytes. | [optional] |
|
|
12
|
+
| **slot** | **String** | The slot rendered. Always conversion. | [optional] |
|
|
13
|
+
| **source** | **String** | stored when the slot's saved HTML was rendered, draft when the request's content was. | [optional] |
|
|
14
|
+
| **warnings** | [**Array<SfvbErrorDetail>**](SfvbErrorDetail.md) | What the render left out or could not do, such as tokens it doesn't fill. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbTrackingHtmlRenderResponse.new(
|
|
22
|
+
content_sha256: null,
|
|
23
|
+
html: null,
|
|
24
|
+
order_id: null,
|
|
25
|
+
provides: null,
|
|
26
|
+
size_bytes: null,
|
|
27
|
+
slot: null,
|
|
28
|
+
source: null,
|
|
29
|
+
warnings: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
| **name** | **String** | The name the admin shows. | [optional] |
|
|
21
21
|
| **notes** | **Array<String>** | Anything the write left for a person to do, such as disconnecting an OAuth connection in the admin. | [optional] |
|
|
22
22
|
| **oauth** | [**SfvbTrackingProviderOauth**](SfvbTrackingProviderOauth.md) | | [optional] |
|
|
23
|
+
| **server_side** | **String** | What the provider also sends from UltraCart's servers. A consent gate holds back only the browser pixel, not these. Absent when it sends nothing server side. | [optional] |
|
|
23
24
|
| **wholesale_tiers** | [**Array<SfvbTrackingWholesaleTier>**](SfvbTrackingWholesaleTier.md) | For google_analytics, the account number per wholesale pricing tier. | [optional] |
|
|
24
25
|
|
|
25
26
|
## Example
|
|
@@ -44,6 +45,7 @@ instance = UltracartClient::SfvbTrackingProvider.new(
|
|
|
44
45
|
name: null,
|
|
45
46
|
notes: null,
|
|
46
47
|
oauth: null,
|
|
48
|
+
server_side: null,
|
|
47
49
|
wholesale_tiers: null
|
|
48
50
|
)
|
|
49
51
|
```
|
|
@@ -2966,11 +2966,13 @@ module UltracartClient
|
|
|
2966
2966
|
end
|
|
2967
2967
|
|
|
2968
2968
|
# Clear one tracking provider
|
|
2969
|
-
# Clears every field and secret the API can change, the consent gate and the events, and turns off Google Tag Gateway.
|
|
2969
|
+
# Clears every field and secret the API can change, the consent gate and the events, and turns off Google Tag Gateway. An OAuth connection is left alone, and notes say to disconnect it in the admin. Send the provider's hash_sha256 as If-Match. Needs sfvb_publish. dry_run=true reports the changes, and approval_needed, without clearing. No approval, except when the clear removes a consent gate while something outside the provider's fields still fires it (Google Ads for an affiliate's own Google conversion id, Commission Junction for an affiliate network of its type): that needs an approved tracking_provider.clear request for the provider (Approval-Id).
|
|
2970
2970
|
# @param storefront_oid [Integer]
|
|
2971
2971
|
# @param provider [String]
|
|
2972
2972
|
# @param if_match [String] The provider's hash_sha256 from the last read. 428 when absent, 412 when stale.
|
|
2973
2973
|
# @param [Hash] opts the optional parameters
|
|
2974
|
+
# @option opts [Boolean] :dry_run
|
|
2975
|
+
# @option opts [String] :approval_id When the clear removes a consent gate while something else still fires the provider, the approval_id of an approved tracking_provider.clear request for it. See POST /sfvb/approvals.
|
|
2974
2976
|
# @return [SfvbTrackingProvider]
|
|
2975
2977
|
def delete_sfvb_tracking_provider(storefront_oid, provider, if_match, opts = {})
|
|
2976
2978
|
data, _status_code, _headers = delete_sfvb_tracking_provider_with_http_info(storefront_oid, provider, if_match, opts)
|
|
@@ -2978,11 +2980,13 @@ module UltracartClient
|
|
|
2978
2980
|
end
|
|
2979
2981
|
|
|
2980
2982
|
# Clear one tracking provider
|
|
2981
|
-
# Clears every field and secret the API can change, the consent gate and the events, and turns off Google Tag Gateway.
|
|
2983
|
+
# Clears every field and secret the API can change, the consent gate and the events, and turns off Google Tag Gateway. An OAuth connection is left alone, and notes say to disconnect it in the admin. Send the provider's hash_sha256 as If-Match. Needs sfvb_publish. dry_run=true reports the changes, and approval_needed, without clearing. No approval, except when the clear removes a consent gate while something outside the provider's fields still fires it (Google Ads for an affiliate's own Google conversion id, Commission Junction for an affiliate network of its type): that needs an approved tracking_provider.clear request for the provider (Approval-Id).
|
|
2982
2984
|
# @param storefront_oid [Integer]
|
|
2983
2985
|
# @param provider [String]
|
|
2984
2986
|
# @param if_match [String] The provider's hash_sha256 from the last read. 428 when absent, 412 when stale.
|
|
2985
2987
|
# @param [Hash] opts the optional parameters
|
|
2988
|
+
# @option opts [Boolean] :dry_run
|
|
2989
|
+
# @option opts [String] :approval_id When the clear removes a consent gate while something else still fires the provider, the approval_id of an approved tracking_provider.clear request for it. See POST /sfvb/approvals.
|
|
2986
2990
|
# @return [Array<(SfvbTrackingProvider, Integer, Hash)>] SfvbTrackingProvider data, response status code and response headers
|
|
2987
2991
|
def delete_sfvb_tracking_provider_with_http_info(storefront_oid, provider, if_match, opts = {})
|
|
2988
2992
|
if @api_client.config.debugging
|
|
@@ -3005,6 +3009,7 @@ module UltracartClient
|
|
|
3005
3009
|
|
|
3006
3010
|
# query parameters
|
|
3007
3011
|
query_params = opts[:query_params] || {}
|
|
3012
|
+
query_params[:'dry_run'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
3008
3013
|
|
|
3009
3014
|
# header parameters
|
|
3010
3015
|
header_params = opts[:header_params] || {}
|
|
@@ -3012,6 +3017,7 @@ module UltracartClient
|
|
|
3012
3017
|
# HTTP header 'Accept' (if needed)
|
|
3013
3018
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3014
3019
|
header_params[:'If-Match'] = if_match
|
|
3020
|
+
header_params[:'Approval-Id'] = opts[:'approval_id'] if !opts[:'approval_id'].nil?
|
|
3015
3021
|
|
|
3016
3022
|
# form parameters
|
|
3017
3023
|
form_params = opts[:form_params] || {}
|
|
@@ -5834,7 +5840,7 @@ module UltracartClient
|
|
|
5834
5840
|
end
|
|
5835
5841
|
|
|
5836
5842
|
# Find which storefront a communications uuid lives on
|
|
5837
|
-
# Takes a campaign, flow, sequence, step, email, postcard, list or segment uuid and says which of this account's storefronts it is on, what it is, the campaign or flow it belongs to, and the command that reads it. A uuid nothing on this account has, another account's included, is 404. Read only.
|
|
5843
|
+
# Takes a campaign, flow, sequence, step, email, postcard, list or segment uuid and says which of this account's storefronts it is on, what it is, the campaign or flow it belongs to, and the command that reads it. An archived campaign or flow is found too, with archived true, and owner.archived is true when what was found belongs to one. A uuid nothing on this account has, another account's included, and a deleted step, email, postcard, list or segment, is 404. Read only.
|
|
5838
5844
|
# @param uuid [String] The uuid to find.
|
|
5839
5845
|
# @param [Hash] opts the optional parameters
|
|
5840
5846
|
# @return [SfvbCommsLookupResponse]
|
|
@@ -5844,7 +5850,7 @@ module UltracartClient
|
|
|
5844
5850
|
end
|
|
5845
5851
|
|
|
5846
5852
|
# Find which storefront a communications uuid lives on
|
|
5847
|
-
# Takes a campaign, flow, sequence, step, email, postcard, list or segment uuid and says which of this account's storefronts it is on, what it is, the campaign or flow it belongs to, and the command that reads it. A uuid nothing on this account has, another account's included, is 404. Read only.
|
|
5853
|
+
# Takes a campaign, flow, sequence, step, email, postcard, list or segment uuid and says which of this account's storefronts it is on, what it is, the campaign or flow it belongs to, and the command that reads it. An archived campaign or flow is found too, with archived true, and owner.archived is true when what was found belongs to one. A uuid nothing on this account has, another account's included, and a deleted step, email, postcard, list or segment, is 404. Read only.
|
|
5848
5854
|
# @param uuid [String] The uuid to find.
|
|
5849
5855
|
# @param [Hash] opts the optional parameters
|
|
5850
5856
|
# @return [Array<(SfvbCommsLookupResponse, Integer, Hash)>] SfvbCommsLookupResponse data, response status code and response headers
|
|
@@ -10446,6 +10452,89 @@ module UltracartClient
|
|
|
10446
10452
|
return data, status_code, headers
|
|
10447
10453
|
end
|
|
10448
10454
|
|
|
10455
|
+
# Plan a browser check of a storefront's tracking
|
|
10456
|
+
# What each tracking provider should load on one page, for page_view or a test order's purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront's tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront's custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
10457
|
+
# @param storefront_oid [Integer]
|
|
10458
|
+
# @param path [String] A storefront page path, such as / or /checkout/receipt.html, with an optional query
|
|
10459
|
+
# @param [Hash] opts the optional parameters
|
|
10460
|
+
# @option opts [String] :event page_view (the default) or purchase
|
|
10461
|
+
# @option opts [String] :order_id For purchase, a test order on this account
|
|
10462
|
+
# @option opts [String] :consent none, all, or a comma list of statistics, preferences and marketing
|
|
10463
|
+
# @option opts [String] :region Where the browser is. eea, non-us or other
|
|
10464
|
+
# @return [SfvbTrackingCheckPlan]
|
|
10465
|
+
def get_sfvb_tracking_check_plan(storefront_oid, path, opts = {})
|
|
10466
|
+
data, _status_code, _headers = get_sfvb_tracking_check_plan_with_http_info(storefront_oid, path, opts)
|
|
10467
|
+
data
|
|
10468
|
+
end
|
|
10469
|
+
|
|
10470
|
+
# Plan a browser check of a storefront's tracking
|
|
10471
|
+
# What each tracking provider should load on one page, for page_view or a test order's purchase, under a consent state and region, with the requests and calls to look for and the ones that must not appear. Built from the same rules the storefront's tracking templates follow, never by running them, so nothing is sent to any provider. Includes the hosts the storefront's custom and affiliate network HTML loads, the sends made from UltraCart servers, and a snippet that collects what the browser saw. Grade the results locally; they are never sent here. With neither consent nor region, every provider is listed with the gate that holds it back. A purchase needs a test order on this account.
|
|
10472
|
+
# @param storefront_oid [Integer]
|
|
10473
|
+
# @param path [String] A storefront page path, such as / or /checkout/receipt.html, with an optional query
|
|
10474
|
+
# @param [Hash] opts the optional parameters
|
|
10475
|
+
# @option opts [String] :event page_view (the default) or purchase
|
|
10476
|
+
# @option opts [String] :order_id For purchase, a test order on this account
|
|
10477
|
+
# @option opts [String] :consent none, all, or a comma list of statistics, preferences and marketing
|
|
10478
|
+
# @option opts [String] :region Where the browser is. eea, non-us or other
|
|
10479
|
+
# @return [Array<(SfvbTrackingCheckPlan, Integer, Hash)>] SfvbTrackingCheckPlan data, response status code and response headers
|
|
10480
|
+
def get_sfvb_tracking_check_plan_with_http_info(storefront_oid, path, opts = {})
|
|
10481
|
+
if @api_client.config.debugging
|
|
10482
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_tracking_check_plan ...'
|
|
10483
|
+
end
|
|
10484
|
+
# verify the required parameter 'storefront_oid' is set
|
|
10485
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
10486
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_tracking_check_plan"
|
|
10487
|
+
end
|
|
10488
|
+
# verify the required parameter 'path' is set
|
|
10489
|
+
if @api_client.config.client_side_validation && path.nil?
|
|
10490
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SfvbApi.get_sfvb_tracking_check_plan"
|
|
10491
|
+
end
|
|
10492
|
+
# resource path
|
|
10493
|
+
local_var_path = '/sfvb/storefronts/{storefront_oid}/tracking/check_plan'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s))
|
|
10494
|
+
|
|
10495
|
+
# query parameters
|
|
10496
|
+
query_params = opts[:query_params] || {}
|
|
10497
|
+
query_params[:'path'] = path
|
|
10498
|
+
query_params[:'event'] = opts[:'event'] if !opts[:'event'].nil?
|
|
10499
|
+
query_params[:'order_id'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
|
10500
|
+
query_params[:'consent'] = opts[:'consent'] if !opts[:'consent'].nil?
|
|
10501
|
+
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
|
10502
|
+
|
|
10503
|
+
# header parameters
|
|
10504
|
+
header_params = opts[:header_params] || {}
|
|
10505
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
10506
|
+
# HTTP header 'Accept' (if needed)
|
|
10507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10508
|
+
|
|
10509
|
+
# form parameters
|
|
10510
|
+
form_params = opts[:form_params] || {}
|
|
10511
|
+
|
|
10512
|
+
# http body (model)
|
|
10513
|
+
post_body = opts[:debug_body]
|
|
10514
|
+
|
|
10515
|
+
# return_type
|
|
10516
|
+
return_type = opts[:debug_return_type] || 'SfvbTrackingCheckPlan'
|
|
10517
|
+
|
|
10518
|
+
# auth_names
|
|
10519
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
10520
|
+
|
|
10521
|
+
new_options = opts.merge(
|
|
10522
|
+
:operation => :"SfvbApi.get_sfvb_tracking_check_plan",
|
|
10523
|
+
:header_params => header_params,
|
|
10524
|
+
:query_params => query_params,
|
|
10525
|
+
:form_params => form_params,
|
|
10526
|
+
:body => post_body,
|
|
10527
|
+
:auth_names => auth_names,
|
|
10528
|
+
:return_type => return_type
|
|
10529
|
+
)
|
|
10530
|
+
|
|
10531
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10532
|
+
if @api_client.config.debugging
|
|
10533
|
+
@api_client.config.logger.debug "API called: SfvbApi#get_sfvb_tracking_check_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10534
|
+
end
|
|
10535
|
+
return data, status_code, headers
|
|
10536
|
+
end
|
|
10537
|
+
|
|
10449
10538
|
# Read one custom tracking HTML slot
|
|
10450
10539
|
# The HTML with its Velocity tokens as stored, and the hash_sha256 a write sends back as If-Match.
|
|
10451
10540
|
# @param storefront_oid [Integer]
|
|
@@ -16265,6 +16354,87 @@ module UltracartClient
|
|
|
16265
16354
|
return data, status_code, headers
|
|
16266
16355
|
end
|
|
16267
16356
|
|
|
16357
|
+
# Stage custom tracking HTML in a preview session
|
|
16358
|
+
# Runs Tracking HTML, Conversion HTML or both instead of the storefront's live slots, only in a browser that opened this session's preview access link, so a page can be checked before the write is approved. Staged Conversion HTML runs only on a test order's receipt. Each slot gets the same checks as a write. An empty string unstages a slot; a slot left out is left as it is. Containers pushed to the session later keep what is staged. Needs sfvb_write and a token that resolves to a user; no approval, since nothing durable is written and only that user's own session runs it.
|
|
16359
|
+
# @param storefront_oid [Integer]
|
|
16360
|
+
# @param preview_session_id [String]
|
|
16361
|
+
# @param preview_tracking_html [SfvbPreviewTrackingHtmlRequest] The HTML to stage
|
|
16362
|
+
# @param [Hash] opts the optional parameters
|
|
16363
|
+
# @return [SfvbTrackingHtmlResponse]
|
|
16364
|
+
def put_sfvb_preview_tracking_html(storefront_oid, preview_session_id, preview_tracking_html, opts = {})
|
|
16365
|
+
data, _status_code, _headers = put_sfvb_preview_tracking_html_with_http_info(storefront_oid, preview_session_id, preview_tracking_html, opts)
|
|
16366
|
+
data
|
|
16367
|
+
end
|
|
16368
|
+
|
|
16369
|
+
# Stage custom tracking HTML in a preview session
|
|
16370
|
+
# Runs Tracking HTML, Conversion HTML or both instead of the storefront's live slots, only in a browser that opened this session's preview access link, so a page can be checked before the write is approved. Staged Conversion HTML runs only on a test order's receipt. Each slot gets the same checks as a write. An empty string unstages a slot; a slot left out is left as it is. Containers pushed to the session later keep what is staged. Needs sfvb_write and a token that resolves to a user; no approval, since nothing durable is written and only that user's own session runs it.
|
|
16371
|
+
# @param storefront_oid [Integer]
|
|
16372
|
+
# @param preview_session_id [String]
|
|
16373
|
+
# @param preview_tracking_html [SfvbPreviewTrackingHtmlRequest] The HTML to stage
|
|
16374
|
+
# @param [Hash] opts the optional parameters
|
|
16375
|
+
# @return [Array<(SfvbTrackingHtmlResponse, Integer, Hash)>] SfvbTrackingHtmlResponse data, response status code and response headers
|
|
16376
|
+
def put_sfvb_preview_tracking_html_with_http_info(storefront_oid, preview_session_id, preview_tracking_html, opts = {})
|
|
16377
|
+
if @api_client.config.debugging
|
|
16378
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.put_sfvb_preview_tracking_html ...'
|
|
16379
|
+
end
|
|
16380
|
+
# verify the required parameter 'storefront_oid' is set
|
|
16381
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
16382
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.put_sfvb_preview_tracking_html"
|
|
16383
|
+
end
|
|
16384
|
+
# verify the required parameter 'preview_session_id' is set
|
|
16385
|
+
if @api_client.config.client_side_validation && preview_session_id.nil?
|
|
16386
|
+
fail ArgumentError, "Missing the required parameter 'preview_session_id' when calling SfvbApi.put_sfvb_preview_tracking_html"
|
|
16387
|
+
end
|
|
16388
|
+
# verify the required parameter 'preview_tracking_html' is set
|
|
16389
|
+
if @api_client.config.client_side_validation && preview_tracking_html.nil?
|
|
16390
|
+
fail ArgumentError, "Missing the required parameter 'preview_tracking_html' when calling SfvbApi.put_sfvb_preview_tracking_html"
|
|
16391
|
+
end
|
|
16392
|
+
# resource path
|
|
16393
|
+
local_var_path = '/sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id}/tracking_html'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'preview_session_id' + '}', CGI.escape(preview_session_id.to_s))
|
|
16394
|
+
|
|
16395
|
+
# query parameters
|
|
16396
|
+
query_params = opts[:query_params] || {}
|
|
16397
|
+
|
|
16398
|
+
# header parameters
|
|
16399
|
+
header_params = opts[:header_params] || {}
|
|
16400
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
16401
|
+
# HTTP header 'Accept' (if needed)
|
|
16402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
16403
|
+
# HTTP header 'Content-Type'
|
|
16404
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
|
16405
|
+
if !content_type.nil?
|
|
16406
|
+
header_params['Content-Type'] = content_type
|
|
16407
|
+
end
|
|
16408
|
+
|
|
16409
|
+
# form parameters
|
|
16410
|
+
form_params = opts[:form_params] || {}
|
|
16411
|
+
|
|
16412
|
+
# http body (model)
|
|
16413
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(preview_tracking_html)
|
|
16414
|
+
|
|
16415
|
+
# return_type
|
|
16416
|
+
return_type = opts[:debug_return_type] || 'SfvbTrackingHtmlResponse'
|
|
16417
|
+
|
|
16418
|
+
# auth_names
|
|
16419
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
16420
|
+
|
|
16421
|
+
new_options = opts.merge(
|
|
16422
|
+
:operation => :"SfvbApi.put_sfvb_preview_tracking_html",
|
|
16423
|
+
:header_params => header_params,
|
|
16424
|
+
:query_params => query_params,
|
|
16425
|
+
:form_params => form_params,
|
|
16426
|
+
:body => post_body,
|
|
16427
|
+
:auth_names => auth_names,
|
|
16428
|
+
:return_type => return_type
|
|
16429
|
+
)
|
|
16430
|
+
|
|
16431
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
16432
|
+
if @api_client.config.debugging
|
|
16433
|
+
@api_client.config.logger.debug "API called: SfvbApi#put_sfvb_preview_tracking_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16434
|
+
end
|
|
16435
|
+
return data, status_code, headers
|
|
16436
|
+
end
|
|
16437
|
+
|
|
16268
16438
|
# Turn the storefront's screen recording on or off
|
|
16269
16439
|
# 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.
|
|
16270
16440
|
# @param storefront_oid [Integer]
|
|
@@ -16880,6 +17050,87 @@ module UltracartClient
|
|
|
16880
17050
|
return data, status_code, headers
|
|
16881
17051
|
end
|
|
16882
17052
|
|
|
17053
|
+
# Render the Conversion HTML against a test order
|
|
17054
|
+
# The Conversion HTML as the receipt of that order would inject it: order tokens filled, then Velocity run with $order, $conversion and $formatHelper. Renders the stored slot, or content when it is sent (a draft, checked as a write is). Only a test order on this account may be used; a real or unknown order is refused the same way. Nothing is saved, injected or sent: the receipt's provider pixels, analytics and postbacks do not run, and a token that would write something ([CouponForNewAffiliate=...]) is left as written. Only the conversion slot renders; tracking HTML is checked by staging it in a preview session.
|
|
17055
|
+
# @param storefront_oid [Integer]
|
|
17056
|
+
# @param slot [String] conversion
|
|
17057
|
+
# @param tracking_html_render_request [SfvbTrackingHtmlRenderRequest] The test order, and optionally a draft
|
|
17058
|
+
# @param [Hash] opts the optional parameters
|
|
17059
|
+
# @return [SfvbTrackingHtmlRenderResponse]
|
|
17060
|
+
def render_sfvb_tracking_html(storefront_oid, slot, tracking_html_render_request, opts = {})
|
|
17061
|
+
data, _status_code, _headers = render_sfvb_tracking_html_with_http_info(storefront_oid, slot, tracking_html_render_request, opts)
|
|
17062
|
+
data
|
|
17063
|
+
end
|
|
17064
|
+
|
|
17065
|
+
# Render the Conversion HTML against a test order
|
|
17066
|
+
# The Conversion HTML as the receipt of that order would inject it: order tokens filled, then Velocity run with $order, $conversion and $formatHelper. Renders the stored slot, or content when it is sent (a draft, checked as a write is). Only a test order on this account may be used; a real or unknown order is refused the same way. Nothing is saved, injected or sent: the receipt's provider pixels, analytics and postbacks do not run, and a token that would write something ([CouponForNewAffiliate=...]) is left as written. Only the conversion slot renders; tracking HTML is checked by staging it in a preview session.
|
|
17067
|
+
# @param storefront_oid [Integer]
|
|
17068
|
+
# @param slot [String] conversion
|
|
17069
|
+
# @param tracking_html_render_request [SfvbTrackingHtmlRenderRequest] The test order, and optionally a draft
|
|
17070
|
+
# @param [Hash] opts the optional parameters
|
|
17071
|
+
# @return [Array<(SfvbTrackingHtmlRenderResponse, Integer, Hash)>] SfvbTrackingHtmlRenderResponse data, response status code and response headers
|
|
17072
|
+
def render_sfvb_tracking_html_with_http_info(storefront_oid, slot, tracking_html_render_request, opts = {})
|
|
17073
|
+
if @api_client.config.debugging
|
|
17074
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.render_sfvb_tracking_html ...'
|
|
17075
|
+
end
|
|
17076
|
+
# verify the required parameter 'storefront_oid' is set
|
|
17077
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
17078
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.render_sfvb_tracking_html"
|
|
17079
|
+
end
|
|
17080
|
+
# verify the required parameter 'slot' is set
|
|
17081
|
+
if @api_client.config.client_side_validation && slot.nil?
|
|
17082
|
+
fail ArgumentError, "Missing the required parameter 'slot' when calling SfvbApi.render_sfvb_tracking_html"
|
|
17083
|
+
end
|
|
17084
|
+
# verify the required parameter 'tracking_html_render_request' is set
|
|
17085
|
+
if @api_client.config.client_side_validation && tracking_html_render_request.nil?
|
|
17086
|
+
fail ArgumentError, "Missing the required parameter 'tracking_html_render_request' when calling SfvbApi.render_sfvb_tracking_html"
|
|
17087
|
+
end
|
|
17088
|
+
# resource path
|
|
17089
|
+
local_var_path = '/sfvb/storefronts/{storefront_oid}/tracking/html/{slot}/render'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'slot' + '}', CGI.escape(slot.to_s))
|
|
17090
|
+
|
|
17091
|
+
# query parameters
|
|
17092
|
+
query_params = opts[:query_params] || {}
|
|
17093
|
+
|
|
17094
|
+
# header parameters
|
|
17095
|
+
header_params = opts[:header_params] || {}
|
|
17096
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
17097
|
+
# HTTP header 'Accept' (if needed)
|
|
17098
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
17099
|
+
# HTTP header 'Content-Type'
|
|
17100
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
|
17101
|
+
if !content_type.nil?
|
|
17102
|
+
header_params['Content-Type'] = content_type
|
|
17103
|
+
end
|
|
17104
|
+
|
|
17105
|
+
# form parameters
|
|
17106
|
+
form_params = opts[:form_params] || {}
|
|
17107
|
+
|
|
17108
|
+
# http body (model)
|
|
17109
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(tracking_html_render_request)
|
|
17110
|
+
|
|
17111
|
+
# return_type
|
|
17112
|
+
return_type = opts[:debug_return_type] || 'SfvbTrackingHtmlRenderResponse'
|
|
17113
|
+
|
|
17114
|
+
# auth_names
|
|
17115
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
17116
|
+
|
|
17117
|
+
new_options = opts.merge(
|
|
17118
|
+
:operation => :"SfvbApi.render_sfvb_tracking_html",
|
|
17119
|
+
:header_params => header_params,
|
|
17120
|
+
:query_params => query_params,
|
|
17121
|
+
:form_params => form_params,
|
|
17122
|
+
:body => post_body,
|
|
17123
|
+
:auth_names => auth_names,
|
|
17124
|
+
:return_type => return_type
|
|
17125
|
+
)
|
|
17126
|
+
|
|
17127
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17128
|
+
if @api_client.config.debugging
|
|
17129
|
+
@api_client.config.logger.debug "API called: SfvbApi#render_sfvb_tracking_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
17130
|
+
end
|
|
17131
|
+
return data, status_code, headers
|
|
17132
|
+
end
|
|
17133
|
+
|
|
16883
17134
|
# Render a transactional email without sending it
|
|
16884
17135
|
# Renders a transactional email, such as the order receipt, exactly as it is sent, and returns the subject, HTML and text. Nothing is sent or saved. file_name is the template file, such as receipt_html.vm, or the display name. Give cjson to render an unsaved draft of the email's body container in place of the saved one. The order must be a test order. Without one the email renders with a made up order.
|
|
16885
17136
|
# @param storefront_oid [Integer]
|
|
@@ -75,7 +75,7 @@ module UltracartClient
|
|
|
75
75
|
# The step to remove, for sequence_step.delete, to move, for sequence_step.move, or to turn on, for sequence_step.enable_postcard.
|
|
76
76
|
attr_accessor :step_uuid
|
|
77
77
|
|
|
78
|
-
# The tracking provider key, for tracking_provider.change.
|
|
78
|
+
# The tracking provider key, for tracking_provider.change and tracking_provider.clear.
|
|
79
79
|
attr_accessor :tracking_provider
|
|
80
80
|
|
|
81
81
|
# For upsell.enable, what to switch on.
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class SfvbCommsLookupOwner
|
|
18
|
+
# True when the campaign or flow is archived. It sends nothing, and 'sf comms flows list' or 'campaigns list' shows it only with --include-deleted.
|
|
19
|
+
attr_accessor :archived
|
|
20
|
+
|
|
18
21
|
# True when it is sending now, by the same rule the sequence read uses.
|
|
19
22
|
attr_accessor :live
|
|
20
23
|
|
|
@@ -33,6 +36,7 @@ module UltracartClient
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
39
|
+
:'archived' => :'archived',
|
|
36
40
|
:'live' => :'live',
|
|
37
41
|
:'name' => :'name',
|
|
38
42
|
:'status' => :'status',
|
|
@@ -49,6 +53,7 @@ module UltracartClient
|
|
|
49
53
|
# Attribute type mapping.
|
|
50
54
|
def self.openapi_types
|
|
51
55
|
{
|
|
56
|
+
:'archived' => :'Boolean',
|
|
52
57
|
:'live' => :'Boolean',
|
|
53
58
|
:'name' => :'String',
|
|
54
59
|
:'status' => :'String',
|
|
@@ -78,6 +83,10 @@ module UltracartClient
|
|
|
78
83
|
h[k.to_sym] = v
|
|
79
84
|
}
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'archived')
|
|
87
|
+
self.archived = attributes[:'archived']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'live')
|
|
82
91
|
self.live = attributes[:'live']
|
|
83
92
|
end
|
|
@@ -117,6 +126,7 @@ module UltracartClient
|
|
|
117
126
|
def ==(o)
|
|
118
127
|
return true if self.equal?(o)
|
|
119
128
|
self.class == o.class &&
|
|
129
|
+
archived == o.archived &&
|
|
120
130
|
live == o.live &&
|
|
121
131
|
name == o.name &&
|
|
122
132
|
status == o.status &&
|
|
@@ -133,7 +143,7 @@ module UltracartClient
|
|
|
133
143
|
# Calculates hash code according to all attributes.
|
|
134
144
|
# @return [Integer] Hash code
|
|
135
145
|
def hash
|
|
136
|
-
[live, name, status, type, uuid].hash
|
|
146
|
+
[archived, live, name, status, type, uuid].hash
|
|
137
147
|
end
|
|
138
148
|
|
|
139
149
|
# Builds the object from hash
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class SfvbCommsLookupResponse
|
|
18
|
+
# True when the uuid is an archived campaign or flow. It is still on its storefront and can be read; it sends nothing.
|
|
19
|
+
attr_accessor :archived
|
|
20
|
+
|
|
18
21
|
# The sequence it belongs to, when there is one.
|
|
19
22
|
attr_accessor :communication_sequence_uuid
|
|
20
23
|
|
|
@@ -44,6 +47,7 @@ module UltracartClient
|
|
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
48
|
def self.attribute_map
|
|
46
49
|
{
|
|
50
|
+
:'archived' => :'archived',
|
|
47
51
|
:'communication_sequence_uuid' => :'communication_sequence_uuid',
|
|
48
52
|
:'kind' => :'kind',
|
|
49
53
|
:'name' => :'name',
|
|
@@ -64,6 +68,7 @@ module UltracartClient
|
|
|
64
68
|
# Attribute type mapping.
|
|
65
69
|
def self.openapi_types
|
|
66
70
|
{
|
|
71
|
+
:'archived' => :'Boolean',
|
|
67
72
|
:'communication_sequence_uuid' => :'String',
|
|
68
73
|
:'kind' => :'String',
|
|
69
74
|
:'name' => :'String',
|
|
@@ -97,6 +102,10 @@ module UltracartClient
|
|
|
97
102
|
h[k.to_sym] = v
|
|
98
103
|
}
|
|
99
104
|
|
|
105
|
+
if attributes.key?(:'archived')
|
|
106
|
+
self.archived = attributes[:'archived']
|
|
107
|
+
end
|
|
108
|
+
|
|
100
109
|
if attributes.key?(:'communication_sequence_uuid')
|
|
101
110
|
self.communication_sequence_uuid = attributes[:'communication_sequence_uuid']
|
|
102
111
|
end
|
|
@@ -154,6 +163,7 @@ module UltracartClient
|
|
|
154
163
|
def ==(o)
|
|
155
164
|
return true if self.equal?(o)
|
|
156
165
|
self.class == o.class &&
|
|
166
|
+
archived == o.archived &&
|
|
157
167
|
communication_sequence_uuid == o.communication_sequence_uuid &&
|
|
158
168
|
kind == o.kind &&
|
|
159
169
|
name == o.name &&
|
|
@@ -174,7 +184,7 @@ module UltracartClient
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[communication_sequence_uuid, kind, name, _next, notes, owner, step_uuid, storefront_oid, uuid].hash
|
|
187
|
+
[archived, communication_sequence_uuid, kind, name, _next, notes, owner, step_uuid, storefront_oid, uuid].hash
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|