Method: OpenapiClient::Merchant#list_invalid_properties
- Defined in:
- lib/openapi_client/models/merchant.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/openapi_client/models/merchant.rb', line 83 def list_invalid_properties invalid_properties = Array.new if @merchant_unique_id.nil? invalid_properties.push('invalid value for "merchant_unique_id", merchant_unique_id cannot be nil.') end pattern = Regexp.new(/^(?!\s*$).+/) if @merchant_unique_id !~ pattern invalid_properties.push("invalid value for \"merchant_unique_id\", must conform to the pattern #{pattern}.") end invalid_properties end |