ultracart_api 3.6.18 → 3.6.22
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 +18 -4
- data/docs/AddLibraryItemRequest.md +2 -2
- data/docs/AffiliateLedger.md +3 -2
- data/docs/ApplyLibraryItemRequest.md +1 -0
- data/docs/ApplyLibraryItemResponse.md +1 -1
- data/docs/ExperimentVariation.md +2 -0
- data/docs/ExperimentVariationStat.md +18 -0
- data/docs/Item.md +1 -0
- data/docs/ItemAutoOrderStep.md +1 -1
- data/docs/ItemFulfillmentAddon.md +11 -0
- data/docs/ItemShippingDistributionCenter.md +1 -0
- data/docs/OrderItem.md +0 -1
- data/docs/StorefrontApi.md +243 -0
- data/docs/Twilio.md +11 -0
- data/docs/TwilioResponse.md +13 -0
- data/docs/TwiliosResponse.md +12 -0
- data/lib/ultracart_api/api/storefront_api.rb +265 -0
- data/lib/ultracart_api/models/add_library_item_request.rb +2 -2
- data/lib/ultracart_api/models/affiliate_ledger.rb +13 -3
- data/lib/ultracart_api/models/apply_library_item_request.rb +11 -1
- data/lib/ultracart_api/models/apply_library_item_response.rb +1 -1
- data/lib/ultracart_api/models/experiment_variation.rb +23 -1
- data/lib/ultracart_api/models/experiment_variation_stat.rb +285 -0
- data/lib/ultracart_api/models/item.rb +13 -1
- data/lib/ultracart_api/models/item_auto_order_step.rb +3 -3
- data/lib/ultracart_api/models/item_fulfillment_addon.rb +215 -0
- data/lib/ultracart_api/models/item_shipping_distribution_center.rb +11 -1
- data/lib/ultracart_api/models/order_item.rb +1 -11
- data/lib/ultracart_api/models/order_query.rb +2 -2
- data/lib/ultracart_api/models/twilio.rb +213 -0
- data/lib/ultracart_api/models/twilio_response.rb +230 -0
- data/lib/ultracart_api/models/twilios_response.rb +223 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
@@ -563,6 +563,59 @@ module UltracartClient
|
|
563
563
|
end
|
564
564
|
return data, status_code, headers
|
565
565
|
end
|
566
|
+
# Create Twilio account
|
567
|
+
# @param twilio Twilio
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @return [TwilioResponse]
|
570
|
+
def create_twilio_account(twilio, opts = {})
|
571
|
+
data, _status_code, _headers = create_twilio_account_with_http_info(twilio, opts)
|
572
|
+
data
|
573
|
+
end
|
574
|
+
|
575
|
+
# Create Twilio account
|
576
|
+
# @param twilio Twilio
|
577
|
+
# @param [Hash] opts the optional parameters
|
578
|
+
# @return [Array<(TwilioResponse, Fixnum, Hash)>] TwilioResponse data, response status code and response headers
|
579
|
+
def create_twilio_account_with_http_info(twilio, opts = {})
|
580
|
+
if @api_client.config.debugging
|
581
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.create_twilio_account ...'
|
582
|
+
end
|
583
|
+
# verify the required parameter 'twilio' is set
|
584
|
+
if @api_client.config.client_side_validation && twilio.nil?
|
585
|
+
fail ArgumentError, "Missing the required parameter 'twilio' when calling StorefrontApi.create_twilio_account"
|
586
|
+
end
|
587
|
+
# resource path
|
588
|
+
local_var_path = '/storefront/twilio/accounts'
|
589
|
+
|
590
|
+
# query parameters
|
591
|
+
query_params = {}
|
592
|
+
|
593
|
+
# header parameters
|
594
|
+
header_params = {}
|
595
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
596
|
+
# HTTP header 'Accept' (if needed)
|
597
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
598
|
+
# HTTP header 'Content-Type'
|
599
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
600
|
+
|
601
|
+
# form parameters
|
602
|
+
form_params = {}
|
603
|
+
|
604
|
+
# http body (model)
|
605
|
+
post_body = @api_client.object_to_http_body(twilio)
|
606
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
607
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
608
|
+
:header_params => header_params,
|
609
|
+
:query_params => query_params,
|
610
|
+
:form_params => form_params,
|
611
|
+
:body => post_body,
|
612
|
+
:auth_names => auth_names,
|
613
|
+
:return_type => 'TwilioResponse')
|
614
|
+
if @api_client.config.debugging
|
615
|
+
@api_client.config.logger.debug "API called: StorefrontApi#create_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
616
|
+
end
|
617
|
+
return data, status_code, headers
|
618
|
+
end
|
566
619
|
# Delete email campaignFolder
|
567
620
|
# @param storefront_oid
|
568
621
|
# @param email_campaign_folder_uuid
|
@@ -1314,6 +1367,59 @@ module UltracartClient
|
|
1314
1367
|
end
|
1315
1368
|
return data, status_code, headers
|
1316
1369
|
end
|
1370
|
+
# delete Twilio account
|
1371
|
+
# @param esp_twilio_uuid
|
1372
|
+
# @param [Hash] opts the optional parameters
|
1373
|
+
# @return [BaseResponse]
|
1374
|
+
def delete_twilio_account(esp_twilio_uuid, opts = {})
|
1375
|
+
data, _status_code, _headers = delete_twilio_account_with_http_info(esp_twilio_uuid, opts)
|
1376
|
+
data
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# delete Twilio account
|
1380
|
+
# @param esp_twilio_uuid
|
1381
|
+
# @param [Hash] opts the optional parameters
|
1382
|
+
# @return [Array<(BaseResponse, Fixnum, Hash)>] BaseResponse data, response status code and response headers
|
1383
|
+
def delete_twilio_account_with_http_info(esp_twilio_uuid, opts = {})
|
1384
|
+
if @api_client.config.debugging
|
1385
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.delete_twilio_account ...'
|
1386
|
+
end
|
1387
|
+
# verify the required parameter 'esp_twilio_uuid' is set
|
1388
|
+
if @api_client.config.client_side_validation && esp_twilio_uuid.nil?
|
1389
|
+
fail ArgumentError, "Missing the required parameter 'esp_twilio_uuid' when calling StorefrontApi.delete_twilio_account"
|
1390
|
+
end
|
1391
|
+
# resource path
|
1392
|
+
local_var_path = '/storefront/twilio/accounts/{esp_twilio_uuid}'.sub('{' + 'esp_twilio_uuid' + '}', esp_twilio_uuid.to_s)
|
1393
|
+
|
1394
|
+
# query parameters
|
1395
|
+
query_params = {}
|
1396
|
+
|
1397
|
+
# header parameters
|
1398
|
+
header_params = {}
|
1399
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1400
|
+
# HTTP header 'Accept' (if needed)
|
1401
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1402
|
+
# HTTP header 'Content-Type'
|
1403
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1404
|
+
|
1405
|
+
# form parameters
|
1406
|
+
form_params = {}
|
1407
|
+
|
1408
|
+
# http body (model)
|
1409
|
+
post_body = nil
|
1410
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
1411
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1412
|
+
:header_params => header_params,
|
1413
|
+
:query_params => query_params,
|
1414
|
+
:form_params => form_params,
|
1415
|
+
:body => post_body,
|
1416
|
+
:auth_names => auth_names,
|
1417
|
+
:return_type => 'BaseResponse')
|
1418
|
+
if @api_client.config.debugging
|
1419
|
+
@api_client.config.logger.debug "API called: StorefrontApi#delete_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1420
|
+
end
|
1421
|
+
return data, status_code, headers
|
1422
|
+
end
|
1317
1423
|
# Duplicate library item.
|
1318
1424
|
# @param library_item_oid
|
1319
1425
|
# @param [Hash] opts the optional parameters
|
@@ -5967,6 +6073,106 @@ module UltracartClient
|
|
5967
6073
|
end
|
5968
6074
|
return data, status_code, headers
|
5969
6075
|
end
|
6076
|
+
# Get Twilio account
|
6077
|
+
# @param esp_twilio_uuid
|
6078
|
+
# @param [Hash] opts the optional parameters
|
6079
|
+
# @return [TwilioResponse]
|
6080
|
+
def get_twilio_account(esp_twilio_uuid, opts = {})
|
6081
|
+
data, _status_code, _headers = get_twilio_account_with_http_info(esp_twilio_uuid, opts)
|
6082
|
+
data
|
6083
|
+
end
|
6084
|
+
|
6085
|
+
# Get Twilio account
|
6086
|
+
# @param esp_twilio_uuid
|
6087
|
+
# @param [Hash] opts the optional parameters
|
6088
|
+
# @return [Array<(TwilioResponse, Fixnum, Hash)>] TwilioResponse data, response status code and response headers
|
6089
|
+
def get_twilio_account_with_http_info(esp_twilio_uuid, opts = {})
|
6090
|
+
if @api_client.config.debugging
|
6091
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_twilio_account ...'
|
6092
|
+
end
|
6093
|
+
# verify the required parameter 'esp_twilio_uuid' is set
|
6094
|
+
if @api_client.config.client_side_validation && esp_twilio_uuid.nil?
|
6095
|
+
fail ArgumentError, "Missing the required parameter 'esp_twilio_uuid' when calling StorefrontApi.get_twilio_account"
|
6096
|
+
end
|
6097
|
+
# resource path
|
6098
|
+
local_var_path = '/storefront/twilio/accounts/{esp_twilio_uuid}'.sub('{' + 'esp_twilio_uuid' + '}', esp_twilio_uuid.to_s)
|
6099
|
+
|
6100
|
+
# query parameters
|
6101
|
+
query_params = {}
|
6102
|
+
|
6103
|
+
# header parameters
|
6104
|
+
header_params = {}
|
6105
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
6106
|
+
# HTTP header 'Accept' (if needed)
|
6107
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6108
|
+
# HTTP header 'Content-Type'
|
6109
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6110
|
+
|
6111
|
+
# form parameters
|
6112
|
+
form_params = {}
|
6113
|
+
|
6114
|
+
# http body (model)
|
6115
|
+
post_body = nil
|
6116
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
6117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6118
|
+
:header_params => header_params,
|
6119
|
+
:query_params => query_params,
|
6120
|
+
:form_params => form_params,
|
6121
|
+
:body => post_body,
|
6122
|
+
:auth_names => auth_names,
|
6123
|
+
:return_type => 'TwilioResponse')
|
6124
|
+
if @api_client.config.debugging
|
6125
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6126
|
+
end
|
6127
|
+
return data, status_code, headers
|
6128
|
+
end
|
6129
|
+
# Get all Twilio accounts
|
6130
|
+
# @param [Hash] opts the optional parameters
|
6131
|
+
# @return [TwiliosResponse]
|
6132
|
+
def get_twilio_accounts(opts = {})
|
6133
|
+
data, _status_code, _headers = get_twilio_accounts_with_http_info(opts)
|
6134
|
+
data
|
6135
|
+
end
|
6136
|
+
|
6137
|
+
# Get all Twilio accounts
|
6138
|
+
# @param [Hash] opts the optional parameters
|
6139
|
+
# @return [Array<(TwiliosResponse, Fixnum, Hash)>] TwiliosResponse data, response status code and response headers
|
6140
|
+
def get_twilio_accounts_with_http_info(opts = {})
|
6141
|
+
if @api_client.config.debugging
|
6142
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_twilio_accounts ...'
|
6143
|
+
end
|
6144
|
+
# resource path
|
6145
|
+
local_var_path = '/storefront/twilio/accounts'
|
6146
|
+
|
6147
|
+
# query parameters
|
6148
|
+
query_params = {}
|
6149
|
+
|
6150
|
+
# header parameters
|
6151
|
+
header_params = {}
|
6152
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
6153
|
+
# HTTP header 'Accept' (if needed)
|
6154
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6155
|
+
# HTTP header 'Content-Type'
|
6156
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6157
|
+
|
6158
|
+
# form parameters
|
6159
|
+
form_params = {}
|
6160
|
+
|
6161
|
+
# http body (model)
|
6162
|
+
post_body = nil
|
6163
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
6164
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
6165
|
+
:header_params => header_params,
|
6166
|
+
:query_params => query_params,
|
6167
|
+
:form_params => form_params,
|
6168
|
+
:body => post_body,
|
6169
|
+
:auth_names => auth_names,
|
6170
|
+
:return_type => 'TwiliosResponse')
|
6171
|
+
if @api_client.config.debugging
|
6172
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_twilio_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6173
|
+
end
|
6174
|
+
return data, status_code, headers
|
6175
|
+
end
|
5970
6176
|
# Globally unsubscribe a customer
|
5971
6177
|
# @param storefront_oid
|
5972
6178
|
# @param unsubscribe Unsubscribe
|
@@ -9236,5 +9442,64 @@ module UltracartClient
|
|
9236
9442
|
end
|
9237
9443
|
return data, status_code, headers
|
9238
9444
|
end
|
9445
|
+
# Update Twilio account
|
9446
|
+
# @param esp_twilio_uuid
|
9447
|
+
# @param twilio Twilio
|
9448
|
+
# @param [Hash] opts the optional parameters
|
9449
|
+
# @return [TwilioResponse]
|
9450
|
+
def update_twilio_account(esp_twilio_uuid, twilio, opts = {})
|
9451
|
+
data, _status_code, _headers = update_twilio_account_with_http_info(esp_twilio_uuid, twilio, opts)
|
9452
|
+
data
|
9453
|
+
end
|
9454
|
+
|
9455
|
+
# Update Twilio account
|
9456
|
+
# @param esp_twilio_uuid
|
9457
|
+
# @param twilio Twilio
|
9458
|
+
# @param [Hash] opts the optional parameters
|
9459
|
+
# @return [Array<(TwilioResponse, Fixnum, Hash)>] TwilioResponse data, response status code and response headers
|
9460
|
+
def update_twilio_account_with_http_info(esp_twilio_uuid, twilio, opts = {})
|
9461
|
+
if @api_client.config.debugging
|
9462
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.update_twilio_account ...'
|
9463
|
+
end
|
9464
|
+
# verify the required parameter 'esp_twilio_uuid' is set
|
9465
|
+
if @api_client.config.client_side_validation && esp_twilio_uuid.nil?
|
9466
|
+
fail ArgumentError, "Missing the required parameter 'esp_twilio_uuid' when calling StorefrontApi.update_twilio_account"
|
9467
|
+
end
|
9468
|
+
# verify the required parameter 'twilio' is set
|
9469
|
+
if @api_client.config.client_side_validation && twilio.nil?
|
9470
|
+
fail ArgumentError, "Missing the required parameter 'twilio' when calling StorefrontApi.update_twilio_account"
|
9471
|
+
end
|
9472
|
+
# resource path
|
9473
|
+
local_var_path = '/storefront/twilio/accounts/{esp_twilio_uuid}'.sub('{' + 'esp_twilio_uuid' + '}', esp_twilio_uuid.to_s)
|
9474
|
+
|
9475
|
+
# query parameters
|
9476
|
+
query_params = {}
|
9477
|
+
|
9478
|
+
# header parameters
|
9479
|
+
header_params = {}
|
9480
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
9481
|
+
# HTTP header 'Accept' (if needed)
|
9482
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
9483
|
+
# HTTP header 'Content-Type'
|
9484
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
9485
|
+
|
9486
|
+
# form parameters
|
9487
|
+
form_params = {}
|
9488
|
+
|
9489
|
+
# http body (model)
|
9490
|
+
post_body = @api_client.object_to_http_body(twilio)
|
9491
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
9492
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
9493
|
+
:header_params => header_params,
|
9494
|
+
:query_params => query_params,
|
9495
|
+
:form_params => form_params,
|
9496
|
+
:body => post_body,
|
9497
|
+
:auth_names => auth_names,
|
9498
|
+
:return_type => 'TwilioResponse')
|
9499
|
+
if @api_client.config.debugging
|
9500
|
+
@api_client.config.logger.debug "API called: StorefrontApi#update_twilio_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9501
|
+
end
|
9502
|
+
return data, status_code, headers
|
9503
|
+
end
|
9239
9504
|
end
|
9240
9505
|
end
|
@@ -20,7 +20,7 @@ module UltracartClient
|
|
20
20
|
# Cjson to be added to library
|
21
21
|
attr_accessor :cjson
|
22
22
|
|
23
|
-
# flow, campaign, cjson, email, transactional_email or upsell
|
23
|
+
# flow, campaign, cjson, email, transactional_email, postcard or upsell
|
24
24
|
attr_accessor :content_type
|
25
25
|
|
26
26
|
# description of library item
|
@@ -44,7 +44,7 @@ module UltracartClient
|
|
44
44
|
# Required if content_type is upsell. This is object identifier of a StoreFront Upsell Offer.
|
45
45
|
attr_accessor :upsell_offer_oid
|
46
46
|
|
47
|
-
# UUID of communication flow, campaign, email, or null if this item is something else. transactional_email do not have a uuid because they are singleton objects within a storefront and easily identifiable by name
|
47
|
+
# UUID of communication flow, campaign, email, postcard, or null if this item is something else. transactional_email do not have a uuid because they are singleton objects within a storefront and easily identifiable by name
|
48
48
|
attr_accessor :uuid
|
49
49
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# Unique object identifier for the click associated with this ledger entry
|
18
18
|
attr_accessor :affiliate_click_oid
|
19
19
|
|
20
|
+
# Affiliate ledger object ID associated with this ledger
|
21
|
+
attr_accessor :affiliate_ledger_oid
|
22
|
+
|
20
23
|
# Unique object identifier for the link that this click is associated with
|
21
24
|
attr_accessor :affiliate_link_oid
|
22
25
|
|
@@ -91,6 +94,7 @@ module UltracartClient
|
|
91
94
|
def self.attribute_map
|
92
95
|
{
|
93
96
|
:'affiliate_click_oid' => :'affiliate_click_oid',
|
97
|
+
:'affiliate_ledger_oid' => :'affiliate_ledger_oid',
|
94
98
|
:'affiliate_link_oid' => :'affiliate_link_oid',
|
95
99
|
:'affiliate_oid' => :'affiliate_oid',
|
96
100
|
:'assigned_by_user' => :'assigned_by_user',
|
@@ -115,6 +119,7 @@ module UltracartClient
|
|
115
119
|
def self.swagger_types
|
116
120
|
{
|
117
121
|
:'affiliate_click_oid' => :'Integer',
|
122
|
+
:'affiliate_ledger_oid' => :'Integer',
|
118
123
|
:'affiliate_link_oid' => :'Integer',
|
119
124
|
:'affiliate_oid' => :'Integer',
|
120
125
|
:'assigned_by_user' => :'String',
|
@@ -125,12 +130,12 @@ module UltracartClient
|
|
125
130
|
:'order_id' => :'String',
|
126
131
|
:'original_transaction_dts' => :'String',
|
127
132
|
:'sub_id' => :'String',
|
128
|
-
:'tier_number' => :'
|
133
|
+
:'tier_number' => :'Integer',
|
129
134
|
:'transaction_amount' => :'Float',
|
130
135
|
:'transaction_amount_paid' => :'Float',
|
131
136
|
:'transaction_dts' => :'String',
|
132
137
|
:'transaction_memo' => :'String',
|
133
|
-
:'transaction_percentage' => :'
|
138
|
+
:'transaction_percentage' => :'Float',
|
134
139
|
:'transaction_state' => :'String'
|
135
140
|
}
|
136
141
|
end
|
@@ -147,6 +152,10 @@ module UltracartClient
|
|
147
152
|
self.affiliate_click_oid = attributes[:'affiliate_click_oid']
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.has_key?(:'affiliate_ledger_oid')
|
156
|
+
self.affiliate_ledger_oid = attributes[:'affiliate_ledger_oid']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.has_key?(:'affiliate_link_oid')
|
151
160
|
self.affiliate_link_oid = attributes[:'affiliate_link_oid']
|
152
161
|
end
|
@@ -247,6 +256,7 @@ module UltracartClient
|
|
247
256
|
return true if self.equal?(o)
|
248
257
|
self.class == o.class &&
|
249
258
|
affiliate_click_oid == o.affiliate_click_oid &&
|
259
|
+
affiliate_ledger_oid == o.affiliate_ledger_oid &&
|
250
260
|
affiliate_link_oid == o.affiliate_link_oid &&
|
251
261
|
affiliate_oid == o.affiliate_oid &&
|
252
262
|
assigned_by_user == o.assigned_by_user &&
|
@@ -275,7 +285,7 @@ module UltracartClient
|
|
275
285
|
# Calculates hash code according to all attributes.
|
276
286
|
# @return [Fixnum] Hash code
|
277
287
|
def hash
|
278
|
-
[affiliate_click_oid, affiliate_link_oid, affiliate_oid, assigned_by_user, click, item_id, link, order, order_id, original_transaction_dts, sub_id, tier_number, transaction_amount, transaction_amount_paid, transaction_dts, transaction_memo, transaction_percentage, transaction_state].hash
|
288
|
+
[affiliate_click_oid, affiliate_ledger_oid, affiliate_link_oid, affiliate_oid, assigned_by_user, click, item_id, link, order, order_id, original_transaction_dts, sub_id, tier_number, transaction_amount, transaction_amount_paid, transaction_dts, transaction_memo, transaction_percentage, transaction_state].hash
|
279
289
|
end
|
280
290
|
|
281
291
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module UltracartClient
|
|
20
20
|
# Library item oid that you wish to apply to the given StoreFront
|
21
21
|
attr_accessor :library_item_oid
|
22
22
|
|
23
|
+
# The postcard uuid you wish to apply to a given StoreFront.
|
24
|
+
attr_accessor :postcard_uuid
|
25
|
+
|
23
26
|
# StoreFront oid where content originates necessary for tracking down relative assets
|
24
27
|
attr_accessor :storefront_oid
|
25
28
|
|
@@ -28,6 +31,7 @@ module UltracartClient
|
|
28
31
|
{
|
29
32
|
:'email_uuid' => :'email_uuid',
|
30
33
|
:'library_item_oid' => :'library_item_oid',
|
34
|
+
:'postcard_uuid' => :'postcard_uuid',
|
31
35
|
:'storefront_oid' => :'storefront_oid'
|
32
36
|
}
|
33
37
|
end
|
@@ -37,6 +41,7 @@ module UltracartClient
|
|
37
41
|
{
|
38
42
|
:'email_uuid' => :'String',
|
39
43
|
:'library_item_oid' => :'Integer',
|
44
|
+
:'postcard_uuid' => :'String',
|
40
45
|
:'storefront_oid' => :'Integer'
|
41
46
|
}
|
42
47
|
end
|
@@ -57,6 +62,10 @@ module UltracartClient
|
|
57
62
|
self.library_item_oid = attributes[:'library_item_oid']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.has_key?(:'postcard_uuid')
|
66
|
+
self.postcard_uuid = attributes[:'postcard_uuid']
|
67
|
+
end
|
68
|
+
|
60
69
|
if attributes.has_key?(:'storefront_oid')
|
61
70
|
self.storefront_oid = attributes[:'storefront_oid']
|
62
71
|
end
|
@@ -82,6 +91,7 @@ module UltracartClient
|
|
82
91
|
self.class == o.class &&
|
83
92
|
email_uuid == o.email_uuid &&
|
84
93
|
library_item_oid == o.library_item_oid &&
|
94
|
+
postcard_uuid == o.postcard_uuid &&
|
85
95
|
storefront_oid == o.storefront_oid
|
86
96
|
end
|
87
97
|
|
@@ -94,7 +104,7 @@ module UltracartClient
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Fixnum] Hash code
|
96
106
|
def hash
|
97
|
-
[email_uuid, library_item_oid, storefront_oid].hash
|
107
|
+
[email_uuid, library_item_oid, postcard_uuid, storefront_oid].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
@@ -20,7 +20,7 @@ module UltracartClient
|
|
20
20
|
# Cjson from library item, only populated if this library item was a cjson snippet or marketing email (not transactional)
|
21
21
|
attr_accessor :cjson
|
22
22
|
|
23
|
-
# flow, campaign, cjson, upsell, transactional_email or email
|
23
|
+
# flow, campaign, cjson, upsell, postcard, transactional_email or email
|
24
24
|
attr_accessor :content_type
|
25
25
|
|
26
26
|
# If a marketing email was applied, this is the path to the template encapsulating the cjson. This is needed for the UltraCart UI.
|
@@ -32,6 +32,9 @@ module UltracartClient
|
|
32
32
|
# Conversion rate for this variation
|
33
33
|
attr_accessor :conversion_rate
|
34
34
|
|
35
|
+
# Array of daily statistics for this variation
|
36
|
+
attr_accessor :daily_statistics
|
37
|
+
|
35
38
|
# Total number of seconds spent on the site for this variation
|
36
39
|
attr_accessor :duration_seconds_sum
|
37
40
|
|
@@ -44,6 +47,9 @@ module UltracartClient
|
|
44
47
|
# Total order count for this variation
|
45
48
|
attr_accessor :order_count
|
46
49
|
|
50
|
+
# Total order item count for this variation
|
51
|
+
attr_accessor :order_item_count
|
52
|
+
|
47
53
|
# Percentage of the traffic the variation originally started out with
|
48
54
|
attr_accessor :original_traffic_percentage
|
49
55
|
|
@@ -80,10 +86,12 @@ module UltracartClient
|
|
80
86
|
:'average_order_value' => :'average_order_value',
|
81
87
|
:'bounce_count' => :'bounce_count',
|
82
88
|
:'conversion_rate' => :'conversion_rate',
|
89
|
+
:'daily_statistics' => :'daily_statistics',
|
83
90
|
:'duration_seconds_sum' => :'duration_seconds_sum',
|
84
91
|
:'event_count' => :'event_count',
|
85
92
|
:'initiate_checkout_count' => :'initiate_checkout_count',
|
86
93
|
:'order_count' => :'order_count',
|
94
|
+
:'order_item_count' => :'order_item_count',
|
87
95
|
:'original_traffic_percentage' => :'original_traffic_percentage',
|
88
96
|
:'page_view_count' => :'page_view_count',
|
89
97
|
:'revenue' => :'revenue',
|
@@ -105,10 +113,12 @@ module UltracartClient
|
|
105
113
|
:'average_order_value' => :'Float',
|
106
114
|
:'bounce_count' => :'Integer',
|
107
115
|
:'conversion_rate' => :'Float',
|
116
|
+
:'daily_statistics' => :'Array<ExperimentVariationStat>',
|
108
117
|
:'duration_seconds_sum' => :'Integer',
|
109
118
|
:'event_count' => :'Integer',
|
110
119
|
:'initiate_checkout_count' => :'Integer',
|
111
120
|
:'order_count' => :'Integer',
|
121
|
+
:'order_item_count' => :'Integer',
|
112
122
|
:'original_traffic_percentage' => :'Float',
|
113
123
|
:'page_view_count' => :'Integer',
|
114
124
|
:'revenue' => :'Float',
|
@@ -153,6 +163,12 @@ module UltracartClient
|
|
153
163
|
self.conversion_rate = attributes[:'conversion_rate']
|
154
164
|
end
|
155
165
|
|
166
|
+
if attributes.has_key?(:'daily_statistics')
|
167
|
+
if (value = attributes[:'daily_statistics']).is_a?(Array)
|
168
|
+
self.daily_statistics = value
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
156
172
|
if attributes.has_key?(:'duration_seconds_sum')
|
157
173
|
self.duration_seconds_sum = attributes[:'duration_seconds_sum']
|
158
174
|
end
|
@@ -169,6 +185,10 @@ module UltracartClient
|
|
169
185
|
self.order_count = attributes[:'order_count']
|
170
186
|
end
|
171
187
|
|
188
|
+
if attributes.has_key?(:'order_item_count')
|
189
|
+
self.order_item_count = attributes[:'order_item_count']
|
190
|
+
end
|
191
|
+
|
172
192
|
if attributes.has_key?(:'original_traffic_percentage')
|
173
193
|
self.original_traffic_percentage = attributes[:'original_traffic_percentage']
|
174
194
|
end
|
@@ -230,10 +250,12 @@ module UltracartClient
|
|
230
250
|
average_order_value == o.average_order_value &&
|
231
251
|
bounce_count == o.bounce_count &&
|
232
252
|
conversion_rate == o.conversion_rate &&
|
253
|
+
daily_statistics == o.daily_statistics &&
|
233
254
|
duration_seconds_sum == o.duration_seconds_sum &&
|
234
255
|
event_count == o.event_count &&
|
235
256
|
initiate_checkout_count == o.initiate_checkout_count &&
|
236
257
|
order_count == o.order_count &&
|
258
|
+
order_item_count == o.order_item_count &&
|
237
259
|
original_traffic_percentage == o.original_traffic_percentage &&
|
238
260
|
page_view_count == o.page_view_count &&
|
239
261
|
revenue == o.revenue &&
|
@@ -254,7 +276,7 @@ module UltracartClient
|
|
254
276
|
# Calculates hash code according to all attributes.
|
255
277
|
# @return [Fixnum] Hash code
|
256
278
|
def hash
|
257
|
-
[add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, duration_seconds_sum, event_count, initiate_checkout_count, order_count, original_traffic_percentage, page_view_count, revenue, session_count, traffic_percentage, url, variation_name, variation_number, winner].hash
|
279
|
+
[add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, daily_statistics, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, original_traffic_percentage, page_view_count, revenue, session_count, traffic_percentage, url, variation_name, variation_number, winner].hash
|
258
280
|
end
|
259
281
|
|
260
282
|
# Builds the object from hash
|