You are here

public function USPSRateRequestBase::buildRate in Commerce USPS 8

Build the rate request.

Overrides USPSRateRequestInterface::buildRate

3 calls to USPSRateRequestBase::buildRate()
USPSRateRequest::buildRate in src/USPSRateRequest.php
Initialize the rate request object needed for the USPS API.
USPSRateRequestBase::getRates in src/USPSRateRequestBase.php
Fetch rates from the USPS API.
USPSRateRequestInternational::buildRate in src/USPSRateRequestInternational.php
Initialize the rate request object needed for the USPS API.
2 methods override USPSRateRequestBase::buildRate()
USPSRateRequest::buildRate in src/USPSRateRequest.php
Initialize the rate request object needed for the USPS API.
USPSRateRequestInternational::buildRate in src/USPSRateRequestInternational.php
Initialize the rate request object needed for the USPS API.

File

src/USPSRateRequestBase.php, line 125

Class

USPSRateRequestBase
Class USPSRateRequest.

Namespace

Drupal\commerce_usps

Code

public function buildRate() {
  $this->uspsRequest = new Rate($this->configuration['api_information']['user_id']);
  $this
    ->setMode();
}