File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 18
18
use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipmentCharge ;
19
19
use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipmentRequest ;
20
20
use RahulGodiyal \PhpUpsApiWrapper \Entity \Shipper ;
21
+ use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipQuery ;
21
22
use RahulGodiyal \PhpUpsApiWrapper \Entity \ShipTo ;
22
23
use RahulGodiyal \PhpUpsApiWrapper \Entity \UnitOfMeasurement ;
23
24
use RahulGodiyal \PhpUpsApiWrapper \Ship ;
174
175
$ shipmentRequest ->setLabelSpecification ($ labelSpecification );
175
176
/************ End Shipment Request **********/
176
177
178
+ /************ Query **********/
179
+ $ query = new ShipQuery (); // optional
180
+ $ query ->setAdditionalAddressValidation ("city " ); // optional
181
+ /************ End Query **********/
182
+
177
183
/************ Create Ship **********/
178
184
$ ship = new Ship ();
185
+ $ ship ->setQuery ($ query ); // optional
179
186
$ ship ->setShipmentRequest ($ shipmentRequest );
180
187
$ ship ->setOnlyLabel (true ); // optional
181
188
// $ship->setMode('PROD'); // Optional | only used for prod
You can’t perform that action at this time.
0 commit comments