class SummarySender extends BaseSunat implements SenderInterface

Class SummarySender.

Constants

NUMBER_PATTERN

Properties

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

Methods

setCodeProvider(ErrorCodeProviderInterface|null $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(string $zipContent)

No description

from BaseSunat
string
getMessageError(string $code)

No description

from BaseSunat
isExceptionCode($code)

No description

from BaseSunat
loadErrorByCode(BillResult $result, $code)

No description

from BaseSunat
BaseResult|null
send(string|null $filename, string|null $content)

Send document.

Details

in BaseSunat at line 60
setCodeProvider(ErrorCodeProviderInterface|null $codeProvider)

Parameters

ErrorCodeProviderInterface|null $codeProvider

in BaseSunat at line 68
WsClientInterface getClient()

Return Value

WsClientInterface

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

Parameters

WsClientInterface $client

Return Value

BaseSunat

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

Get error from Fault Exception.

Parameters

SoapFault $fault

Return Value

Error

in BaseSunat at line 109
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 133
protected string compress(string $filename, string $xml)

Parameters

string $filename
string $xml

Return Value

string

in BaseSunat at line 147
protected CdrResponse extractResponse(string $zipContent)

Parameters

string $zipContent

Return Value

CdrResponse

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

Parameters

string $code

Return Value

string

in BaseSunat at line 172
protected isExceptionCode($code)

Parameters

$code

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

Parameters

BillResult $result
$code

at line 28
BaseResult|null send(string|null $filename, string|null $content)

Send document.

Parameters

string|null $filename Filename
string|null $content Content File

Return Value

BaseResult|null