public async Task <DeleteInvoiceResponse> DeleteProFormaInvoice(DeleteInvoiceRequest request) { using (var xmlStream = XMLRenderer.RenderRequest(request)) { using (var requestStream = CompressXmlStream(xmlStream)) { var doc = await HttpUploadXmlFile("https://www.szamlazz.hu/szamla/", requestStream.ToArray(), "action-szamla_agent_dijbekero_torlese"); return(XmlParser.ParseDeleteInvoiceResponse(doc)); } } }
public async Task <GetInvoiceResponse> GetInvoice(GetInvoiceRequest request) { using (var xmlStream = XMLRenderer.RenderRequest(request)) { using (var requestStream = CompressXmlStream(xmlStream)) { var doc = await HttpUploadXmlFile("https://www.szamlazz.hu/szamla/", requestStream.ToArray(), "action-szamla_agent_xml"); return(XmlParser.ParseGetInvoiceResponse(doc)); } } }