Peacemaker.Account (Peacemaker v3.3.5-rc.7) View Source

Peacemaker.Account is the low-level implementation for interfacing with accounts.

Link to this section Summary

Link to this section Functions

Link to this function

add_decline_reason_changeset(account, attr)

View Source
Link to this function

apply_default_playlist(account)

View Source
Link to this function

apply_temp_password(changeset, attrs \\ %{})

View Source
Link to this function

apply_tracking_associations(account, attrs)

View Source

Builds an Account struct.

Will attempt to retrieve the Account record from the database by the given email. If none exists, will default to an empty Account struct.

Link to this function

changeset(account, attrs)

View Source
Link to this function

check_for_optin_record(map, attrs)

View Source
Link to this function

create(account, attrs \\ %{})

View Source
Link to this function

create!(account, attrs \\ %{})

View Source
Link to this function

enable_you_plus_two(changeset)

View Source
Link to this function

get_tracking_id(account)

View Source
Link to this function

initial_order_changeset(account, attrs)

View Source
Link to this function

processed_fb_prospect_changeset(account)

View Source
Link to this function

purchased_acceleration_package(changeset)

View Source
Link to this function

remove_password_token(changeset)

View Source
Link to this function

set_active_order_id(changeset, active_order_id)

View Source
Link to this function

set_customer_id(changeset, customer_id)

View Source
Link to this function

set_email(changeset, email)

View Source
Link to this function

set_last_login_date(changeset)

View Source
Link to this function

set_new_password(changeset, password)

View Source
Link to this function

set_prospect_id(changeset, prospect_id)

View Source
Link to this function

set_reset_password_token(changeset, token)

View Source
Link to this function

set_role(changeset, role)

View Source
Link to this function

subscription_update_changeset(account, attrs)

View Source