protected function USPSShipment::setPackageSize in Commerce USPS 8
Sets the package size.
1 call to USPSShipment::setPackageSize()
- USPSShipment::buildPackage in src/
USPSShipment.php - Returns an initialized rate package object.
File
- src/
USPSShipment.php, line 70
Class
- USPSShipment
- Class that sets the shipment details needed for the USPS request.
Namespace
Drupal\commerce_uspsCode
protected function setPackageSize() {
$this->uspsPackage
->setSize(RatePackage::SIZE_REGULAR);
}