/// <summary> /// Get document by type /// </summary> /// <param name="documentType"></param> /// <returns></returns> public Document GetDocumentByType(string documentType) { getDocumentByType getDocumentByType = new getDocumentByType() { type = documentType.ToString(), transactionId = TransactionId }; getDocumentByTypeResponse getDocumentByTypeResponse = _DocumentPortClient.getDocumentByType(getDocumentByType); Document doc = getDocumentByTypeResponse.document; return doc; }
/// <summary> /// Get document by type /// </summary> /// <param name="documentType"></param> /// <returns></returns> public Document GetDocumentByType(DocumentTypes documentType) { getDocumentByType getDocumentByType = new getDocumentByType() { type = documentType.ToString(), service = _Scenario.Service, transactionId = TransactionId }; getDocumentByTypeResponse getDocumentByTypeResponse = _DocumentPortCli.getDocumentByType(getDocumentByType); Document doc = getDocumentByTypeResponse.document; return doc; }