Class: Loqate::Bank::AccountValidation

Inherits:
Dry::Struct::Value
  • Object
show all
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

Instance Method Details

#bankString

The name of the banking institution.



54
# File 'lib/loqate/bank/account_validation.rb', line 54

attribute :bank, Types::Strict::String

#bank_bicString

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

#branchString

The name of the account holding branch.



66
# File 'lib/loqate/bank/account_validation.rb', line 66

attribute :branch, Types::Strict::String

#branch_bicString

The branch’s BIC.



72
# File 'lib/loqate/bank/account_validation.rb', line 72

attribute :branch_bic, Types::Strict::String

#chaps_supportedBoolean

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_line1String

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_line2String

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_faxString

The branch’s contact fax number.



109
# File 'lib/loqate/bank/account_validation.rb', line 109

attribute :contact_fax, Types::Strict::String

#contact_phoneString

The branch’s contact phone number.



103
# File 'lib/loqate/bank/account_validation.rb', line 103

attribute :contact_phone, Types::Strict::String

#contact_post_townString

The branch’s contact post town.



91
# File 'lib/loqate/bank/account_validation.rb', line 91

attribute :contact_post_town, Types::Strict::String

#contact_postcodeString

The branch’s contact postcode.



97
# File 'lib/loqate/bank/account_validation.rb', line 97

attribute :contact_postcode, Types::Strict::String

#corrected_account_numberString

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_codeString

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_supportedBoolean

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

#ibanString

The correctly formatted IBAN for the account.



48
# File 'lib/loqate/bank/account_validation.rb', line 48

attribute :iban, Types::Strict::String

#is_correctBoolean 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_capableBoolean

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_informationString

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