lib/friendly_shipping/services/usps.rb in friendly_shipping-0.3.4 vs lib/friendly_shipping/services/usps.rb in friendly_shipping-0.4.0

- old
+ new

@@ -57,10 +57,10 @@ # @return [Result<Array<FriendlyShipping::Rate>>] When successfully parsing, an array of rates in a Success Monad. # When the parsing is not successful or USPS can't give us rates, a Failure monad containing something that # can be serialized into an error message using `to_s`. def rate_estimates(shipment, shipping_method: nil, debug: false) rate_request_xml = SerializeRateRequest.call(shipment: shipment, login: login, shipping_method: shipping_method) - request = build_request(api: :rates_request, xml: rate_request_xml, debug: debug) + request = build_request(api: :rates, xml: rate_request_xml, debug: debug) client.post(request).bind do |response| ParseRateResponse.call(response: response, request: request, shipment: shipment) end end