Bacen.STA.Protocol (Bacen STA v0.1.1)
The protocol message schema for Sisbacen's server.
This message is responsible to create a new protocol into Sisbacen's server to allow the application to send one of the ACCS/CCS messages for given protocol.
It has the following XML examples:
<Parametros>
<IdentificadorDocumento>ACCS001</IdentificadorDocumento>
<Hash>1235345hfdsahgdasd214312</Hash>
<Tamanho>1234</Tamanho>
<NomeArquivo>202105072230.xml</NomeArquivo>
<Observacao />
</Parametros><Parametros>
<IdentificadorDocumento>ACCS001</IdentificadorDocumento>
<Hash>1235345hfdsahgdasd214312</Hash>
<Tamanho>1234</Tamanho>
<NomeArquivo>202105072230.xml</NomeArquivo>
<Observacao>bla bla bla</Observacao>
</Parametros><Parametros>
<IdentificadorDocumento>ACCS001</IdentificadorDocumento>
<Hash>1235345hfdsahgdasd214312</Hash>
<Tamanho>1234</Tamanho>
<NomeArquivo>202105072230.xml</NomeArquivo>
<Observacao>bla bla bla</Observacao>
<Destinatarios>
<Destinatario>
<Unidade>12345</Unidade>
<Dependencia>dependencia 1</Dependencia>
<Operador>operador 1</Operador>
</Destinatario>
</Destinatarios>
</Parametros>
Link to this section Summary
Functions
Create new valid protocol xml from given attributes
Link to this section Types
Specs
t() :: %Bacen.STA.Protocol{parameters: term()}
The Bacen's CCS protocol type
Link to this section Functions
Link to this function
new(attrs \\ %{})
Specs
new(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Create new valid protocol xml from given attributes