talon_one 3.0.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +150 -49
- data/docs/AccountAnalytics.md +3 -1
- data/docs/AccountDashboardStatistic.md +0 -2
- data/docs/AccountDashboardStatisticCampaigns.md +4 -2
- data/docs/Achievement.md +39 -0
- data/docs/AchievementAdditionalProperties.md +23 -0
- data/docs/AchievementProgress.md +35 -0
- data/docs/AddItemCatalogAction.md +3 -1
- data/docs/AddLoyaltyPoints.md +2 -2
- data/docs/AddLoyaltyPointsEffectProps.md +1 -1
- data/docs/AddToAudienceEffectProps.md +23 -0
- data/docs/AdditionalCampaignProperties.md +59 -0
- data/docs/Application.md +3 -5
- data/docs/ApplicationAPIKey.md +6 -2
- data/docs/ApplicationAnalyticsDataPoint.md +31 -0
- data/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md +19 -0
- data/docs/ApplicationAnalyticsDataPointAvgSessionValue.md +19 -0
- data/docs/ApplicationAnalyticsDataPointSessionsCount.md +19 -0
- data/docs/ApplicationAnalyticsDataPointTotalRevenue.md +19 -0
- data/docs/ApplicationCampaignAnalytics.md +45 -0
- data/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md +21 -0
- data/docs/ApplicationCampaignAnalyticsAvgSessionValue.md +21 -0
- data/docs/ApplicationCampaignAnalyticsCouponsCount.md +19 -0
- data/docs/ApplicationCampaignAnalyticsSessionsCount.md +21 -0
- data/docs/ApplicationCampaignAnalyticsTotalDiscounts.md +19 -0
- data/docs/ApplicationCampaignAnalyticsTotalRevenue.md +21 -0
- data/docs/ApplicationCustomer.md +2 -2
- data/docs/ApplicationEvent.md +4 -0
- data/docs/ApplicationNotification.md +1 -1
- data/docs/ApplicationSession.md +5 -3
- data/docs/ApplicationStoreEntity.md +17 -0
- data/docs/Audience.md +1 -1
- data/docs/AudienceAnalytics.md +1 -1
- data/docs/AudienceCustomer.md +2 -2
- data/docs/BaseCampaign.md +45 -0
- data/docs/BaseLoyaltyProgram.md +9 -1
- data/docs/BaseNotification.md +5 -1
- data/docs/BaseNotificationEntity.md +3 -1
- data/docs/BaseNotificationWebhook.md +3 -1
- data/docs/BulkOperationOnCampaigns.md +19 -0
- data/docs/Campaign.md +25 -17
- data/docs/CampaignBudget.md +21 -0
- data/docs/CampaignCopy.md +3 -1
- data/docs/CampaignCreatedNotification.md +2 -2
- data/docs/CampaignEvaluationGroup.md +31 -0
- data/docs/CampaignEvaluationPosition.md +21 -0
- data/docs/CampaignEvaluationTreeChangedNotification.md +21 -0
- data/docs/CampaignGroup.md +6 -6
- data/docs/CampaignNotificationPolicy.md +17 -0
- data/docs/CampaignSet.md +3 -5
- data/docs/CampaignSetBranchNode.md +13 -3
- data/docs/CampaignTemplate.md +2 -0
- data/docs/CardExpiringPointsNotificationPolicy.md +21 -0
- data/docs/CardExpiringPointsNotificationTrigger.md +19 -0
- data/docs/CardLedgerPointsEntryIntegrationAPI.md +35 -0
- data/docs/CartItem.md +4 -2
- data/docs/CatalogItem.md +3 -1
- data/docs/ChangeLoyaltyTierLevelEffectProps.md +27 -0
- data/docs/Coupon.md +4 -2
- data/docs/CouponCreationJob.md +1 -1
- data/docs/CouponsNotificationPolicy.md +3 -1
- data/docs/CreateAchievement.md +27 -0
- data/docs/CreateApplicationAPIKey.md +7 -3
- data/docs/CreateTemplateCampaign.md +6 -2
- data/docs/CustomEffectProps.md +1 -1
- data/docs/CustomerInventory.md +3 -1
- data/docs/CustomerProfile.md +2 -2
- data/docs/CustomerProfileAudienceRequestItem.md +1 -1
- data/docs/CustomerProfileIntegrationResponseV2.md +33 -0
- data/docs/CustomerSession.md +1 -1
- data/docs/CustomerSessionV2.md +8 -6
- data/docs/DeactivateUserRequest.md +17 -0
- data/docs/DeleteUserRequest.md +17 -0
- data/docs/Effect.md +2 -0
- data/docs/EffectEntity.md +3 -1
- data/docs/EmailEntity.md +1 -1
- data/docs/Environment.md +2 -0
- data/docs/Event.md +2 -0
- data/docs/EventV2.md +4 -2
- data/docs/ExpiringCouponsNotificationPolicy.md +21 -0
- data/docs/ExpiringCouponsNotificationTrigger.md +19 -0
- data/docs/ExpiringPointsNotificationPolicy.md +4 -2
- data/docs/FuncArgDef.md +1 -1
- data/docs/GetIntegrationCouponRequest.md +19 -0
- data/docs/IdentifiableEntity.md +17 -0
- data/docs/IncreaseAchievementProgressEffectProps.md +29 -0
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +2 -2
- data/docs/InlineResponse20015.md +3 -5
- data/docs/InlineResponse20016.md +3 -3
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +2 -2
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +2 -4
- data/docs/InlineResponse20022.md +3 -3
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +3 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +2 -2
- data/docs/InlineResponse20027.md +2 -2
- data/docs/InlineResponse20028.md +3 -3
- data/docs/InlineResponse20029.md +3 -5
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +3 -3
- data/docs/InlineResponse20032.md +3 -3
- data/docs/InlineResponse20033.md +5 -3
- data/docs/InlineResponse20034.md +1 -1
- data/docs/InlineResponse20035.md +5 -3
- data/docs/InlineResponse20036.md +1 -1
- data/docs/InlineResponse20037.md +1 -1
- data/docs/InlineResponse20038.md +2 -4
- data/docs/InlineResponse20039.md +1 -1
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse20040.md +1 -1
- data/docs/InlineResponse20041.md +19 -0
- data/docs/InlineResponse20042.md +21 -0
- data/docs/InlineResponse20043.md +19 -0
- data/docs/InlineResponse20044.md +19 -0
- data/docs/InlineResponse20045.md +21 -0
- data/docs/InlineResponse20046.md +19 -0
- data/docs/InlineResponse20047.md +19 -0
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +2 -2
- data/docs/InlineResponse2009.md +1 -1
- data/docs/IntegrationApi.md +204 -117
- data/docs/IntegrationCoupon.md +3 -1
- data/docs/IntegrationEvent.md +2 -0
- data/docs/IntegrationEventV2Request.md +4 -2
- data/docs/IntegrationRequest.md +1 -1
- data/docs/IntegrationStoreEntity.md +17 -0
- data/docs/InventoryCoupon.md +4 -2
- data/docs/LedgerPointsEntryIntegrationAPI.md +33 -0
- data/docs/LoginParams.md +1 -1
- data/docs/LoyaltyLedgerTransactions.md +1 -1
- data/docs/LoyaltyProgram.md +15 -1
- data/docs/LoyaltyProgramLedgers.md +2 -0
- data/docs/LoyaltyProgramSubledgers.md +19 -0
- data/docs/LoyaltyProgramTransaction.md +4 -2
- data/docs/ManagementApi.md +3313 -1620
- data/docs/MessageLogEntries.md +19 -0
- data/docs/MessageLogEntry.md +39 -0
- data/docs/MessageLogRequest.md +19 -0
- data/docs/MessageLogResponse.md +21 -0
- data/docs/NewAccountSignUp.md +1 -1
- data/docs/NewApplication.md +6 -10
- data/docs/NewApplicationAPIKey.md +6 -2
- data/docs/NewAudience.md +1 -1
- data/docs/NewBaseNotification.md +2 -0
- data/docs/NewCampaign.md +8 -2
- data/docs/NewCampaignEvaluationGroup.md +27 -0
- data/docs/NewCampaignGroup.md +6 -6
- data/docs/NewCampaignTemplate.md +3 -1
- data/docs/NewCoupons.md +4 -2
- data/docs/NewCustomerSession.md +1 -1
- data/docs/NewCustomerSessionV2.md +5 -3
- data/docs/NewEvent.md +2 -0
- data/docs/NewInternalAudience.md +1 -1
- data/docs/NewInvitation.md +8 -6
- data/docs/NewInviteEmail.md +4 -4
- data/docs/NewLoyaltyProgram.md +8 -0
- data/docs/NewNotificationTest.md +29 -0
- data/docs/NewNotificationWebhook.md +3 -1
- data/docs/NewPicklist.md +1 -1
- data/docs/NewRoleV2.md +23 -0
- data/docs/NewStore.md +23 -0
- data/docs/NewUser.md +1 -1
- data/docs/NotificationActivation.md +17 -0
- data/docs/NotificationListItem.md +23 -0
- data/docs/NotificationTest.md +27 -0
- data/docs/OneTimeCode.md +23 -0
- data/docs/OutgoingIntegrationCleverTapPolicy.md +21 -0
- data/docs/OutgoingIntegrationConfiguration.md +1 -1
- data/docs/OutgoingIntegrationIterablePolicy.md +19 -0
- data/docs/OutgoingIntegrationMoEngagePolicy.md +23 -0
- data/docs/OutgoingIntegrationTemplate.md +33 -0
- data/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +35 -0
- data/docs/OutgoingIntegrationTemplates.md +17 -0
- data/docs/OutgoingIntegrationType.md +1 -1
- data/docs/PatchItemCatalogAction.md +2 -0
- data/docs/PendingPointsNotificationPolicy.md +19 -0
- data/docs/Picklist.md +1 -1
- data/docs/Product.md +17 -0
- data/docs/RemoveFromAudienceEffectProps.md +23 -0
- data/docs/ReturnedCartItem.md +1 -1
- data/docs/Role.md +1 -1
- data/docs/RoleAssign.md +2 -2
- data/docs/RoleV2.md +12 -6
- data/docs/RoleV2ApplicationDetails.md +6 -4
- data/docs/RoleV2Base.md +23 -0
- data/docs/RoleV2PermissionSet.md +3 -3
- data/docs/RoleV2Permissions.md +3 -3
- data/docs/RoleV2RolesGroup.md +21 -0
- data/docs/RollbackAddedLoyaltyPointsEffectProps.md +1 -1
- data/docs/RollbackDiscountEffectProps.md +1 -1
- data/docs/SSOConfig.md +17 -0
- data/docs/SamlConnectionInternal.md +19 -0
- data/docs/SamlLoginEndpoint.md +4 -2
- data/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +1 -1
- data/docs/SetDiscountPerItemEffectProps.md +6 -2
- data/docs/Store.md +33 -0
- data/docs/TemplateArgDef.md +1 -1
- data/docs/Tier.md +5 -1
- data/docs/TierDowngradeNotificationPolicy.md +19 -0
- data/docs/TierUpgradeNotificationPolicy.md +19 -0
- data/docs/TierWillDowngradeNotificationPolicy.md +21 -0
- data/docs/TierWillDowngradeNotificationTrigger.md +19 -0
- data/docs/TimePoint.md +27 -0
- data/docs/TrackEventV2Response.md +33 -0
- data/docs/TwoFAConfig.md +19 -0
- data/docs/UpdateAchievement.md +27 -0
- data/docs/UpdateApplication.md +4 -6
- data/docs/UpdateApplicationAPIKey.md +17 -0
- data/docs/UpdateCampaign.md +9 -3
- data/docs/UpdateCampaignEvaluationGroup.md +27 -0
- data/docs/UpdateCampaignGroup.md +6 -6
- data/docs/UpdateCampaignTemplate.md +3 -1
- data/docs/UpdateCoupon.md +4 -2
- data/docs/UpdateCouponBatch.md +2 -2
- data/docs/UpdateLoyaltyProgram.md +8 -0
- data/docs/UpdatePicklist.md +1 -1
- data/docs/UpdateStore.md +21 -0
- data/docs/UpdateUser.md +8 -6
- data/docs/User.md +19 -13
- data/docs/WebhookWithOutgoingIntegrationDetails.md +45 -0
- data/lib/talon_one/api/integration_api.rb +283 -136
- data/lib/talon_one/api/management_api.rb +2787 -890
- data/lib/talon_one/models/account_additional_cost.rb +3 -3
- data/lib/talon_one/models/account_analytics.rb +19 -4
- data/lib/talon_one/models/account_dashboard_statistic.rb +1 -13
- data/lib/talon_one/models/account_dashboard_statistic_campaigns.rb +20 -5
- data/lib/talon_one/models/achievement.rb +406 -0
- data/lib/talon_one/models/achievement_additional_properties.rb +252 -0
- data/lib/talon_one/models/achievement_progress.rb +410 -0
- data/lib/talon_one/models/add_item_catalog_action.rb +12 -3
- data/lib/talon_one/models/add_loyalty_points.rb +2 -2
- data/lib/talon_one/models/add_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/add_to_audience_effect_props.rb +238 -0
- data/lib/talon_one/models/additional_campaign_properties.rb +463 -0
- data/lib/talon_one/models/application.rb +12 -50
- data/lib/talon_one/models/application_analytics_data_point.rb +273 -0
- data/lib/talon_one/models/application_analytics_data_point_avg_items_per_session.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_avg_session_value.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_sessions_count.rb +216 -0
- data/lib/talon_one/models/application_analytics_data_point_total_revenue.rb +216 -0
- data/lib/talon_one/models/application_api_key.rb +37 -5
- data/lib/talon_one/models/application_campaign_analytics.rb +379 -0
- data/lib/talon_one/models/application_campaign_analytics_avg_items_per_session.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_avg_session_value.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_coupons_count.rb +216 -0
- data/lib/talon_one/models/application_campaign_analytics_sessions_count.rb +225 -0
- data/lib/talon_one/models/application_campaign_analytics_total_discounts.rb +216 -0
- data/lib/talon_one/models/application_campaign_analytics_total_revenue.rb +225 -0
- data/lib/talon_one/models/application_customer.rb +2 -2
- data/lib/talon_one/models/application_event.rb +45 -1
- data/lib/talon_one/models/application_notification.rb +1 -1
- data/lib/talon_one/models/application_session.rb +51 -17
- data/lib/talon_one/models/application_store_entity.rb +207 -0
- data/lib/talon_one/models/attribute.rb +2 -2
- data/lib/talon_one/models/audience_analytics.rb +2 -2
- data/lib/talon_one/models/audience_customer.rb +2 -2
- data/lib/talon_one/models/base_campaign.rb +449 -0
- data/lib/talon_one/models/base_loyalty_program.rb +102 -4
- data/lib/talon_one/models/base_notification.rb +65 -4
- data/lib/talon_one/models/base_notification_entity.rb +16 -4
- data/lib/talon_one/models/base_notification_webhook.rb +16 -4
- data/lib/talon_one/models/bulk_operation_on_campaigns.rb +263 -0
- data/lib/talon_one/models/campaign.rb +105 -20
- data/lib/talon_one/models/campaign_budget.rb +280 -0
- data/lib/talon_one/models/campaign_copy.rb +14 -4
- data/lib/talon_one/models/campaign_created_notification.rb +10 -10
- data/lib/talon_one/models/campaign_evaluation_group.rb +378 -0
- data/lib/talon_one/models/campaign_evaluation_position.rb +243 -0
- data/lib/talon_one/models/campaign_evaluation_tree_changed_notification.rb +236 -0
- data/lib/talon_one/models/campaign_group.rb +4 -4
- data/lib/talon_one/models/campaign_notification_policy.rb +231 -0
- data/lib/talon_one/models/campaign_set.rb +16 -31
- data/lib/talon_one/models/campaign_set_branch_node.rb +100 -6
- data/lib/talon_one/models/campaign_template.rb +30 -1
- data/lib/talon_one/models/card_expiring_points_notification_policy.rb +259 -0
- data/lib/talon_one/models/card_expiring_points_notification_trigger.rb +280 -0
- data/lib/talon_one/models/card_ledger_points_entry_integration_api.rb +410 -0
- data/lib/talon_one/models/cart_item.rb +12 -3
- data/lib/talon_one/models/catalog_item.rb +13 -4
- data/lib/talon_one/models/change_loyalty_tier_level_effect_props.rb +278 -0
- data/lib/talon_one/models/coupon.rb +15 -5
- data/lib/talon_one/models/coupon_creation_job.rb +1 -1
- data/lib/talon_one/models/coupons_notification_policy.rb +16 -4
- data/lib/talon_one/models/create_achievement.rb +320 -0
- data/lib/talon_one/models/create_application_api_key.rb +40 -8
- data/lib/talon_one/models/create_template_campaign.rb +27 -5
- data/lib/talon_one/models/custom_effect_props.rb +1 -1
- data/lib/talon_one/models/customer_inventory.rb +15 -4
- data/lib/talon_one/models/customer_profile.rb +2 -2
- data/lib/talon_one/models/customer_profile_audience_request_item.rb +1 -1
- data/lib/talon_one/models/customer_profile_integration_response_v2.rb +307 -0
- data/lib/talon_one/models/customer_session.rb +1 -1
- data/lib/talon_one/models/customer_session_v2.rb +41 -7
- data/lib/talon_one/models/deactivate_user_request.rb +213 -0
- data/lib/talon_one/models/delete_user_request.rb +213 -0
- data/lib/talon_one/models/effect.rb +11 -1
- data/lib/talon_one/models/effect_entity.rb +14 -4
- data/lib/talon_one/models/email_entity.rb +1 -1
- data/lib/talon_one/models/environment.rb +13 -1
- data/lib/talon_one/models/event.rb +35 -1
- data/lib/talon_one/models/event_v2.rb +37 -3
- data/lib/talon_one/models/expiring_coupons_notification_policy.rb +259 -0
- data/lib/talon_one/models/expiring_coupons_notification_trigger.rb +280 -0
- data/lib/talon_one/models/expiring_points_notification_policy.rb +16 -4
- data/lib/talon_one/models/func_arg_def.rb +0 -5
- data/lib/talon_one/models/get_integration_coupon_request.rb +257 -0
- data/lib/talon_one/models/identifiable_entity.rb +212 -0
- data/lib/talon_one/models/increase_achievement_progress_effect_props.rb +298 -0
- data/lib/talon_one/models/inline_response20010.rb +1 -1
- data/lib/talon_one/models/inline_response20011.rb +1 -1
- data/lib/talon_one/models/inline_response20012.rb +1 -1
- data/lib/talon_one/models/inline_response20013.rb +11 -11
- data/lib/talon_one/models/inline_response20014.rb +1 -3
- data/lib/talon_one/models/inline_response20015.rb +7 -11
- data/lib/talon_one/models/inline_response20016.rb +3 -1
- data/lib/talon_one/models/inline_response20017.rb +1 -1
- data/lib/talon_one/models/inline_response20018.rb +1 -1
- data/lib/talon_one/models/inline_response20019.rb +10 -10
- data/lib/talon_one/models/inline_response20020.rb +1 -1
- data/lib/talon_one/models/inline_response20021.rb +7 -11
- data/lib/talon_one/models/inline_response20022.rb +10 -10
- data/lib/talon_one/models/inline_response20023.rb +1 -1
- data/lib/talon_one/models/inline_response20024.rb +10 -6
- data/lib/talon_one/models/inline_response20025.rb +1 -1
- data/lib/talon_one/models/inline_response20026.rb +6 -1
- data/lib/talon_one/models/inline_response20027.rb +1 -6
- data/lib/talon_one/models/inline_response20028.rb +11 -11
- data/lib/talon_one/models/inline_response20029.rb +7 -11
- data/lib/talon_one/models/inline_response2003.rb +11 -11
- data/lib/talon_one/models/inline_response20030.rb +1 -1
- data/lib/talon_one/models/inline_response20031.rb +8 -13
- data/lib/talon_one/models/inline_response20032.rb +8 -13
- data/lib/talon_one/models/inline_response20033.rb +11 -7
- data/lib/talon_one/models/inline_response20034.rb +1 -1
- 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 +1 -1
- data/lib/talon_one/models/inline_response20038.rb +7 -11
- data/lib/talon_one/models/inline_response20039.rb +1 -1
- data/lib/talon_one/models/inline_response2004.rb +11 -11
- data/lib/talon_one/models/inline_response20040.rb +1 -1
- data/lib/talon_one/models/inline_response20041.rb +227 -0
- data/lib/talon_one/models/inline_response20042.rb +231 -0
- data/lib/talon_one/models/inline_response20043.rb +227 -0
- data/lib/talon_one/models/inline_response20044.rb +227 -0
- data/lib/talon_one/models/inline_response20045.rb +231 -0
- data/lib/talon_one/models/inline_response20046.rb +222 -0
- data/lib/talon_one/models/inline_response20047.rb +227 -0
- data/lib/talon_one/models/inline_response2005.rb +1 -1
- data/lib/talon_one/models/inline_response2006.rb +1 -1
- data/lib/talon_one/models/inline_response2007.rb +1 -1
- data/lib/talon_one/models/inline_response2008.rb +10 -10
- data/lib/talon_one/models/inline_response2009.rb +1 -1
- data/lib/talon_one/models/integration_coupon.rb +12 -2
- data/lib/talon_one/models/integration_event.rb +35 -1
- data/lib/talon_one/models/integration_event_v2_request.rb +37 -3
- data/lib/talon_one/models/integration_request.rb +1 -1
- data/lib/talon_one/models/integration_store_entity.rb +231 -0
- data/lib/talon_one/models/inventory_coupon.rb +13 -3
- data/lib/talon_one/models/ledger_points_entry_integration_api.rb +400 -0
- data/lib/talon_one/models/login_params.rb +1 -1
- data/lib/talon_one/models/loyalty.rb +1 -1
- data/lib/talon_one/models/loyalty_ledger_transactions.rb +1 -1
- data/lib/talon_one/models/loyalty_program.rb +136 -4
- data/lib/talon_one/models/loyalty_program_ledgers.rb +12 -2
- data/lib/talon_one/models/loyalty_program_subledgers.rb +230 -0
- data/lib/talon_one/models/loyalty_program_transaction.rb +13 -3
- data/lib/talon_one/models/message_log_entries.rb +241 -0
- data/lib/talon_one/models/message_log_entry.rb +395 -0
- data/lib/talon_one/models/message_log_request.rb +249 -0
- data/lib/talon_one/models/message_log_response.rb +264 -0
- data/lib/talon_one/models/new_account_sign_up.rb +1 -1
- data/lib/talon_one/models/new_additional_cost.rb +3 -3
- data/lib/talon_one/models/new_application.rb +2 -51
- data/lib/talon_one/models/new_application_api_key.rb +37 -5
- data/lib/talon_one/models/new_attribute.rb +2 -2
- data/lib/talon_one/models/new_base_notification.rb +13 -1
- data/lib/talon_one/models/new_campaign.rb +52 -5
- data/lib/talon_one/models/new_campaign_evaluation_group.rb +347 -0
- data/lib/talon_one/models/new_campaign_group.rb +4 -4
- data/lib/talon_one/models/new_campaign_template.rb +33 -4
- data/lib/talon_one/models/new_coupons.rb +15 -5
- data/lib/talon_one/models/new_customer_session.rb +1 -1
- data/lib/talon_one/models/new_customer_session_v2.rb +38 -4
- data/lib/talon_one/models/new_event.rb +35 -1
- data/lib/talon_one/models/new_invitation.rb +24 -18
- data/lib/talon_one/models/new_invite_email.rb +2 -38
- data/lib/talon_one/models/new_loyalty_program.rb +99 -1
- data/lib/talon_one/models/new_notification_test.rb +327 -0
- data/lib/talon_one/models/new_notification_webhook.rb +16 -4
- data/lib/talon_one/models/new_picklist.rb +1 -1
- data/lib/talon_one/models/new_role_v2.rb +249 -0
- data/lib/talon_one/models/new_store.rb +309 -0
- data/lib/talon_one/models/new_user.rb +1 -1
- data/lib/talon_one/models/notification_activation.rb +212 -0
- data/lib/talon_one/models/notification_list_item.rb +257 -0
- data/lib/talon_one/models/notification_test.rb +227 -0
- data/lib/talon_one/models/one_time_code.rb +252 -0
- data/lib/talon_one/models/outgoing_integration_clever_tap_policy.rb +242 -0
- data/lib/talon_one/models/outgoing_integration_configuration.rb +1 -0
- data/lib/talon_one/models/outgoing_integration_iterable_policy.rb +227 -0
- data/lib/talon_one/models/outgoing_integration_mo_engage_policy.rb +257 -0
- data/lib/talon_one/models/outgoing_integration_template.rb +409 -0
- data/lib/talon_one/models/outgoing_integration_template_with_configuration_details.rb +425 -0
- data/lib/talon_one/models/outgoing_integration_templates.rb +209 -0
- data/lib/talon_one/models/patch_item_catalog_action.rb +11 -2
- data/lib/talon_one/models/pending_points_notification_policy.rb +243 -0
- data/lib/talon_one/models/picklist.rb +1 -1
- data/lib/talon_one/models/product.rb +232 -0
- data/lib/talon_one/models/remove_from_audience_effect_props.rb +238 -0
- data/lib/talon_one/models/returned_cart_item.rb +1 -1
- data/lib/talon_one/models/role.rb +1 -1
- data/lib/talon_one/models/role_assign.rb +2 -2
- data/lib/talon_one/models/role_v2.rb +63 -12
- data/lib/talon_one/models/role_v2_application_details.rb +17 -7
- data/lib/talon_one/models/role_v2_base.rb +238 -0
- data/lib/talon_one/models/role_v2_permission_set.rb +12 -11
- data/lib/talon_one/models/role_v2_permissions.rb +2 -2
- data/lib/talon_one/models/role_v2_roles_group.rb +233 -0
- data/lib/talon_one/models/rollback_added_loyalty_points_effect_props.rb +1 -1
- data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
- data/lib/talon_one/models/saml_connection_internal.rb +265 -0
- data/lib/talon_one/models/saml_login_endpoint.rb +17 -2
- data/lib/talon_one/models/set_discount_per_additional_cost_per_item_effect_props.rb +1 -1
- data/lib/talon_one/models/set_discount_per_item_effect_props.rb +25 -5
- data/lib/talon_one/models/sso_config.rb +212 -0
- data/lib/talon_one/models/store.rb +381 -0
- data/lib/talon_one/models/talang_attribute.rb +2 -2
- data/lib/talon_one/models/template_arg_def.rb +0 -5
- data/lib/talon_one/models/tier.rb +58 -4
- data/lib/talon_one/models/tier_downgrade_notification_policy.rb +243 -0
- data/lib/talon_one/models/tier_upgrade_notification_policy.rb +243 -0
- data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +259 -0
- data/lib/talon_one/models/tier_will_downgrade_notification_trigger.rb +261 -0
- data/lib/talon_one/models/time_point.rb +345 -0
- data/lib/talon_one/models/track_event_v2_response.rb +307 -0
- data/lib/talon_one/models/two_fa_config.rb +222 -0
- data/lib/talon_one/models/update_achievement.rb +291 -0
- data/lib/talon_one/models/update_application.rb +15 -53
- data/lib/talon_one/models/update_application_api_key.rb +212 -0
- data/lib/talon_one/models/update_campaign.rb +52 -6
- data/lib/talon_one/models/update_campaign_evaluation_group.rb +348 -0
- data/lib/talon_one/models/update_campaign_group.rb +4 -4
- data/lib/talon_one/models/update_campaign_template.rb +28 -4
- data/lib/talon_one/models/update_coupon.rb +15 -5
- data/lib/talon_one/models/update_coupon_batch.rb +2 -2
- data/lib/talon_one/models/update_loyalty_program.rb +99 -1
- data/lib/talon_one/models/update_picklist.rb +1 -1
- data/lib/talon_one/models/update_store.rb +265 -0
- data/lib/talon_one/models/update_user.rb +25 -14
- data/lib/talon_one/models/user.rb +73 -42
- data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +449 -0
- data/lib/talon_one/version.rb +1 -1
- data/lib/talon_one.rb +86 -16
- data/spec/api/integration_api_spec.rb +74 -47
- data/spec/api/management_api_spec.rb +669 -299
- data/spec/models/account_analytics_spec.rb +6 -0
- data/spec/models/account_dashboard_statistic_campaigns_spec.rb +6 -0
- data/spec/models/account_dashboard_statistic_spec.rb +0 -6
- data/spec/models/achievement_additional_properties_spec.rb +59 -0
- data/spec/models/achievement_progress_spec.rb +99 -0
- data/spec/models/achievement_spec.rb +107 -0
- data/spec/models/add_item_catalog_action_spec.rb +6 -0
- data/spec/models/add_to_audience_effect_props_spec.rb +59 -0
- data/spec/models/additional_campaign_properties_spec.rb +171 -0
- data/spec/models/application_analytics_data_point_avg_items_per_session_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_avg_session_value_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_sessions_count_spec.rb +47 -0
- data/spec/models/application_analytics_data_point_spec.rb +83 -0
- data/spec/models/application_analytics_data_point_total_revenue_spec.rb +47 -0
- data/spec/models/application_api_key_spec.rb +17 -1
- data/spec/models/application_campaign_analytics_avg_items_per_session_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_avg_session_value_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_coupons_count_spec.rb +47 -0
- data/spec/models/application_campaign_analytics_sessions_count_spec.rb +53 -0
- data/spec/models/application_campaign_analytics_spec.rb +129 -0
- data/spec/models/application_campaign_analytics_total_discounts_spec.rb +47 -0
- data/spec/models/application_campaign_analytics_total_revenue_spec.rb +53 -0
- data/spec/models/application_event_spec.rb +12 -0
- data/spec/models/application_session_spec.rb +9 -3
- data/spec/models/application_spec.rb +6 -20
- data/spec/models/application_store_entity_spec.rb +41 -0
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/base_campaign_spec.rb +137 -0
- data/spec/models/base_loyalty_program_spec.rb +36 -0
- data/spec/models/base_notification_entity_spec.rb +6 -0
- data/spec/models/base_notification_spec.rb +16 -0
- data/spec/models/base_notification_webhook_spec.rb +6 -0
- data/spec/models/bulk_operation_on_campaigns_spec.rb +51 -0
- data/spec/models/campaign_budget_spec.rb +53 -0
- data/spec/models/campaign_copy_spec.rb +6 -0
- data/spec/models/campaign_created_notification_spec.rb +1 -1
- data/spec/models/campaign_evaluation_group_spec.rb +91 -0
- data/spec/models/campaign_evaluation_position_spec.rb +53 -0
- data/spec/models/campaign_evaluation_tree_changed_notification_spec.rb +53 -0
- data/spec/models/campaign_notification_policy_spec.rb +41 -0
- data/spec/models/campaign_set_branch_node_spec.rb +38 -0
- data/spec/models/campaign_set_spec.rb +2 -8
- data/spec/models/campaign_spec.rb +33 -1
- data/spec/models/campaign_template_spec.rb +11 -1
- data/spec/models/card_expiring_points_notification_policy_spec.rb +53 -0
- data/spec/models/card_expiring_points_notification_trigger_spec.rb +51 -0
- data/spec/models/card_ledger_points_entry_integration_api_spec.rb +95 -0
- data/spec/models/cart_item_spec.rb +6 -0
- data/spec/models/catalog_item_spec.rb +6 -0
- data/spec/models/change_loyalty_tier_level_effect_props_spec.rb +71 -0
- data/spec/models/coupon_spec.rb +6 -0
- data/spec/models/coupons_notification_policy_spec.rb +6 -0
- data/spec/models/create_achievement_spec.rb +71 -0
- data/spec/models/create_application_api_key_spec.rb +17 -1
- data/spec/models/create_template_campaign_spec.rb +12 -0
- data/spec/models/customer_inventory_spec.rb +6 -0
- data/spec/models/customer_profile_integration_response_v2_spec.rb +89 -0
- data/spec/models/customer_session_v2_spec.rb +6 -0
- data/spec/models/deactivate_user_request_spec.rb +41 -0
- data/spec/models/delete_user_request_spec.rb +41 -0
- data/spec/models/effect_entity_spec.rb +6 -0
- data/spec/models/effect_spec.rb +6 -0
- data/spec/models/environment_spec.rb +6 -0
- data/spec/models/event_spec.rb +6 -0
- data/spec/models/event_v2_spec.rb +6 -0
- data/spec/models/expiring_coupons_notification_policy_spec.rb +53 -0
- data/spec/models/expiring_coupons_notification_trigger_spec.rb +51 -0
- data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
- data/spec/models/get_integration_coupon_request_spec.rb +47 -0
- data/spec/models/identifiable_entity_spec.rb +41 -0
- data/spec/models/increase_achievement_progress_effect_props_spec.rb +77 -0
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20015_spec.rb +0 -6
- data/spec/models/inline_response20019_spec.rb +1 -1
- data/spec/models/inline_response20021_spec.rb +0 -6
- data/spec/models/inline_response20022_spec.rb +2 -2
- data/spec/models/inline_response20024_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_response20031_spec.rb +1 -1
- data/spec/models/inline_response20032_spec.rb +1 -1
- data/spec/models/inline_response20033_spec.rb +6 -0
- data/spec/models/inline_response20035_spec.rb +6 -0
- data/spec/models/inline_response20038_spec.rb +0 -6
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response20041_spec.rb +47 -0
- data/spec/models/inline_response20042_spec.rb +53 -0
- data/spec/models/inline_response20043_spec.rb +47 -0
- data/spec/models/inline_response20044_spec.rb +47 -0
- data/spec/models/inline_response20045_spec.rb +53 -0
- data/spec/models/inline_response20046_spec.rb +47 -0
- data/spec/models/inline_response20047_spec.rb +47 -0
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/integration_coupon_spec.rb +6 -0
- data/spec/models/integration_event_spec.rb +6 -0
- data/spec/models/integration_event_v2_request_spec.rb +6 -0
- data/spec/models/integration_store_entity_spec.rb +41 -0
- data/spec/models/inventory_coupon_spec.rb +6 -0
- data/spec/models/ledger_points_entry_integration_api_spec.rb +89 -0
- data/spec/models/loyalty_program_ledgers_spec.rb +6 -0
- data/spec/models/loyalty_program_spec.rb +54 -0
- data/spec/models/loyalty_program_subledgers_spec.rb +47 -0
- data/spec/models/loyalty_program_transaction_spec.rb +6 -0
- data/spec/models/message_log_entries_spec.rb +47 -0
- data/spec/models/message_log_entry_spec.rb +111 -0
- data/spec/models/message_log_request_spec.rb +47 -0
- data/spec/models/message_log_response_spec.rb +53 -0
- data/spec/models/new_application_api_key_spec.rb +17 -1
- data/spec/models/new_application_spec.rb +0 -20
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_base_notification_spec.rb +6 -0
- data/spec/models/new_campaign_evaluation_group_spec.rb +79 -0
- data/spec/models/new_campaign_spec.rb +23 -1
- data/spec/models/new_campaign_template_spec.rb +11 -1
- data/spec/models/new_coupons_spec.rb +6 -0
- data/spec/models/new_customer_session_v2_spec.rb +6 -0
- data/spec/models/new_event_spec.rb +6 -0
- data/spec/models/new_invitation_spec.rb +7 -1
- data/spec/models/new_loyalty_program_spec.rb +36 -0
- data/spec/models/new_notification_test_spec.rb +79 -0
- data/spec/models/new_notification_webhook_spec.rb +6 -0
- data/spec/models/new_role_v2_spec.rb +59 -0
- data/spec/models/new_store_spec.rb +59 -0
- data/spec/models/notification_activation_spec.rb +41 -0
- data/spec/models/notification_list_item_spec.rb +59 -0
- data/spec/models/notification_test_spec.rb +47 -0
- data/spec/models/one_time_code_spec.rb +59 -0
- data/spec/models/outgoing_integration_clever_tap_policy_spec.rb +53 -0
- data/spec/models/outgoing_integration_iterable_policy_spec.rb +47 -0
- data/spec/models/outgoing_integration_mo_engage_policy_spec.rb +59 -0
- data/spec/models/outgoing_integration_template_spec.rb +87 -0
- data/spec/models/outgoing_integration_template_with_configuration_details_spec.rb +93 -0
- data/spec/models/outgoing_integration_templates_spec.rb +41 -0
- data/spec/models/patch_item_catalog_action_spec.rb +6 -0
- data/spec/models/pending_points_notification_policy_spec.rb +47 -0
- data/spec/models/product_spec.rb +41 -0
- data/spec/models/remove_from_audience_effect_props_spec.rb +59 -0
- data/spec/models/role_v2_application_details_spec.rb +6 -0
- data/spec/models/role_v2_base_spec.rb +59 -0
- data/spec/models/role_v2_permission_set_spec.rb +1 -1
- data/spec/models/role_v2_roles_group_spec.rb +53 -0
- data/spec/models/role_v2_spec.rb +21 -3
- data/spec/models/saml_connection_internal_spec.rb +47 -0
- data/spec/models/saml_login_endpoint_spec.rb +6 -0
- data/spec/models/set_discount_per_item_effect_props_spec.rb +12 -0
- data/spec/models/sso_config_spec.rb +41 -0
- data/spec/models/store_spec.rb +89 -0
- data/spec/models/talang_attribute_spec.rb +1 -1
- data/spec/models/tier_downgrade_notification_policy_spec.rb +47 -0
- data/spec/models/tier_spec.rb +16 -0
- data/spec/models/tier_upgrade_notification_policy_spec.rb +47 -0
- data/spec/models/tier_will_downgrade_notification_policy_spec.rb +53 -0
- data/spec/models/tier_will_downgrade_notification_trigger_spec.rb +51 -0
- data/spec/models/time_point_spec.rb +71 -0
- data/spec/models/track_event_v2_response_spec.rb +89 -0
- data/spec/models/two_fa_config_spec.rb +47 -0
- data/spec/models/update_achievement_spec.rb +71 -0
- data/spec/models/update_application_api_key_spec.rb +41 -0
- data/spec/models/update_application_spec.rb +6 -20
- data/spec/models/update_campaign_evaluation_group_spec.rb +79 -0
- data/spec/models/update_campaign_spec.rb +23 -1
- data/spec/models/update_campaign_template_spec.rb +11 -1
- data/spec/models/update_coupon_spec.rb +6 -0
- data/spec/models/update_loyalty_program_spec.rb +36 -0
- data/spec/models/update_store_spec.rb +53 -0
- data/spec/models/update_user_spec.rb +12 -6
- data/spec/models/user_spec.rb +23 -5
- data/spec/models/webhook_with_outgoing_integration_details_spec.rb +123 -0
- metadata +713 -369
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TalonOne
|
16
|
+
#
|
16
17
|
class NewCampaign
|
17
18
|
# A user-facing name for this campaign.
|
18
19
|
attr_accessor :name
|
@@ -23,7 +24,7 @@ module TalonOne
|
|
23
24
|
# Timestamp when the campaign will become active.
|
24
25
|
attr_accessor :start_time
|
25
26
|
|
26
|
-
# Timestamp the campaign will become inactive.
|
27
|
+
# Timestamp when the campaign will become inactive.
|
27
28
|
attr_accessor :end_time
|
28
29
|
|
29
30
|
# Arbitrary properties associated with this campaign.
|
@@ -51,6 +52,15 @@ module TalonOne
|
|
51
52
|
# The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to.
|
52
53
|
attr_accessor :campaign_groups
|
53
54
|
|
55
|
+
# The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items.
|
56
|
+
attr_accessor :type
|
57
|
+
|
58
|
+
# A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store.
|
59
|
+
attr_accessor :linked_store_ids
|
60
|
+
|
61
|
+
# The ID of the campaign evaluation group the campaign belongs to.
|
62
|
+
attr_accessor :evaluation_group_id
|
63
|
+
|
54
64
|
class EnumAttributeValidator
|
55
65
|
attr_reader :datatype
|
56
66
|
attr_reader :allowable_values
|
@@ -88,7 +98,10 @@ module TalonOne
|
|
88
98
|
:'coupon_settings' => :'couponSettings',
|
89
99
|
:'referral_settings' => :'referralSettings',
|
90
100
|
:'limits' => :'limits',
|
91
|
-
:'campaign_groups' => :'campaignGroups'
|
101
|
+
:'campaign_groups' => :'campaignGroups',
|
102
|
+
:'type' => :'type',
|
103
|
+
:'linked_store_ids' => :'linkedStoreIds',
|
104
|
+
:'evaluation_group_id' => :'evaluationGroupId'
|
92
105
|
}
|
93
106
|
end
|
94
107
|
|
@@ -107,7 +120,10 @@ module TalonOne
|
|
107
120
|
:'coupon_settings' => :'CodeGeneratorSettings',
|
108
121
|
:'referral_settings' => :'CodeGeneratorSettings',
|
109
122
|
:'limits' => :'Array<LimitConfig>',
|
110
|
-
:'campaign_groups' => :'Array<Integer>'
|
123
|
+
:'campaign_groups' => :'Array<Integer>',
|
124
|
+
:'type' => :'String',
|
125
|
+
:'linked_store_ids' => :'Array<Integer>',
|
126
|
+
:'evaluation_group_id' => :'Integer'
|
111
127
|
}
|
112
128
|
end
|
113
129
|
|
@@ -193,6 +209,22 @@ module TalonOne
|
|
193
209
|
self.campaign_groups = value
|
194
210
|
end
|
195
211
|
end
|
212
|
+
|
213
|
+
if attributes.key?(:'type')
|
214
|
+
self.type = attributes[:'type']
|
215
|
+
else
|
216
|
+
self.type = 'advanced'
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.key?(:'linked_store_ids')
|
220
|
+
if (value = attributes[:'linked_store_ids']).is_a?(Array)
|
221
|
+
self.linked_store_ids = value
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
if attributes.key?(:'evaluation_group_id')
|
226
|
+
self.evaluation_group_id = attributes[:'evaluation_group_id']
|
227
|
+
end
|
196
228
|
end
|
197
229
|
|
198
230
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -237,6 +269,8 @@ module TalonOne
|
|
237
269
|
return false if @tags.nil?
|
238
270
|
return false if @features.nil?
|
239
271
|
return false if @limits.nil?
|
272
|
+
type_validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
|
273
|
+
return false unless type_validator.valid?(@type)
|
240
274
|
true
|
241
275
|
end
|
242
276
|
|
@@ -264,6 +298,16 @@ module TalonOne
|
|
264
298
|
@state = state
|
265
299
|
end
|
266
300
|
|
301
|
+
# Custom attribute writer method checking allowed values (enum).
|
302
|
+
# @param [Object] type Object to be assigned
|
303
|
+
def type=(type)
|
304
|
+
validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
|
305
|
+
unless validator.valid?(type)
|
306
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
307
|
+
end
|
308
|
+
@type = type
|
309
|
+
end
|
310
|
+
|
267
311
|
# Checks equality by comparing each attribute.
|
268
312
|
# @param [Object] Object to be compared
|
269
313
|
def ==(o)
|
@@ -281,7 +325,10 @@ module TalonOne
|
|
281
325
|
coupon_settings == o.coupon_settings &&
|
282
326
|
referral_settings == o.referral_settings &&
|
283
327
|
limits == o.limits &&
|
284
|
-
campaign_groups == o.campaign_groups
|
328
|
+
campaign_groups == o.campaign_groups &&
|
329
|
+
type == o.type &&
|
330
|
+
linked_store_ids == o.linked_store_ids &&
|
331
|
+
evaluation_group_id == o.evaluation_group_id
|
285
332
|
end
|
286
333
|
|
287
334
|
# @see the `==` method
|
@@ -293,7 +340,7 @@ module TalonOne
|
|
293
340
|
# Calculates hash code according to all attributes.
|
294
341
|
# @return [Integer] Hash code
|
295
342
|
def hash
|
296
|
-
[name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups].hash
|
343
|
+
[name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups, type, linked_store_ids, evaluation_group_id].hash
|
297
344
|
end
|
298
345
|
|
299
346
|
# Builds the object from hash
|
@@ -0,0 +1,347 @@
|
|
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 NewCampaignEvaluationGroup
|
17
|
+
# The name of the campaign evaluation group.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# The ID of the parent group that contains the campaign evaluation group.
|
21
|
+
attr_accessor :parent_id
|
22
|
+
|
23
|
+
# A description of the campaign evaluation group.
|
24
|
+
attr_accessor :description
|
25
|
+
|
26
|
+
# The mode by which campaigns in the campaign evaluation group are evaluated.
|
27
|
+
attr_accessor :evaluation_mode
|
28
|
+
|
29
|
+
# The evaluation scope of the campaign evaluation group.
|
30
|
+
attr_accessor :evaluation_scope
|
31
|
+
|
32
|
+
# An indicator of whether the campaign evaluation group is locked for modification.
|
33
|
+
attr_accessor :locked
|
34
|
+
|
35
|
+
class EnumAttributeValidator
|
36
|
+
attr_reader :datatype
|
37
|
+
attr_reader :allowable_values
|
38
|
+
|
39
|
+
def initialize(datatype, allowable_values)
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
41
|
+
case datatype.to_s
|
42
|
+
when /Integer/i
|
43
|
+
value.to_i
|
44
|
+
when /Float/i
|
45
|
+
value.to_f
|
46
|
+
else
|
47
|
+
value
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def valid?(value)
|
53
|
+
!value || allowable_values.include?(value)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
58
|
+
def self.attribute_map
|
59
|
+
{
|
60
|
+
:'name' => :'name',
|
61
|
+
:'parent_id' => :'parentId',
|
62
|
+
:'description' => :'description',
|
63
|
+
:'evaluation_mode' => :'evaluationMode',
|
64
|
+
:'evaluation_scope' => :'evaluationScope',
|
65
|
+
:'locked' => :'locked'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.openapi_types
|
71
|
+
{
|
72
|
+
:'name' => :'String',
|
73
|
+
:'parent_id' => :'Integer',
|
74
|
+
:'description' => :'String',
|
75
|
+
:'evaluation_mode' => :'String',
|
76
|
+
:'evaluation_scope' => :'String',
|
77
|
+
:'locked' => :'Boolean'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# List of attributes with nullable: true
|
82
|
+
def self.openapi_nullable
|
83
|
+
Set.new([
|
84
|
+
])
|
85
|
+
end
|
86
|
+
|
87
|
+
# Initializes the object
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
def initialize(attributes = {})
|
90
|
+
if (!attributes.is_a?(Hash))
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::NewCampaignEvaluationGroup` initialize method"
|
92
|
+
end
|
93
|
+
|
94
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::NewCampaignEvaluationGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
98
|
+
end
|
99
|
+
h[k.to_sym] = v
|
100
|
+
}
|
101
|
+
|
102
|
+
if attributes.key?(:'name')
|
103
|
+
self.name = attributes[:'name']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'parent_id')
|
107
|
+
self.parent_id = attributes[:'parent_id']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'description')
|
111
|
+
self.description = attributes[:'description']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'evaluation_mode')
|
115
|
+
self.evaluation_mode = attributes[:'evaluation_mode']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'evaluation_scope')
|
119
|
+
self.evaluation_scope = attributes[:'evaluation_scope']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'locked')
|
123
|
+
self.locked = attributes[:'locked']
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
128
|
+
# @return Array for valid properties with the reasons
|
129
|
+
def list_invalid_properties
|
130
|
+
invalid_properties = Array.new
|
131
|
+
if @name.nil?
|
132
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @parent_id.nil?
|
136
|
+
invalid_properties.push('invalid value for "parent_id", parent_id cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @parent_id < 1
|
140
|
+
invalid_properties.push('invalid value for "parent_id", must be greater than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @evaluation_mode.nil?
|
144
|
+
invalid_properties.push('invalid value for "evaluation_mode", evaluation_mode cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
if @evaluation_scope.nil?
|
148
|
+
invalid_properties.push('invalid value for "evaluation_scope", evaluation_scope cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if @locked.nil?
|
152
|
+
invalid_properties.push('invalid value for "locked", locked cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
invalid_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Check to see if the all the properties in the model are valid
|
159
|
+
# @return true if the model is valid
|
160
|
+
def valid?
|
161
|
+
return false if @name.nil?
|
162
|
+
return false if @parent_id.nil?
|
163
|
+
return false if @parent_id < 1
|
164
|
+
return false if @evaluation_mode.nil?
|
165
|
+
evaluation_mode_validator = EnumAttributeValidator.new('String', ["stackable", "listOrder", "lowestDiscount", "highestDiscount"])
|
166
|
+
return false unless evaluation_mode_validator.valid?(@evaluation_mode)
|
167
|
+
return false if @evaluation_scope.nil?
|
168
|
+
evaluation_scope_validator = EnumAttributeValidator.new('String', ["cartItem", "session"])
|
169
|
+
return false unless evaluation_scope_validator.valid?(@evaluation_scope)
|
170
|
+
return false if @locked.nil?
|
171
|
+
true
|
172
|
+
end
|
173
|
+
|
174
|
+
# Custom attribute writer method with validation
|
175
|
+
# @param [Object] parent_id Value to be assigned
|
176
|
+
def parent_id=(parent_id)
|
177
|
+
if parent_id.nil?
|
178
|
+
fail ArgumentError, 'parent_id cannot be nil'
|
179
|
+
end
|
180
|
+
|
181
|
+
if parent_id < 1
|
182
|
+
fail ArgumentError, 'invalid value for "parent_id", must be greater than or equal to 1.'
|
183
|
+
end
|
184
|
+
|
185
|
+
@parent_id = parent_id
|
186
|
+
end
|
187
|
+
|
188
|
+
# Custom attribute writer method checking allowed values (enum).
|
189
|
+
# @param [Object] evaluation_mode Object to be assigned
|
190
|
+
def evaluation_mode=(evaluation_mode)
|
191
|
+
validator = EnumAttributeValidator.new('String', ["stackable", "listOrder", "lowestDiscount", "highestDiscount"])
|
192
|
+
unless validator.valid?(evaluation_mode)
|
193
|
+
fail ArgumentError, "invalid value for \"evaluation_mode\", must be one of #{validator.allowable_values}."
|
194
|
+
end
|
195
|
+
@evaluation_mode = evaluation_mode
|
196
|
+
end
|
197
|
+
|
198
|
+
# Custom attribute writer method checking allowed values (enum).
|
199
|
+
# @param [Object] evaluation_scope Object to be assigned
|
200
|
+
def evaluation_scope=(evaluation_scope)
|
201
|
+
validator = EnumAttributeValidator.new('String', ["cartItem", "session"])
|
202
|
+
unless validator.valid?(evaluation_scope)
|
203
|
+
fail ArgumentError, "invalid value for \"evaluation_scope\", must be one of #{validator.allowable_values}."
|
204
|
+
end
|
205
|
+
@evaluation_scope = evaluation_scope
|
206
|
+
end
|
207
|
+
|
208
|
+
# Checks equality by comparing each attribute.
|
209
|
+
# @param [Object] Object to be compared
|
210
|
+
def ==(o)
|
211
|
+
return true if self.equal?(o)
|
212
|
+
self.class == o.class &&
|
213
|
+
name == o.name &&
|
214
|
+
parent_id == o.parent_id &&
|
215
|
+
description == o.description &&
|
216
|
+
evaluation_mode == o.evaluation_mode &&
|
217
|
+
evaluation_scope == o.evaluation_scope &&
|
218
|
+
locked == o.locked
|
219
|
+
end
|
220
|
+
|
221
|
+
# @see the `==` method
|
222
|
+
# @param [Object] Object to be compared
|
223
|
+
def eql?(o)
|
224
|
+
self == o
|
225
|
+
end
|
226
|
+
|
227
|
+
# Calculates hash code according to all attributes.
|
228
|
+
# @return [Integer] Hash code
|
229
|
+
def hash
|
230
|
+
[name, parent_id, description, evaluation_mode, evaluation_scope, locked].hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Builds the object from hash
|
234
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
235
|
+
# @return [Object] Returns the model itself
|
236
|
+
def self.build_from_hash(attributes)
|
237
|
+
new.build_from_hash(attributes)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Builds the object from hash
|
241
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
242
|
+
# @return [Object] Returns the model itself
|
243
|
+
def build_from_hash(attributes)
|
244
|
+
return nil unless attributes.is_a?(Hash)
|
245
|
+
self.class.openapi_types.each_pair do |key, type|
|
246
|
+
if type =~ /\AArray<(.*)>/i
|
247
|
+
# check to ensure the input is an array given that the attribute
|
248
|
+
# is documented as an array but the input is not
|
249
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
250
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
251
|
+
end
|
252
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
253
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
254
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
255
|
+
end
|
256
|
+
|
257
|
+
self
|
258
|
+
end
|
259
|
+
|
260
|
+
# Deserializes the data based on type
|
261
|
+
# @param string type Data type
|
262
|
+
# @param string value Value to be deserialized
|
263
|
+
# @return [Object] Deserialized data
|
264
|
+
def _deserialize(type, value)
|
265
|
+
case type.to_sym
|
266
|
+
when :DateTime
|
267
|
+
DateTime.parse(value)
|
268
|
+
when :Date
|
269
|
+
Date.parse(value)
|
270
|
+
when :String
|
271
|
+
value.to_s
|
272
|
+
when :Integer
|
273
|
+
value.to_i
|
274
|
+
when :Float
|
275
|
+
value.to_f
|
276
|
+
when :Boolean
|
277
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
278
|
+
true
|
279
|
+
else
|
280
|
+
false
|
281
|
+
end
|
282
|
+
when :Object
|
283
|
+
# generic object (usually a Hash), return directly
|
284
|
+
value
|
285
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
286
|
+
inner_type = Regexp.last_match[:inner_type]
|
287
|
+
value.map { |v| _deserialize(inner_type, v) }
|
288
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
289
|
+
k_type = Regexp.last_match[:k_type]
|
290
|
+
v_type = Regexp.last_match[:v_type]
|
291
|
+
{}.tap do |hash|
|
292
|
+
value.each do |k, v|
|
293
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
else # model
|
297
|
+
TalonOne.const_get(type).build_from_hash(value)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# Returns the string representation of the object
|
302
|
+
# @return [String] String presentation of the object
|
303
|
+
def to_s
|
304
|
+
to_hash.to_s
|
305
|
+
end
|
306
|
+
|
307
|
+
# to_body is an alias to to_hash (backward compatibility)
|
308
|
+
# @return [Hash] Returns the object in the form of hash
|
309
|
+
def to_body
|
310
|
+
to_hash
|
311
|
+
end
|
312
|
+
|
313
|
+
# Returns the object in the form of hash
|
314
|
+
# @return [Hash] Returns the object in the form of hash
|
315
|
+
def to_hash
|
316
|
+
hash = {}
|
317
|
+
self.class.attribute_map.each_pair do |attr, param|
|
318
|
+
value = self.send(attr)
|
319
|
+
if value.nil?
|
320
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
321
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
322
|
+
end
|
323
|
+
|
324
|
+
hash[param] = _to_hash(value)
|
325
|
+
end
|
326
|
+
hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Outputs non-array value in the form of hash
|
330
|
+
# For object, use to_hash. Otherwise, just return the value
|
331
|
+
# @param [Object] value Any valid value
|
332
|
+
# @return [Hash] Returns the value in the form of hash
|
333
|
+
def _to_hash(value)
|
334
|
+
if value.is_a?(Array)
|
335
|
+
value.compact.map { |v| _to_hash(v) }
|
336
|
+
elsif value.is_a?(Hash)
|
337
|
+
{}.tap do |hash|
|
338
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
339
|
+
end
|
340
|
+
elsif value.respond_to? :to_hash
|
341
|
+
value.to_hash
|
342
|
+
else
|
343
|
+
value
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|
@@ -14,16 +14,16 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class NewCampaignGroup
|
17
|
-
# The name of
|
17
|
+
# The name of the campaign access group.
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# A longer description of the campaign group.
|
20
|
+
# A longer description of the campaign access group.
|
21
21
|
attr_accessor :description
|
22
22
|
|
23
|
-
# A list of
|
23
|
+
# A list of IDs of the Applications that this campaign access group is enabled for.
|
24
24
|
attr_accessor :subscribed_applications_ids
|
25
25
|
|
26
|
-
# A list of
|
26
|
+
# A list of IDs of the campaigns that are part of the campaign access group.
|
27
27
|
attr_accessor :campaign_ids
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -54,6 +54,9 @@ module TalonOne
|
|
54
54
|
# The default campaign group ID.
|
55
55
|
attr_accessor :default_campaign_group_id
|
56
56
|
|
57
|
+
# The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items.
|
58
|
+
attr_accessor :campaign_type
|
59
|
+
|
57
60
|
class EnumAttributeValidator
|
58
61
|
attr_reader :datatype
|
59
62
|
attr_reader :allowable_values
|
@@ -92,7 +95,8 @@ module TalonOne
|
|
92
95
|
:'limits' => :'limits',
|
93
96
|
:'template_params' => :'templateParams',
|
94
97
|
:'campaign_collections' => :'campaignCollections',
|
95
|
-
:'default_campaign_group_id' => :'defaultCampaignGroupId'
|
98
|
+
:'default_campaign_group_id' => :'defaultCampaignGroupId',
|
99
|
+
:'campaign_type' => :'campaignType'
|
96
100
|
}
|
97
101
|
end
|
98
102
|
|
@@ -112,7 +116,8 @@ module TalonOne
|
|
112
116
|
:'limits' => :'Array<TemplateLimitConfig>',
|
113
117
|
:'template_params' => :'Array<CampaignTemplateParams>',
|
114
118
|
:'campaign_collections' => :'Array<CampaignTemplateCollection>',
|
115
|
-
:'default_campaign_group_id' => :'Integer'
|
119
|
+
:'default_campaign_group_id' => :'Integer',
|
120
|
+
:'campaign_type' => :'String'
|
116
121
|
}
|
117
122
|
end
|
118
123
|
|
@@ -202,6 +207,12 @@ module TalonOne
|
|
202
207
|
if attributes.key?(:'default_campaign_group_id')
|
203
208
|
self.default_campaign_group_id = attributes[:'default_campaign_group_id']
|
204
209
|
end
|
210
|
+
|
211
|
+
if attributes.key?(:'campaign_type')
|
212
|
+
self.campaign_type = attributes[:'campaign_type']
|
213
|
+
else
|
214
|
+
self.campaign_type = 'advanced'
|
215
|
+
end
|
205
216
|
end
|
206
217
|
|
207
218
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -228,6 +239,10 @@ module TalonOne
|
|
228
239
|
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
229
240
|
end
|
230
241
|
|
242
|
+
if @campaign_type.nil?
|
243
|
+
invalid_properties.push('invalid value for "campaign_type", campaign_type cannot be nil.')
|
244
|
+
end
|
245
|
+
|
231
246
|
invalid_properties
|
232
247
|
end
|
233
248
|
|
@@ -241,6 +256,9 @@ module TalonOne
|
|
241
256
|
return false if @state.nil?
|
242
257
|
state_validator = EnumAttributeValidator.new('String', ["draft", "enabled", "disabled"])
|
243
258
|
return false unless state_validator.valid?(@state)
|
259
|
+
return false if @campaign_type.nil?
|
260
|
+
campaign_type_validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
|
261
|
+
return false unless campaign_type_validator.valid?(@campaign_type)
|
244
262
|
true
|
245
263
|
end
|
246
264
|
|
@@ -268,6 +286,16 @@ module TalonOne
|
|
268
286
|
@state = state
|
269
287
|
end
|
270
288
|
|
289
|
+
# Custom attribute writer method checking allowed values (enum).
|
290
|
+
# @param [Object] campaign_type Object to be assigned
|
291
|
+
def campaign_type=(campaign_type)
|
292
|
+
validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
|
293
|
+
unless validator.valid?(campaign_type)
|
294
|
+
fail ArgumentError, "invalid value for \"campaign_type\", must be one of #{validator.allowable_values}."
|
295
|
+
end
|
296
|
+
@campaign_type = campaign_type
|
297
|
+
end
|
298
|
+
|
271
299
|
# Checks equality by comparing each attribute.
|
272
300
|
# @param [Object] Object to be compared
|
273
301
|
def ==(o)
|
@@ -286,7 +314,8 @@ module TalonOne
|
|
286
314
|
limits == o.limits &&
|
287
315
|
template_params == o.template_params &&
|
288
316
|
campaign_collections == o.campaign_collections &&
|
289
|
-
default_campaign_group_id == o.default_campaign_group_id
|
317
|
+
default_campaign_group_id == o.default_campaign_group_id &&
|
318
|
+
campaign_type == o.campaign_type
|
290
319
|
end
|
291
320
|
|
292
321
|
# @see the `==` method
|
@@ -298,7 +327,7 @@ module TalonOne
|
|
298
327
|
# Calculates hash code according to all attributes.
|
299
328
|
# @return [Integer] Hash code
|
300
329
|
def hash
|
301
|
-
[name, description, instructions, campaign_attributes, coupon_attributes, state, tags, features, coupon_settings, referral_settings, limits, template_params, campaign_collections, default_campaign_group_id].hash
|
330
|
+
[name, description, instructions, campaign_attributes, coupon_attributes, state, tags, features, coupon_settings, referral_settings, limits, template_params, campaign_collections, default_campaign_group_id, campaign_type].hash
|
302
331
|
end
|
303
332
|
|
304
333
|
# Builds the object from hash
|
@@ -54,6 +54,9 @@ module TalonOne
|
|
54
54
|
# Whether the reservation effect actually created a new reservation.
|
55
55
|
attr_accessor :is_reservation_mandatory
|
56
56
|
|
57
|
+
# An indication of whether the coupon is implicitly reserved for all customers.
|
58
|
+
attr_accessor :implicitly_reserved
|
59
|
+
|
57
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
61
|
def self.attribute_map
|
59
62
|
{
|
@@ -69,7 +72,8 @@ module TalonOne
|
|
69
72
|
:'recipient_integration_id' => :'recipientIntegrationId',
|
70
73
|
:'valid_characters' => :'validCharacters',
|
71
74
|
:'coupon_pattern' => :'couponPattern',
|
72
|
-
:'is_reservation_mandatory' => :'isReservationMandatory'
|
75
|
+
:'is_reservation_mandatory' => :'isReservationMandatory',
|
76
|
+
:'implicitly_reserved' => :'implicitlyReserved'
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -88,7 +92,8 @@ module TalonOne
|
|
88
92
|
:'recipient_integration_id' => :'String',
|
89
93
|
:'valid_characters' => :'Array<String>',
|
90
94
|
:'coupon_pattern' => :'String',
|
91
|
-
:'is_reservation_mandatory' => :'Boolean'
|
95
|
+
:'is_reservation_mandatory' => :'Boolean',
|
96
|
+
:'implicitly_reserved' => :'Boolean'
|
92
97
|
}
|
93
98
|
end
|
94
99
|
|
@@ -168,7 +173,11 @@ module TalonOne
|
|
168
173
|
if attributes.key?(:'is_reservation_mandatory')
|
169
174
|
self.is_reservation_mandatory = attributes[:'is_reservation_mandatory']
|
170
175
|
else
|
171
|
-
self.is_reservation_mandatory =
|
176
|
+
self.is_reservation_mandatory = false
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.key?(:'implicitly_reserved')
|
180
|
+
self.implicitly_reserved = attributes[:'implicitly_reserved']
|
172
181
|
end
|
173
182
|
end
|
174
183
|
|
@@ -327,7 +336,8 @@ module TalonOne
|
|
327
336
|
recipient_integration_id == o.recipient_integration_id &&
|
328
337
|
valid_characters == o.valid_characters &&
|
329
338
|
coupon_pattern == o.coupon_pattern &&
|
330
|
-
is_reservation_mandatory == o.is_reservation_mandatory
|
339
|
+
is_reservation_mandatory == o.is_reservation_mandatory &&
|
340
|
+
implicitly_reserved == o.implicitly_reserved
|
331
341
|
end
|
332
342
|
|
333
343
|
# @see the `==` method
|
@@ -339,7 +349,7 @@ module TalonOne
|
|
339
349
|
# Calculates hash code according to all attributes.
|
340
350
|
# @return [Integer] Hash code
|
341
351
|
def hash
|
342
|
-
[usage_limit, discount_limit, reservation_limit, start_date, expiry_date, limits, number_of_coupons, unique_prefix, attributes, recipient_integration_id, valid_characters, coupon_pattern, is_reservation_mandatory].hash
|
352
|
+
[usage_limit, discount_limit, reservation_limit, start_date, expiry_date, limits, number_of_coupons, unique_prefix, attributes, recipient_integration_id, valid_characters, coupon_pattern, is_reservation_mandatory, implicitly_reserved].hash
|
343
353
|
end
|
344
354
|
|
345
355
|
# Builds the object from hash
|
@@ -24,7 +24,7 @@ module TalonOne
|
|
24
24
|
# Any referral code entered.
|
25
25
|
attr_accessor :referral
|
26
26
|
|
27
|
-
# Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities
|
27
|
+
# Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions).
|
28
28
|
attr_accessor :state
|
29
29
|
|
30
30
|
# Serialized JSON representation.
|