Complements
in package
Table of Contents
Properties
- $urlPortal : mixed
Methods
- b2bTag() : string
- Add tags B2B, as example ANFAVEA
- cancelRegister() : string
- Add cancel protocol to a autorized NFe if event is not a cancellation will return the same autorized NFe passing NOTE: This action is not necessary, I use only for my needs to leave the NFe marked as Canceled in order to avoid mistakes after its cancellation.
- toAuthorize() : string
- Authorize document adding his protocol
- addEnvEventoProtocol() : string
- Authorize Event
- addInutNFeProtocol() : string
- Authorize Inutilization of numbers
- addNFeProtocol() : string
- Authorize NFe
- 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/nfe'
Methods
b2bTag()
Add tags B2B, as example ANFAVEA
public
static b2bTag(string $nfe, string $b2b[, string $tagB2B = 'NFeB2BFin' ]) : string
Parameters
- $nfe : string
-
xml nfe string content
- $b2b : string
-
xml b2b string content
- $tagB2B : string = 'NFeB2BFin'
-
name B2B tag default 'NFeB2BFin' from ANFAVEA
Tags
Return values
stringcancelRegister()
Add cancel protocol to a autorized NFe if event is not a cancellation will return the same autorized NFe passing NOTE: This action is not necessary, I use only for my needs to leave the NFe marked as Canceled in order to avoid mistakes after its cancellation.
public
static cancelRegister(string $nfe, string $cancelamento) : string
Parameters
- $nfe : string
-
content of autorized NFe 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
stringaddEnvEventoProtocol()
Authorize Event
protected
static addEnvEventoProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddInutNFeProtocol()
Authorize Inutilization of numbers
protected
static addInutNFeProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
Tags
Return values
stringaddNFeProtocol()
Authorize NFe
protected
static addNFeProtocol(string $request, string $response) : string
Parameters
- $request : string
- $response : string
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