PHP Класс Pop\Shipping\Adapter\Fedex

Автор: Nick Sagona, III ([email protected])
Наследование: extends AbstractAdapter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$client SoapClient SOAP Client
$dimensions array Package dimensions
$request array Request array
$services array Services
$shipFrom array Ship from fields
$shipTo array Ship to fields
$weight array Package weight
$wsdl string FedEx WSDL File

Открытые методы

Метод Описание
__construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex Constructor
getServices ( ) : array Static method to get the services
isError ( ) : boolean Return whether the transaction is an error
isSuccess ( ) : boolean Return whether the transaction is a success
send ( ) : void Send transaction
setDimensions ( array $dimensions, string $unit = null ) : mixed Set dimensions
setWeight ( string $weight, string $unit = null ) : mixed Set dimensions
shipFrom ( array $shipFrom ) : mixed Set ship from
shipTo ( array $shipTo ) : mixed Set ship to

Описание методов

__construct() публичный Метод

Method to instantiate an FedEx shipping adapter object
public __construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex
$key string
$password string
$account string
$meter string
$wsdl string
Результат Fedex

getServices() публичный статический Метод

Static method to get the services
public static getServices ( ) : array
Результат array

isError() публичный Метод

Return whether the transaction is an error
public isError ( ) : boolean
Результат boolean

isSuccess() публичный Метод

Return whether the transaction is a success
public isSuccess ( ) : boolean
Результат boolean

send() публичный Метод

Send transaction
public send ( ) : void
Результат void

setDimensions() публичный Метод

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : mixed
$dimensions array
$unit string
Результат mixed

setWeight() публичный Метод

Set dimensions
public setWeight ( string $weight, string $unit = null ) : mixed
$weight string
$unit string
Результат mixed

shipFrom() публичный Метод

Set ship from
public shipFrom ( array $shipFrom ) : mixed
$shipFrom array
Результат mixed

shipTo() публичный Метод

Set ship to
public shipTo ( array $shipTo ) : mixed
$shipTo array
Результат mixed

Описание свойств

$client защищенное свойство

SOAP Client
protected SoapClient $client
Результат SoapClient

$dimensions защищенное свойство

Package dimensions
protected array $dimensions
Результат array

$request защищенное свойство

Request array
protected array $request
Результат array

$services защищенное статическое свойство

Services
protected static array $services
Результат array

$shipFrom защищенное свойство

Ship from fields
protected array $shipFrom
Результат array

$shipTo защищенное свойство

Ship to fields
protected array $shipTo
Результат array

$weight защищенное свойство

Package weight
protected array $weight
Результат array

$wsdl защищенное свойство

FedEx WSDL File
protected string $wsdl
Результат string