You are here

public function USPSShipmentEvent::setPackage in Commerce USPS 8

Set the rate package.

Parameters

\USPS\RatePackage $usps_package: The USPS package object.

File

src/Event/USPSShipmentEvent.php, line 57

Class

USPSShipmentEvent
Rate request event for USPS.

Namespace

Drupal\commerce_usps\Event

Code

public function setPackage(RatePackage $usps_package) {
  $this->usps_package = $usps_package;
}