partial void OnVendorPaymentMethodChanging(global::Microsoft.Dynamics.DataEntities.VendorPaymentMethod value);
        public static VendorPaymentMethodSpecification CreateVendorPaymentMethodSpecification(string dataAreaId, string paymentMethodName, string name, global::Microsoft.Dynamics.DataEntities.VendorPaymentMethod vendorPaymentMethod)
        {
            VendorPaymentMethodSpecification vendorPaymentMethodSpecification = new VendorPaymentMethodSpecification();

            vendorPaymentMethodSpecification.dataAreaId        = dataAreaId;
            vendorPaymentMethodSpecification.PaymentMethodName = paymentMethodName;
            vendorPaymentMethodSpecification.Name = name;
            if ((vendorPaymentMethod == null))
            {
                throw new global::System.ArgumentNullException("vendorPaymentMethod");
            }
            vendorPaymentMethodSpecification.VendorPaymentMethod = vendorPaymentMethod;
            return(vendorPaymentMethodSpecification);
        }