/// <summary> /// GET api/IssuedInvoices/Expand /// Returns Issued invoice list with related entities such as contact information etc. /// </summary> public RowsResultWrapper<IssuedInvoiceExpand> IssuedInvoicesExpand(IssuedInvoiceFilter filter = null) { return Get<RowsResultWrapper<IssuedInvoiceExpand>>(ResourceUrl + "/Expand", filter); }
/// <summary> /// GET api/IssuedInvoices/{contactId}/IssuedInvoices /// Returns invoice list for specific contact. /// </summary> public RowsResultWrapper<IssuedInvoice> IssuedInvoicesByContact(int contactId, IssuedInvoiceFilter filter = null) { return Get<RowsResultWrapper<IssuedInvoice>>(ResourceUrl + "/" + contactId + "/IssuedInvoices", filter); }
/// <summary> /// GET api/IssuedInvoices /// Returns list of issued invoices. Filters are optional. /// </summary> public RowsResultWrapper<IssuedInvoice> IssuedInvoices(IssuedInvoiceFilter filter = null) { return Get<RowsResultWrapper<IssuedInvoice>>(ResourceUrl, filter); }
private void IssuedInvoicesByContactWithConstantSymbol(int id, IssuedInvoiceFilter filter) { // Act var result = ApiExplorer.IssuedInvoices.IssuedInvoicesByContact(id, filter); // Assert Assert.IsNotNull(result); Assert.IsNotNull(result.Data); Assert.AreEqual(id, result.Data.FirstOrDefault().PurchaserId); Assert.AreEqual(filter.ConstantSymbolId, result.Data.FirstOrDefault().ConstantSymbolId); }