class AppleReporter::Finance
Public Instance Methods
accounts()
click to toggle source
accounts
Usage:
report = reporter.accounts
# File lib/apple_reporter/finance.rb, line 7 def accounts fetch(@config[:finance_path], 'Finance.getAccounts') end
get_report(params = {})
click to toggle source
get_report
Refer to: help.apple.com/itc/appsreporterguide/
Usage:
report = reporter.get_report(
vendor_number: 'myVendor', region_code: 'US', report_type: 'Financial', fiscal_year: '2016', fiscal_period: '02'
)
# File lib/apple_reporter/finance.rb, line 39 def get_report(params = {}) fetch(@config[:finance_path], (['Finance.getReport'] + [params.slice(:vendor_number, :region_code, :report_type, :fiscal_year, :fiscal_period).values.join(',')]).join(', ')) end
status()
click to toggle source
status
Usage:
report = reporter.status
# File lib/apple_reporter/finance.rb, line 15 def status fetch(@config[:finance_path], 'Finance.getStatus') end
vendors_and_regions()
click to toggle source
Usage:
report = reporter.vendors_and_regions
# File lib/apple_reporter/finance.rb, line 23 def vendors_and_regions fetch(@config[:finance_path], 'Finance.getVendorsAndRegions') end
version()
click to toggle source
# File lib/apple_reporter/finance.rb, line 43 def version @config[:version] end