Class: FriendlyShipping::Services::Ups::SerializeVoidShipmentRequest
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::Ups::SerializeVoidShipmentRequest
- Defined in:
- lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb
Class Method Summary collapse
Class Method Details
.call(label:) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/friendly_shipping/services/ups/serialize_void_shipment_request.rb', line 7 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 |