class Naver::Searchad::Api::Bizmoney::Service

Public Class Methods

new() click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 9
def initialize
  super('https://api.naver.com/', 'billing/')
end

Public Instance Methods

get_bizmoney(options: nil, &block) click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 13
def get_bizmoney(options: nil, &block)
  command = make_command(:get, 'bizmoney', options)
  execute_command(command, &block)
end
get_bizmoney_charge(start_date, end_date, options: nil, &block) click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 25
def get_bizmoney_charge(start_date, end_date, options: nil, &block)
  command = make_command(:get, 'bizmoney/histories/charge', options)
  command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
  command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
  execute_command(command, &block)
end
get_bizmoney_cost(start_date, end_date, options: nil, &block) click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 18
def get_bizmoney_cost(start_date, end_date, options: nil, &block)
  command = make_command(:get, 'bizmoney/cost', options)
  command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
  command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
  execute_command(command, &block)
end
get_bizmoney_exhaust(start_date, end_date, options: nil, &block) click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 32
def get_bizmoney_exhaust(start_date, end_date, options: nil, &block)
  command = make_command(:get, 'bizmoney/histories/exhaust', options)
  command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
  command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
  execute_command(command, &block)
end
get_bizmoney_period(start_date, end_date, options: nil, &block) click to toggle source
# File lib/naver/searchad/api/bizmoney/service.rb, line 39
def get_bizmoney_period(start_date, end_date, options: nil, &block)
  command = make_command(:get, 'bizmoney/histories/period', options)
  command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
  command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
  execute_command(command, &block)
end