interface USPSShipmentInterface in Commerce USPS 8
Interface to create and return a USPS API shipment object.
@package Drupal\commerce_usps
Hierarchy
- interface \Drupal\commerce_usps\USPSShipmentInterface
Expanded class hierarchy of USPSShipmentInterface
All classes that implement USPSShipmentInterface
File
- src/
USPSShipmentInterface.php, line 12
Namespace
Drupal\commerce_uspsView source
interface USPSShipmentInterface {
/**
* Returns an initialized rate package object.
*
* This method should invoke ::buildPackage and
* ::alterPackage before returning the RatePackage
* object.
*
* @param \Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment
* A Drupal Commerce shipment entity.
*
* @return \USPS\RatePackage
* The rate package entity.
*/
public function getPackage(ShipmentInterface $commerce_shipment);
/**
* Build the RatePackage.
*/
public function buildPackage();
/**
* Alter the RatePackage.
*/
public function alterPackage();
/**
* Set the shipping method configuration.
*
* @param array $configuration
* The shipping method configuration.
*/
public function setConfig(array $configuration);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
USPSShipmentInterface:: |
public | function | Alter the RatePackage. | 1 |
USPSShipmentInterface:: |
public | function | Build the RatePackage. | 1 |
USPSShipmentInterface:: |
public | function | Returns an initialized rate package object. | 1 |
USPSShipmentInterface:: |
public | function | Set the shipping method configuration. | 1 |