talon_one 7.0.0 → 9.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 +27 -12
- data/docs/Achievement.md +6 -4
- data/docs/AchievementAdditionalProperties.md +5 -3
- data/docs/AchievementBase.md +35 -0
- data/docs/AchievementProgress.md +3 -15
- data/docs/AchievementProgressWithDefinition.md +45 -0
- data/docs/AchievementStatusEntry.md +45 -0
- data/docs/AddFreeItemEffectProps.md +3 -1
- data/docs/AdditionalCampaignProperties.md +4 -2
- data/docs/AnalyticsProduct.md +6 -6
- data/docs/AnalyticsSKU.md +23 -0
- data/docs/ApplicationCIF.md +1 -1
- data/docs/ApplicationCIFExpression.md +1 -1
- data/docs/ApplicationCIFReferences.md +19 -0
- 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/CampaignDetail.md +19 -0
- 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/CampaignStoreBudgetLimitConfig.md +25 -0
- data/docs/CampaignTemplate.md +3 -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/HiddenConditionsEffects.md +23 -0
- 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/InlineResponse20048.md +19 -0
- data/docs/InlineResponse20049.md +19 -0
- 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 +159 -19
- data/docs/LedgerInfo.md +4 -0
- data/docs/LedgerTransactionLogEntryIntegrationAPI.md +3 -1
- 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/LoyaltyLedgerEntryFlags.md +17 -0
- data/docs/LoyaltyProgram.md +1 -1
- data/docs/LoyaltyProgramBalance.md +5 -1
- data/docs/LoyaltyProgramTransaction.md +3 -1
- data/docs/LoyaltySubLedger.md +2 -0
- data/docs/ManagementApi.md +345 -436
- data/docs/ManagementKey.md +3 -1
- data/docs/MessageTest.md +27 -0
- 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/NewMessageTest.md +29 -0
- data/docs/PendingPointsNotificationPolicy.md +3 -1
- data/docs/ProductSearchMatch.md +2 -2
- data/docs/ProductUnitAnalytics.md +4 -10
- data/docs/ProductUnitAnalyticsDataPoint.md +25 -0
- data/docs/ProductUnitAnalyticsTotals.md +17 -0
- data/docs/SkuUnitAnalytics.md +19 -0
- data/docs/SkuUnitAnalyticsDataPoint.md +23 -0
- data/docs/Store.md +1 -1
- data/docs/StrikethroughEffect.md +5 -1
- data/docs/StrikethroughLabelingNotification.md +6 -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 +223 -29
- data/lib/talon_one/api/management_api.rb +434 -518
- 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_base.rb +377 -0
- data/lib/talon_one/models/achievement_progress.rb +4 -137
- data/lib/talon_one/models/achievement_progress_with_definition.rb +490 -0
- data/lib/talon_one/models/achievement_status_entry.rb +472 -0
- 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/analytics_sku.rb +246 -0
- 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_cif_references.rb +219 -0
- 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_detail.rb +232 -0
- 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/campaign_store_budget_limit_config.rb +322 -0
- data/lib/talon_one/models/campaign_template.rb +16 -4
- 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/delete_user_request.rb +0 -1
- 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/hidden_conditions_effects.rb +246 -0
- 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_response20048.rb +222 -0
- data/lib/talon_one/models/inline_response20049.rb +227 -0
- 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/ledger_transaction_log_entry_integration_api.rb +13 -4
- 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_ledger_entry_flags.rb +208 -0
- 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_program_transaction.rb +13 -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/message_test.rb +227 -0
- 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/new_message_test.rb +322 -0
- 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/product_unit_analytics_data_point.rb +271 -0
- data/lib/talon_one/models/product_unit_analytics_totals.rb +206 -0
- data/lib/talon_one/models/sku_unit_analytics.rb +227 -0
- data/lib/talon_one/models/sku_unit_analytics_data_point.rb +256 -0
- 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 +56 -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 +20 -5
- data/spec/api/integration_api_spec.rb +46 -9
- data/spec/api/management_api_spec.rb +132 -144
- 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/campaign_template_spec.rb +6 -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/ledger_transaction_log_entry_integration_api_spec.rb +6 -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_program_transaction_spec.rb +6 -0
- 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/revision_activation_request_spec.rb +47 -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 +16 -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 +578 -508
@@ -0,0 +1,322 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TalonOne
|
16
|
+
class CampaignStoreBudgetLimitConfig
|
17
|
+
# The limitable action to which this limit applies. For example: - `setDiscount` - `setDiscountEffect` - `redeemCoupon` - `createCoupon`
|
18
|
+
attr_accessor :action
|
19
|
+
|
20
|
+
# The value to set for the limit.
|
21
|
+
attr_accessor :limit
|
22
|
+
|
23
|
+
# The period on which the budget limit recurs.
|
24
|
+
attr_accessor :period
|
25
|
+
|
26
|
+
# The entity that this limit applies to.
|
27
|
+
attr_accessor :entities
|
28
|
+
|
29
|
+
# Indicates whether this limit configuration is managed via a CSV file.
|
30
|
+
attr_accessor :imported
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'action' => :'action',
|
58
|
+
:'limit' => :'limit',
|
59
|
+
:'period' => :'period',
|
60
|
+
:'entities' => :'entities',
|
61
|
+
:'imported' => :'imported'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.openapi_types
|
67
|
+
{
|
68
|
+
:'action' => :'String',
|
69
|
+
:'limit' => :'Float',
|
70
|
+
:'period' => :'String',
|
71
|
+
:'entities' => :'Array<String>',
|
72
|
+
:'imported' => :'Boolean'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# List of attributes with nullable: true
|
77
|
+
def self.openapi_nullable
|
78
|
+
Set.new([
|
79
|
+
])
|
80
|
+
end
|
81
|
+
|
82
|
+
# Initializes the object
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
def initialize(attributes = {})
|
85
|
+
if (!attributes.is_a?(Hash))
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::CampaignStoreBudgetLimitConfig` initialize method"
|
87
|
+
end
|
88
|
+
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::CampaignStoreBudgetLimitConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
|
+
end
|
94
|
+
h[k.to_sym] = v
|
95
|
+
}
|
96
|
+
|
97
|
+
if attributes.key?(:'action')
|
98
|
+
self.action = attributes[:'action']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'limit')
|
102
|
+
self.limit = attributes[:'limit']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'period')
|
106
|
+
self.period = attributes[:'period']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'entities')
|
110
|
+
if (value = attributes[:'entities']).is_a?(Array)
|
111
|
+
self.entities = value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'imported')
|
116
|
+
self.imported = attributes[:'imported']
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
121
|
+
# @return Array for valid properties with the reasons
|
122
|
+
def list_invalid_properties
|
123
|
+
invalid_properties = Array.new
|
124
|
+
if @action.nil?
|
125
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
126
|
+
end
|
127
|
+
|
128
|
+
if @limit.nil?
|
129
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if @limit < 0
|
133
|
+
invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @entities.nil?
|
137
|
+
invalid_properties.push('invalid value for "entities", entities cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @imported.nil?
|
141
|
+
invalid_properties.push('invalid value for "imported", imported cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
invalid_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Check to see if the all the properties in the model are valid
|
148
|
+
# @return true if the model is valid
|
149
|
+
def valid?
|
150
|
+
return false if @action.nil?
|
151
|
+
return false if @limit.nil?
|
152
|
+
return false if @limit < 0
|
153
|
+
period_validator = EnumAttributeValidator.new('String', ["daily", "weekly", "monthly", "yearly"])
|
154
|
+
return false unless period_validator.valid?(@period)
|
155
|
+
return false if @entities.nil?
|
156
|
+
return false if @imported.nil?
|
157
|
+
true
|
158
|
+
end
|
159
|
+
|
160
|
+
# Custom attribute writer method with validation
|
161
|
+
# @param [Object] limit Value to be assigned
|
162
|
+
def limit=(limit)
|
163
|
+
if limit.nil?
|
164
|
+
fail ArgumentError, 'limit cannot be nil'
|
165
|
+
end
|
166
|
+
|
167
|
+
if limit < 0
|
168
|
+
fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
|
169
|
+
end
|
170
|
+
|
171
|
+
@limit = limit
|
172
|
+
end
|
173
|
+
|
174
|
+
# Custom attribute writer method checking allowed values (enum).
|
175
|
+
# @param [Object] period Object to be assigned
|
176
|
+
def period=(period)
|
177
|
+
validator = EnumAttributeValidator.new('String', ["daily", "weekly", "monthly", "yearly"])
|
178
|
+
unless validator.valid?(period)
|
179
|
+
fail ArgumentError, "invalid value for \"period\", must be one of #{validator.allowable_values}."
|
180
|
+
end
|
181
|
+
@period = period
|
182
|
+
end
|
183
|
+
|
184
|
+
# Checks equality by comparing each attribute.
|
185
|
+
# @param [Object] Object to be compared
|
186
|
+
def ==(o)
|
187
|
+
return true if self.equal?(o)
|
188
|
+
self.class == o.class &&
|
189
|
+
action == o.action &&
|
190
|
+
limit == o.limit &&
|
191
|
+
period == o.period &&
|
192
|
+
entities == o.entities &&
|
193
|
+
imported == o.imported
|
194
|
+
end
|
195
|
+
|
196
|
+
# @see the `==` method
|
197
|
+
# @param [Object] Object to be compared
|
198
|
+
def eql?(o)
|
199
|
+
self == o
|
200
|
+
end
|
201
|
+
|
202
|
+
# Calculates hash code according to all attributes.
|
203
|
+
# @return [Integer] Hash code
|
204
|
+
def hash
|
205
|
+
[action, limit, period, entities, imported].hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Builds the object from hash
|
209
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
210
|
+
# @return [Object] Returns the model itself
|
211
|
+
def self.build_from_hash(attributes)
|
212
|
+
new.build_from_hash(attributes)
|
213
|
+
end
|
214
|
+
|
215
|
+
# Builds the object from hash
|
216
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
+
# @return [Object] Returns the model itself
|
218
|
+
def build_from_hash(attributes)
|
219
|
+
return nil unless attributes.is_a?(Hash)
|
220
|
+
self.class.openapi_types.each_pair do |key, type|
|
221
|
+
if type =~ /\AArray<(.*)>/i
|
222
|
+
# check to ensure the input is an array given that the attribute
|
223
|
+
# is documented as an array but the input is not
|
224
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
225
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
226
|
+
end
|
227
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
228
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
229
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
230
|
+
end
|
231
|
+
|
232
|
+
self
|
233
|
+
end
|
234
|
+
|
235
|
+
# Deserializes the data based on type
|
236
|
+
# @param string type Data type
|
237
|
+
# @param string value Value to be deserialized
|
238
|
+
# @return [Object] Deserialized data
|
239
|
+
def _deserialize(type, value)
|
240
|
+
case type.to_sym
|
241
|
+
when :DateTime
|
242
|
+
DateTime.parse(value)
|
243
|
+
when :Date
|
244
|
+
Date.parse(value)
|
245
|
+
when :String
|
246
|
+
value.to_s
|
247
|
+
when :Integer
|
248
|
+
value.to_i
|
249
|
+
when :Float
|
250
|
+
value.to_f
|
251
|
+
when :Boolean
|
252
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
253
|
+
true
|
254
|
+
else
|
255
|
+
false
|
256
|
+
end
|
257
|
+
when :Object
|
258
|
+
# generic object (usually a Hash), return directly
|
259
|
+
value
|
260
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
261
|
+
inner_type = Regexp.last_match[:inner_type]
|
262
|
+
value.map { |v| _deserialize(inner_type, v) }
|
263
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
264
|
+
k_type = Regexp.last_match[:k_type]
|
265
|
+
v_type = Regexp.last_match[:v_type]
|
266
|
+
{}.tap do |hash|
|
267
|
+
value.each do |k, v|
|
268
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
else # model
|
272
|
+
TalonOne.const_get(type).build_from_hash(value)
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# Returns the string representation of the object
|
277
|
+
# @return [String] String presentation of the object
|
278
|
+
def to_s
|
279
|
+
to_hash.to_s
|
280
|
+
end
|
281
|
+
|
282
|
+
# to_body is an alias to to_hash (backward compatibility)
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
284
|
+
def to_body
|
285
|
+
to_hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Returns the object in the form of hash
|
289
|
+
# @return [Hash] Returns the object in the form of hash
|
290
|
+
def to_hash
|
291
|
+
hash = {}
|
292
|
+
self.class.attribute_map.each_pair do |attr, param|
|
293
|
+
value = self.send(attr)
|
294
|
+
if value.nil?
|
295
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
|
+
end
|
298
|
+
|
299
|
+
hash[param] = _to_hash(value)
|
300
|
+
end
|
301
|
+
hash
|
302
|
+
end
|
303
|
+
|
304
|
+
# Outputs non-array value in the form of hash
|
305
|
+
# For object, use to_hash. Otherwise, just return the value
|
306
|
+
# @param [Object] value Any valid value
|
307
|
+
# @return [Hash] Returns the value in the form of hash
|
308
|
+
def _to_hash(value)
|
309
|
+
if value.is_a?(Array)
|
310
|
+
value.compact.map { |v| _to_hash(v) }
|
311
|
+
elsif value.is_a?(Hash)
|
312
|
+
{}.tap do |hash|
|
313
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
314
|
+
end
|
315
|
+
elsif value.respond_to? :to_hash
|
316
|
+
value.to_hash
|
317
|
+
else
|
318
|
+
value
|
319
|
+
end
|
320
|
+
end
|
321
|
+
end
|
322
|
+
end
|
@@ -86,6 +86,9 @@ module TalonOne
|
|
86
86
|
# The IDs of the Applications that are related to this entity.
|
87
87
|
attr_accessor :valid_application_ids
|
88
88
|
|
89
|
+
# A flag indicating whether the user marked the template as a favorite.
|
90
|
+
attr_accessor :is_user_favorite
|
91
|
+
|
89
92
|
class EnumAttributeValidator
|
90
93
|
attr_reader :datatype
|
91
94
|
attr_reader :allowable_values
|
@@ -135,7 +138,8 @@ module TalonOne
|
|
135
138
|
:'campaign_type' => :'campaignType',
|
136
139
|
:'updated' => :'updated',
|
137
140
|
:'updated_by' => :'updatedBy',
|
138
|
-
:'valid_application_ids' => :'validApplicationIds'
|
141
|
+
:'valid_application_ids' => :'validApplicationIds',
|
142
|
+
:'is_user_favorite' => :'isUserFavorite'
|
139
143
|
}
|
140
144
|
end
|
141
145
|
|
@@ -166,7 +170,8 @@ module TalonOne
|
|
166
170
|
:'campaign_type' => :'String',
|
167
171
|
:'updated' => :'DateTime',
|
168
172
|
:'updated_by' => :'String',
|
169
|
-
:'valid_application_ids' => :'Array<Integer>'
|
173
|
+
:'valid_application_ids' => :'Array<Integer>',
|
174
|
+
:'is_user_favorite' => :'Boolean'
|
170
175
|
}
|
171
176
|
end
|
172
177
|
|
@@ -306,6 +311,12 @@ module TalonOne
|
|
306
311
|
self.valid_application_ids = value
|
307
312
|
end
|
308
313
|
end
|
314
|
+
|
315
|
+
if attributes.key?(:'is_user_favorite')
|
316
|
+
self.is_user_favorite = attributes[:'is_user_favorite']
|
317
|
+
else
|
318
|
+
self.is_user_favorite = false
|
319
|
+
end
|
309
320
|
end
|
310
321
|
|
311
322
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -448,7 +459,8 @@ module TalonOne
|
|
448
459
|
campaign_type == o.campaign_type &&
|
449
460
|
updated == o.updated &&
|
450
461
|
updated_by == o.updated_by &&
|
451
|
-
valid_application_ids == o.valid_application_ids
|
462
|
+
valid_application_ids == o.valid_application_ids &&
|
463
|
+
is_user_favorite == o.is_user_favorite
|
452
464
|
end
|
453
465
|
|
454
466
|
# @see the `==` method
|
@@ -460,7 +472,7 @@ module TalonOne
|
|
460
472
|
# Calculates hash code according to all attributes.
|
461
473
|
# @return [Integer] Hash code
|
462
474
|
def hash
|
463
|
-
[id, created, account_id, user_id, name, description, instructions, campaign_attributes, coupon_attributes, state, active_ruleset_id, tags, features, coupon_settings, coupon_reservation_settings, referral_settings, limits, template_params, applications_ids, campaign_collections, default_campaign_group_id, campaign_type, updated, updated_by, valid_application_ids].hash
|
475
|
+
[id, created, account_id, user_id, name, description, instructions, campaign_attributes, coupon_attributes, state, active_ruleset_id, tags, features, coupon_settings, coupon_reservation_settings, referral_settings, limits, template_params, applications_ids, campaign_collections, default_campaign_group_id, campaign_type, updated, updated_by, valid_application_ids, is_user_favorite].hash
|
464
476
|
end
|
465
477
|
|
466
478
|
# 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
|
@@ -192,10 +192,6 @@ module TalonOne
|
|
192
192
|
invalid_properties.push('invalid value for "target", target cannot be nil.')
|
193
193
|
end
|
194
194
|
|
195
|
-
if @period.nil?
|
196
|
-
invalid_properties.push('invalid value for "period", period cannot be nil.')
|
197
|
-
end
|
198
|
-
|
199
195
|
invalid_properties
|
200
196
|
end
|
201
197
|
|
@@ -209,7 +205,6 @@ module TalonOne
|
|
209
205
|
return false if @title.nil?
|
210
206
|
return false if @description.nil?
|
211
207
|
return false if @target.nil?
|
212
|
-
return false if @period.nil?
|
213
208
|
recurrence_policy_validator = EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration"])
|
214
209
|
return false unless recurrence_policy_validator.valid?(@recurrence_policy)
|
215
210
|
activation_policy_validator = EnumAttributeValidator.new('String', ["user_action", "fixed_schedule"])
|
@@ -135,7 +135,7 @@ module TalonOne
|
|
135
135
|
def valid?
|
136
136
|
return false if @title.nil?
|
137
137
|
return false if @expires.nil?
|
138
|
-
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "
|
138
|
+
platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
|
139
139
|
return false unless platform_validator.valid?(@platform)
|
140
140
|
type_validator = EnumAttributeValidator.new('String', ["staging"])
|
141
141
|
return false unless type_validator.valid?(@type)
|
@@ -145,7 +145,7 @@ module TalonOne
|
|
145
145
|
# Custom attribute writer method checking allowed values (enum).
|
146
146
|
# @param [Object] platform Object to be assigned
|
147
147
|
def platform=(platform)
|
148
|
-
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "
|
148
|
+
validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
|
149
149
|
unless validator.valid?(platform)
|
150
150
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
151
151
|
end
|
@@ -47,7 +47,7 @@ module TalonOne
|
|
47
47
|
:'referrals' => :'Array<InventoryReferral>',
|
48
48
|
:'coupons' => :'Array<InventoryCoupon>',
|
49
49
|
:'giveaways' => :'Array<Giveaway>',
|
50
|
-
:'achievements' => :'Array<
|
50
|
+
:'achievements' => :'Array<AchievementProgressWithDefinition>'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -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
|
# ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
|