PHP Интерфейс Pop\Shipping\Adapter\AdapterInterface

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

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

Метод Описание
getRates ( ) : array Get service rates
getResponse ( ) : object Get response object
getResponseCode ( ) : integer Get response code
getResponseMessage ( ) : string Get response message
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

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

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

Get service rates
public getRates ( ) : array
Результат array

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

Get response object
public getResponse ( ) : object
Результат object

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

Get response code
public getResponseCode ( ) : integer
Результат integer

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

Get response message
public getResponseMessage ( ) : string
Результат string

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