PHP 인터페이스 Pop\Shipping\Adapter\AdapterInterface

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP

공개 메소드들

메소드 설명
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