You are here

interface UPSShipmentInterface in Commerce UPS 8.3

Interface to create and return a UPS API shipment object.

@package Drupal\commerce_ups

Hierarchy

Expanded class hierarchy of UPSShipmentInterface

All classes that implement UPSShipmentInterface

File

src/UPSShipmentInterface.php, line 13

Namespace

Drupal\commerce_ups
View source
interface UPSShipmentInterface {

  /**
   * Creates and returns a UPS API shipment object.
   *
   * @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
   *   The shipment.
   * @param \Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod\ShippingMethodInterface $shipping_method
   *   The shipping method.
   *
   * @return \Ups\Entity\Shipment
   *   A Ups API shipment object.
   */
  public function getShipment(ShipmentInterface $shipment, ShippingMethodInterface $shipping_method);

}

Members

Namesort descending Modifiers Type Description Overrides
UPSShipmentInterface::getShipment public function Creates and returns a UPS API shipment object. 1