Sha256: 1302c3e1d144e724a61833ec6a3ad86cf8322f24a33a251a600292dbae65eacc

Contents?: true

Size: 1021 Bytes

Versions: 2

Compression:

Stored size: 1021 Bytes

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
    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

2 entries across 2 versions & 1 rubygems

Version Path
avalara_sdk-24.12.1 spec/integration/documentsapi_test_spec.rb
avalara_sdk-24.12.0 spec/integration/documentsapi_test_spec.rb