Sha256: 0ad7675868891b130417db1884d4b0c193f48d5d8601f8542eda3f8b5ab0d30d

Contents?: true

Size: 515 Bytes

Versions: 26

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class Ups
      class SerializeVoidShipmentRequest
        def self.call(label:)
          xml_builder = Nokogiri::XML::Builder.new do |xml|
            xml.VoidShipmentRequest do
              xml.Request do
                xml.RequestAction('Void')
              end
              xml.ShipmentIdentificationNumber(label.tracking_number)
            end
          end
          xml_builder.to_xml
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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