Esempio n. 1
0
        public async Task <IEnumerable <ClientInvoice> > GetClientInvoicesAsync(ClientInvoiceFilter filter)
        {
            var url = QueryStringUrl.GetUrl("/client/invoice", filter.ToQueryStringDictionary());

            return(await _httpClient.GetListAsync <clientinvoices, clientinvoice, ClientInvoice>(url, x => x.clientinvoice, ClientInvoice.FromNative));
        }
Esempio n. 2
0
        public async Task <ItemCreated> CreateClientInvoiceAsync(ClientInvoiceCreate item, ClientInvoiceCreateOptions options)
        {
            var url = QueryStringUrl.GetUrl("/client/invoice", options.ToQueryStringDictionary());

            return(await _httpClient.PutAsync <clientinvoice, ItemCreated>(url, item.ToNative()));
        }
Esempio n. 3
0
        public async Task <IEnumerable <Event> > GetEventsAsync(EventFilter filter)
        {
            var url = QueryStringUrl.GetUrl("/event", filter.ToQueryStringDictionary());

            return(await _httpClient.GetListAsync <eventreadables, eventreadable, Event>(url, x => x.eventreadable, Event.FromNative));
        }