public async Task <GetBillingDocumentsInfoResponse> GetBillingDocumentsInfoAsync(
            IList <long> accountIds,
            DateTime startDate,
            DateTime?endDate)
        {
            var request = new GetBillingDocumentsInfoRequest
            {
                AccountIds = accountIds,
                StartDate  = startDate,
                EndDate    = endDate
            };

            return(await CustomerBillingService.CallAsync((s, r) => s.GetBillingDocumentsInfoAsync(r), request));
        }
Ejemplo n.º 2
0
        public async Task <GetBillingDocumentsInfoResponse> GetBillingDocumentsInfoAsync(ApiAuthentication auth, long[] accountIds, DateTime start, DateTime end)
        {
            var request = new GetBillingDocumentsInfoRequest
            {
                AccountIds = accountIds,
                StartDate  = start,
                EndDate    = end,
            };

            try
            {
                SetAuthHelper.SetAuth(auth, request);

                return(await Check().GetBillingDocumentsInfoAsync(request));
            }
            catch (Exception ex)
            {
                Log(new LogEventArgs(ServiceType.CustomerBilling, "GetBillingDocumentsInfoAsync", ex.Message, new { Request = request }, ex));
            }

            return(null);
        }