/// <summary>
 /// Use this operation to reprint a shipment label for which the initial Create Shipment request was successful but the response object did not save properly.
 ///
 /// Note: The number of reprints of a shipment label will be scrutinized and restricted.
 ///
 /// Do not use this operation in the following cases:
 ///     * If the initial request returned an error.Instead create a new shipment with a new Transaction ID.
 ///     * If the initial request received no response at all. Instead retry the shipment.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="request"></param>
 /// <param name="session"></param>
 /// <returns></returns>
 public async static Task <ShippingApiResponse <T> > ReprintShipment <T>(ReprintShipmentRequest request, ISession session = null) where T : IShipment, new()
 {
     return(WebMethod.Get <T, ReprintShipmentRequest>("/shippingservices/v1/shipments/{Shipment}?carrier={Carrier}", request, session).GetAwaiter().GetResult());
 }
示例#2
0
 /// <summary>
 /// Use this operation to reprint a shipment label for which the initial Create Shipment request was successful but the response object did not save properly.
 ///
 /// Note: The number of reprints of a shipment label will be scrutinized and restricted.
 ///
 /// Do not use this operation in the following cases:
 ///     * If the initial request returned an error.Instead create a new shipment with a new Transaction ID.
 ///     * If the initial request received no response at all. Instead retry the shipment.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="request"></param>
 /// <param name="session"></param>
 /// <returns></returns>
 public async static Task <ShippingApiResponse <T> > ReprintShipment <T>(ReprintShipmentRequest request, ISession session = null) where T : IShipment, new()
 {
     return(await WebMethod.Get <T, ReprintShipmentRequest>("/shippingservices/v1/shipments/{Shipment}", request, session));
 }