public async Task <BillingsResult> GetItemsForScheduledPaymentImportAsync(string SessionKey, int CompanyId, ScheduledPaymentImport[] SchedulePayment, ImporterSettingDetail[] details) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var billing = (await billingScheduledPaymentProcessor.GetAsync(new BillingScheduledPaymentImportSource { CompanyId = CompanyId, Details = details, Items = SchedulePayment, }, token)).ToList(); return new BillingsResult { ProcessResult = new ProcessResult { Result = true }, Billings = billing, }; }, logger)); }
private async Task <List <Billing> > GetBillingsAsync(int companyId, ScheduledPaymentImport[] items, ImporterSettingDetail[] details, CancellationToken token) => (await billingScheduledPaymentProcessor.GetAsync(new BillingScheduledPaymentImportSource { CompanyId = companyId, Details = details, Items = items, }, token)).ToList();