//임시저장 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)); }
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")); }
//수정 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)); }
//즉시발행 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)); }
public Response Register(String CorpNum, Cashbill cashbill) { return(Register(CorpNum, cashbill, null)); }
public Response RegistIssue(String CorpNum, Cashbill cashbill, String Memo) { return(RegistIssue(CorpNum, cashbill, Memo, null)); }