File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1818use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipmentCharge ;
1919use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipmentRequest ;
2020use RahulGodiyal \PhpUpsApiWrapper \Entity \Shipper ;
21+ use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipQuery ;
2122use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipTo ;
2223use RahulGodiyal \PhpUpsApiWrapper \Entity \UnitOfMeasurement ;
2324use RahulGodiyal \PhpUpsApiWrapper \Ship ;
174175$ shipmentRequest ->setLabelSpecification ($ labelSpecification );
175176/************ End Shipment Request **********/
176177
178+ /************ Query **********/
179+ $ query = new ShipQuery (); // optional
180+ $ query ->setAdditionalAddressValidation ("city " ); // optional
181+ /************ End Query **********/
182+
177183/************ Create Ship **********/
178184$ ship = new Ship ();
185+ $ ship ->setQuery ($ query ); // optional
179186$ ship ->setShipmentRequest ($ shipmentRequest );
180187$ ship ->setOnlyLabel (true ); // optional
181188// $ship->setMode('PROD'); // Optional | only used for prod
You can’t perform that action at this time.
0 commit comments