public function USPSShipmentInterface::getPackage in Commerce USPS 8
Returns an initialized rate package object.
This method should invoke ::buildPackage and ::alterPackage before returning the RatePackage object.
Parameters
\Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment: A Drupal Commerce shipment entity.
Return value
\USPS\RatePackage The rate package entity.
1 method overrides USPSShipmentInterface::getPackage()
- USPSShipmentBase::getPackage in src/
USPSShipmentBase.php - Get the RatePackage object.
File
- src/
USPSShipmentInterface.php, line 27
Class
- USPSShipmentInterface
- Interface to create and return a USPS API shipment object.
Namespace
Drupal\commerce_uspsCode
public function getPackage(ShipmentInterface $commerce_shipment);