You are here

public function FedExPluginInterface::adjustPackage in Commerce FedEx 8

Function adjustPackage.

Parameters

\NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem $package: The package to adjust.

array $items: An array of Shipment Items.

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

Return value

\NicholasCreativeMedia\FedExPHP\Structs\RequestedPackageLineItem The Adjusted Package

1 method overrides FedExPluginInterface::adjustPackage()
FedExPluginBase::adjustPackage in src/Plugin/Commerce/FedEx/FedExPluginBase.php
Adjust a package based on the items, shipment and profile.

File

src/Plugin/Commerce/FedEx/FedExPluginInterface.php, line 31

Class

FedExPluginInterface
Defines the base interface for FedEx Service Plugins.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\FedEx

Code

public function adjustPackage(RequestedPackageLineItem $package, array $items, ShipmentInterface $shipment);