Class: Loqate::Bank::AccountValidation
- Inherits:
-
Dry::Struct::Value
- Object
- Dry::Struct::Value
- Loqate::Bank::AccountValidation
- Defined in:
- lib/loqate/bank/account_validation.rb
Overview
Result of a bank account validation.
Constant Summary collapse
- StatusInformation =
Types::Strict::String.enum('DetailsChanged', 'CautiousOK')
Instance Method Summary collapse
-
#bank ⇒ String
The name of the banking institution.
-
#bank_bic ⇒ String
The banking institution’s BIC, also know as the SWIFT BIC.
-
#branch ⇒ String
The name of the account holding branch.
-
#branch_bic ⇒ String
The branch’s BIC.
-
#chaps_supported ⇒ Boolean
Indicates that the account supports the CHAPS service.
-
#contact_address_line1 ⇒ String
Line 1 of the branch’s contact address.
-
#contact_address_line2 ⇒ String
Line 2 of the branch’s contact address.
-
#contact_fax ⇒ String
The branch’s contact fax number.
-
#contact_phone ⇒ String
The branch’s contact phone number.
-
#contact_post_town ⇒ String
The branch’s contact post town.
-
#contact_postcode ⇒ String
The branch’s contact postcode.
-
#corrected_account_number ⇒ String
The correct version of the AccountNumber.
-
#corrected_sort_code ⇒ String
The correct version of the SortCode.
-
#faster_payments_supported ⇒ Boolean
Indicates that the account supports the faster payments service.
-
#iban ⇒ String
The correctly formatted IBAN for the account.
-
#is_correct ⇒ Boolean
(also: #correct?)
Indicates whether the account number and sortcode are valid.
-
#is_direct_debit_capable ⇒ Boolean
Indicates whether the account can accept direct debits.
-
#status_information ⇒ String
More detail about the outcome of the validation process.
Instance Method Details
#bank ⇒ String
The name of the banking institution.
54 |
# File 'lib/loqate/bank/account_validation.rb', line 54 attribute :bank, Types::Strict::String |
#bank_bic ⇒ String
The banking institution’s BIC, also know as the SWIFT BIC.
60 |
# File 'lib/loqate/bank/account_validation.rb', line 60 attribute :bank_bic, Types::Strict::String |
#branch ⇒ String
The name of the account holding branch.
66 |
# File 'lib/loqate/bank/account_validation.rb', line 66 attribute :branch, Types::Strict::String |
#branch_bic ⇒ String
The branch’s BIC.
72 |
# File 'lib/loqate/bank/account_validation.rb', line 72 attribute :branch_bic, Types::Strict::String |
#chaps_supported ⇒ Boolean
Indicates that the account supports the CHAPS service.
121 |
# File 'lib/loqate/bank/account_validation.rb', line 121 attribute :chaps_supported, Types::Strict::Bool |
#contact_address_line1 ⇒ String
Line 1 of the branch’s contact address. NB: This is the address to be used for BACs enquiries and may be a contact centre rather than the branch’s address.
79 |
# File 'lib/loqate/bank/account_validation.rb', line 79 attribute :contact_address_line1, Types::Strict::String |
#contact_address_line2 ⇒ String
Line 2 of the branch’s contact address.
85 |
# File 'lib/loqate/bank/account_validation.rb', line 85 attribute :contact_address_line2, Types::Strict::String |
#contact_fax ⇒ String
The branch’s contact fax number.
109 |
# File 'lib/loqate/bank/account_validation.rb', line 109 attribute :contact_fax, Types::Strict::String |
#contact_phone ⇒ String
The branch’s contact phone number.
103 |
# File 'lib/loqate/bank/account_validation.rb', line 103 attribute :contact_phone, Types::Strict::String |
#contact_post_town ⇒ String
The branch’s contact post town.
91 |
# File 'lib/loqate/bank/account_validation.rb', line 91 attribute :contact_post_town, Types::Strict::String |
#contact_postcode ⇒ String
The branch’s contact postcode.
97 |
# File 'lib/loqate/bank/account_validation.rb', line 97 attribute :contact_postcode, Types::Strict::String |
#corrected_account_number ⇒ String
The correct version of the AccountNumber. This will be 8 digits long and in the form expected for BACs submission.
42 |
# File 'lib/loqate/bank/account_validation.rb', line 42 attribute :corrected_account_number, Types::Strict::String |
#corrected_sort_code ⇒ String
The correct version of the SortCode. This will be 6 digits long with no hyphens. It may differ from the original sortcode.
35 |
# File 'lib/loqate/bank/account_validation.rb', line 35 attribute :corrected_sort_code, Types::Strict::String |
#faster_payments_supported ⇒ Boolean
Indicates that the account supports the faster payments service.
115 |
# File 'lib/loqate/bank/account_validation.rb', line 115 attribute :faster_payments_supported, Types::Strict::Bool |
#iban ⇒ String
The correctly formatted IBAN for the account.
48 |
# File 'lib/loqate/bank/account_validation.rb', line 48 attribute :iban, Types::Strict::String |
#is_correct ⇒ Boolean Also known as: correct?
Indicates whether the account number and sortcode are valid.
11 |
# File 'lib/loqate/bank/account_validation.rb', line 11 attribute :is_correct, Types::Strict::Bool |
#is_direct_debit_capable ⇒ Boolean
Indicates whether the account can accept direct debits. Certain accounts (e.g. savings) will not accept direct debits.
19 |
# File 'lib/loqate/bank/account_validation.rb', line 19 attribute :is_direct_debit_capable, Types::Strict::Bool |
#status_information ⇒ String
More detail about the outcome of the validation process. Describes reasons validation failed or changes made to pass validation. DetailsChanged indicates that the account and sortcode should be changed for BACs submission (check CorrectedAccountNumber and CorrectedSortCode). CautiousOK is set where the sortcode exists but no validation rules are set for the bank (very rare).
28 |
# File 'lib/loqate/bank/account_validation.rb', line 28 attribute :status_information, Types::Strict::String |