internal void SetFailure(RecurringPaymentInput input)
        {
            IsSuccessful = false;

            if (input.CurrentRetry <= input.MaxRetries)
            {
                NextFailedRetry = DateTime.Now.Date.AddDays(input.RetryInterval).Date;
                CurrentRetry    = input.CurrentRetry + 1;
                LastFailedRetry = DateTime.Now.Date;
            }
        }
 public MonerisRecurringPaymentOutput(RecurringPaymentInput input)
     : base(input)
 {
 }
 protected RecurringPaymentOutput(RecurringPaymentInput input)
 {
     CurrentRetry      = input.CurrentRetry;
     NextFailedRetry   = input.NextFailedRetry;
     InvoiceIdentifier = input.InvoiceIdentifier;
 }