protected function USPSShipment::setExtraOptions in Commerce USPS 8
Sets any extra options specific to the shipment like ship date etc.
1 call to USPSShipment::setExtraOptions()
- USPSShipment::buildPackage in src/
USPSShipment.php - Returns an initialized rate package object.
File
- src/
USPSShipment.php, line 107
Class
- USPSShipment
- Class that sets the shipment details needed for the USPS request.
Namespace
Drupal\commerce_uspsCode
protected function setExtraOptions() {
$this->uspsPackage
->setField('Machinable', TRUE);
$this->uspsPackage
->setField('ShipDate', $this
->getProductionDate());
}