You are here

public function USPSRateRequestBase::setShipment in Commerce USPS 8

Set the commerce shipment.

Parameters

\Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment: The commerce shipment entity.

1 call to USPSRateRequestBase::setShipment()
USPSRateRequestBase::getRates in src/USPSRateRequestBase.php
Fetch rates from the USPS API.

File

src/USPSRateRequestBase.php, line 147

Class

USPSRateRequestBase
Class USPSRateRequest.

Namespace

Drupal\commerce_usps

Code

public function setShipment(ShipmentInterface $commerce_shipment) {
  $this->commerceShipment = $commerce_shipment;
}