Пример #1
0
        public virtual InitializePaymentRequest WithPaymentMethods(params PaymentMethod[] items)
        {
            Ensure.That(items, "items").HasItems();

            InternalPaymentMethods.Clear();
            InternalPaymentMethods.AddRange(items);

            return(this);
        }
Пример #2
0
        public virtual InitializePaymentRequest WithPaymentMethods(IEnumerable <PaymentMethod> items)
        {
            Ensure.That(items, "items").IsNotNull();

            InternalPaymentMethods.Clear();
            InternalPaymentMethods.AddRange(items);

            return(this);
        }
Пример #3
0
        public virtual InitializePaymentRequest ClearPaymentMethods()
        {
            InternalPaymentMethods.Clear();

            return(this);
        }