You are here

public function UPSShipmentInterface::getShipment in Commerce UPS 8.3

Creates and returns a UPS API shipment object.

Parameters

\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.

\Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod\ShippingMethodInterface $shipping_method: The shipping method.

Return value

\Ups\Entity\Shipment A Ups API shipment object.

1 method overrides UPSShipmentInterface::getShipment()
UPSShipment::getShipment in src/UPSShipment.php
Creates and returns a UPS API shipment object.

File

src/UPSShipmentInterface.php, line 26

Class

UPSShipmentInterface
Interface to create and return a UPS API shipment object.

Namespace

Drupal\commerce_ups

Code

public function getShipment(ShipmentInterface $shipment, ShippingMethodInterface $shipping_method);