Sha256: 734999df883804303a7eb5560105ec4caa1135843bcbac0751092a896eff17d4

Contents?: true

Size: 493 Bytes

Versions: 38

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module FriendlyShipping
  module Services
    class Ups
      class SerializeAccessRequest
        def self.call(login:, password:, key:)
          xml_builder = Nokogiri::XML::Builder.new do |xml|
            xml.AccessRequest do
              xml.AccessLicenseNumber(key)
              xml.UserId(login)
              xml.Password(password)
            end
          end
          xml_builder.to_xml
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.8.1 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.5.2 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.5.1 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.5 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.14 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.13 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.12 lib/friendly_shipping/services/ups/serialize_access_request.rb