You are here

interface ShipmentInterface in Ubercart 8.4

Provides an interface that defines the Shipment class.

Hierarchy

Expanded class hierarchy of ShipmentInterface

All classes that implement ShipmentInterface

4 files declare their use of ShipmentInterface
ShipmentController.php in shipping/uc_fulfillment/src/Controller/ShipmentController.php
ShipmentDeleteForm.php in shipping/uc_fulfillment/src/Form/ShipmentDeleteForm.php
ShipmentEditForm.php in shipping/uc_fulfillment/src/Form/ShipmentEditForm.php
ShipmentSaveEvent.php in shipping/uc_fulfillment/src/Event/ShipmentSaveEvent.php

File

shipping/uc_fulfillment/src/ShipmentInterface.php, line 10

Namespace

Drupal\uc_fulfillment
View source
interface ShipmentInterface {

  /**
   * Sets the order ID to the given value.
   *
   * @param int $order_id
   *   The name of this order status.
   *
   * @return $this
   */
  public function setOrderId($order_id);

  /**
   * Returns the order ID of this shipment.
   *
   * @return int
   *   The name of this status.
   */
  public function getOrderId();

  /**
   * Sets the shipping method to the given value.
   *
   * @param string $shipping_method
   *   The name of the shipping method.
   *
   * @return $this
   */
  public function setShippingMethod($shipping_method);

  /**
   * Returns the name of the shipping method.
   *
   * @return string
   *   The name of the shipping method.
   */
  public function getShippingMethod();

  /**
   * Sets the shipping quote accessorials of this shipment.
   *
   * @param string $accessorials
   *   The accessorials.
   *
   * @return $this
   */
  public function setAccessorials($accessorials);

  /**
   * Returns the shipping quote accessorials of this shipment.
   *
   * @return string
   *   The accessorials.
   */
  public function getAccessorials();

  /**
   * Sets the common carrier name to the given value.
   *
   * @param string $carrier
   *   The name of the common carrier.
   *
   * @return $this
   */
  public function setCarrier($carrier);

  /**
   * Returns the name of the common carrier.
   *
   * @return string
   *   The name of the common carrier.
   */
  public function getCarrier();

  /**
   * Sets the transaction ID of this shipment.
   *
   * @param string $transaction_id
   *   The transaction ID.
   *
   * @return $this
   */
  public function setTransactionId($transaction_id);

  /**
   * Returns the transaction ID of this shipment.
   *
   * @return string
   *   The transaction ID.
   */
  public function getTransactionId();

  /**
   * Sets the tracking number of this shipment.
   *
   * @param string $tracking_number
   *   The tracking number.
   *
   * @return $this
   */
  public function setTrackingNumber($tracking_number);

  /**
   * Returns the tracking number of this shipment.
   *
   * @return string
   *   The tracking number.
   */
  public function getTrackingNumber();

  /**
   * Sets the ship date timestamp to the given value.
   *
   * @param int $ship_date
   *   The ship date timestamp.
   *
   * @return $this
   */
  public function setShipDate($ship_date);

  /**
   * Returns the ship date timestamp of this shipment.
   *
   * @return int
   *   The ship date timestamp.
   */
  public function getShipDate();

  /**
   * Sets the expected delivery timestamp.
   *
   * @param int $expected_delivery
   *   The expected delivery timestamp.
   *
   * @return $this
   */
  public function setExpectedDelivery($expected_delivery);

  /**
   * Returns the expected delivery timestamp.
   *
   * @return int
   *   The expected delivery timestamp.
   */
  public function getExpectedDelivery();

  /**
   * Sets the shipping cost for this shipment.
   *
   * @param float $cost
   *   The shipping cost.
   *
   * @return $this
   */
  public function setCost($cost);

  /**
   * Returns the shipping cost for this shipment.
   *
   * @return float
   *   The shipping cost.
   */
  public function getCost();

  /**
   * Sets the currency code used for the shipping cost.
   *
   * @param string $currency
   *   The currency code for this shipment.
   *
   * @return $this
   */
  public function setCurrency($currency);

  /**
   * Returns the currency code used for the shipping cost.
   *
   * @return string
   *   The currency code for this shipment.
   */
  public function getCurrency();

  /**
   * Sets the last modified timestamp.
   *
   * @param int $changed
   *   The last modified timestamp.
   *
   * @return $this
   */
  public function setChanged($changed);

  /**
   * Returns the last modified timestamp.
   *
   * @return int
   *   The last modified timestamp.
   */
  public function getChanged();

  /**
   * Sets the packages in this shipment.
   *
   * @param \Drupal\uc_fulfillment\Package[] $packages
   *   An array of packages in this shipment.
   *
   * @return $this
   */
  public function setPackages(array $packages);

  /**
   * Returns the packages in this shipment.
   *
   * @return \Drupal\uc_fulfillment\Package[]
   *   An array of packages in this shipment.
   */
  public function getPackages();

  /**
   * Sets the origin address for this shipment.
   *
   * @param \Drupal\uc_store\AddressInterface $origin
   *   The origin address for this shipment.
   *
   * @return $this
   */
  public function setOrigin(AddressInterface $origin);

  /**
   * Returns the origin address for this shipment.
   *
   * @return \Drupal\uc_store\Address
   *   The origin address for this shipment.
   */
  public function getOrigin();

  /**
   * Sets the destination address for this shipment.
   *
   * @param \Drupal\uc_store\AddressInterface $destination
   *   The destination address.
   *
   * @return $this
   */
  public function setDestination(AddressInterface $destination);

  /**
   * Returns the destination address for this shipment.
   *
   * @return \Drupal\uc_store\Address
   *   The destination address.
   */
  public function getDestination();

}

Members

Namesort descending Modifiers Type Description Overrides
ShipmentInterface::getAccessorials public function Returns the shipping quote accessorials of this shipment. 1
ShipmentInterface::getCarrier public function Returns the name of the common carrier. 1
ShipmentInterface::getChanged public function Returns the last modified timestamp. 1
ShipmentInterface::getCost public function Returns the shipping cost for this shipment. 1
ShipmentInterface::getCurrency public function Returns the currency code used for the shipping cost. 1
ShipmentInterface::getDestination public function Returns the destination address for this shipment. 1
ShipmentInterface::getExpectedDelivery public function Returns the expected delivery timestamp. 1
ShipmentInterface::getOrderId public function Returns the order ID of this shipment. 1
ShipmentInterface::getOrigin public function Returns the origin address for this shipment. 1
ShipmentInterface::getPackages public function Returns the packages in this shipment. 1
ShipmentInterface::getShipDate public function Returns the ship date timestamp of this shipment. 1
ShipmentInterface::getShippingMethod public function Returns the name of the shipping method. 1
ShipmentInterface::getTrackingNumber public function Returns the tracking number of this shipment. 1
ShipmentInterface::getTransactionId public function Returns the transaction ID of this shipment. 1
ShipmentInterface::setAccessorials public function Sets the shipping quote accessorials of this shipment. 1
ShipmentInterface::setCarrier public function Sets the common carrier name to the given value. 1
ShipmentInterface::setChanged public function Sets the last modified timestamp. 1
ShipmentInterface::setCost public function Sets the shipping cost for this shipment. 1
ShipmentInterface::setCurrency public function Sets the currency code used for the shipping cost. 1
ShipmentInterface::setDestination public function Sets the destination address for this shipment. 1
ShipmentInterface::setExpectedDelivery public function Sets the expected delivery timestamp. 1
ShipmentInterface::setOrderId public function Sets the order ID to the given value. 1
ShipmentInterface::setOrigin public function Sets the origin address for this shipment. 1
ShipmentInterface::setPackages public function Sets the packages in this shipment. 1
ShipmentInterface::setShipDate public function Sets the ship date timestamp to the given value. 1
ShipmentInterface::setShippingMethod public function Sets the shipping method to the given value. 1
ShipmentInterface::setTrackingNumber public function Sets the tracking number of this shipment. 1
ShipmentInterface::setTransactionId public function Sets the transaction ID of this shipment. 1