Tapfiliate.Pipelines.PipelineToken (Peacemaker v3.3.5-rc.7) View Source

This module is used for determining affiliate processing logic. At a high level, the affiliate logic this module respresents can be found here: Referral Map

Tapfiliate.Pipelines.PipelineToken was our first implementations at how we will handle implementing Affiliates, which is why the generic name was given.

In the future, it may be wise to consider renaming this module into something more specific incase we need to implement future affiliate pipelines.

Link to this section Summary

Link to this section Types

Specs

t() :: %Tapfiliate.Pipelines.PipelineToken{
  affiliate_id: String.t(),
  affiliate_request: nil,
  affiliate_response: nil,
  amount: nil,
  external_id: nil,
  parent_affiliate_id: nil,
  parent_affiliate_processed: false,
  parent_affiliate_request: nil,
  parent_affiliate_response: nil,
  processed_affiliate: false,
  processed_subaffiliate: false,
  program_id: nil,
  referral_code: nil,
  subaffiliate_id: nil,
  subaffiliate_response: nil,
  type: String.t()
}

Link to this section Functions

Builds a PipelineToken struct that will be used

Link to this function

process_pipeline_fifty_fifty_split(pipeline_token)

View Source
Link to this function

set_affiliate_id(token, afid)

View Source
Link to this function

set_amount(token, amount)

View Source
Link to this function

set_external_id(token, external_id)

View Source
Link to this function

set_parent_affiliate_id(token, parent_affiliate_id)

View Source
Link to this function

set_subaffiliate_id(token, subaffiliate_id)

View Source