Method: OpenapiClient::CardInfoLookupRequest#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/openapi_client/models/card_info_lookup_request.rb', line 65

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

  if @payment_card.nil?
    invalid_properties.push('invalid value for "payment_card", payment_card cannot be nil.')
  end

  invalid_properties
end