Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Finvoice 2.01 XML generator

Code Climate Test Coverage Build Status

One way conversion from Ruby hash to Finvoice 2.01 XML file

Usage

# Invoice hash
invoice = {
    invoice: {
        number: "1234",
        date: "2016-02-25"
    },
    seller: {...},
    buyer: {...},
    rows: [...]
}

document = Finvoice201.build_from_hash(invoice)
document.valid? # => true or false
document.errors # => array of errors from XML schema validation
xml = document.to_xml # => xml contents
Finvoice201.validate(xml) # returns errors from XML schema validation

About

Ruby Finvoice generaattori

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages