var store = new InvoiceStore(new ProviderInfo { Bank = "My Bank", BankAccountNumber = "12345678-12345678" });

store.LoginToEInvoice("user", "password");
var request = store.AddNew();

request.Customer.PrimaryAddress.Name = "Vezetéknév Keresztnév";
request.Customer.PrimaryAddress.ZIPCode = "1111";
request.Customer.PrimaryAddress.City = "Város";
request.Customer.PrimaryAddress.Address = "Cím utca Házszám";
request.Customer.PrimaryAddress.Country = "Magyarország";
request.Customer.TaxNumber = "12345678';

request.Header.Occurence = DateTime.Now;
request.Header.Completition = DateTime.Now;
request.Header.Deadline = DateTime.Now.AddDays(8);
request.Header.PaymentMethod = PaymentMethods.Cash;
request.Header.Currency = "Ft";
request.Header.Language = Languages.Hungarian;
request.Header.OrderNumber = "EXTERNAL1";
request.Header.IsProformaInvoice = false;
request.DownloadPdf = true;

request.Items.CreateGrossBased("Valami dolog", "db", 1, 1000, Taxes.Codes["27"]);

var result = store.RequestAll().FirstOrDefault();

if (result.IsSuccessfull) { // TODO: sikeres számla létrehozás }
else { // TODO: sikertelen számla létrehozás }

Last edited Nov 12, 2014 at 7:30 PM by danleis, version 3