public virtual InitializePaymentRequest WithPaymentMethods(IEnumerable <PaymentMethod> items) { Ensure.That(items, "items").IsNotNull(); InternalPaymentMethods.Clear(); InternalPaymentMethods.AddRange(items); return(this); }
public virtual InitializePaymentRequest WithPaymentMethods(params PaymentMethod[] items) { Ensure.That(items, "items").HasItems(); InternalPaymentMethods.Clear(); InternalPaymentMethods.AddRange(items); return(this); }