Method: OpenapiClient::SubMerchantSplit#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



90
91
92
93
94
95
96
# File 'lib/openapi_client/models/sub_merchant_split.rb', line 90

def valid?
  return false if @merchant_id.nil?
  return false if @merchant_id.to_s.length > 15
  return false if @merchant_id !~ Regexp.new(/[0-9]{1,15}/)
  return false if @amount.nil?
  true
end