Sha256: 29114f208c9c748f35fdc047fb0ca1dcd57a559341d585cf5ef943bfcaef70a9

Contents?: true

Size: 666 Bytes

Versions: 27

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class Ups
      class SerializeShipmentAddressSnippet < SerializeAddressSnippet
        class << self
          private

          def residential_address_indicator(xml, location)
            # Shipment creation uses a different element to indicate residential addresses.
            # Rates use ResidentialAddressIndicator whereas shipments use ResidentialAddress.
            # Presence indicates residential address. Absence indicates commercial address.
            #
            xml.ResidentialAddress unless location.commercial?
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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