Example #1
0
        //임시저장
        public Response Register(string CorpNum, Cashbill cashbill, string UserID = null)
        {
            if (cashbill == null)
            {
                throw new PopbillException(-99999999, "현금영수증 정보가 입력되지 않았습니다.");
            }

            string PostData = toJsonString(cashbill);

            return(httppost <Response>("/Cashbill", CorpNum, PostData, null, null, UserID));
        }
Example #2
0
        public Response RegistIssue(String CorpNum, Cashbill cashbill, String Memo, String UserID)
        {
            if (cashbill == null)
            {
                throw new PopbillException(-99999999, "현금영수증 정보가 입력되지 않았습니다.");
            }

            cashbill.memo = Memo;

            String PostData = toJsonString(cashbill);

            return(httppost <Response>("/Cashbill", CorpNum, UserID, PostData, "ISSUE"));
        }
Example #3
0
        //수정
        public Response Update(string CorpNum, string MgtKey, Cashbill cashbill, string UserID = null)
        {
            if (string.IsNullOrEmpty(MgtKey))
            {
                throw new PopbillException(-99999999, "문서번호가 입력되지 않았습니다.");
            }

            if (cashbill == null)
            {
                throw new PopbillException(-99999999, "현금영수증 정보가 입력되지 않았습니다.");
            }

            string PostData = toJsonString(cashbill);

            return(httppost <Response>("/Cashbill/" + MgtKey, CorpNum, PostData, "PATCH", null, UserID));
        }
Example #4
0
        //즉시발행
        public CBIssueResponse RegistIssue(string CorpNum, Cashbill cashbill, string Memo, string UserID = null, string EmailSubject = null)
        {
            if (cashbill == null)
            {
                throw new PopbillException(-99999999, "현금영수증 정보가 입력되지 않았습니다.");
            }

            cashbill.memo = Memo;

            if (EmailSubject != null)
            {
                cashbill.emailSubject = EmailSubject;
            }

            string PostData = toJsonString(cashbill);

            return(httppost <CBIssueResponse>("/Cashbill", CorpNum, PostData, "ISSUE", null, UserID));
        }
Example #5
0
 public Response Register(String CorpNum, Cashbill cashbill)
 {
     return(Register(CorpNum, cashbill, null));
 }
Example #6
0
 public Response RegistIssue(String CorpNum, Cashbill cashbill, String Memo)
 {
     return(RegistIssue(CorpNum, cashbill, Memo, null));
 }