Project

billomat

0.01
Low commit activity in last 3 years
No release in over a year
Wrapper for the Billomat API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.12
>= 0.22
~> 2.3
~> 1.28
>= 0.9.28
~> 1.1
~> 1.2

Runtime

 Project Readme

Billomat

Continuous Integration Gem Version Test Coverage Test Ratio API docs

This gem provides a Ruby API for billomat.com - an online accounting service.

  • Installation
  • Usage
    • Configuration
    • Basic usage
  • Development
  • Code of Conduct
  • Contributing
  • Releasing

Installation

Add this line to your application's Gemfile:

gem 'billomat'

And then execute:

$ bundle

Or install it yourself as:

$ gem install billomat

Usage

Configuration

The billomat gem can be easily configured. If you're using Rails you might want to put this in your application.rb or inside an initializer.

Billomat.configure do |config|
  # Subdomain, e.g. example.billomat.net
  config.subdomain = 'example'
  # API key
  config.api_key   = '4aefdc...'
  # timeout in seconds
  config.timeout   = 5

  # You can also configure a registerd app to increase your
  # API call limit as described here:
  # https://www.billomat.com/en/api/basics/rate-limiting/
  config.app_id = '12345'
  config.app_secret = 'c3df...'

  config.after_response = lambda do |response|
    # API response callback, e.g. for inspecting the rate limit
    # header via response.headers[:x_rate_limit_remaining]
  end
end

Basic usage

Currently there is basic support for the models:

  • Invoice
  • Client
  • InvoicePayment
  • InvoiceItem
  • Contact
Billomat::Models::Invoice.where(invoice_number: 'RE1234')
=> [#<Billomat::Models::Invoice:0x005574b58d6510 ...]

Billomat::Models::Invoice.find('1234')
=> #<Billomat::Models::Invoice:0x005574b58d6510

client = Billomat::Models::Client.find('1234')
client.save
=> true

client.delete
=> true

Development

After checking out the repo, run make install to install dependencies. Then, run make test to run the tests. You can also run make shell-irb for an interactive prompt that will allow you to experiment.

Code of Conduct

Everyone interacting in the project codebase, issue tracker, chat rooms and mailing lists is expected to follow the code of conduct.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hausgold/billomat. Make sure that every pull request adds a bullet point to the changelog file with a reference to the actual pull request.

Releasing

The release process of this Gem is fully automated. You just need to open the Github Actions Release Workflow and trigger a new run via the Run workflow button. Insert the new version number (check the changelog first for the latest release) and you're done.