class BillSender extends BaseSunat implements SenderInterface

Class BillSender.

Constants

NUMBER_PATTERN

Properties

CompressInterface $compressor from BaseSunat
DecompressInterface $decompressor from BaseSunat
CdrReaderInterface $cdrReader from BaseSunat

Methods

setCodeProvider(ErrorCodeProviderInterface $codeProvider)

No description

from BaseSunat
getClient()

No description

from BaseSunat
setClient(WsClientInterface $client)

No description

from BaseSunat
getErrorFromFault(SoapFault $fault)

Get error from Fault Exception.

from BaseSunat
getErrorByCode(string $code, string $optional = '')

No description

from BaseSunat
string
compress(string $filename, string $xml)

No description

from BaseSunat
extractResponse($zipContent)

No description

from BaseSunat
string
getMessageError($code)

No description

from BaseSunat
isExceptionCode($code)

No description

from BaseSunat
loadErrorByCode(BillResult $result, $code)

No description

from BaseSunat
send(string $filename, string $content)

No description

Details

in BaseSunat at line 57
setCodeProvider(ErrorCodeProviderInterface $codeProvider)

Parameters

ErrorCodeProviderInterface $codeProvider

in BaseSunat at line 65
WsClientInterface getClient()

Return Value

WsClientInterface

in BaseSunat at line 75
BaseSunat setClient(WsClientInterface $client)

Parameters

WsClientInterface $client

Return Value

BaseSunat

in BaseSunat at line 89
protected Error getErrorFromFault(SoapFault $fault)

Get error from Fault Exception.

Parameters

SoapFault $fault

Return Value

Error

in BaseSunat at line 106
protected Error getErrorByCode(string $code, string $optional = '')

Parameters

string $code
string $optional intenta obtener el codigo de este parametro sino $codigo no es vĂ¡lido

Return Value

Error

in BaseSunat at line 130
protected string compress(string $filename, string $xml)

Parameters

string $filename
string $xml

Return Value

string

in BaseSunat at line 144
protected CdrResponse extractResponse($zipContent)

Parameters

$zipContent

Return Value

CdrResponse

in BaseSunat at line 160
protected string getMessageError($code)

Parameters

$code

Return Value

string

in BaseSunat at line 169
protected isExceptionCode($code)

Parameters

$code

in BaseSunat at line 176
protected loadErrorByCode(BillResult $result, $code)

Parameters

BillResult $result
$code

at line 25
BaseResult send(string $filename, string $content)

Parameters

string $filename Filename
string $content Content File

Return Value

BaseResult