public void TestGetTaxInvoiceReceipt() { var service = new TransactionServiceImpl.TransactionService(); GetTaxInvoiceReceiptResponse res = service.GetTaxInvoiceReceiptByPaymentId( new GetTaxInvoiceReceiptRequest { PaymentId = "8" }); byte[] report = res.TaxInvoicePDF; }
public GetTaxInvoiceReceiptResponse GetTaxInvoiceReceiptByPaymentId(GetTaxInvoiceReceiptRequest req) { var res = new GetTaxInvoiceReceiptResponse(); try { long paymentId = long.Parse(req.PaymentId); var pdf = TaxInvoiceReceiptReport.CreateTaxInvoiceReceipt(paymentId); res.TaxInvoicePDF = pdf; res.Succeed(); } catch (Exception ex) { res.Fail(ex); CreateLog(ex); } return(res); }