public async Task <GetBillingDocumentsResponse> GetBillingDocumentsAsync( IList <BillingDocumentInfo> billingDocumentsInfo, DataType type) { var request = new GetBillingDocumentsRequest { BillingDocumentsInfo = billingDocumentsInfo, Type = type }; return(await CustomerBillingService.CallAsync((s, r) => s.GetBillingDocumentsAsync(r), request)); }
public async Task <GetBillingDocumentsResponse> GetBillingDocumentsAsync( IList <long> documentIds, DataType type) { var request = new GetBillingDocumentsRequest { DocumentIds = documentIds, Type = type }; return(await CustomerBillingService.CallAsync((s, r) => s.GetBillingDocumentsAsync(r), request)); }
public async Task <GetBillingDocumentsResponse> GetBillingDocumentsAsync(ApiAuthentication auth, long[] documentIds, DataType dataType = DataType.Xml) { var request = new GetBillingDocumentsRequest { DocumentIds = documentIds, Type = dataType, }; try { SetAuthHelper.SetAuth(auth, request); return(await Check().GetBillingDocumentsAsync(request)); } catch (Exception ex) { Log(new LogEventArgs(ServiceType.CustomerBilling, "GetBillingDocumentsAsync", ex.Message, new { Request = request }, ex)); } return(null); }