README.markdown in kontoapi-rails-0.0.3 vs README.markdown in kontoapi-rails-0.2.0
- old
+ new
@@ -41,9 +41,27 @@
# If validations fails, an error within the standard ActiveRecord I18n scopes
# will be added to the :account_number_field:
# :invalid <-- if it is invalid
# :timeout <-- if :on_timeout is set to :fail and the api call timed out
validates_account_data
+
+ # IBAN validation
+ # Check if the given IBAN is valid
+ # Takes any of the following options (the defaults are shown here):
+ # :allow_nil => true, <-- don't validate if nil
+ # :on_timeout => :ignore <-- do nothing if a timeout occurs, others:
+ # :fail <-- throw a validation error
+ # :retry <-- (not supported yet)
+ validates_iban :iban
+
+ # BIC validation
+ # Check if the given BIC exists
+ # Takes any of the following options (the defaults are shown here):
+ # :allow_nil => true, <-- don't validate if nil
+ # :on_timeout => :ignore <-- do nothing if a timeout occurs, others:
+ # :fail <-- throw a validation error
+ # :retry <-- (not supported yet)
+ validates_bic :bic
end
And if you want to autocomplete the bank name: