/*
(non-Javadoc)

@see com.popbill.api.FaxService#getUnitCost
321258
@Override
	public float getUnitCost(String corpNum) throws PopbillException {
		UnitCostResponse response = httpget("/FAX/UnitCost",
				corpNum, null, UnitCostResponse.class);

		return response.unitCost;
	}
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;
    }
951093
@Override
	public HTTaxinvoice getTaxinvoice(String CorpNum, String NTSConfirmNum,
			String UserID) throws PopbillException {
		
		if ( NTSConfirmNum.length() != 24 )
			throw new PopbillException(-99999999, "국세청승인번호가 올바르지 않았습니다.");
		
		return httpget("/HomeTax/Taxinvoice/" +NTSConfirmNum, CorpNum, UserID, HTTaxinvoice.class);
	}
315401
@Override
	public String sendFAX(String corpNum, String sendNum, Receiver[] receivers,
			File file, Date reserveDT) throws PopbillException {

		return requestFax(corpNum, sendNum, null, receivers, new File[]{file}, 
				reserveDT, null, null, null, null);
	}
941903
@Override
	public ChargeInfo getChargeInfo(String corpNum) throws PopbillException {
		return httpget("/FAX/ChargeInfo", corpNum, null, ChargeInfo.class);
	}
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;
	}
1073560
def getUnitCost(self, CorpNum):
        

        result = self._httpget('/FAX/UnitCost', CorpNum)
        return int(result.unitCost)
1146775
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.adwords.axis.v201809.billing.BudgetOrderServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.adwords.axis.v201809.billing.BudgetOrderServiceSoapBindingStub _stub = new com.google.api.ads.adwords.axis.v201809.billing.BudgetOrderServiceSoapBindingStub(new java.net.URL(BudgetOrderServiceInterfacePort_address), this);
                _stub.setPortName(getBudgetOrderServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
1272369
@Override
	public String getEPrintURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getEPrintURL(CorpNum, MgtKey, null);
	}
451554
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.admanager.axis.v201902.ContactServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.admanager.axis.v201902.ContactServiceSoapBindingStub _stub = new com.google.api.ads.admanager.axis.v201902.ContactServiceSoapBindingStub(new java.net.URL(ContactServiceInterfacePort_address), this);
                _stub.setPortName(getContactServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
806780
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.adwords.axis.v201809.cm.AdGroupServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.adwords.axis.v201809.cm.AdGroupServiceSoapBindingStub _stub = new com.google.api.ads.adwords.axis.v201809.cm.AdGroupServiceSoapBindingStub(new java.net.URL(AdGroupServiceInterfacePort_address), this);
                _stub.setPortName(getAdGroupServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
81669
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.adwords.axis.v201809.cm.CustomerExtensionSettingServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.adwords.axis.v201809.cm.CustomerExtensionSettingServiceSoapBindingStub _stub = new com.google.api.ads.adwords.axis.v201809.cm.CustomerExtensionSettingServiceSoapBindingStub(new java.net.URL(CustomerExtensionSettingServiceInterfacePort_address), this);
                _stub.setPortName(getCustomerExtensionSettingServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
1371746
@Override
	public String getURL(String CorpNum, String TOGO)
			throws PopbillException {
		return getURL(CorpNum, null, TOGO);
	}
348109
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.adwords.axis.v201809.cm.DraftServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.adwords.axis.v201809.cm.DraftServiceSoapBindingStub _stub = new com.google.api.ads.adwords.axis.v201809.cm.DraftServiceSoapBindingStub(new java.net.URL(DraftServiceInterfacePort_address), this);
                _stub.setPortName(getDraftServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
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;
	}
1048537
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.adwords.axis.v201809.cm.CampaignCriterionServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.adwords.axis.v201809.cm.CampaignCriterionServiceSoapBindingStub _stub = new com.google.api.ads.adwords.axis.v201809.cm.CampaignCriterionServiceSoapBindingStub(new java.net.URL(CampaignCriterionServiceInterfacePort_address), this);
                _stub.setPortName(getCampaignCriterionServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
1077390
protected FaxJobStatus getFaxJobStatusFromWindowsFaxJobStatusString(String faxJobStatusStr)
    {
        FaxJobStatus faxJobStatus=FaxJobStatus.UNKNOWN;
        if((faxJobStatusStr!=null)&&(faxJobStatusStr.length()>0))
        {
            if((faxJobStatusStr.equalsIgnoreCase("Pending"))||(faxJobStatusStr.equalsIgnoreCase("Paused"))||(faxJobStatusStr.equalsIgnoreCase("Retrying")))
            {
                faxJobStatus=FaxJobStatus.PENDING;
            }
            else if(faxJobStatusStr.equalsIgnoreCase("In Progress"))
            {
                faxJobStatus=FaxJobStatus.IN_PROGRESS;
            }
            else if((faxJobStatusStr.equalsIgnoreCase("Failed"))||(faxJobStatusStr.equalsIgnoreCase("No Line"))||(faxJobStatusStr.equalsIgnoreCase("Retries Exceeded")))
            {
                faxJobStatus=FaxJobStatus.ERROR;
            }
        }
        
        return faxJobStatus;
    }