public virtual InitializePaymentRequest AddPaymentMethod(PaymentMethod item) { Ensure.That(item, "item").IsNotNull(); InternalPaymentMethods.Add(item); return(this); }
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); }
public virtual InitializePaymentRequest ClearPaymentMethods() { InternalPaymentMethods.Clear(); return(this); }