partial void OnCustomerPaymentMethodChanging(global::Microsoft.Dynamics.DataEntities.CustomerPaymentMethod value);
public static CustomerPaymentMethodSpecification CreateCustomerPaymentMethodSpecification(string dataAreaId, string paymentMethodName, string name, global::Microsoft.Dynamics.DataEntities.CustomerPaymentMethod customerPaymentMethod) { CustomerPaymentMethodSpecification customerPaymentMethodSpecification = new CustomerPaymentMethodSpecification(); customerPaymentMethodSpecification.dataAreaId = dataAreaId; customerPaymentMethodSpecification.PaymentMethodName = paymentMethodName; customerPaymentMethodSpecification.Name = name; if ((customerPaymentMethod == null)) { throw new global::System.ArgumentNullException("customerPaymentMethod"); } customerPaymentMethodSpecification.CustomerPaymentMethod = customerPaymentMethod; return(customerPaymentMethodSpecification); }