/** * Get Pallet Labels * Retrieves the PDF-formatted pallet label data for the pallets in an LTL shipment. These labels * include relevant data for shipments being sent to Amazon Fulfillment Centers. The PDF data will be * ZIP'd and then it will be encoded as a Base64 string, and MD5 hash is included with the response to * validate the label data which will be encoded as Base64. The language of the address and FC prep * instructions sections of the labels are determined by the marketplace in which the request is being * made and the marketplace of the destination FC, respectively. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetPalletLabels request or FBAInboundServiceMWS_Model_GetPalletLabels object itself * @see FBAInboundServiceMWS_Model_GetPalletLabelsRequest * @return FBAInboundServiceMWS_Model_GetPalletLabelsResponse * * @throws FBAInboundServiceMWS_Exception */ public function getPalletLabels($request) { if (!$request instanceof FBAInboundServiceMWS_Model_GetPalletLabelsRequest) { require_once dirname(__FILE__) . '/Model/GetPalletLabelsRequest.php'; $request = new FBAInboundServiceMWS_Model_GetPalletLabelsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetPalletLabels'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetPalletLabelsResponse.php'; $response = FBAInboundServiceMWS_Model_GetPalletLabelsResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Pallet Labels * Retrieves the PDF-formatted pallet label data for the pallets in an LTL shipment. These labels * include relevant data for shipments being sent to Amazon Fulfillment Centers. The PDF data will be * ZIP'd and then it will be encoded as a Base64 string, and MD5 hash is included with the response to * validate the label data which will be encoded as Base64. The language of the address and FC prep * instructions sections of the labels are determined by the marketplace in which the request is being * made and the marketplace of the destination FC, respectively. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetPalletLabels request or FBAInboundServiceMWS_Model_GetPalletLabels object itself * @see FBAInboundServiceMWS_Model_GetPalletLabels * @return FBAInboundServiceMWS_Model_GetPalletLabelsResponse * * @throws FBAInboundServiceMWS_Exception */ public function getPalletLabels($request) { require_once dirname(__FILE__) . '/Model/GetPalletLabelsResponse.php'; return FBAInboundServiceMWS_Model_GetPalletLabelsResponse::fromXML($this->_invoke('GetPalletLabels')); }