Method: DigitalFemsa::CheckoutRequest#list_invalid_properties

Defined in:
lib/digital_femsa/models/checkout_request.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



126
127
128
129
130
131
132
133
134
# File 'lib/digital_femsa/models/checkout_request.rb', line 126

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @allowed_payment_methods.nil?
    invalid_properties.push('invalid value for "allowed_payment_methods", allowed_payment_methods cannot be nil.')
  end

  invalid_properties
end