Method: OpenapiClient::Merchant#valid?

Defined in:
lib/openapi_client/models/merchant.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



99
100
101
102
103
# File 'lib/openapi_client/models/merchant.rb', line 99

def valid?
  return false if @merchant_unique_id.nil?
  return false if @merchant_unique_id !~ Regexp.new(/^(?!\s*$).+/)
  true
end