Repository URL to install this package:
Version:
0.8.93 ▾
|
module Lobbyist
class AccountLevel < Lobbyist::Base
attr_accessor :account_class_id, :account_class, :description, :call_credit_cost, :default_promo_id, :enabled, :monthly_call_credit_allowance,
:ccall_credits_accumulate, :monthly_handwritten_credit_allowance, :handwritten_credits_accumulate, :conversion_handwritten_credit_grant, :conversion_ccall_credit_grant,
:cost_per_postcard, :customer_count_lower_bound, :customer_count_upper_bound
def default_promo
@default_promo
end
def default_promo=(attributes)
@default_promo = Promo.new(attributes)
end
def self.list(params = {})
create_from_response(get('/v1/account_levels.json', params))
end
def self.paid(params = {})
create_from_response(get('/v1/account_levels/paid.json', params))
end
end
end