You are here

public function RateRequestEvent::__construct in Commerce FedEx 8

Constructs a new BeforePackEvent object.

Parameters

\NicholasCreativeMedia\FedExPHP\Structs\RateRequest $rate_request: The rate request object.

\NicholasCreativeMedia\FedExPHP\Services\RateService $rate_service: The FedEx rate service being used.

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

File

src/Event/RateRequestEvent.php, line 48

Class

RateRequestEvent
Defines the rate request event for FedEx.

Namespace

Drupal\commerce_fedex\Event

Code

public function __construct(RateRequest $rate_request, RateService $rate_service, ShipmentInterface $shipment) {
  $this->rateRequest = $rate_request;
  $this->rateService = $rate_service;
  $this->shipment = $shipment;
}