talon_one 7.0.0 → 8.0.0
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 +24 -7
- data/docs/Achievement.md +6 -4
- data/docs/AchievementAdditionalProperties.md +5 -3
- data/docs/AchievementProgress.md +3 -15
- data/docs/AddFreeItemEffectProps.md +3 -1
- data/docs/AdditionalCampaignProperties.md +4 -2
- data/docs/AnalyticsProduct.md +6 -6
- data/docs/ApplicationCIF.md +1 -1
- data/docs/ApplicationCIFExpression.md +1 -1
- data/docs/ApplicationEntity.md +1 -1
- data/docs/ApplicationEvent.md +1 -1
- data/docs/ApplicationReferee.md +1 -1
- data/docs/ApplicationSession.md +2 -2
- data/docs/Audience.md +1 -1
- data/docs/BaseLoyaltyProgram.md +1 -1
- data/docs/Binding.md +1 -1
- data/docs/Campaign.md +4 -2
- data/docs/CampaignEvaluationGroup.md +1 -1
- data/docs/CampaignNotificationPolicy.md +3 -1
- data/docs/CampaignSet.md +1 -1
- data/docs/CampaignStoreBudget.md +1 -1
- data/docs/CardExpiringPointsNotificationPolicy.md +3 -1
- data/docs/CatalogsStrikethroughNotificationPolicy.md +3 -1
- data/docs/CouponCreationJob.md +1 -1
- data/docs/CouponDeletionJob.md +1 -1
- data/docs/CouponsNotificationPolicy.md +5 -1
- data/docs/CreateAchievement.md +1 -1
- data/docs/CustomerInventory.md +1 -1
- data/docs/CustomerSession.md +1 -1
- data/docs/CustomerSessionV2.md +2 -4
- data/docs/Environment.md +1 -1
- data/docs/Event.md +1 -1
- data/docs/ExpiringCouponsNotificationPolicy.md +3 -1
- data/docs/ExpiringPointsNotificationPolicy.md +3 -1
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +3 -3
- data/docs/InlineResponse20016.md +3 -3
- data/docs/InlineResponse20017.md +3 -5
- data/docs/InlineResponse20018.md +2 -2
- data/docs/InlineResponse20019.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse20020.md +5 -3
- data/docs/InlineResponse20021.md +3 -5
- data/docs/InlineResponse20022.md +2 -4
- data/docs/InlineResponse20023.md +3 -5
- data/docs/InlineResponse20024.md +5 -3
- data/docs/InlineResponse20025.md +4 -2
- data/docs/InlineResponse20026.md +3 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +3 -3
- data/docs/InlineResponse20029.md +1 -3
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse20030.md +2 -2
- data/docs/InlineResponse20031.md +3 -3
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +3 -3
- data/docs/InlineResponse20034.md +1 -3
- data/docs/InlineResponse20035.md +5 -3
- data/docs/InlineResponse20036.md +1 -1
- data/docs/InlineResponse20037.md +5 -3
- data/docs/InlineResponse20038.md +1 -1
- data/docs/InlineResponse20039.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse20040.md +1 -1
- data/docs/InlineResponse20041.md +2 -4
- data/docs/InlineResponse20042.md +1 -1
- data/docs/InlineResponse20043.md +1 -1
- data/docs/InlineResponse20044.md +4 -4
- data/docs/InlineResponse20045.md +3 -3
- data/docs/InlineResponse20046.md +3 -3
- data/docs/InlineResponse20047.md +5 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +3 -3
- data/docs/IntegrationApi.md +156 -18
- data/docs/LedgerInfo.md +4 -0
- data/docs/LimitCounter.md +1 -1
- data/docs/LoyaltyBalance.md +3 -1
- data/docs/LoyaltyBalanceWithTier.md +2 -0
- data/docs/LoyaltyBalances.md +1 -1
- data/docs/LoyaltyBalancesWithTiers.md +1 -1
- data/docs/LoyaltyCardBalances.md +1 -1
- data/docs/LoyaltyLedger.md +1 -1
- data/docs/LoyaltyLedgerEntry.md +3 -1
- data/docs/LoyaltyProgram.md +1 -1
- data/docs/LoyaltyProgramBalance.md +5 -1
- data/docs/LoyaltySubLedger.md +2 -0
- data/docs/ManagementApi.md +184 -116
- data/docs/ManagementKey.md +3 -1
- data/docs/ModelReturn.md +1 -1
- data/docs/NewAudience.md +1 -1
- data/docs/NewCampaignSet.md +1 -1
- data/docs/NewLoyaltyProgram.md +1 -1
- data/docs/NewManagementKey.md +2 -0
- data/docs/PendingPointsNotificationPolicy.md +3 -1
- data/docs/ProductSearchMatch.md +2 -2
- data/docs/ProductUnitAnalytics.md +4 -10
- data/docs/Store.md +1 -1
- data/docs/StrikethroughEffect.md +5 -1
- data/docs/StrikethroughLabelingNotification.md +4 -2
- data/docs/SummaryCampaignStoreBudget.md +3 -1
- data/docs/TemplateDef.md +1 -1
- data/docs/TierDowngradeNotificationPolicy.md +3 -1
- data/docs/TierUpgradeNotificationPolicy.md +3 -1
- data/docs/TierWillDowngradeNotificationPolicy.md +2 -0
- data/docs/UpdateAchievement.md +2 -2
- data/docs/UpdateLoyaltyProgram.md +1 -1
- data/lib/talon_one/api/integration_api.rb +220 -29
- data/lib/talon_one/api/management_api.rb +248 -169
- data/lib/talon_one/models/achievement.rb +27 -15
- data/lib/talon_one/models/achievement_additional_properties.rb +49 -10
- data/lib/talon_one/models/achievement_progress.rb +4 -137
- data/lib/talon_one/models/add_free_item_effect_props.rb +14 -4
- data/lib/talon_one/models/additional_campaign_properties.rb +16 -9
- data/lib/talon_one/models/analytics_product.rb +20 -21
- data/lib/talon_one/models/application_api_key.rb +2 -2
- data/lib/talon_one/models/application_cif.rb +1 -1
- data/lib/talon_one/models/application_cif_expression.rb +1 -1
- data/lib/talon_one/models/application_entity.rb +1 -1
- data/lib/talon_one/models/application_event.rb +1 -1
- data/lib/talon_one/models/application_referee.rb +1 -1
- data/lib/talon_one/models/application_session.rb +2 -2
- data/lib/talon_one/models/audience.rb +1 -1
- data/lib/talon_one/models/base_loyalty_program.rb +3 -3
- data/lib/talon_one/models/campaign.rb +14 -7
- data/lib/talon_one/models/campaign_evaluation_group.rb +1 -1
- data/lib/talon_one/models/campaign_notification_policy.rb +14 -4
- data/lib/talon_one/models/campaign_set.rb +1 -1
- data/lib/talon_one/models/campaign_store_budget.rb +1 -1
- data/lib/talon_one/models/card_expiring_points_notification_policy.rb +14 -4
- data/lib/talon_one/models/catalogs_strikethrough_notification_policy.rb +38 -4
- data/lib/talon_one/models/coupon_creation_job.rb +1 -1
- data/lib/talon_one/models/coupon_deletion_job.rb +1 -1
- data/lib/talon_one/models/coupons_notification_policy.rb +24 -4
- data/lib/talon_one/models/create_achievement.rb +0 -5
- data/lib/talon_one/models/create_application_api_key.rb +2 -2
- data/lib/talon_one/models/customer_inventory.rb +1 -1
- data/lib/talon_one/models/customer_session.rb +1 -1
- data/lib/talon_one/models/customer_session_v2.rb +5 -15
- data/lib/talon_one/models/environment.rb +1 -1
- data/lib/talon_one/models/event.rb +1 -1
- data/lib/talon_one/models/expiring_coupons_notification_policy.rb +14 -4
- data/lib/talon_one/models/expiring_points_notification_policy.rb +14 -4
- data/lib/talon_one/models/inline_response2001.rb +11 -11
- data/lib/talon_one/models/inline_response20010.rb +11 -11
- data/lib/talon_one/models/inline_response20011.rb +11 -11
- data/lib/talon_one/models/inline_response20012.rb +1 -1
- data/lib/talon_one/models/inline_response20013.rb +1 -1
- data/lib/talon_one/models/inline_response20014.rb +1 -1
- data/lib/talon_one/models/inline_response20015.rb +11 -11
- data/lib/talon_one/models/inline_response20016.rb +11 -13
- data/lib/talon_one/models/inline_response20017.rb +7 -11
- data/lib/talon_one/models/inline_response20018.rb +1 -1
- data/lib/talon_one/models/inline_response20019.rb +3 -1
- data/lib/talon_one/models/inline_response2002.rb +11 -11
- data/lib/talon_one/models/inline_response20020.rb +11 -7
- data/lib/talon_one/models/inline_response20021.rb +7 -11
- data/lib/talon_one/models/inline_response20022.rb +7 -11
- data/lib/talon_one/models/inline_response20023.rb +7 -11
- data/lib/talon_one/models/inline_response20024.rb +11 -7
- data/lib/talon_one/models/inline_response20025.rb +11 -7
- data/lib/talon_one/models/inline_response20026.rb +11 -2
- data/lib/talon_one/models/inline_response20027.rb +1 -1
- data/lib/talon_one/models/inline_response20028.rb +11 -11
- data/lib/talon_one/models/inline_response20029.rb +2 -11
- data/lib/talon_one/models/inline_response2003.rb +1 -1
- data/lib/talon_one/models/inline_response20030.rb +6 -1
- data/lib/talon_one/models/inline_response20031.rb +13 -8
- data/lib/talon_one/models/inline_response20032.rb +1 -1
- data/lib/talon_one/models/inline_response20033.rb +8 -13
- data/lib/talon_one/models/inline_response20034.rb +2 -11
- data/lib/talon_one/models/inline_response20035.rb +11 -7
- data/lib/talon_one/models/inline_response20036.rb +1 -1
- data/lib/talon_one/models/inline_response20037.rb +11 -7
- data/lib/talon_one/models/inline_response20038.rb +1 -1
- data/lib/talon_one/models/inline_response20039.rb +1 -1
- data/lib/talon_one/models/inline_response2004.rb +1 -1
- data/lib/talon_one/models/inline_response20040.rb +1 -1
- data/lib/talon_one/models/inline_response20041.rb +7 -11
- data/lib/talon_one/models/inline_response20042.rb +1 -1
- data/lib/talon_one/models/inline_response20043.rb +1 -1
- data/lib/talon_one/models/inline_response20044.rb +11 -11
- data/lib/talon_one/models/inline_response20045.rb +13 -8
- data/lib/talon_one/models/inline_response20046.rb +11 -11
- data/lib/talon_one/models/inline_response20047.rb +11 -7
- data/lib/talon_one/models/inline_response2005.rb +11 -11
- data/lib/talon_one/models/inline_response2006.rb +11 -11
- data/lib/talon_one/models/inline_response2007.rb +1 -1
- data/lib/talon_one/models/inline_response2008.rb +1 -1
- data/lib/talon_one/models/inline_response2009.rb +11 -11
- data/lib/talon_one/models/ledger_info.rb +31 -1
- data/lib/talon_one/models/limit_counter.rb +1 -1
- data/lib/talon_one/models/loyalty_balance.rb +14 -4
- data/lib/talon_one/models/loyalty_balance_with_tier.rb +11 -1
- data/lib/talon_one/models/loyalty_ledger_entry.rb +13 -4
- data/lib/talon_one/models/loyalty_program.rb +3 -3
- data/lib/talon_one/models/loyalty_program_balance.rb +34 -4
- data/lib/talon_one/models/loyalty_sub_ledger.rb +16 -1
- data/lib/talon_one/models/management_key.rb +14 -4
- data/lib/talon_one/models/model_return.rb +1 -1
- data/lib/talon_one/models/new_application_api_key.rb +2 -2
- data/lib/talon_one/models/new_audience.rb +1 -1
- data/lib/talon_one/models/new_campaign_set.rb +1 -1
- data/lib/talon_one/models/new_loyalty_program.rb +3 -3
- data/lib/talon_one/models/new_management_key.rb +11 -1
- data/lib/talon_one/models/pending_points_notification_policy.rb +14 -4
- data/lib/talon_one/models/product.rb +0 -19
- data/lib/talon_one/models/product_search_match.rb +1 -6
- data/lib/talon_one/models/product_unit_analytics.rb +21 -65
- data/lib/talon_one/models/store.rb +1 -1
- data/lib/talon_one/models/strikethrough_effect.rb +24 -4
- data/lib/talon_one/models/strikethrough_labeling_notification.rb +46 -2
- data/lib/talon_one/models/summary_campaign_store_budget.rb +18 -4
- data/lib/talon_one/models/template_def.rb +1 -1
- data/lib/talon_one/models/tier_downgrade_notification_policy.rb +14 -4
- data/lib/talon_one/models/tier_upgrade_notification_policy.rb +14 -4
- data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +11 -1
- data/lib/talon_one/models/update_achievement.rb +2 -2
- data/lib/talon_one/models/update_loyalty_program.rb +3 -3
- data/lib/talon_one/version.rb +1 -1
- data/lib/talon_one.rb +18 -4
- data/spec/api/integration_api_spec.rb +45 -9
- data/spec/api/management_api_spec.rb +75 -60
- data/spec/models/achievement_additional_properties_spec.rb +10 -0
- data/spec/models/achievement_base_spec.rb +103 -0
- data/spec/models/achievement_progress_spec.rb +1 -37
- data/spec/models/achievement_progress_with_definition_spec.rb +137 -0
- data/spec/models/achievement_spec.rb +10 -0
- data/spec/models/achievement_status_entry_spec.rb +137 -0
- data/spec/models/add_free_item_effect_props_spec.rb +6 -0
- data/spec/models/additional_campaign_properties_spec.rb +6 -0
- data/spec/models/analytics_product_spec.rb +3 -3
- data/spec/models/analytics_sku_spec.rb +59 -0
- data/spec/models/application_api_key_spec.rb +1 -1
- data/spec/models/application_cif_references_spec.rb +47 -0
- data/spec/models/base_loyalty_program_spec.rb +1 -1
- data/spec/models/campaign_detail_spec.rb +47 -0
- data/spec/models/campaign_notification_policy_spec.rb +6 -0
- data/spec/models/campaign_spec.rb +6 -0
- data/spec/models/campaign_store_budget_limit_config_spec.rb +73 -0
- data/spec/models/card_expiring_points_notification_policy_spec.rb +6 -0
- data/spec/models/catalogs_strikethrough_notification_policy_spec.rb +6 -0
- data/spec/models/coupons_notification_policy_spec.rb +12 -0
- data/spec/models/create_application_api_key_spec.rb +1 -1
- data/spec/models/customer_session_v2_spec.rb +0 -6
- data/spec/models/expiring_coupons_notification_policy_spec.rb +6 -0
- data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
- data/spec/models/hidden_conditions_effects_spec.rb +59 -0
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +1 -1
- data/spec/models/inline_response20015_spec.rb +1 -1
- data/spec/models/inline_response20016_spec.rb +1 -1
- data/spec/models/inline_response20017_spec.rb +0 -6
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response20020_spec.rb +6 -0
- data/spec/models/inline_response20021_spec.rb +0 -6
- data/spec/models/inline_response20022_spec.rb +0 -6
- data/spec/models/inline_response20023_spec.rb +0 -6
- data/spec/models/inline_response20024_spec.rb +6 -0
- data/spec/models/inline_response20025_spec.rb +6 -0
- data/spec/models/inline_response20026_spec.rb +6 -0
- data/spec/models/inline_response20028_spec.rb +1 -1
- data/spec/models/inline_response20029_spec.rb +0 -6
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response20031_spec.rb +1 -1
- data/spec/models/inline_response20033_spec.rb +1 -1
- data/spec/models/inline_response20034_spec.rb +0 -6
- data/spec/models/inline_response20035_spec.rb +6 -0
- data/spec/models/inline_response20037_spec.rb +6 -0
- data/spec/models/inline_response20041_spec.rb +0 -6
- data/spec/models/inline_response20044_spec.rb +2 -2
- data/spec/models/inline_response20045_spec.rb +1 -1
- data/spec/models/inline_response20046_spec.rb +1 -1
- data/spec/models/inline_response20047_spec.rb +6 -0
- data/spec/models/inline_response20048_spec.rb +47 -0
- data/spec/models/inline_response20049_spec.rb +47 -0
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/ledger_info_spec.rb +12 -0
- data/spec/models/loyalty_balance_spec.rb +6 -0
- data/spec/models/loyalty_balance_with_tier_spec.rb +6 -0
- data/spec/models/loyalty_ledger_entry_flags_spec.rb +41 -0
- data/spec/models/loyalty_ledger_entry_spec.rb +6 -0
- data/spec/models/loyalty_program_balance_spec.rb +12 -0
- data/spec/models/loyalty_program_spec.rb +1 -1
- data/spec/models/loyalty_sub_ledger_spec.rb +6 -0
- data/spec/models/management_key_spec.rb +6 -0
- data/spec/models/message_test_spec.rb +47 -0
- data/spec/models/new_application_api_key_spec.rb +1 -1
- data/spec/models/new_loyalty_program_spec.rb +1 -1
- data/spec/models/new_management_key_spec.rb +6 -0
- data/spec/models/new_message_test_spec.rb +79 -0
- data/spec/models/pending_points_notification_policy_spec.rb +6 -0
- data/spec/models/product_unit_analytics_data_point_spec.rb +65 -0
- data/spec/models/product_unit_analytics_spec.rb +2 -20
- data/spec/models/product_unit_analytics_totals_spec.rb +41 -0
- data/spec/models/sku_unit_analytics_data_point_spec.rb +59 -0
- data/spec/models/sku_unit_analytics_spec.rb +47 -0
- data/spec/models/strikethrough_effect_spec.rb +12 -0
- data/spec/models/strikethrough_labeling_notification_spec.rb +10 -0
- data/spec/models/summary_campaign_store_budget_spec.rb +6 -0
- data/spec/models/tier_downgrade_notification_policy_spec.rb +6 -0
- data/spec/models/tier_upgrade_notification_policy_spec.rb +6 -0
- data/spec/models/tier_will_downgrade_notification_policy_spec.rb +6 -0
- data/spec/models/update_loyalty_program_spec.rb +1 -1
- metadata +37 -3
@@ -14,25 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class AnalyticsProduct
|
17
|
-
# The ID of the
|
17
|
+
# The ID of the product.
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :is_preliminary
|
22
|
-
|
23
|
-
# The name of the analytics-level product.
|
20
|
+
# The name of the product.
|
24
21
|
attr_accessor :name
|
25
22
|
|
26
23
|
# The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
|
27
24
|
attr_accessor :catalog_id
|
28
25
|
|
26
|
+
attr_accessor :units_sold
|
27
|
+
|
29
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
29
|
def self.attribute_map
|
31
30
|
{
|
32
31
|
:'id' => :'id',
|
33
|
-
:'is_preliminary' => :'isPreliminary',
|
34
32
|
:'name' => :'name',
|
35
|
-
:'catalog_id' => :'catalogId'
|
33
|
+
:'catalog_id' => :'catalogId',
|
34
|
+
:'units_sold' => :'unitsSold'
|
36
35
|
}
|
37
36
|
end
|
38
37
|
|
@@ -40,9 +39,9 @@ module TalonOne
|
|
40
39
|
def self.openapi_types
|
41
40
|
{
|
42
41
|
:'id' => :'Integer',
|
43
|
-
:'is_preliminary' => :'Boolean',
|
44
42
|
:'name' => :'String',
|
45
|
-
:'catalog_id' => :'Integer'
|
43
|
+
:'catalog_id' => :'Integer',
|
44
|
+
:'units_sold' => :'AnalyticsDataPointWithTrend'
|
46
45
|
}
|
47
46
|
end
|
48
47
|
|
@@ -71,10 +70,6 @@ module TalonOne
|
|
71
70
|
self.id = attributes[:'id']
|
72
71
|
end
|
73
72
|
|
74
|
-
if attributes.key?(:'is_preliminary')
|
75
|
-
self.is_preliminary = attributes[:'is_preliminary']
|
76
|
-
end
|
77
|
-
|
78
73
|
if attributes.key?(:'name')
|
79
74
|
self.name = attributes[:'name']
|
80
75
|
end
|
@@ -82,6 +77,10 @@ module TalonOne
|
|
82
77
|
if attributes.key?(:'catalog_id')
|
83
78
|
self.catalog_id = attributes[:'catalog_id']
|
84
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'units_sold')
|
82
|
+
self.units_sold = attributes[:'units_sold']
|
83
|
+
end
|
85
84
|
end
|
86
85
|
|
87
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -92,14 +91,14 @@ module TalonOne
|
|
92
91
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
93
92
|
end
|
94
93
|
|
95
|
-
if @is_preliminary.nil?
|
96
|
-
invalid_properties.push('invalid value for "is_preliminary", is_preliminary cannot be nil.')
|
97
|
-
end
|
98
|
-
|
99
94
|
if @name.nil?
|
100
95
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
101
96
|
end
|
102
97
|
|
98
|
+
if @catalog_id.nil?
|
99
|
+
invalid_properties.push('invalid value for "catalog_id", catalog_id cannot be nil.')
|
100
|
+
end
|
101
|
+
|
103
102
|
invalid_properties
|
104
103
|
end
|
105
104
|
|
@@ -107,8 +106,8 @@ module TalonOne
|
|
107
106
|
# @return true if the model is valid
|
108
107
|
def valid?
|
109
108
|
return false if @id.nil?
|
110
|
-
return false if @is_preliminary.nil?
|
111
109
|
return false if @name.nil?
|
110
|
+
return false if @catalog_id.nil?
|
112
111
|
true
|
113
112
|
end
|
114
113
|
|
@@ -118,9 +117,9 @@ module TalonOne
|
|
118
117
|
return true if self.equal?(o)
|
119
118
|
self.class == o.class &&
|
120
119
|
id == o.id &&
|
121
|
-
is_preliminary == o.is_preliminary &&
|
122
120
|
name == o.name &&
|
123
|
-
catalog_id == o.catalog_id
|
121
|
+
catalog_id == o.catalog_id &&
|
122
|
+
units_sold == o.units_sold
|
124
123
|
end
|
125
124
|
|
126
125
|
# @see the `==` method
|
@@ -132,7 +131,7 @@ module TalonOne
|
|
132
131
|
# Calculates hash code according to all attributes.
|
133
132
|
# @return [Integer] Hash code
|
134
133
|
def hash
|
135
|
-
[id,
|
134
|
+
[id, name, catalog_id, units_sold].hash
|
136
135
|
end
|
137
136
|
|
138
137
|
# Builds the object from hash
|
@@ -200,7 +200,7 @@ module TalonOne
|
|
200
200
|
def valid?
|
201
201
|
return false if @title.nil?
|
202
202
|
return false if @expires.nil?
|
203
|
-
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "
|
203
|
+
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
|
204
204
|
return false unless platform_validator.valid?(@platform)
|
205
205
|
type_validator = EnumAttributeValidator.new('String', ["staging"])
|
206
206
|
return false unless type_validator.valid?(@type)
|
@@ -215,7 +215,7 @@ module TalonOne
|
|
215
215
|
# Custom attribute writer method checking allowed values (enum).
|
216
216
|
# @param [Object] platform Object to be assigned
|
217
217
|
def platform=(platform)
|
218
|
-
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "
|
218
|
+
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
|
219
219
|
unless validator.valid?(platform)
|
220
220
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
221
221
|
end
|
@@ -38,7 +38,7 @@ module TalonOne
|
|
38
38
|
# Timestamp of the most recent update to the Application cart item filter.
|
39
39
|
attr_accessor :modified
|
40
40
|
|
41
|
-
# The ID of the
|
41
|
+
# The ID of the Application that owns this entity.
|
42
42
|
attr_accessor :application_id
|
43
43
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -29,7 +29,7 @@ module TalonOne
|
|
29
29
|
# Arbitrary additional JSON data associated with the Application cart item filter.
|
30
30
|
attr_accessor :expression
|
31
31
|
|
32
|
-
# The ID of the
|
32
|
+
# The ID of the Application that owns this entity.
|
33
33
|
attr_accessor :application_id
|
34
34
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class ApplicationEntity
|
17
|
-
# The ID of the
|
17
|
+
# The ID of the Application that owns this entity.
|
18
18
|
attr_accessor :application_id
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -20,7 +20,7 @@ module TalonOne
|
|
20
20
|
# The time this entity was created.
|
21
21
|
attr_accessor :created
|
22
22
|
|
23
|
-
# The ID of the
|
23
|
+
# The ID of the Application that owns this entity.
|
24
24
|
attr_accessor :application_id
|
25
25
|
|
26
26
|
# The globally unique Talon.One ID of the customer that created this entity.
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class ApplicationReferee
|
17
|
-
# The ID of the
|
17
|
+
# The ID of the Application that owns this entity.
|
18
18
|
attr_accessor :application_id
|
19
19
|
|
20
20
|
# Integration ID of the session in which the customer redeemed the referral.
|
@@ -26,7 +26,7 @@ module TalonOne
|
|
26
26
|
# The integration ID of the store. You choose this ID when you create a store.
|
27
27
|
attr_accessor :store_integration_id
|
28
28
|
|
29
|
-
# The ID of the
|
29
|
+
# The ID of the Application that owns this entity.
|
30
30
|
attr_accessor :application_id
|
31
31
|
|
32
32
|
# The globally unique Talon.One ID of the customer that created this entity.
|
@@ -50,7 +50,7 @@ module TalonOne
|
|
50
50
|
# **API V1 only.** A map of labeled discount values, in the same currency as the session. If you are using the V2 endpoints, refer to the `totalDiscounts` property instead.
|
51
51
|
attr_accessor :discounts
|
52
52
|
|
53
|
-
# The total sum of the discounts applied to this session.
|
53
|
+
# The total sum of the discounts applied to this session. **Note:** If more than one session is returned, this value is displayed as `0`.
|
54
54
|
attr_accessor :total_discounts
|
55
55
|
|
56
56
|
# The total sum of the session before any discounts applied.
|
@@ -32,7 +32,7 @@ module TalonOne
|
|
32
32
|
# A description of the audience.
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
|
-
# The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `
|
35
|
+
# The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `Shopify`, `Braze`, or `Iterable`. **Note:** If you do not integrate with any of these platforms, do not use this property.
|
36
36
|
attr_accessor :integration
|
37
37
|
|
38
38
|
# The ID of this audience in the third-party integration. **Note:** To create an audience that doesn't come from a 3rd party platform, do not use this property.
|
@@ -55,7 +55,7 @@ module TalonOne
|
|
55
55
|
|
56
56
|
attr_accessor :card_code_settings
|
57
57
|
|
58
|
-
# The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative.
|
58
|
+
# The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit.
|
59
59
|
attr_accessor :return_policy
|
60
60
|
|
61
61
|
class EnumAttributeValidator
|
@@ -227,7 +227,7 @@ module TalonOne
|
|
227
227
|
return false unless tiers_expiration_policy_validator.valid?(@tiers_expiration_policy)
|
228
228
|
tiers_downgrade_policy_validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
|
229
229
|
return false unless tiers_downgrade_policy_validator.valid?(@tiers_downgrade_policy)
|
230
|
-
return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
|
230
|
+
return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
|
231
231
|
return false unless return_policy_validator.valid?(@return_policy)
|
232
232
|
true
|
233
233
|
end
|
@@ -275,7 +275,7 @@ module TalonOne
|
|
275
275
|
# Custom attribute writer method checking allowed values (enum).
|
276
276
|
# @param [Object] return_policy Object to be assigned
|
277
277
|
def return_policy=(return_policy)
|
278
|
-
validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
|
278
|
+
validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
|
279
279
|
unless validator.valid?(return_policy)
|
280
280
|
fail ArgumentError, "invalid value for \"return_policy\", must be one of #{validator.allowable_values}."
|
281
281
|
end
|
@@ -20,7 +20,7 @@ module TalonOne
|
|
20
20
|
# The exact moment this entity was created.
|
21
21
|
attr_accessor :created
|
22
22
|
|
23
|
-
# The ID of the
|
23
|
+
# The ID of the Application that owns this entity.
|
24
24
|
attr_accessor :application_id
|
25
25
|
|
26
26
|
# The ID of the user associated with this entity.
|
@@ -138,6 +138,9 @@ module TalonOne
|
|
138
138
|
# Indicates whether the linked stores were imported via a CSV file.
|
139
139
|
attr_accessor :stores_imported
|
140
140
|
|
141
|
+
# A list of value map IDs for the campaign.
|
142
|
+
attr_accessor :value_maps_ids
|
143
|
+
|
141
144
|
# The campaign revision state displayed in the Campaign Manager.
|
142
145
|
attr_accessor :revision_frontend_state
|
143
146
|
|
@@ -226,6 +229,7 @@ module TalonOne
|
|
226
229
|
:'template_id' => :'templateId',
|
227
230
|
:'frontend_state' => :'frontendState',
|
228
231
|
:'stores_imported' => :'storesImported',
|
232
|
+
:'value_maps_ids' => :'valueMapsIds',
|
229
233
|
:'revision_frontend_state' => :'revisionFrontendState',
|
230
234
|
:'active_revision_id' => :'activeRevisionId',
|
231
235
|
:'active_revision_version_id' => :'activeRevisionVersionId',
|
@@ -281,6 +285,7 @@ module TalonOne
|
|
281
285
|
:'template_id' => :'Integer',
|
282
286
|
:'frontend_state' => :'String',
|
283
287
|
:'stores_imported' => :'Boolean',
|
288
|
+
:'value_maps_ids' => :'Array<Integer>',
|
284
289
|
:'revision_frontend_state' => :'String',
|
285
290
|
:'active_revision_id' => :'Integer',
|
286
291
|
:'active_revision_version_id' => :'Integer',
|
@@ -496,6 +501,12 @@ module TalonOne
|
|
496
501
|
self.stores_imported = attributes[:'stores_imported']
|
497
502
|
end
|
498
503
|
|
504
|
+
if attributes.key?(:'value_maps_ids')
|
505
|
+
if (value = attributes[:'value_maps_ids']).is_a?(Array)
|
506
|
+
self.value_maps_ids = value
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
499
510
|
if attributes.key?(:'revision_frontend_state')
|
500
511
|
self.revision_frontend_state = attributes[:'revision_frontend_state']
|
501
512
|
end
|
@@ -579,10 +590,6 @@ module TalonOne
|
|
579
590
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
580
591
|
end
|
581
592
|
|
582
|
-
if @budgets.nil?
|
583
|
-
invalid_properties.push('invalid value for "budgets", budgets cannot be nil.')
|
584
|
-
end
|
585
|
-
|
586
593
|
if @frontend_state.nil?
|
587
594
|
invalid_properties.push('invalid value for "frontend_state", frontend_state cannot be nil.')
|
588
595
|
end
|
@@ -613,7 +620,6 @@ module TalonOne
|
|
613
620
|
return false if @type.nil?
|
614
621
|
type_validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
|
615
622
|
return false unless type_validator.valid?(@type)
|
616
|
-
return false if @budgets.nil?
|
617
623
|
return false if @frontend_state.nil?
|
618
624
|
frontend_state_validator = EnumAttributeValidator.new('String', ["expired", "scheduled", "running", "disabled", "archived", "staged"])
|
619
625
|
return false unless frontend_state_validator.valid?(@frontend_state)
|
@@ -724,6 +730,7 @@ module TalonOne
|
|
724
730
|
template_id == o.template_id &&
|
725
731
|
frontend_state == o.frontend_state &&
|
726
732
|
stores_imported == o.stores_imported &&
|
733
|
+
value_maps_ids == o.value_maps_ids &&
|
727
734
|
revision_frontend_state == o.revision_frontend_state &&
|
728
735
|
active_revision_id == o.active_revision_id &&
|
729
736
|
active_revision_version_id == o.active_revision_version_id &&
|
@@ -742,7 +749,7 @@ module TalonOne
|
|
742
749
|
# Calculates hash code according to all attributes.
|
743
750
|
# @return [Integer] Hash code
|
744
751
|
def hash
|
745
|
-
[id, created, application_id, user_id, name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups, type, linked_store_ids, budgets, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, custom_effect_count, referral_creation_count, add_free_item_effect_count, awarded_giveaways_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, call_api_effect_count, reservecoupon_effect_count, last_activity, updated, created_by, updated_by, template_id, frontend_state, stores_imported, revision_frontend_state, active_revision_id, active_revision_version_id, version, current_revision_id, current_revision_version_id, stage_revision].hash
|
752
|
+
[id, created, application_id, user_id, name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups, type, linked_store_ids, budgets, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, custom_effect_count, referral_creation_count, add_free_item_effect_count, awarded_giveaways_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, call_api_effect_count, reservecoupon_effect_count, last_activity, updated, created_by, updated_by, template_id, frontend_state, stores_imported, value_maps_ids, revision_frontend_state, active_revision_id, active_revision_version_id, version, current_revision_id, current_revision_version_id, stage_revision].hash
|
746
753
|
end
|
747
754
|
|
748
755
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class CampaignEvaluationGroup
|
17
|
-
# The ID of the
|
17
|
+
# The ID of the Application that owns this entity.
|
18
18
|
attr_accessor :application_id
|
19
19
|
|
20
20
|
# The name of the campaign evaluation group.
|
@@ -20,11 +20,15 @@ module TalonOne
|
|
20
20
|
# Indicates whether batching is activated.
|
21
21
|
attr_accessor :batching_enabled
|
22
22
|
|
23
|
+
# The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
|
24
|
+
attr_accessor :batch_size
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'name' => :'name',
|
27
|
-
:'batching_enabled' => :'batchingEnabled'
|
30
|
+
:'batching_enabled' => :'batchingEnabled',
|
31
|
+
:'batch_size' => :'batchSize'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module TalonOne
|
|
32
36
|
def self.openapi_types
|
33
37
|
{
|
34
38
|
:'name' => :'String',
|
35
|
-
:'batching_enabled' => :'Boolean'
|
39
|
+
:'batching_enabled' => :'Boolean',
|
40
|
+
:'batch_size' => :'Integer'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -66,6 +71,10 @@ module TalonOne
|
|
66
71
|
else
|
67
72
|
self.batching_enabled = true
|
68
73
|
end
|
74
|
+
|
75
|
+
if attributes.key?(:'batch_size')
|
76
|
+
self.batch_size = attributes[:'batch_size']
|
77
|
+
end
|
69
78
|
end
|
70
79
|
|
71
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -111,7 +120,8 @@ module TalonOne
|
|
111
120
|
return true if self.equal?(o)
|
112
121
|
self.class == o.class &&
|
113
122
|
name == o.name &&
|
114
|
-
batching_enabled == o.batching_enabled
|
123
|
+
batching_enabled == o.batching_enabled &&
|
124
|
+
batch_size == o.batch_size
|
115
125
|
end
|
116
126
|
|
117
127
|
# @see the `==` method
|
@@ -123,7 +133,7 @@ module TalonOne
|
|
123
133
|
# Calculates hash code according to all attributes.
|
124
134
|
# @return [Integer] Hash code
|
125
135
|
def hash
|
126
|
-
[name, batching_enabled].hash
|
136
|
+
[name, batching_enabled, batch_size].hash
|
127
137
|
end
|
128
138
|
|
129
139
|
# Builds the object from hash
|
@@ -22,12 +22,16 @@ module TalonOne
|
|
22
22
|
# Indicates whether batching is activated.
|
23
23
|
attr_accessor :batching_enabled
|
24
24
|
|
25
|
+
# The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
|
26
|
+
attr_accessor :batch_size
|
27
|
+
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'name' => :'name',
|
29
32
|
:'triggers' => :'triggers',
|
30
|
-
:'batching_enabled' => :'batchingEnabled'
|
33
|
+
:'batching_enabled' => :'batchingEnabled',
|
34
|
+
:'batch_size' => :'batchSize'
|
31
35
|
}
|
32
36
|
end
|
33
37
|
|
@@ -36,7 +40,8 @@ module TalonOne
|
|
36
40
|
{
|
37
41
|
:'name' => :'String',
|
38
42
|
:'triggers' => :'Array<CardExpiringPointsNotificationTrigger>',
|
39
|
-
:'batching_enabled' => :'Boolean'
|
43
|
+
:'batching_enabled' => :'Boolean',
|
44
|
+
:'batch_size' => :'Integer'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -76,6 +81,10 @@ module TalonOne
|
|
76
81
|
else
|
77
82
|
self.batching_enabled = true
|
78
83
|
end
|
84
|
+
|
85
|
+
if attributes.key?(:'batch_size')
|
86
|
+
self.batch_size = attributes[:'batch_size']
|
87
|
+
end
|
79
88
|
end
|
80
89
|
|
81
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,7 +136,8 @@ module TalonOne
|
|
127
136
|
self.class == o.class &&
|
128
137
|
name == o.name &&
|
129
138
|
triggers == o.triggers &&
|
130
|
-
batching_enabled == o.batching_enabled
|
139
|
+
batching_enabled == o.batching_enabled &&
|
140
|
+
batch_size == o.batch_size
|
131
141
|
end
|
132
142
|
|
133
143
|
# @see the `==` method
|
@@ -139,7 +149,7 @@ module TalonOne
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Integer] Hash code
|
141
151
|
def hash
|
142
|
-
[name, triggers, batching_enabled].hash
|
152
|
+
[name, triggers, batching_enabled, batch_size].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|
@@ -17,17 +17,22 @@ module TalonOne
|
|
17
17
|
# Notification name.
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
# The number of days in advance that strikethrough pricing updates should be sent.
|
21
|
+
attr_accessor :ahead_of_days_trigger
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'name' => :'name'
|
26
|
+
:'name' => :'name',
|
27
|
+
:'ahead_of_days_trigger' => :'aheadOfDaysTrigger'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.openapi_types
|
29
33
|
{
|
30
|
-
:'name' => :'String'
|
34
|
+
:'name' => :'String',
|
35
|
+
:'ahead_of_days_trigger' => :'Integer'
|
31
36
|
}
|
32
37
|
end
|
33
38
|
|
@@ -55,6 +60,10 @@ module TalonOne
|
|
55
60
|
if attributes.key?(:'name')
|
56
61
|
self.name = attributes[:'name']
|
57
62
|
end
|
63
|
+
|
64
|
+
if attributes.key?(:'ahead_of_days_trigger')
|
65
|
+
self.ahead_of_days_trigger = attributes[:'ahead_of_days_trigger']
|
66
|
+
end
|
58
67
|
end
|
59
68
|
|
60
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -69,6 +78,14 @@ module TalonOne
|
|
69
78
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
70
79
|
end
|
71
80
|
|
81
|
+
if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger > 30
|
82
|
+
invalid_properties.push('invalid value for "ahead_of_days_trigger", must be smaller than or equal to 30.')
|
83
|
+
end
|
84
|
+
|
85
|
+
if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger < 1
|
86
|
+
invalid_properties.push('invalid value for "ahead_of_days_trigger", must be greater than or equal to 1.')
|
87
|
+
end
|
88
|
+
|
72
89
|
invalid_properties
|
73
90
|
end
|
74
91
|
|
@@ -77,6 +94,8 @@ module TalonOne
|
|
77
94
|
def valid?
|
78
95
|
return false if @name.nil?
|
79
96
|
return false if @name.to_s.length < 1
|
97
|
+
return false if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger > 30
|
98
|
+
return false if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger < 1
|
80
99
|
true
|
81
100
|
end
|
82
101
|
|
@@ -94,12 +113,27 @@ module TalonOne
|
|
94
113
|
@name = name
|
95
114
|
end
|
96
115
|
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] ahead_of_days_trigger Value to be assigned
|
118
|
+
def ahead_of_days_trigger=(ahead_of_days_trigger)
|
119
|
+
if !ahead_of_days_trigger.nil? && ahead_of_days_trigger > 30
|
120
|
+
fail ArgumentError, 'invalid value for "ahead_of_days_trigger", must be smaller than or equal to 30.'
|
121
|
+
end
|
122
|
+
|
123
|
+
if !ahead_of_days_trigger.nil? && ahead_of_days_trigger < 1
|
124
|
+
fail ArgumentError, 'invalid value for "ahead_of_days_trigger", must be greater than or equal to 1.'
|
125
|
+
end
|
126
|
+
|
127
|
+
@ahead_of_days_trigger = ahead_of_days_trigger
|
128
|
+
end
|
129
|
+
|
97
130
|
# Checks equality by comparing each attribute.
|
98
131
|
# @param [Object] Object to be compared
|
99
132
|
def ==(o)
|
100
133
|
return true if self.equal?(o)
|
101
134
|
self.class == o.class &&
|
102
|
-
name == o.name
|
135
|
+
name == o.name &&
|
136
|
+
ahead_of_days_trigger == o.ahead_of_days_trigger
|
103
137
|
end
|
104
138
|
|
105
139
|
# @see the `==` method
|
@@ -111,7 +145,7 @@ module TalonOne
|
|
111
145
|
# Calculates hash code according to all attributes.
|
112
146
|
# @return [Integer] Hash code
|
113
147
|
def hash
|
114
|
-
[name].hash
|
148
|
+
[name, ahead_of_days_trigger].hash
|
115
149
|
end
|
116
150
|
|
117
151
|
# Builds the object from hash
|
@@ -23,7 +23,7 @@ module TalonOne
|
|
23
23
|
# The ID of the campaign that owns this entity.
|
24
24
|
attr_accessor :campaign_id
|
25
25
|
|
26
|
-
# The ID of the
|
26
|
+
# The ID of the Application that owns this entity.
|
27
27
|
attr_accessor :application_id
|
28
28
|
|
29
29
|
# The ID of the account that owns this entity.
|
@@ -20,7 +20,7 @@ module TalonOne
|
|
20
20
|
# The time this entity was created.
|
21
21
|
attr_accessor :created
|
22
22
|
|
23
|
-
# The ID of the
|
23
|
+
# The ID of the Application that owns this entity.
|
24
24
|
attr_accessor :application_id
|
25
25
|
|
26
26
|
# The ID of the account that owns this entity.
|
@@ -22,6 +22,12 @@ module TalonOne
|
|
22
22
|
# Indicates whether batching is activated.
|
23
23
|
attr_accessor :batching_enabled
|
24
24
|
|
25
|
+
# Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included.
|
26
|
+
attr_accessor :include_data
|
27
|
+
|
28
|
+
# The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
|
29
|
+
attr_accessor :batch_size
|
30
|
+
|
25
31
|
class EnumAttributeValidator
|
26
32
|
attr_reader :datatype
|
27
33
|
attr_reader :allowable_values
|
@@ -49,7 +55,9 @@ module TalonOne
|
|
49
55
|
{
|
50
56
|
:'name' => :'name',
|
51
57
|
:'scopes' => :'scopes',
|
52
|
-
:'batching_enabled' => :'batchingEnabled'
|
58
|
+
:'batching_enabled' => :'batchingEnabled',
|
59
|
+
:'include_data' => :'includeData',
|
60
|
+
:'batch_size' => :'batchSize'
|
53
61
|
}
|
54
62
|
end
|
55
63
|
|
@@ -58,7 +66,9 @@ module TalonOne
|
|
58
66
|
{
|
59
67
|
:'name' => :'String',
|
60
68
|
:'scopes' => :'Array<String>',
|
61
|
-
:'batching_enabled' => :'Boolean'
|
69
|
+
:'batching_enabled' => :'Boolean',
|
70
|
+
:'include_data' => :'Boolean',
|
71
|
+
:'batch_size' => :'Integer'
|
62
72
|
}
|
63
73
|
end
|
64
74
|
|
@@ -98,6 +108,14 @@ module TalonOne
|
|
98
108
|
else
|
99
109
|
self.batching_enabled = true
|
100
110
|
end
|
111
|
+
|
112
|
+
if attributes.key?(:'include_data')
|
113
|
+
self.include_data = attributes[:'include_data']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'batch_size')
|
117
|
+
self.batch_size = attributes[:'batch_size']
|
118
|
+
end
|
101
119
|
end
|
102
120
|
|
103
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -149,7 +167,9 @@ module TalonOne
|
|
149
167
|
self.class == o.class &&
|
150
168
|
name == o.name &&
|
151
169
|
scopes == o.scopes &&
|
152
|
-
batching_enabled == o.batching_enabled
|
170
|
+
batching_enabled == o.batching_enabled &&
|
171
|
+
include_data == o.include_data &&
|
172
|
+
batch_size == o.batch_size
|
153
173
|
end
|
154
174
|
|
155
175
|
# @see the `==` method
|
@@ -161,7 +181,7 @@ module TalonOne
|
|
161
181
|
# Calculates hash code according to all attributes.
|
162
182
|
# @return [Integer] Hash code
|
163
183
|
def hash
|
164
|
-
[name, scopes, batching_enabled].hash
|
184
|
+
[name, scopes, batching_enabled, include_data, batch_size].hash
|
165
185
|
end
|
166
186
|
|
167
187
|
# Builds the object from hash
|