Sha256: cedd0870a1f82112cdac008f8412292d25786ada445c462c556e7c11735dca01

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

module SoapyCake
  module Const
    CONSTS = {
      account_status_id: {
        active: 1,
        inactive: 2,
        pending: 3
      },
      offer_status_id: {
        public: 1,
        private: 2,
        apply_to_run: 3,
        inactive: 4
      },
      offer_type_id: {
        hosted: 1,
        host_n_post: 2,
        third_party: 3
      },
      currency_id: {
        usd: 1,
        eur: 2,
        gbd: 3,
        aud: 4,
        cad: 5
      },
      payment_setting_id: {
        system_default: 1,
        offer_currency: 2,
        affiliate_currency: 3
      },
      price_format_id: {
        cpa: 1,
        cpc: 2,
        cpm: 3,
        fixed: 4,
        revshare: 5
      },
      # The ID mapping in the API docs is wrong, these values are taken from the UI.
      conversion_behaviour_id: {
        system: 0,
        adv_off: 1,
        adv_no_aff: 2,
        no_adv_aff: 3,
        no_adv_no_aff: 4,
        ignore: 5
      },
      cap_type_id: {
        click: 1,
        conversion: 2
      },
      cap_interval_id: {
        disabled: 0,
        daily: 1,
        weekly: 2,
        monthly: 3
      }
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
soapy_cake-1.6.8 lib/soapy_cake/const.rb
soapy_cake-1.6.7 lib/soapy_cake/const.rb
soapy_cake-1.6.6 lib/soapy_cake/const.rb
soapy_cake-1.6.5 lib/soapy_cake/const.rb
soapy_cake-1.6.4 lib/soapy_cake/const.rb
soapy_cake-1.6.3 lib/soapy_cake/const.rb
soapy_cake-1.6.2 lib/soapy_cake/const.rb
soapy_cake-1.6.1 lib/soapy_cake/const.rb