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.4.11 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.10 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.9 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.8 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.7 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.6 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.5 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.4 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.3 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.2 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.1 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.4.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.3.4 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.3.3 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.3.0 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.2.6 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.2.5 lib/friendly_shipping/services/ups/serialize_access_request.rb
friendly_shipping-0.2.4 lib/friendly_shipping/services/ups/serialize_access_request.rb