from nevada.API.Bizmoney import *
from nevada.Common.Connector import *

base_url = 'https://api.naver.com' #그대로 두세요.

api_key = "01000000007705c93bf3d4717735ec919410620b09be66dba57008ea9ebd5c689cb34f9b03" #변경하세요.
secret_key = "AQAAAAB3Bck789RxdzXskZQQYgsJSgvA+JzNVuO1lfU2x5/4bA==" #변경하세요.
customer_id = 1839303 #변경하세요.

bizmoney = Bizmoney(base_url=base_url, api_key=api_key, secret_key=secret_key, customer_id=customer_id)

result = bizmoney.get_biz_money_cost_json(statDt='20200118') # 'yyyymmdd'
print(result)

result_list = bizmoney.get_biz_money_cost_list(statDt='20191219') # 'yyyymmdd'
for i in result_list:
    CommonFunctions.print_all_attr(i)
for result in result_list:
    print(result.adjustedNonRefundableAmt)
    print(result.adjustedRefundableAmt)
    print(result.customer_id)
    print(result.date)
    print(result.device)
    print(result.networkType)
    print(result.nonRefundableAmt)
    print(result.productCode)
    print(result.refundableAmt)