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.4.11 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
friendly_shipping-0.4.10 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
friendly_shipping-0.4.9 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
friendly_shipping-0.4.8 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
friendly_shipping-0.4.7 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
friendly_shipping-0.4.6 lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb