diff --git a/Base/Popbill/PopbillService.cs b/Base/Popbill/PopbillService.cs
index 0029e26..cbf5c34 100644
--- a/Base/Popbill/PopbillService.cs
+++ b/Base/Popbill/PopbillService.cs
@@ -161,6 +161,52 @@ namespace NP.Base.Popbill
return result;
}
+ ///
+ /// 세금계산서 발행
+ ///
+ /// 파트너가 할당한 문서번호
+ /// 세금계산서 유형 : SELL = 매출, BUY = 매입, TRUSTEE = 위수탁
+ /// 메모
+ /// IssueResponse
+ public static Result Issue(string mgtkey, MgtKeyType mgtKeyType = MgtKeyType.SELL, string memo = "")
+ {
+ Result result = new Result();
+ try
+ {
+ result.Data = PopbillConfig.taxinvoiceService.Issue(PopbillConfig.CorpNum, mgtKeyType, mgtkey, memo, PopbillConfig.UserID);
+ }
+ catch (PopbillException ex)
+ {
+ result.Code = ex.code.ToString();
+ result.Message = ex.Message;
+ Logger.TryError(ex.Message, ex);
+ }
+ return result;
+ }
+
+ ///
+ /// 세금계산서 발행취소
+ ///
+ /// 파트너가 할당한 문서번호
+ /// 세금계산서 유형 : SELL = 매출, BUY = 매입, TRUSTEE = 위수탁
+ /// 메모
+ /// IssueResponse
+ public static Result CancelIssue(string mgtkey, MgtKeyType mgtKeyType = MgtKeyType.SELL, string memo = "")
+ {
+ Result result = new Result();
+ try
+ {
+ result.Data = PopbillConfig.taxinvoiceService.CancelIssue(PopbillConfig.CorpNum, mgtKeyType, mgtkey, memo, PopbillConfig.UserID);
+ }
+ catch (PopbillException ex)
+ {
+ result.Code = ex.code.ToString();
+ result.Message = ex.Message;
+ Logger.TryError(ex.Message, ex);
+ }
+ return result;
+ }
+
///
/// 세금계산서 즉시 발행
///
@@ -183,6 +229,50 @@ namespace NP.Base.Popbill
}
return result;
}
+
+ ///
+ /// 세금계산서 인쇄 팝업 URL 확인
+ ///
+ /// 파트너가 할당한 문서번호
+ /// 세금계산서 유형 : SELL = 매출, BUY = 매입, TRUSTEE = 위수탁
+ /// URL
+ public static Result GetPrintURL(string mgtkey, MgtKeyType mgtKeyType = MgtKeyType.SELL)
+ {
+ Result result = new Result(); ;
+ try
+ {
+ result.Data = PopbillConfig.taxinvoiceService.GetPrintURL(PopbillConfig.CorpNum, mgtKeyType, mgtkey, PopbillConfig.UserID);
+ }
+ catch (PopbillException ex)
+ {
+ result.Code = ex.code.ToString();
+ result.Message = ex.Message;
+ Logger.TryError(ex.Message, ex);
+ }
+ return result;
+ }
+
+ ///
+ /// 세금계산서 인쇄 팝업 URL 확인 - 공급받는자용
+ ///
+ /// 파트너가 할당한 문서번호
+ /// 세금계산서 유형 : SELL = 매출, BUY = 매입, TRUSTEE = 위수탁
+ /// URL
+ public static Result GetEPrintURL(string mgtkey, MgtKeyType mgtKeyType = MgtKeyType.SELL)
+ {
+ Result result = new Result(); ;
+ try
+ {
+ result.Data = PopbillConfig.taxinvoiceService.GetEPrintURL(PopbillConfig.CorpNum, mgtKeyType, mgtkey, PopbillConfig.UserID);
+ }
+ catch (PopbillException ex)
+ {
+ result.Code = ex.code.ToString();
+ result.Message = ex.Message;
+ Logger.TryError(ex.Message, ex);
+ }
+ return result;
+ }
}
public class Result