lib/pbshipping/shipment.rb
# 
# MANAGING RATES AND SHIPMENTS
# API: GET /shipments?originalTransactionId
# API signature: get/shipments
#
# Retry a shipment that was previously submitted with no successful response.
#
# 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 RATES AND SHIPMENTS
API: GET /shipments?originalTransactionId
API signature: get/shipments

Retry a shipment that was previously submitted with no successful response.

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 RATES AND SHIPMENTS API : GET / shipments?originalTransactionId API signature : get / shipments Retry a shipment that was previously submitted with no successful response . 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 retry(auth_obj, txid, originalTxid, overwrite=true)
      hdrs = { PBShipping::txid_attrname => txid }
      params = {:originalTransactionId => originalTxid}
      api_sig = "get/shipments"
      api_version = PBShipping::get_api_version(api_sig)
      api_path = "/shipments"
      json_resp = PBShipping::api_request(
        auth_obj, :get, api_version, api_path, hdrs, params, {})   
      if overwrite == true 
        self.update(json_resp)
        self
      else
        Shipment.new(json_resp)   
      end     
    end
def retry ( auth_obj , txid , originalTxid , overwrite = true ) hdrs = { PBShipping :: txid_attrname => txid } params = { :originalTransactionId => originalTxid } api_sig = "get/shipments" api_version = PBShipping :: get_api_version ( api_sig ) api_path = "/shipments" json_resp = PBShipping :: api_request ( auth_obj , :get , api_version , api_path , hdrs , params , { } ) if overwrite == true self . update ( json_resp ) self else Shipment . new ( json_resp ) end end
MANAGING RATES AND SHIPMENTS
API: GET /shipments?originalTransactionId
API signature: get/shipments
MANAGING RATES AND SHIPMENTS API : GET / shipments?originalTransactionId API signature : get / shipments
auth_obj
<not_specific>
txid
<not_specific>
originalTxid
<not_specific>
overwrite
<not_specific>