eSeal Solution is a smart service to deliver the eInvoice from the taxpayers ERP business to the Egyptian Tax Authority (ETA) with high efficiency and short time, it will do all the calculation, serialization, signing of their invoices and send all to (ETA) system.
MiddlwareLibraryCore is the main library to communicate with the eSeal Solution
- Initialize a new Invoice type by using object initializers.
var invoice = new Invoice ();
- Recieves the invoice information from your ERP or your Database
invoice. DateTimeIssued = DateTime.UtcNow;
invoice.InternalId = "IID001";
invoice.ExtraDiscountAmount = 5;
- Initialize a new generic HttpClientHelper type of type Invoice by using object initializers.
IHttpClientHelper<Invoice> helper = new HttpClientHelper<Invoice>();
- Pass the URL of the eSeal Solution as the first Parameter and the initalized invoice to generic PostAsync method.
var url = "<Middleware Ulr>";
var result = default(ResponseModel);
helper.PostAsync<ResponseModel>(url, invoice).ContinueWith(t => result = t.Result);