public function USPSRateRequestInterface::resolveRates in Commerce USPS 8
Parse the rate response and return shipping rates.
Parameters
array $response: The USPS RateRequest response as an array.
Return value
array Returns an array of ShippingRate objects
1 call to USPSRateRequestInterface::resolveRates()
- USPSRateRequestBase::getRates in src/
USPSRateRequestBase.php - Fetch rates from the USPS API.
2 methods override USPSRateRequestInterface::resolveRates()
- USPSRateRequest::resolveRates in src/
USPSRateRequest.php - Resolve the rates from the RateRequest response.
- USPSRateRequestInternational::resolveRates in src/
USPSRateRequestInternational.php - Resolve the rates from the RateRequest response.
File
- src/
USPSRateRequestInterface.php, line 47
Class
- USPSRateRequestInterface
- The interface for fetching and returning rates using the USPS API.
Namespace
Drupal\commerce_uspsCode
public function resolveRates(array $response);