Method: OpenapiClient::ProcessorData#valid?
- Defined in:
- lib/openapi_client/models/processor_data.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
197 198 199 200 201 202 |
# File 'lib/openapi_client/models/processor_data.rb', line 197 def valid? security_code_response_validator = EnumAttributeValidator.new('String', ["MATCHED", "NOT_MATCHED", "NOT_PROCESSED", "NOT_PRESENT", "NOT_CERTIFIED", "NOT_CHECKED"]) return false unless security_code_response_validator.valid?(@security_code_response) return false if !@merchant_advice_code_indicator.nil? && @merchant_advice_code_indicator !~ Regexp.new(/[0-9]{2}/) true end |