Sha256: 9dd6f331c6123d3d3e2f65a2f5a13430bc059d7866ccd58803a460611cdffbc2

Contents?: true

Size: 815 Bytes

Versions: 12

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

module Soaspec
  module TestServer
    # Used to simulate requests requiring oauth authentication
    class Invoices
      @user_used = nil

      class << self
        attr_accessor :user_used

        def oauth_headers
          {
            'Content-Type' => 'application/json;charset=UTF-8'
          }
        end

        def oauth_body
          {
            access_token: 'TEST_TOKENiIsImtpZCI6IlRFU1QifQ.AAAABBBBRfaWQiOiJhYWQ5MjY3SIMULATE_LARGE_TOKEN3MmM5OGQ5NGE2YTU5YSIsImV4cCI6MTUyNzU3MTY4Mywic2NvcGUiOltdfQ.3OmCdW7fLZMUST_BE_ABLE_TO_HANDLEgAGaJB0lFYyhaw',
            token_type: 'Bearer',
            expires_in: '86399',
            instance_url: %w[http://this_is_my_instance http://this_is_second_instance].sample
          }
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
soaspec-0.3.11 lib/soaspec/test_server/invoices.rb
soaspec-0.3.10 lib/soaspec/test_server/invoices.rb
soaspec-0.3.9 lib/soaspec/test_server/invoices.rb
soaspec-0.3.8 lib/soaspec/test_server/invoices.rb
soaspec-0.3.7 lib/soaspec/test_server/invoices.rb
soaspec-0.3.6 lib/soaspec/test_server/invoices.rb
soaspec-0.3.3 lib/soaspec/test_server/invoices.rb
soaspec-0.3.2 lib/soaspec/test_server/invoices.rb
soaspec-0.3.1 lib/soaspec/test_server/invoices.rb
soaspec-0.2.32 lib/soaspec/test_server/invoices.rb
soaspec-0.2.31 lib/soaspec/test_server/invoices.rb
soaspec-0.2.30 lib/soaspec/test_server/invoices.rb