You are here

public function UPSRateRequestInterface::getRates in Commerce UPS 8.3

Fetch rates for the shipping method.

Parameters

\Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment: The commerce shipment.

\Drupal\commerce_shipping\Entity\ShippingMethodInterface $shipping_method: The shipping method.

Return value

array An array of ShippingRate objects.

1 method overrides UPSRateRequestInterface::getRates()
UPSRateRequest::getRates in src/UPSRateRequest.php
Fetch rates from the UPS API.

File

src/UPSRateRequestInterface.php, line 31

Class

UPSRateRequestInterface
The interface for fetching and returning rates using the UPS API.

Namespace

Drupal\commerce_ups

Code

public function getRates(ShipmentInterface $commerce_shipment, ShippingMethodInterface $shipping_method);