ultracart_api 3.6.17 → 3.6.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -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/ItemCheckout.md +1 -0
- data/docs/ItemFulfillmentAddon.md +11 -0
- data/docs/ItemShippingDistributionCenter.md +1 -0
- data/docs/OrderItem.md +0 -1
- 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_checkout.rb +11 -1
- 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/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c10494f620704d92ee04e8640ea3e34807349b579f7a346d8a094f1407aafa21
|
4
|
+
data.tar.gz: eff11e1cb5aab90853367c7114494550874a477d30114fa5552a419e15747810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1319a7446b959aeeb0e1a5349795e873c30925e60a3fa6b122fd8b9a954f870d3567ad03f82043d1fbe63f58bf2a302163d304579a98e901153502f8b6bff919
|
7
|
+
data.tar.gz: af5c8f0c53d43ef3620ca8784a82f25c89d2c90875009b803402529895311c9bbdd4b90ad81c622dd482f0ea4613a86038b13ad92d3486dfcbff676ab2eb29ca
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.6.
|
10
|
+
- Package version: 3.6.21
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.6.
|
27
|
+
gem install ./ultracart_api-3.6.21.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.6.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.6.21.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.6.
|
35
|
+
gem 'ultracart_api', '~> 3.6.21'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -725,6 +725,7 @@ Class | Method | HTTP request | Description
|
|
725
725
|
- [UltracartClient::Experiment](docs/Experiment.md)
|
726
726
|
- [UltracartClient::ExperimentResponse](docs/ExperimentResponse.md)
|
727
727
|
- [UltracartClient::ExperimentVariation](docs/ExperimentVariation.md)
|
728
|
+
- [UltracartClient::ExperimentVariationStat](docs/ExperimentVariationStat.md)
|
728
729
|
- [UltracartClient::ExperimentsResponse](docs/ExperimentsResponse.md)
|
729
730
|
- [UltracartClient::FulfillmentInventory](docs/FulfillmentInventory.md)
|
730
731
|
- [UltracartClient::FulfillmentShipment](docs/FulfillmentShipment.md)
|
@@ -772,6 +773,7 @@ Class | Method | HTTP request | Description
|
|
772
773
|
- [UltracartClient::ItemEbayMarketPlaceAnalysis](docs/ItemEbayMarketPlaceAnalysis.md)
|
773
774
|
- [UltracartClient::ItemEmailNotifications](docs/ItemEmailNotifications.md)
|
774
775
|
- [UltracartClient::ItemEnrollment123](docs/ItemEnrollment123.md)
|
776
|
+
- [UltracartClient::ItemFulfillmentAddon](docs/ItemFulfillmentAddon.md)
|
775
777
|
- [UltracartClient::ItemGiftCertificate](docs/ItemGiftCertificate.md)
|
776
778
|
- [UltracartClient::ItemGoogleProductSearch](docs/ItemGoogleProductSearch.md)
|
777
779
|
- [UltracartClient::ItemIdentifiers](docs/ItemIdentifiers.md)
|
@@ -1118,6 +1120,10 @@ Not every change is committed to every SDK.
|
|
1118
1120
|
|
1119
1121
|
| Version | Date | Comments |
|
1120
1122
|
| --: | :-: | --- |
|
1123
|
+
| 3.6.21 | 11/08/2021 | item shipping distribution center level CostOfGoodsSold |
|
1124
|
+
| 3.6.20 | 11/05/2021 | additional item auto order step types |
|
1125
|
+
| 3.6.19 | 10/05/2021 | item fulfillment add ons |
|
1126
|
+
| 3.6.18 | 09/30/2021 | terms if auto order flag added |
|
1121
1127
|
| 3.6.16 | 09/30/2021 | item exclude from sitemap field |
|
1122
1128
|
| 3.6.15 | 09/28/2021 | added refund_claim_id to insurance object |
|
1123
1129
|
| 3.6.14 | 09/21/2021 | configuration api fix. the echeck test methods were attached to the paper check object |
|
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**attributes** | [**Array<LibraryItemAttribute>**](LibraryItemAttribute.md) | Attributes associated with the library item to contain additional configuration. | [optional]
|
7
7
|
**cjson** | **String** | Cjson to be added to library | [optional]
|
8
|
-
**content_type** | **String** | flow, campaign, cjson, email, transactional_email or upsell | [optional]
|
8
|
+
**content_type** | **String** | flow, campaign, cjson, email, transactional_email, postcard or upsell | [optional]
|
9
9
|
**description** | **String** | description of library item | [optional]
|
10
10
|
**email_name** | **String** | Required if content_type is transactional_email. This is the name of the email template (html, not text). This name should have a .vm file extension. An example is auto_order_cancel_html.vm | [optional]
|
11
11
|
**email_path** | **String** | Required if content_type is transactional_email. This is the full path to the email template stored in the file system. This defines which StoreFront contains the desired email template. An example is /themes/Elements/core/emails/auto_order_cancel_html.vm | [optional]
|
@@ -13,6 +13,6 @@ Name | Type | Description | Notes
|
|
13
13
|
**storefront_oid** | **Integer** | StoreFront oid where content originates necessary for tracking down relative assets | [optional]
|
14
14
|
**title** | **String** | title of library item, usually the name of the flow or campaign, or description of cjson | [optional]
|
15
15
|
**upsell_offer_oid** | **Integer** | Required if content_type is upsell. This is object identifier of a StoreFront Upsell Offer. | [optional]
|
16
|
-
**uuid** | **String** | 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 | [optional]
|
16
|
+
**uuid** | **String** | 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 | [optional]
|
17
17
|
|
18
18
|
|
data/docs/AffiliateLedger.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**affiliate_click_oid** | **Integer** | Unique object identifier for the click associated with this ledger entry | [optional]
|
7
|
+
**affiliate_ledger_oid** | **Integer** | Affiliate ledger object ID associated with this ledger | [optional]
|
7
8
|
**affiliate_link_oid** | **Integer** | Unique object identifier for the link that this click is associated with | [optional]
|
8
9
|
**affiliate_oid** | **Integer** | Affiliate object ID associated with this transaction | [optional]
|
9
10
|
**assigned_by_user** | **String** | User that assigned the transaction if it was done manually | [optional]
|
@@ -14,12 +15,12 @@ Name | Type | Description | Notes
|
|
14
15
|
**order_id** | **String** | Order ID associated with this transaction | [optional]
|
15
16
|
**original_transaction_dts** | **String** | Date/time of the original transaction for reversals | [optional]
|
16
17
|
**sub_id** | **String** | Sub ID associated with transaction (from the click) | [optional]
|
17
|
-
**tier_number** | **
|
18
|
+
**tier_number** | **Integer** | Tier number that this transaction earned | [optional]
|
18
19
|
**transaction_amount** | **Float** | Transaction amount | [optional]
|
19
20
|
**transaction_amount_paid** | **Float** | Amount of the transaction that has been paid out. | [optional]
|
20
21
|
**transaction_dts** | **String** | Date/time that the transaction was made | [optional]
|
21
22
|
**transaction_memo** | **String** | Memo explaining the transaction | [optional]
|
22
|
-
**transaction_percentage** | **
|
23
|
+
**transaction_percentage** | **Float** | Percentage associated with this transaction | [optional]
|
23
24
|
**transaction_state** | **String** | Transaction state | [optional]
|
24
25
|
|
25
26
|
|
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**email_uuid** | **String** | Normal emails are applied to an existing email object, so when requesting a library item to be applied to an email, supply the email uuid. This is only for normal emails. Transactional emails do not have a uuid. | [optional]
|
7
7
|
**library_item_oid** | **Integer** | Library item oid that you wish to apply to the given StoreFront | [optional]
|
8
|
+
**postcard_uuid** | **String** | The postcard uuid you wish to apply to a given StoreFront. | [optional]
|
8
9
|
**storefront_oid** | **Integer** | StoreFront oid where content originates necessary for tracking down relative assets | [optional]
|
9
10
|
|
10
11
|
|
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**attributes** | [**Array<LibraryItemAttribute>**](LibraryItemAttribute.md) | Attributes from the library item | [optional]
|
7
7
|
**cjson** | **String** | Cjson from library item, only populated if this library item was a cjson snippet or marketing email (not transactional) | [optional]
|
8
|
-
**content_type** | **String** | flow, campaign, cjson, upsell, transactional_email or email | [optional]
|
8
|
+
**content_type** | **String** | flow, campaign, cjson, upsell, postcard, transactional_email or email | [optional]
|
9
9
|
**email_template_vm_path** | **String** | If a marketing email was applied, this is the path to the template encapsulating the cjson. This is needed for the UltraCart UI. | [optional]
|
10
10
|
**error** | [**Error**](Error.md) | | [optional]
|
11
11
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
data/docs/ExperimentVariation.md
CHANGED
@@ -9,10 +9,12 @@ Name | Type | Description | Notes
|
|
9
9
|
**average_order_value** | **Float** | Average order value for this variation | [optional]
|
10
10
|
**bounce_count** | **Integer** | Total bounce count for this variation | [optional]
|
11
11
|
**conversion_rate** | **Float** | Conversion rate for this variation | [optional]
|
12
|
+
**daily_statistics** | [**Array<ExperimentVariationStat>**](ExperimentVariationStat.md) | Array of daily statistics for this variation | [optional]
|
12
13
|
**duration_seconds_sum** | **Integer** | Total number of seconds spent on the site for this variation | [optional]
|
13
14
|
**event_count** | **Integer** | Total event ocunt for this variation | [optional]
|
14
15
|
**initiate_checkout_count** | **Integer** | Total initiate checkout count for this variation | [optional]
|
15
16
|
**order_count** | **Integer** | Total order count for this variation | [optional]
|
17
|
+
**order_item_count** | **Integer** | Total order item count for this variation | [optional]
|
16
18
|
**original_traffic_percentage** | **Float** | Percentage of the traffic the variation originally started out with | [optional]
|
17
19
|
**page_view_count** | **Integer** | Total page view count for this variation | [optional]
|
18
20
|
**revenue** | **Float** | Total revenue for this variation | [optional]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::ExperimentVariationStat
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**add_to_cart_count** | **Integer** | Total add to cart count for this variation | [optional]
|
7
|
+
**bounce_count** | **Integer** | Total bounce count for this variation | [optional]
|
8
|
+
**duration_seconds_sum** | **Integer** | Total number of seconds spent on the site for this variation | [optional]
|
9
|
+
**event_count** | **Integer** | Total event count for this variation | [optional]
|
10
|
+
**initiate_checkout_count** | **Integer** | Total initiate checkout count for this variation | [optional]
|
11
|
+
**order_count** | **Integer** | Total order count for this variation | [optional]
|
12
|
+
**order_item_count** | **Integer** | Total order item count for this variation | [optional]
|
13
|
+
**page_view_count** | **Integer** | Total page view count for this variation | [optional]
|
14
|
+
**revenue** | **Float** | Total revenue for this variation | [optional]
|
15
|
+
**session_count** | **Integer** | Total sessions for this variation | [optional]
|
16
|
+
**stat_dts** | **String** | Date/time that the statistic was created | [optional]
|
17
|
+
|
18
|
+
|
data/docs/Item.md
CHANGED
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
|
|
18
18
|
**ebay** | [**ItemEbay**](ItemEbay.md) | | [optional]
|
19
19
|
**email_notifications** | [**ItemEmailNotifications**](ItemEmailNotifications.md) | | [optional]
|
20
20
|
**enrollment123** | [**ItemEnrollment123**](ItemEnrollment123.md) | | [optional]
|
21
|
+
**fulfillment_addons** | [**Array<ItemFulfillmentAddon>**](ItemFulfillmentAddon.md) | Fulfillment Add-ons | [optional]
|
21
22
|
**gift_certificate** | [**ItemGiftCertificate**](ItemGiftCertificate.md) | | [optional]
|
22
23
|
**google_product_search** | [**ItemGoogleProductSearch**](ItemGoogleProductSearch.md) | | [optional]
|
23
24
|
**identifiers** | [**ItemIdentifiers**](ItemIdentifiers.md) | | [optional]
|
data/docs/ItemAutoOrderStep.md
CHANGED
@@ -17,6 +17,6 @@ Name | Type | Description | Notes
|
|
17
17
|
**schedule** | **String** | Frequency of the rebill | [optional]
|
18
18
|
**subscribe_email_list_name** | **String** | Email list name to subscribe the customer to when the rebill occurs | [optional]
|
19
19
|
**subscribe_email_list_oid** | **Integer** | Email list identifier to subscribe the customer to when this rebill occurs | [optional]
|
20
|
-
**type** | **String** | Type of step (item or pause) | [optional]
|
20
|
+
**type** | **String** | Type of step (item, kit only, loop or pause) | [optional]
|
21
21
|
|
22
22
|
|
data/docs/ItemCheckout.md
CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**suppress_buysafe** | **BOOLEAN** | True to suppress buySAFE (deprecated) | [optional]
|
7
7
|
**terms** | **String** | Terms for purchasing this item | [optional]
|
8
|
+
**terms_if_auto_order** | **BOOLEAN** | Terms only apply if the item is on auto order | [optional]
|
8
9
|
**terms_translated_text_instance_oid** | **Integer** | Terms translated text instance identifier | [optional]
|
9
10
|
|
10
11
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# UltracartClient::ItemFulfillmentAddon
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**add_item_id** | **String** | Add Item Id | [optional]
|
7
|
+
**add_item_oid** | **Integer** | Add Item object identifier | [optional]
|
8
|
+
**once_per_order** | **BOOLEAN** | Quantity | [optional]
|
9
|
+
**quantity** | **Integer** | Quantity | [optional]
|
10
|
+
|
11
|
+
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**allocated_to_placed_orders** | **Float** | Allocated to placed orders | [optional]
|
7
7
|
**allocated_to_shopping_carts** | **Float** | Allocated to shopping carts | [optional]
|
8
8
|
**available_to_allocate** | **Float** | Available to allocate | [optional]
|
9
|
+
**cogs** | **Float** | Cost of goods sold override at the distribution center level | [optional]
|
9
10
|
**desired_inventory_level** | **Float** | Desired inventory level | [optional]
|
10
11
|
**distribution_center_code** | **String** | Distribution center code | [optional]
|
11
12
|
**distribution_center_oid** | **Integer** | Distribution center object identifier | [optional]
|
data/docs/OrderItem.md
CHANGED
@@ -52,7 +52,6 @@ Name | Type | Description | Notes
|
|
52
52
|
**taxable_cost** | [**Currency**](Currency.md) | | [optional]
|
53
53
|
**total_cost_with_discount** | [**Currency**](Currency.md) | | [optional]
|
54
54
|
**total_refunded** | [**Currency**](Currency.md) | | [optional]
|
55
|
-
**tracking_number** | **String** | Tracking number, if null or missing, use order level tracking number(s). Used if there are multiple shipments for one order | [optional]
|
56
55
|
**transmitted_to_distribution_center_dts** | **String** | Date/time that this item was transmitted to the distribution center | [optional]
|
57
56
|
**unit_cost_with_discount** | [**Currency**](Currency.md) | | [optional]
|
58
57
|
**upsell** | **BOOLEAN** | True if this item was added to the order as part of an upsell | [optional]
|
@@ -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
|