public static InvoiceListRequest GetInvoiceListRequest() { List<InvoiceCustomerFilter> filters = new List<InvoiceCustomerFilter> { InvoiceCustomerFilterTest.GetInvoiceCustomerFilter() }; InvoiceListRequest invoiceListRequest = new InvoiceListRequest { customers = filters }; return invoiceListRequest; }
public static InvoiceList getInvoices(InvoiceListRequest request) { if (merchantProvider == null) { throw new NotImplementedException("Couldn't find a valid IMerchantProvider implementation"); } logger.Debug("Expressly plugin endpoint 'getInvoices' is called. Params - InvoiceListRequest: " + request); return(merchantProvider.getInvoices(request)); }
public InvoiceList getInvoices(InvoiceListRequest request) { var orderList = new List<Order>(); var order = new Order { id = "ORDER-5321311", date = "2015-07-10", itemCount = 2, coupon = "COUPON", currency = "GBP", preTaxTotal = 100.00, postTaxTotal = 110.00, tax = 10.00 }; orderList.Add(order); var invoiceList = new InvoiceList(); var invoce = new Invoice { email = "*****@*****.**", orderCount = 1, preTaxTotal = 100.00, postTaxTotal = 110.00, tax = 10.00, orders = orderList }; invoiceList.invoices = new List<Invoice> { invoce }; return invoiceList; }