과금정보 확인
            args
                CorpNum : 회원 사업자번호
                ItemCode : 전자명세서 종류코드
                UserID : 팝빌 회원아이디
            return
                과금정보 객체
            raise
                PopbillException
437071
def getChargeInfo(self, CorpNum, ItemCode, UserID=None):
        
        if ItemCode == None or ItemCode == '':
            raise PopbillException(-99999999, "명세서 종류 코드가 입력되지 않았습니다.")

        return self._httpget('/Statement/ChargeInfo/' + ItemCode, CorpNum, UserID)
733878
@Override
	public Response update(String CorpNum, String MgtKey, Cashbill cashbill,
			String UserID) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

		String PostData = toJsonString(cashbill);

		return httppost("/Cashbill/"+MgtKey, CorpNum,
				PostData, UserID, "PATCH", Response.class);
	}
927697
@Override
    public boolean checkMgtKeyInUse(String CorpNum, MgtKeyType KeyType,
                                    String MgtKey) throws PopbillException {

        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        try {
            TaxinvoiceInfo info = httpget("/Taxinvoice/" + KeyType.name() + "/"
                    + MgtKey, CorpNum, null, TaxinvoiceInfo.class);

            return (info.getItemKey() == null || info.getItemKey().isEmpty()) == false;
        } catch (PopbillException PE) {
            if (PE.getCode() == -11000005)
                return false;
            throw PE;
        }
    }
576093
@Override
	public String getURL(String CorpNum, String UserID, String TOGO)
			throws PopbillException {

		URLResponse	response = httpget("/Statement?TG=" + TOGO, CorpNum, UserID,URLResponse.class);
		
		return response.url;
	}
1255092
public Response registDeptUser(String corpNum, String deptUserID, String deptUserPWD) throws PopbillException{
		if (corpNum == null || corpNum.isEmpty())
			throw new PopbillException(-99999999, "연동회원 사업자번호(corpNum)가 입력되지 않았습니다.");
		if (deptUserID == null || deptUserID.isEmpty())
			throw new PopbillException(-99999999, "홈택스 부서사용자 계정 아이디(deptUserID)가 입력되지 않았습니다.");
		if (deptUserPWD == null || deptUserPWD.isEmpty())
			throw new PopbillException(-99999999, "홈택스 부서사용자 계정 비밀번호(deptUserPWD)가 입력되지 않았습니다.");
		
		DeptRequest request = new DeptRequest();
		request.id = deptUserID;
		request.pwd = deptUserPWD;
		
		String PostData = toJsonString(request);		

		return httppost("/HomeTax/Taxinvoice/DeptUser", corpNum, PostData, null, Response.class);
	}
459920
@Override
    public String getPopUpURL(String CorpNum, MgtKeyType KeyType,
                              String MgtKey, String UserID) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        URLResponse response = httpget("/Taxinvoice/" + KeyType.name() + "/"
                + MgtKey + "?TG=POPUP", CorpNum, UserID, URLResponse.class);

        return response.url;
    }
831091
public Response checkLoginDeptUser(String CorpNum) throws PopbillException{
		if (CorpNum == null || CorpNum.isEmpty())
			throw new PopbillException(-99999999, "연동회원 사업자번호(CorpNum)가 입력되지 않았습니다.");
		
		return httpget("/HomeTax/Taxinvoice/DeptUser/Check", CorpNum, null, Response.class); 
	}
345522
@Override
    public Response register(String CorpNum, Taxinvoice taxinvoice,
                             String UserID) throws PopbillException {
        return register(CorpNum, taxinvoice, UserID, false);
    }
1235971
@Override
    public Response register(String CorpNum, Taxinvoice taxinvoice)
            throws PopbillException {
        return register(CorpNum, taxinvoice, null);
    }
1298082
@Override
	public Response update(String CorpNum, int ItemCode, String MgtKey,
			Statement statement) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");
				
		return update(CorpNum, ItemCode, MgtKey, statement, null);
	}
1197865
@Override
	public String FAXSend(String CorpNum, Statement statement, String sendNum, String receiveNum, String UserID)
			throws PopbillException {
		if (sendNum == null || sendNum.isEmpty())
			throw new PopbillException(-99999999, "발신번호가 입력되지 않았습니다.");
		if (receiveNum == null || receiveNum.isEmpty())
			throw new PopbillException(-99999999, "수신팩스번호가 입력되지 않았습니다.");
		
		statement.setSendNum(sendNum);
		statement.setReceiveNum(receiveNum);
		
		String PostData = toJsonString(statement);
		
		ReceiptResponse response = httppost("/Statement",
				CorpNum, PostData, UserID, "FAX", ReceiptResponse.class);
		
		return response.receiptNum;
	}
972682
@Override
	public FaxResult[] getFaxResultRN(String corpNum, String requestNum)
			throws PopbillException {
		if (requestNum == null)
			throw new PopbillException(-99999999, "전송요청번호가 입력되지 않았습니다.");

		return httpget("/FAX/Get/" + requestNum, corpNum, null,
				FaxResult[].class);
	}
152930
@Override
    public SentMessage[] getMessagesRN(String CorpNum, String requestNum)
            throws PopbillException {
        if (requestNum == null)
            throw new PopbillException(-99999999, "전송요청번호가 입력되지 않았습니다.");

        return httpget("/Message/Get/" + requestNum, CorpNum, null,
                SentMessage[].class);
    }
850512
@Override
	public HTTaxinvoiceXMLResponse getXML(String CorpNum, String NTSConfirmNum,
			String UserID) throws PopbillException {
		if ( NTSConfirmNum.length() != 24 )
			throw new PopbillException(-99999999, "국세청승인번호가 올바르지 않았습니다.");
		return httpget("/HomeTax/Taxinvoice/" +NTSConfirmNum+"?T=xml", CorpNum, UserID, HTTaxinvoiceXMLResponse.class);
	}
412914
def getMessages(self, CorpNum, ReceiptNum, UserID=None):
        
        if ReceiptNum == None or len(ReceiptNum) != 18:
            raise PopbillException(-99999999, "접수번호가 올바르지 않습니다.")

        return self._httpget('/Message/' + ReceiptNum, CorpNum, UserID)
557303
@Override
	public Response register(String CorpNum, Cashbill cashbill)
			throws PopbillException {
		return register(CorpNum, cashbill, null);
	}
450515
def checkCorpNum(self, MemberCorpNum, CheckCorpNum):
        

        if MemberCorpNum == None or MemberCorpNum == "" :
            raise PopbillException(-99999999,"팝빌회원 사업자번호가 입력되지 않았습니다.")

        if CheckCorpNum == None or CheckCorpNum == "" :
            raise PopbillException(-99999999,"조회할 사업자번호가 입력되지 않았습니다.")

        return self._httpget('/CloseDown?CN=' +CheckCorpNum, MemberCorpNum)