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.8.1 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.5.2 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.5.1 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.5 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.14 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.13 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.12 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb
friendly_shipping-0.4.11 lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb