Sha256: 80e13eea84bac35a4fe663c73cc02f9e3eeccb3128b915d37bffc16ac55afbcf

Contents?: true

Size: 744 Bytes

Versions: 31

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class Ups
      class SerializeShipmentAcceptRequest
        def self.call(digest:, options:)
          xml_builder = Nokogiri::XML::Builder.new do |xml|
            xml.ShipmentAcceptRequest do
              xml.Request do
                xml.RequestAction('ShipAccept')
                xml.SubVersion('1707')
                if options.customer_context
                  xml.TransactionReference do
                    xml.CustomerContext(options.customer_context)
                  end
                end
              end
              xml.ShipmentDigest(digest)
            end
          end
          xml_builder.to_xml
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
friendly_shipping-0.4.10 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.9 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.8 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.7 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.6 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.5 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.4 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.3 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.2 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.1 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.0 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb