Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elektronaut/sendregning
Ruby client for the SendRegning Web Service
https://github.com/elektronaut/sendregning
Last synced: 1 day ago
JSON representation
Ruby client for the SendRegning Web Service
- Host: GitHub
- URL: https://github.com/elektronaut/sendregning
- Owner: elektronaut
- License: mit
- Created: 2010-10-19T23:29:23.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T12:14:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T13:36:16.940Z (21 days ago)
- Language: Ruby
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sendregning
[![Code Climate](https://codeclimate.com/github/elektronaut/sendregning.png)](https://codeclimate.com/github/elektronaut/sendregning)
Ruby client for the SendRegning Web Service.
## Getting started
Install with RubyGems:
gem install sendregning
Now start sending invoices:
# Create a new client
client = Sendregning::Client.new('[email protected]', 'myawesomepassword')# Start a new email invoice
invoice = client.new_invoice(
name: 'My Client',
zip: '0123',
city: 'Oslo',
shipment: :email,
emailaddresses: '[email protected]'
)# Add an item
invoice.add_line qty: 1, desc: 'Bananaphone', unitPrice: '500,00'# Send it away!
invoice.send!# Get the invoice number for future reference
id = invoice.invoiceNoLet's check how we're doing!
invoice = client.find_invoice(id)
invoice.paid? # => truePass `test: true` to the constructor to use the test API
# Create a new client
client = Sendregning::Client.new('[email protected]', 'myawesomepassword', test: true)## Copyright
Copyright (c) 2010 Inge Jørgensen. See LICENSE for details.