Sha256: ced92bcb36527e279db9635b2b318002073681eef8df053371bd48de06b6b137

Contents?: true

Size: 1 KB

Versions: 11

Compression:

Stored size: 1 KB

Contents

describe Moneta::Api::Requests::FindBankAccountsRequest, vcr: true do
  include_context 'moneta'

  let(:request) { described_class.new }
  let(:response) { service.find_bank_accounts(request) }

  before { request.fill({}) }

  subject { response.bank_account }

  its(:count) { is_expected.to eq 2 }

  describe 'first account' do
    let(:bank_account) { response.get_account(1182) }
    subject { bank_account }

    its(:id) { is_expected.to eq '1182' }

    describe '.attribute' do
      subject { bank_account.attribute }

      its([:bank]) { is_expected.to eq(value: 'ФИЛИАЛ "БАЙКОНУР" ОАО "СОБИНБАНК"', approved: false) }
      its([:account]) { is_expected.to eq(value: '30301810000006000001', approved: false) }
      its([:bik]) { is_expected.to eq(value: '044525225', approved: false) }
      its([:corr_account]) { is_expected.to eq(value: '30101810400000000225', approved: false) }
      its([:is_international]) { is_expected.to eq(value: false, approved: false) }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
moneta-api-1.11.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.7.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.6.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.5.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.4.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.3.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.2.1 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-1.2.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb