示例#1
0
        public virtual InitializePaymentRequest WithPaymentMethods(IEnumerable <PaymentMethod> items)
        {
            Ensure.That(items, "items").IsNotNull();

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

            return(this);
        }
示例#2
0
        public virtual InitializePaymentRequest WithPaymentMethods(params PaymentMethod[] items)
        {
            Ensure.That(items, "items").HasItems();

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

            return(this);
        }