Class: SoapyCake::AdminTrack
- Includes:
- Helper
- Defined in:
- lib/soapy_cake/admin_track.rb
Constant Summary collapse
- CONVERSION_DEFAULTS =
{ add_to_existing_payout: false, received_option: 'total_revenue', received: 0, disposition_type: 'no_change', update_revshare_payout: false, effective_date_option: 'today', notes_to_append: '', disallow_on_billing_status: 'ignore' }.freeze
Constants inherited from Client
Instance Method Summary collapse
- #decrypt_affiliate_link(opts = {}) ⇒ Object
- #mass_conversion_insert(opts) ⇒ Object
- #update_conversion(opts) ⇒ Object
Methods included from Helper
#const_lookup, #future_expiration_date, #require_params, #translate_booleans, #translate_values, #validate_id, #walk_tree
Methods inherited from Client
#initialize, #read_only?, #run, #xml_response?
Constructor Details
This class inherits a constructor from SoapyCake::Client
Instance Method Details
#decrypt_affiliate_link(opts = {}) ⇒ Object
33 34 35 |
# File 'lib/soapy_cake/admin_track.rb', line 33 def decrypt_affiliate_link(opts = {}) run Request.new(:admin, :track, :decrypt_affiliate_link, opts) end |
#mass_conversion_insert(opts) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/soapy_cake/admin_track.rb', line 18 def mass_conversion_insert(opts) require_params(opts, %i[ conversion_date affiliate_id sub_affiliate campaign_id creative_id total_to_insert ]) run Request.new(:admin, :track, :mass_conversion_insert, opts) end |
#update_conversion(opts) ⇒ Object
27 28 29 30 31 |
# File 'lib/soapy_cake/admin_track.rb', line 27 def update_conversion(opts) require_params(opts, %i[offer_id payout]) run Request.new(:admin, :track, :update_conversion_events, CONVERSION_DEFAULTS.merge(opts)) end |