lib/friendly_shipping/services/ups.rb
# Get timing information for a shipment
# @param [Physical::Shipment] shipment The shipment we want to estimate timings for
# @param [FriendlyShipping::Services::Ups::TimingOptions] options Options for this call
Get timing information for a shipment
Get timing information for a shipment
def timings(shipment, options:, debug: false)
        time_in_transit_request_xml = SerializeTimeInTransitRequest.call(
          shipment: shipment,
          options: options
        )
        time_in_transit_url = base_url + RESOURCES[:timings]
        request = FriendlyShipping::Request.new(
          url: time_in_transit_url,
          body: access_request_xml + time_in_transit_request_xml,
          readable_body: time_in_transit_request_xml,
          debug: debug
        )
        client.post(request).bind do |response|
          ParseTimeInTransitResponse.call(response: response, request: request)
        end
      end
def timings ( shipment , options : , debug : false ) time_in_transit_request_xml = SerializeTimeInTransitRequest . call ( shipment : shipment , options : options ) time_in_transit_url = base_url + RESOURCES [ :timings ] request = FriendlyShipping :: Request . new ( url : time_in_transit_url , body : access_request_xml + time_in_transit_request_xml , readable_body : time_in_transit_request_xml , debug : debug ) client . post ( request ) . bind do | response | ParseTimeInTransitResponse . call ( response : response , request : request ) end end
Get timing information for a shipment
Get timing information for a shipment
shipment
<not_specific>
options
<not_specific>
debug
<not_specific>
<not_specific>
options Options for this call
options Options for this call