internal OpenAmountRefund(int amountInCents, Invoice.RefundMethod method = Invoice.RefundMethod.CreditFirst)
 {
     AmountInCents = amountInCents;
     RefundOptions = new Invoice.RefundOptions()
     {
         Method = method
     };
 }
Beispiel #2
0
        internal RefundList(IEnumerable <Adjustment> adjustments, Invoice.RefundOptions options)
        {
            foreach (var adjustment in adjustments)
            {
                var refund = new Refund(adjustment);
                Refunds.Add(refund);
            }

            RefundOptions = options;
        }
Beispiel #3
0
        internal RefundList(IEnumerable <Adjustment> adjustments, bool prorate, int quantity = 0, Invoice.RefundMethod method = Invoice.RefundMethod.CreditFirst)
        {
            foreach (var adjustment in adjustments)
            {
                var count = quantity == 0
                    ? adjustment.Quantity
                    : quantity;

                var refund = new Refund(adjustment, prorate, count);
                Refunds.Add(refund);
            }

            RefundOptions = new Invoice.RefundOptions()
            {
                Method = method
            };
        }
 internal OpenAmountRefund(int amountInCents, Invoice.RefundOptions options)
 {
     AmountInCents = amountInCents;
     RefundOptions = options;
 }