Class: FriendlyShipping::Services::Ups::ParseShipmentConfirmResponse
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::Ups::ParseShipmentConfirmResponse
- Defined in:
- lib/friendly_shipping/services/ups/parse_shipment_confirm_response.rb
Class Method Summary collapse
Class Method Details
.call(request:, response:) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/friendly_shipping/services/ups/parse_shipment_confirm_response.rb', line 7 def self.call(request:, response:) parsing_result = ParseXMLResponse.call( request: request, response: response, expected_root_tag: 'ShipmentConfirmResponse' ) parsing_result.fmap do |xml| FriendlyShipping::ApiResult.new( xml.root.at('ShipmentDigest').text, original_request: request, original_response: response ) end end |