Sha256: 6de54794c64dc5dba7d47a121b8ca94d9dbf6c2587ce65ae6a2deaebc9e9b33a

Contents?: true

Size: 1008 Bytes

Versions: 2

Compression:

Stored size: 1008 Bytes

Contents

require 'spec_helper'
require 'json'

describe 'ShipmentVerificationApi' do
  before do
    config = AvalaraSdk::Configuration.new  
    config.username = ENV["USERNAME"]
    config.password = ENV["PASSWORD"]
    config.environment='test'
    config.test_url='https://sandbox-rest.avatax.com'
    config.verify_ssl=false
    config.debugging=true
    config.app_name="testApp"
    config.app_version="2.3.1"
    config.machine_name="AVL_WIN_007"
    @api_client = AvalaraSdk::ApiClient.new config
    @api_instance = AvalaraSdk::ShippingVerificationApi.new @api_client
  end

  describe 'test verifyShipment endpoint' do
    it 'should be able to call verifyShipment without exception' do
      begin
        result = @api_instance.verify_shipment("DEFAULT", "063e1af4-11d3-4489-b8ba-ae1149758df4")
        p result
        puts "Call Completed" 
      rescue AvalaraSdk::ApiError => e
        puts "Exception #{e}"
        @exception = true
      end
      expect(@exception).to be_nil
    end
  end

end
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avalara_sdk-2.4.26 spec/integration/integration_test_spec.rb
avalara_sdk-2.4.7 spec/integration/integration_test_spec.rb