diff --git a/Resources/doc/locator.md b/Resources/doc/locator.md index 617be8a..96f689d 100644 --- a/Resources/doc/locator.md +++ b/Resources/doc/locator.md @@ -40,15 +40,14 @@ The Locator class allows you to search for UPS Access Point locations. $locatorRequest->setUnitOfMeasurement($unitOfMeasurement); try { - - // Get the locations - $locator = $this->getContainer()->get('ups.locator'); - $locations = $locator->getLocations($locatorRequest, \Ups\Locator::OPTION_UPS_ACCESS_POINT_LOCATIONS); - - foreach($locations->SearchResults->DropLocation as $location) { - // Your code here - var_dump($location); - } + // Get the locations + $locator = $this->getContainer()->get('ups.locator'); + $locations = $locator->getLocations($locatorRequest, \Ups\Locator::OPTION_UPS_ACCESS_POINT_LOCATIONS); + + foreach($locations->SearchResults->DropLocation as $location) { + // Your code here + var_dump($location); + } } catch (Exception $e) { var_dump($e); diff --git a/Resources/doc/quantumview.md b/Resources/doc/quantumview.md index d7ddf76..9863005 100644 --- a/Resources/doc/quantumview.md +++ b/Resources/doc/quantumview.md @@ -7,7 +7,7 @@ The QuantumView Class allow you to request a Quantum View Data subscription. ```php - $quantumView = $this->getContainer()->ge('ups.quantumview'); + $quantumView = $this->getContainer()->get('ups.quantumview'); try { // Get the subscription for all events for the last hour diff --git a/Resources/doc/shipping.md b/Resources/doc/shipping.md index d1924c0..6c9cd46 100644 --- a/Resources/doc/shipping.md +++ b/Resources/doc/shipping.md @@ -1,5 +1,11 @@ ## Shipping Class. +The Shipping Class allow you to ship a package using the UPS Tracking API. Shipping needs to steps, first you need to send +a confirm request and second an accept request. + + +### Example using Shipping class + ``` php getMessage(); } -``` \ No newline at end of file +``` + + +### Parameters + +Confirm parameters are: + + * `validation` A UPS_Shipping::REQ_* constant (or null) + * `shipment` Shipment data container. + * `labelSpec` (Optional) LabelSpecification data + * `receiptSpec` (Optional) ShipmentRequestReceiptSpecification data. + + Accept parameters are: + + * `shipmentDigest` The UPS Shipment Digest received from a ShipConfirm request. \ No newline at end of file