Module: CommandTower::Messaging::Planner

Defined in:
app/services/command_tower/messaging/planner.rb,
app/services/command_tower/messaging/planner/error.rb,
app/services/command_tower/messaging/planner/planner.rb,
app/services/command_tower/messaging/planner/destination_plan.rb,
app/services/command_tower/messaging/planner/operation_logger.rb,
app/services/command_tower/messaging/planner/message_overrides.rb,
app/services/command_tower/messaging/planner/unknown_type_error.rb,
app/services/command_tower/messaging/planner/excluded_destination.rb,
app/services/command_tower/messaging/planner/illegal_override_error.rb,
app/services/command_tower/messaging/planner/invalid_evaluation_error.rb,
app/services/command_tower/messaging/planner/impossible_mandatory_plan_error.rb

Defined Under Namespace

Classes: DestinationPlan, Error, ExcludedDestination, IllegalOverrideError, ImpossibleMandatoryPlanError, InvalidEvaluationError, MessageOverrides, OperationLogger, Planner, UnknownTypeError

Class Method Summary collapse

Class Method Details

.plan(notification_type_key:, recipient_id:, preference_state: nil, platform_enabled_channels: [], message_overrides: nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/services/command_tower/messaging/planner.rb', line 8

def plan(
  notification_type_key:,
  recipient_id:,
  preference_state: nil,
  platform_enabled_channels: [],
  message_overrides: nil
)
  ::CommandTower::Messaging::Planner::Planner.call(
    notification_type_key:,
    recipient_id:,
    preference_state:,
    platform_enabled_channels:,
    message_overrides:,
  )
end