Peacemaker.Orders.NewIntensive (Peacemaker v3.3.5-rc.7) View Source

Primary module for purchasing New Intensives

Analytic events that will be fired:

  • $495 Intensive Only - Purchase
  • $95 Intensive Upsell - Purchase
  • $695 All Access Membership - Membership

Link to this section Summary

Link to this section Types

Specs

intensive_params() :: %{
  ipAddress: String.t(),
  creditCardNumber: String.t(),
  creditCardType: String.t(),
  expirationDate: String.t(),
  firstName: String.t(),
  lastName: String.t(),
  email: String.t(),
  phone: String.t(),
  shippingAddress1: String.t(),
  shippingCity: String.t(),
  shippingCountry: String.t(),
  shippingState: String.t(),
  shippingZip: String.t(),
  CVV: String.t(),
  sku: String.t(),
  allAccess: Boolean.t(),
  offerId: String.t(),
  webinar_keys: [String.t()]
}

Link to this section Functions

Link to this function

cancel_previous_order(token_tuple)

View Source

Specs

do_place_order(intensive_params()) ::
  Peacemaker.Orders.NewOrderToken.t() | {:error, String.t()}

Specs

place_order(intensive_params()) ::
  {Peacemaker.Orders.NewOrderToken.t(), Peacemaker.Account.t()}
  | {:error, String.t()}
Link to this function

place_order(conn, params)

View Source

Specs

place_order(Plug.Conn.t(), intensive_params()) ::
  {:ok, Peacemaker.Orders.NewOrderToken.t()} | {:error, String.t()}