- Generate the document: [done]
- Build the document as an object. [done]
- doc.to_xml [done]
- Sign the resulting document [done]
- doc.sign [done] 1. Transform the BaseBuilder into a decorator of document responsible for generate the document without the signature called XMLDocument [done] 2. Create a new decorator called SignatureDocument, responsible for sign the document [done]
- Send the document
- doc.send
1. Prepare
0. Generate name of file
- Zip the document
- Transform document to a byte array
- Generate SOAP 2. Send
- Send to endpoints