Sha256: 43f7ccb83f06114e5712cae015b935fd1776978291a5aec5324a099298b27db8

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

require_relative '../test/core_pro_test_base'
require_relative '../lib/corepro/bank_document'
require_relative '../lib/corepro/models/file_content'

class AfBankDocumentTest < CoreProTestBase
  def test_list
    docs = CorePro::BankDocument.list 'en-US', nil, @@prepaidConn, nil
    doc = nil
    docs.each do |x|
      doc = x if x.documentType == 'eStatement'
    end
    @@documentId = doc.documentId
    assert_instance_of CorePro::BankDocument, doc
  end

  def test_zzz_download
    doc = CorePro::BankDocument.download 'en-US', @@documentId, @@prepaidConn, nil
    assert_instance_of CorePro::Models::FileContent, doc
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
corepro-0.0.9 test/af_bankdocument_test.rb
corepro-0.0.8 test/af_bankdocument_test.rb
corepro-0.0.7 test/af_bankdocument_test.rb
corepro-0.0.6 test/af_bankdocument_test.rb