Esempio n. 1
0
 public async Task <BillingsResult> InputScheduledPaymentAsync(string sessionKey, Billing[] billings)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = (await billingScheduledPaymentProcessor.SaveAsync(billings, token)).ToList();
         return new BillingsResult {
             Billings = result,
             ProcessResult = new ProcessResult {
                 Result = true
             }
         };
     }, logger));
 }
Esempio n. 2
0
 public async Task <IEnumerable <Billing> > InputScheduledPayment(IEnumerable <Billing> billings, CancellationToken token)
 => (await billingScheduledPaymentProcessor.SaveAsync(billings, token)).ToArray();