lib/pbshipping/manifest.rb
# 
# MANAGING MANIFESTS
# API: GET /manifests/{manifestId}
# API signature: get/manifests/...
#
# Reprint the USPS scan form
#
# By default, the returned result would overwrite the current state 
# of the object. To avoid overwriting, set the input argument 
# overwrite to False and a copy of the result would be generated and
# returned instead  
#    
MANAGING MANIFESTS
API: GET /manifests/{manifestId}
API signature: get/manifests/

Reprint the USPS scan form

By default, the returned result would overwrite the current state
of the object. To avoid overwriting, set the input argument
overwrite to False and a copy of the result would be generated and
returned instead
MANAGING MANIFESTS API : GET / manifests / { manifestId } API signature : get / manifests / Reprint the USPS scan form By default the returned result would overwrite the current state of the object . To avoid overwriting set the input argument overwrite to False and a copy of the result would be generated and returned instead
def reprint(auth_obj, overwrite=true)
      if self.key?(:manifestId) == false
        raise MissingResourceAttribute.new(:manifestId)
      end
      api_sig = "get/manifests/..."
      api_version = PBShipping::get_api_version(api_sig)
      api_path = "/manifests/" + self[:manifestId]
      json_resp = PBShipping::api_request(
        auth_obj, :get, api_version, api_path, {}, {}, {})
      if overwrite == true
        self.update(json_resp)
        self
      else
        Manifest.new(json_resp)   
      end     
    end
def reprint ( auth_obj , overwrite = true ) if self . key? ( :manifestId ) == false raise MissingResourceAttribute . new ( :manifestId ) end api_sig = "get/manifests/..." api_version = PBShipping :: get_api_version ( api_sig ) api_path = "/manifests/" + self [ :manifestId ] json_resp = PBShipping :: api_request ( auth_obj , :get , api_version , api_path , { } , { } , { } ) if overwrite == true self . update ( json_resp ) self else Manifest . new ( json_resp ) end end
MANAGING MANIFESTS
API: GET /manifests/{manifestId}
API signature: get/manifests/...
MANAGING MANIFESTS API : GET / manifests / { manifestId } API signature : get / manifests / ...
auth_obj
<not_specific>
overwrite
<not_specific>