/*
         * 팝빌사이트에서 작성된 현금영수증에 파트너 문서번호를 할당합니다.
         */
        public IActionResult AssignMgtKey()
        {
            // 현금영수증 아이템키, 목록조회(Search) API의 반환항목중 ItemKey 참조
            string itemKey = "020080513514100001";

            // 현금영수증에 할당할 문서번호
            string mgtKey = "20200805-100";

            try
            {
                var response = _cashbillService.AssignMgtKey(corpNum, itemKey, mgtKey);
                return(View("Response", response));
            }
            catch (PopbillException pe)
            {
                return(View("Exception", pe));
            }
        }
        /*
         * 팝빌 사이트를 통해 발행하였지만 문서번호가 존재하지 않는 현금영수증에 문서번호를 할당합니다.
         * * - https://docs.popbill.com/cashbill/dotnetcore/api#AssignMgtKey
         */
        public IActionResult AssignMgtKey()
        {
            // 현금영수증 아이템키, 목록조회(Search API) 함수의 반환항목중 ItemKey 참조
            string itemKey = "020080513514100001";

            // 할당할 문서번호, 숫자, 영문, '-', '_' 조합으로
            // 1~24자리까지 사업자번호별 중복없는 고유번호 할당
            string mgtKey = "20220527-100";

            try
            {
                var response = _cashbillService.AssignMgtKey(corpNum, itemKey, mgtKey);
                return(View("Response", response));
            }
            catch (PopbillException pe)
            {
                return(View("Exception", pe));
            }
        }