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
Return values
stringtoAuthorize()
Authorize document adding his protocol
public
static toAuthorize(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Return values
stringaddCTeOSProtocol()
Authorize CTeOS
protected
static addCTeOSProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddCTeProtocol()
Authorize CTe
protected
static addCTeProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddCTeSimpProtocol()
Authorize CTeSimp
protected
static addCTeSimpProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddEventoCTeProtocol()
Authorize Event
protected
static addEventoCTeProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddInutCTeProtocol()
Authorize Inutilization of numbers
protected
static addInutCTeProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringjoin()
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