module PostcodeAnywhere::BankAccountValidation::Interactive
Constants
- API_VERSION
- RETRIEVE_BY_SORTCODE_ENDPOINT
- VALIDATE_ACCOUNT_ENDPOINT
Public Instance Methods
retrieve_by_sortcode(sort_code, options = {})
click to toggle source
# File lib/postcode_anywhere/bank_account_validation/interactive.rb, line 18 def retrieve_by_sortcode(sort_code, options = {}) options.merge!('SortCode' => sort_code) perform_with_object( :get, RETRIEVE_BY_SORTCODE_ENDPOINT, options, PostcodeAnywhere::BankAccountValidation::BankBranch ) end
validate_account(account_number, sort_code, options = {})
click to toggle source
# File lib/postcode_anywhere/bank_account_validation/interactive.rb, line 28 def validate_account(account_number, sort_code, options = {}) options.merge!('SortCode' => sort_code, 'AccountNumber' => account_number) perform_with_object( :get, VALIDATE_ACCOUNT_ENDPOINT, options, PostcodeAnywhere::BankAccountValidation::ValidationResult ) end