Sha256: e0b09823645acb6634ebf1590b6717987dbe20fe77d2d0cea9b80ec565d73562
Contents?: true
Size: 1.88 KB
Versions: 3
Compression:
Stored size: 1.88 KB
Contents
require_relative '../core/base_service' module Naver module Searchad module Api module Bizmoney class Service < Naver::Searchad::Api::Core::BaseService def initialize super('https://api.searchad.naver.com/', 'billing/') end def get_bizmoney(options: nil, &block) command = make_command(:get, 'bizmoney', options) execute_command(command, &block) end 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 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 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 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 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems