Sha256: d2afb66a9bb7a448c96086d63d0e7853014830fb465110092a554ee5e50ff190
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'json' require 'dotenv/load' require 'securerandom' describe 'DocumentsAPI' do before(:all) do config = AvalaraSdk::Configuration.new config.bearer_token = ENV["BEARER_TOKEN"] config.environment='sandbox' config.app_name="testApp" config.app_version="2.3.1" config.machine_name="AVL_WIN_007" config.debugging=false @api_client = AvalaraSdk::ApiClient.new config @api_instance = AvalaraSdk::EInvoicing::V1::DocumentsApi.new @api_client end describe 'test EInvoicing Documents endpoint' do get_doc_request = AvalaraSdk::EInvoicing::V1::GetDocumentListRequest.new get_doc_request.set_avalara_version("1.0") it 'should be able to call list documents without exception' do result = nil begin result = @api_instance.get_document_list(get_doc_request) p result puts "Call Completed" rescue AvalaraSdk::ApiError => e puts "Exception #{e}" @exception = true end expect(result).to be_truthy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avalara_sdk-24.2.29 | spec/integration/documentsapi_test_spec.rb |