Method: OpenapiClient::Secure3DAuthenticationResult#list_invalid_properties

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

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/openapi_client/models/secure3_d_authentication_result.rb', line 135

def list_invalid_properties
  invalid_properties = super
  if !@cavv.nil? && @cavv.to_s.length > 32
    invalid_properties.push('invalid value for "cavv", the character length must be smaller than or equal to 32.')
  end

  if !@cavv.nil? && @cavv.to_s.length < 20
    invalid_properties.push('invalid value for "cavv", the character length must be great than or equal to 20.')
  end

  if !@xid.nil? && @xid.to_s.length > 32
    invalid_properties.push('invalid value for "xid", the character length must be smaller than or equal to 32.')
  end

  if !@xid.nil? && @xid.to_s.length < 20
    invalid_properties.push('invalid value for "xid", the character length must be great than or equal to 20.')
  end

  invalid_properties
end