{"id":21816977,"url":"https://github.com/maartenvanvliet/moneybird","last_synced_at":"2025-04-14T01:20:58.017Z","repository":{"id":5809183,"uuid":"53976838","full_name":"maartenvanvliet/moneybird","owner":"maartenvanvliet","description":"Ruby gem for the Moneybird REST API","archived":false,"fork":false,"pushed_at":"2024-05-13T16:26:38.000Z","size":297,"stargazers_count":8,"open_issues_count":6,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T08:03:48.251Z","etag":null,"topics":["moneybird","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/maartenvanvliet/moneybird","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maartenvanvliet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-15T20:37:44.000Z","updated_at":"2025-01-17T00:35:16.000Z","dependencies_parsed_at":"2024-11-27T15:49:33.480Z","dependency_job_id":null,"html_url":"https://github.com/maartenvanvliet/moneybird","commit_stats":{"total_commits":178,"total_committers":20,"mean_commits":8.9,"dds":0.5,"last_synced_commit":"eb97581984336c642bd8bf653f86ad92217c39d5"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fmoneybird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fmoneybird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fmoneybird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fmoneybird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maartenvanvliet","download_url":"https://codeload.github.com/maartenvanvliet/moneybird/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248182096,"owners_count":21060893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["moneybird","ruby"],"created_at":"2024-11-27T15:38:29.442Z","updated_at":"2025-04-14T01:20:57.969Z","avatar_url":"https://github.com/maartenvanvliet.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moneybird [![Build Status](https://github.com/maartenvanvliet/moneybird/workflows/Ruby/badge.svg?branch=master)](https://github.com/maartenvanvliet/moneybird/actions?query=workflow%3ARuby) [![Code Climate](https://codeclimate.com/github/maartenvanvliet/moneybird/badges/gpa.svg)](https://codeclimate.com/github/maartenvanvliet/moneybird) [![Test Coverage](https://codeclimate.com/github/maartenvanvliet/moneybird/badges/coverage.svg)](https://codeclimate.com/github/maartenvanvliet/moneybird/coverage)\n\nGem to talk to the Moneybird REST API. Right now you'll need to get a 'bearer' token for the client to work, oauth2 support may added later. This gem is still under construction and any methods may still change signature without notice until 1.0 is released.\n\nThe library is modelled after http://developer.moneybird.com/ Any inconsistencies or errors in the documentation may also be present in the library.\n\nFeel free to file Pull Requests\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'moneybird'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install moneybird\n\n## Usage\n\n```ruby\n# Client uses bearer token (see: http://developer.moneybird.com/authentication/)\nMoneybird::Client.new('fe3f7f9e239e7d925f9caf695028e60fd3e5c2085f7aebb983cea731dea6b44f')\n\n# List administrations\nadministrations = client.administrations\n\nadministration = administrations.first\n\n# List invoices\nadministration.sales_invoices.all\n\n# List invoices with a specific state\nadministration.sales_invoices.all(filter: 'state:uncollectible')\n\n# List contacts\nadministration.contacts.all\n\n# Find contact\nadministration.contacts.find(moneybird_id)\n\n# Find contact by customer id\nadministration.contacts.find_by_customer_id(customer_id)\n\n# Create contact\nadministration.contacts.create(company_name: 'ACME', firstname: 'Foo', lastname: 'Bar')\n\n# Update contact\ncontact = administration.contacts.all.first\ncontact.company_name = 'Something new'\nadministrations.contacts.save(contact)\n\n# Delete contact\nadministrations.contacts.delete(contact)\n\n# Works similarly with other resources\n\n```\n### Webhooks\n\nMoneybird, if so configured, sends webhooks to specified endpoints. This gem can deal with these requests.\n```ruby\nwebhook = Moneybird::Webhook.from_json(request.body)\nsales_invoice = webhook.build_entity\nsales_invoice.state \n```\n\n## Development\n\nAfter 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.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/maartenvanvliet/moneybird. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fmoneybird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartenvanvliet%2Fmoneybird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fmoneybird/lists"}