Project

mock_dfe

0.0
No commit activity in last 3 years
No release in over 3 years
Generates Xml examples of different Brazilian tax documents.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 1.8
~> 10.0
~> 3.0

Runtime

~> 0.2.0
~> 1.9, >= 1.9.0
 Project Readme

MockDfe

Generates XML examples of different Brazilian tax documents with random data.

Installation

Add this line to your application's Gemfile:

gem 'mock_dfe'

And then execute:

$ bundle

Usage

require 'mock_dfe'
MockDfe::Nfe.render           #=> "Renders last version of NFe"
MockDfe::Nfe.render('4.00')   #=> "Renders NFe version 4.00"

Currently Available Documents and versions:

DFe Version
NFe 4.00

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Todo:

  • Add other DFe's and its versions (Nfe 1.00, Cte, NFSe...)
  • Possibility of sending any params that will overwrite the randomly generated ones

* Do NOT forget to add tests update the documentation for every new development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/taxweb/mock_dfe.

License

The gem is available as open source under the terms of the MIT License.