class Quickeebooks::Windows::Model::PaymentHeader

Private Instance Methods

customer_is_valid() click to toggle source
# File lib/quickeebooks/windows/model/payment_header.rb, line 36
def customer_is_valid
  if customer_id.nil?
    errors.add(:customer_id, "Missing customer_id")
  else
    # ensure its we have a non-blank Customer ID value
    if customer_id.to_s.length == 0
      errors.add(:customer_id, "customer_id is supplied but its value is empty")
    end
  end
end