Method: OpenapiClient::UpdatePaymentToken#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/openapi_client/models/update_payment_token.rb', line 87

def list_invalid_properties
  invalid_properties = Array.new
  if @value.nil?
    invalid_properties.push('invalid value for "value", value cannot be nil.')
  end

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

  invalid_properties
end