lib/usps/api/endpoints/scan.rb in usps-ruby-client-0.1.3 vs lib/usps/api/endpoints/scan.rb in usps-ruby-client-0.2.0
- old
+ new
@@ -34,10 +34,10 @@
# * *:mail_time* (required, String) — Time of mailing/Carrier Pickup. This is an approximation. This denotes time of mail to be tendered to Postal Service. HHMMSS (24 hour) format. Example: <MailTime>143000</MailTime>
# * *:entry_facility* (required, String) — ZIP Code of Postal Service facility. Populate/required only if different from <FromZip5>. Example: <EntryFacility>07067</EntryFacility>
# * *:image_type* (required, String) — The form image format desired. Enter one of the valid entries: Example: <ImageType>TIF</ImageType>
# * *:customer_ref_no* (String) — Arbitrary number for customers own tracking or inventory systems, does not print to form or manifest with Product Tracking. May be any combination of alpha and numeric characters, up to a maximum of 30. Example: <CustomerRefNo>123456</CustomerRefNo>
# * *:carrier_pickup* (Boolean) — FOR FUTURE USE.
-def scan(options = {})
+ def scan(options = {})
throw ArgumentError.new('Required arguments :scan_request missing') if options[:scan_request].nil?
request = build_request(:scan, options)
get('https://secure.shippingapis.com/ShippingAPI.dll', {
API: 'SCAN',