You are here

protected function USPSShipment::setContainer in Commerce USPS 8

Sets the package container for the shipment.

1 call to USPSShipment::setContainer()
USPSShipment::buildPackage in src/USPSShipment.php
Returns an initialized rate package object.

File

src/USPSShipment.php, line 100

Class

USPSShipment
Class that sets the shipment details needed for the USPS request.

Namespace

Drupal\commerce_usps

Code

protected function setContainer() {
  $this->uspsPackage
    ->setContainer(RatePackage::CONTAINER_VARIABLE);
}