Method: Conekta::OrderCaptureRequest#valid?

Defined in:
lib/conekta/models/order_capture_request.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



86
87
88
89
90
91
# File 'lib/conekta/models/order_capture_request.rb', line 86

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @amount.nil?
  return false if @amount < 1
  true
end