Documentation

Complements
in package

Table of Contents

Properties

$urlPortal  : mixed

Methods

cancelRegister()  : string
Add cancel protocol to a autorized CTe if event is not a cancellation will return the same autorized CTe passing NOTE: This action is not necessary, I use only for my needs to leave the CTe marked as Canceled in order to avoid mistakes after its cancellation.
toAuthorize()  : string
Authorize document adding his protocol
addCTeOSProtocol()  : string
Authorize CTeOS
addCTeProtocol()  : string
Authorize CTe
addCTeSimpProtocol()  : string
Authorize CTeSimp
addEventoCTeProtocol()  : string
Authorize Event
addInutCTeProtocol()  : string
Authorize Inutilization of numbers
join()  : string
Join the pieces of the source document with those of the answer

Properties

$urlPortal

protected static mixed $urlPortal = 'http://www.portalfiscal.inf.br/cte'

Methods

cancelRegister()

Add cancel protocol to a autorized CTe if event is not a cancellation will return the same autorized CTe passing NOTE: This action is not necessary, I use only for my needs to leave the CTe marked as Canceled in order to avoid mistakes after its cancellation.

public static cancelRegister(string $cte, string $cancelamento) : string
Parameters
$cte : string

content of autorized CTe XML

$cancelamento : string

content of SEFAZ response

Tags
throws
InvalidArgumentException
Return values
string

toAuthorize()

Authorize document adding his protocol

public static toAuthorize(string $request, string $response) : string
Parameters
$request : string
$response : string
Return values
string

addCTeOSProtocol()

Authorize CTeOS

protected static addCTeOSProtocol(string $request, string $response) : string
Parameters
$request : string
$response : string
Tags
throws
InvalidArgumentException
Return values
string

addCTeProtocol()

Authorize CTe

protected static addCTeProtocol(string $request, string $response) : string
Parameters
$request : string
$response : string
Tags
throws
InvalidArgumentException
Return values
string

addCTeSimpProtocol()

Authorize CTeSimp

protected static addCTeSimpProtocol(string $request, string $response) : string
Parameters
$request : string
$response : string
Tags
throws
InvalidArgumentException
Return values
string

addEventoCTeProtocol()

Authorize Event

protected static addEventoCTeProtocol(string $request, string $response) : string
Parameters
$request : string
$response : string
Tags
throws
InvalidArgumentException
Return values
string

addInutCTeProtocol()

Authorize Inutilization of numbers

protected static addInutCTeProtocol(string $request, string $response) : string
Parameters
$request : string
$response : string
Tags
throws
InvalidArgumentException
Return values
string

join()

Join the pieces of the source document with those of the answer

protected static join(string $first, string $second, string $nodename, string $versao) : string
Parameters
$first : string
$second : string
$nodename : string
$versao : string
Return values
string

        
On this page

Search results