Sha256: 36f1f901f7cd3d7180b6192698d3a0b4dc2234fcc1817563849bde8880e7a074
Contents?: true
Size: 652 Bytes
Versions: 25
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping module Services class Usps class SerializeTimeInTransitRequest def self.call(shipment:, options:, login:) xml_builder = Nokogiri::XML::Builder.new do |xml| xml.SDCGetLocationsRequest(USERID: login) do xml.MailClass 0 # all mail classes xml.OriginZIP shipment.origin.zip xml.DestinationZIP shipment.destination.zip xml.AcceptDate options.pickup.strftime('%d-%b-%Y') xml.NonEMDetail true end end xml_builder.to_xml end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems