Class: FriendlyShipping::Services::Ups::ParseShipmentAcceptResponse
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::Ups::ParseShipmentAcceptResponse
- Extended by:
- Dry::Monads::Result::Mixin
- Defined in:
- lib/friendly_shipping/services/ups/parse_shipment_accept_response.rb
Class Method Summary collapse
Class Method Details
.call(request:, response:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/friendly_shipping/services/ups/parse_shipment_accept_response.rb', line 10 def call(request:, response:) parsing_result = ParseXMLResponse.call( request: request, response: response, expected_root_tag: 'ShipmentAcceptResponse' ) parsing_result.fmap do |xml| FriendlyShipping::ApiResult.new( build_labels(xml), original_request: request, original_response: response ) end end |