Sha256: 7a31cc849238d284dce7f923d5c3de87eeecd7bdf9137f8d3be4b625b9778d48

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

module Workarea
  module Avatax
    class BogusGateway
      class BogusResponse
        private

          def request_headers
            {
              "Accept"        => "application/json; charset=utf-8",
              "User-Agent"    => "AvaTax Ruby Gem 17.5.0",
              "Content-Type"  => "application/json",
              "Authorization" => "Basic ZXBpZ2VvbkB3ZWJsaW5jLmNvbTo2NDhCMEE5ODUx"
            }
          end

          def response_headers
            {
              "transfer-encoding" => "chunked",
              "content-type"      => "application/json; charset=utf-8",
              "server"            => "Kestrel",
              "serverduration"    => "00:00:00.0937524",
              "databasecalls"     => "4",
              "databaseduration"  => "00:00:00.0156261",
              "date"              => "Thu, 08 Jun 2017 19:04:38 GMT"
            }
          end
      end

      def create_transaction(body, options = {})
        BogusCreateTransaction.new(body).response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-avatax-4.2.1 lib/workarea/avatax/bogus_gateway.rb
workarea-avatax-4.2.0 lib/workarea/avatax/bogus_gateway.rb