Sha256: e4da7bec54ce7cf398666d6d4a3ca8737550a75264d7ed1e88c77b28da4ccd74

Contents?: true

Size: 491 Bytes

Versions: 18

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsFreight
      class GenerateUpsSecurityHash
        def self.call(login:, password:, key:)
          {
            UPSSecurity: {
              UsernameToken: {
                Username: login,
                Password: password
              },
              ServiceAccessToken: {
                AccessLicenseNumber: key
              }
            }
          }
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
friendly_shipping-0.5.2 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.5.1 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.5 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.14 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.13 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.12 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.11 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.10 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.9 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.8 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.7 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.6 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.5 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.4 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.3 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.2 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.1 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb
friendly_shipping-0.4.0 lib/friendly_shipping/services/ups_freight/generate_ups_security_hash.rb