You are here

public function FedExRequest::getRateService in Commerce FedEx 8

Gets a new RateService.

Parameters

array $configuration: The Plugin Configuration.

array $wsdlOptions: Additional options to send to AbstractSoapClientBase.

bool $resetSoapClient: Whether to get a new soap client.

Return value

\NicholasCreativeMedia\FedExPHP\Services\RateService The rate service.

Overrides FedExRequestInterface::getRateService

1 method overrides FedExRequest::getRateService()
TestFedExRequest::getRateService in tests/modules/commerce_fedex_test/src/TestFedExRequest.php
Gets a new RateService.

File

src/FedExRequest.php, line 77

Class

FedExRequest
Manage FedEx API services.

Namespace

Drupal\commerce_fedex

Code

public function getRateService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE) {
  $rate_service = new RateService($wsdlOptions, $resetSoapClient, $this
    ->getMode($configuration));
  return $rate_service;
}