public function USPSShipmentBase::buildPackage in Commerce USPS 8
Get the USPS RatePackage object.
Return value
\USPS\RatePackage The RatePackage object.
Overrides USPSShipmentInterface::buildPackage
3 calls to USPSShipmentBase::buildPackage()
- USPSShipment::buildPackage in src/
USPSShipment.php - Returns an initialized rate package object.
- USPSShipmentBase::getPackage in src/
USPSShipmentBase.php - Get the RatePackage object.
- USPSShipmentInternational::buildPackage in src/
USPSShipmentInternational.php - Returns an initialized rate package object.
2 methods override USPSShipmentBase::buildPackage()
- USPSShipment::buildPackage in src/
USPSShipment.php - Returns an initialized rate package object.
- USPSShipmentInternational::buildPackage in src/
USPSShipmentInternational.php - Returns an initialized rate package object.
File
- src/
USPSShipmentBase.php, line 98
Class
- USPSShipmentBase
- Class that sets the shipment details needed for the USPS request.
Namespace
Drupal\commerce_uspsCode
public function buildPackage() {
$this->uspsPackage = new RatePackage();
return $this->uspsPackage;
}