lib/afterbanks/resources/account.rb in afterbanks-api-ruby-0.3.2 vs lib/afterbanks/resources/account.rb in afterbanks-api-ruby-0.3.3

- old
+ new

@@ -9,11 +9,12 @@ iban: :string, is_owner: :boolean, holders: :hash def self.list(service:, username:, password:, password2: nil, - document_type: nil, session_id: nil, otp: nil, counter_id: nil, + document_type: nil, account_id: nil, + session_id: nil, otp: nil, counter_id: nil, avoid_caching: false) params = { servicekey: Afterbanks.configuration.servicekey, service: service, @@ -22,9 +23,11 @@ products: 'GLOBAL' } params.merge!(pass2: password2) unless password2.nil? params.merge!(documentType: document_type) unless document_type.nil? + params.merge!(account_id: account_id) unless account_id.nil? + params.merge!(session_id: session_id) unless session_id.nil? params.merge!(OTP: otp) unless otp.nil? params.merge!(counterId: counter_id) unless counter_id.nil? params.merge!(randomizer: Time.now.to_i) if avoid_caching