Sha256: f3aeffcb5ad0c86688a8a953c89aad15ad2bbd671c135af0a71d8c216e2fd910

Contents?: true

Size: 474 Bytes

Versions: 35

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class Usps
      class SerializeCityStateLookupRequest
        def self.call(location:, login:)
          xml_builder = Nokogiri::XML::Builder.new do |xml|
            xml.CityStateLookupRequest(USERID: login) do
              xml.ZipCode do
                xml.Zip5 location.zip
              end
            end
          end
          xml_builder.to_xml
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

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