You are here

interface FedExRequestInterface in Commerce FedEx 8

Manage FedEx API services.

@package Drupal\commerce_fedex

Hierarchy

Expanded class hierarchy of FedExRequestInterface

All classes that implement FedExRequestInterface

1 file declares its use of FedExRequestInterface
FedEx.php in src/Plugin/Commerce/ShippingMethod/FedEx.php

File

src/FedExRequestInterface.php, line 10

Namespace

Drupal\commerce_fedex
View source
interface FedExRequestInterface {

  /**
   * Gets a new rate request.
   *
   * @param array $configuration
   *   The plugin configuration.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Structs\RateRequest
   *   The rate request.
   */
  public function getRateRequest(array $configuration);

  /**
   * Gets a new RateService.
   *
   * @param array $configuration
   *   The Plugin Configuration.
   * @param array $wsdlOptions
   *   Additional options to send to AbstractSoapClientBase.
   * @param bool $resetSoapClient
   *   Whether to get a new soap client.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Services\RateService
   *   The rate service.
   */
  public function getRateService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE);

  /**
   * Gets a new TrackRequest.
   *
   * @param array $configuration
   *   The Plugin Configuration.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Structs\TrackRequest
   *   The track request.
   */
  public function getTrackRequest(array $configuration);

  /**
   * Gets a new TrackService.
   *
   * @param array $configuration
   *   The Plugin Configuration.
   * @param array $wsdlOptions
   *   Additional options to send to AbstractSoapClientBase.
   * @param bool $resetSoapClient
   *   Whether to get a new soap client.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Services\TrackService
   *   The track service.
   */
  public function getTrackService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE);

  /**
   * Gets a new ShipRequest.
   *
   * @param array $configuration
   *   The Plugin Configuration.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Structs\ProcessShipmentRequest
   *   The request.
   */
  public function getShipRequest(array $configuration);

  /**
   * Gets a new ShipService.
   *
   * @param array $configuration
   *   The Plugin Configuration.
   * @param array $wsdlOptions
   *   Additional options to send to AbstractSoapClientBase.
   * @param bool $resetSoapClient
   *   Whether to get a new soap client.
   *
   * @return \NicholasCreativeMedia\FedExPHP\Services\ShipService
   *   The ship service.
   */
  public function getShipService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE);

  /**
   * Return the current WSDL version of a service.
   *
   * @param string $service
   *   The service.
   *
   * @return mixed
   *   The current version.
   *
   * @throws \Exception
   */
  public function getVersion($service);

}

Members

Namesort descending Modifiers Type Description Overrides
FedExRequestInterface::getRateRequest public function Gets a new rate request. 1
FedExRequestInterface::getRateService public function Gets a new RateService. 1
FedExRequestInterface::getShipRequest public function Gets a new ShipRequest. 1
FedExRequestInterface::getShipService public function Gets a new ShipService. 1
FedExRequestInterface::getTrackRequest public function Gets a new TrackRequest. 1
FedExRequestInterface::getTrackService public function Gets a new TrackService. 1
FedExRequestInterface::getVersion public function Return the current WSDL version of a service. 1