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

Primary module for creating various types of orders on Sticky.io. Leverages the Sticky library.

Link to this section Summary

Link to this section Types

Specs

t() :: %Peacemaker.Orders.NewOrderToken{
  billing_model_id: String.t() | nil,
  campaign_id: String.t() | nil,
  form_type: :default | :long_form,
  is_trial: Boolean.t(),
  next_recurring_date: String.t() | nil,
  offer_id: String.t() | nil,
  order_payload: Map.t() | nil,
  order_type: :new_order,
  previous_order_id: String.t() | nil,
  product_id: String.t() | nil,
  product_price: String.t() | nil,
  promo_code: String.t() | nil,
  prospect_id: String.t() | nil,
  request_payload: %{required(String.t()) => String.t()} | :not_formatted,
  response_payload: Map.t() | :not_received,
  skip_preauth: Boolean.t(),
  sku: String.t() | nil
}

Link to this section Functions

Link to this function

add_campaign_settings_for(token, atom)

View Source
Link to this function

add_premium_membership_trial(token)

View Source
Link to this function

add_previous_order_id(token, previous_order_id)

View Source
Link to this function

add_product_sku(token, sku)

View Source
Link to this function

add_promo_code(token, promo_code)

View Source
Link to this function

add_prospect_id(token, prospect_id)

View Source
Link to this function

add_tripwire(token, sku)

View Source
Link to this function

add_utm_specific_campaign_settings(token, arg2)

View Source
Link to this function

build(order_payload \\ %{})

View Source
Link to this function

set_billing_model_id(token, arg2)

View Source

Specs

set_billing_model_id(t(), :yearly | :straight_sale | :monthly | :bimonthly) ::
  t()
Link to this function

set_campaign_id(token, campaign_id)

View Source
Link to this function

set_discounted_price(token)

View Source
Link to this function

set_form_type(token, arg2)

View Source
Link to this function

set_offer_id(token, offer_id)

View Source
Link to this function

set_product_id(token, product_id)

View Source
Link to this function

set_recurring_date(token, recurring_date)

View Source