Sha256: 1a43b61c62f1faceaf70b40c68662661fc93e1e5bab28c30a22db90b5cc10579

Contents?: true

Size: 804 Bytes

Versions: 1

Compression:

Stored size: 804 Bytes

Contents

module Blackbird
  module Retoure
    module Environments
      # Public: Sandbox environment specific functions
      class Sandbox < ::Blackbird::Retoure::Environments::Base
        ENDPOINT = 'https://cig.dhl.de/services/sandbox/rest/returns/'.freeze

        # Internal: Return the authentication data needed for the HTTP
        # Basic authentication.
        #
        # Returns an Array containing the username and the password to use for
        #   the CIG HTTP Basic authentication.
        def authentication_data
          [@username, @password]
        end

        # Internal: Generate the DPDHL User Authentication Token.
        #
        # Returns a String.
        def dpdhl_token
          'MjIyMjIyMjIyMl9jdXN0b21lcjp1QlFiWjYyIVppQmlWVmJoYw=='
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blackbird-retoure-0.1.0 lib/blackbird/retoure/environments/sandbox.rb