7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/friendly_shipping/services/ups/serialize_shipment_accept_request.rb', line 7
def self.call(digest:, options:)
xml_builder = Nokogiri::XML::Builder.new do |xml|
xml.ShipmentAcceptRequest do
xml.Request do
xml.RequestAction('ShipAccept')
xml.SubVersion(options.sub_version)
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
|