LimeLight.Webhooks.StarterProgramDomination (Peacemaker v3.3.5-rc.7) View Source

Handles webhooks sent from LimeLight associated with Fortune Builder Starter Member campaigns.

Link to this section Summary

Functions

Creates an account if no Account exists by the given email, otherwise finds the account to process into a Fortune Builder Starter Member account.

Link to this section Functions

Link to this function

process_fb_starter_account(params)

View Source

Creates an account if no Account exists by the given email, otherwise finds the account to process into a Fortune Builder Starter Member account.

The following steps should happen:

  1. Updates the prospect id on the %Account{}

  2. The associated %StarterProgramNoCC{} record should include the account and limelight_prospect_id

  3. The role of the %Account{} should be set to :fb_starter.

  4. %BasePermission{} associated. Currently calls Permissions.add_base_permission_to_account/2

#TODO: Revisit if the new role implementation deprecates this step.

  1. Add the customer to FortuneBuilder's weekly GotoWebinar Meetings

  2. Send the Starter Program welcome email.

NOTE: The password and email fields should be hidden in the email for accounts that were WealthFit customers prior to purchasing a FortuneBuilder Starter Member Package.

Link to this function

send_intensive_only_emails(account)

View Source
Link to this function

send_starter_program_emails(account)

View Source