Skip to content

Commit 783b45f

Browse files
authored
Update readme.md
1 parent 84d3e22 commit 783b45f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ use RahulGodiyal\PhpUpsApiWrapper\Entity\Shipment;
9393
use RahulGodiyal\PhpUpsApiWrapper\Entity\ShipmentCharge;
9494
use RahulGodiyal\PhpUpsApiWrapper\Entity\ShipmentRequest;
9595
use RahulGodiyal\PhpUpsApiWrapper\Entity\Shipper;
96+
use RahulGodiyal\PhpUpsApiWrapper\Entity\ShipQuery;
9697
use RahulGodiyal\PhpUpsApiWrapper\Entity\ShipTo;
9798
use RahulGodiyal\PhpUpsApiWrapper\Entity\UnitOfMeasurement;
9899
use RahulGodiyal\PhpUpsApiWrapper\Ship;
@@ -249,8 +250,14 @@ $shipmentRequest->setShipment($shipment);
249250
$shipmentRequest->setLabelSpecification($labelSpecification);
250251
/************ End Shipment Request **********/
251252

253+
/************ Query **********/
254+
$query = new ShipQuery(); // optional
255+
$query->setAdditionalAddressValidation("city"); // optional
256+
/************ End Query **********/
257+
252258
/************ Create Ship **********/
253259
$ship = new Ship();
260+
$ship->setQuery($query); // optional
254261
$ship->setShipmentRequest($shipmentRequest);
255262
$ship->setOnlyLabel(true); // optional
256263
// $ship->setMode('PROD'); // Optional | only used for prod

0 commit comments

Comments
 (0)