billomat 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +63 -0
- data/Rakefile +6 -0
- data/billomat.gemspec +37 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/billomat/actions/cancel.rb +21 -0
- data/lib/billomat/actions/complete.rb +26 -0
- data/lib/billomat/actions/email.rb +30 -0
- data/lib/billomat/actions/pdf.rb +21 -0
- data/lib/billomat/actions/uncancel.rb +21 -0
- data/lib/billomat/actions.rb +11 -0
- data/lib/billomat/configuration.rb +7 -0
- data/lib/billomat/gateway.rb +53 -0
- data/lib/billomat/models/base.rb +72 -0
- data/lib/billomat/models/client.rb +15 -0
- data/lib/billomat/models/invoice.rb +33 -0
- data/lib/billomat/models/invoice_item.rb +15 -0
- data/lib/billomat/models/invoice_payment.rb +15 -0
- data/lib/billomat/models.rb +11 -0
- data/lib/billomat/search.rb +50 -0
- data/lib/billomat/version.rb +5 -0
- data/lib/billomat.rb +22 -0
- metadata +148 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 40a474e94aa0c704209fa2ebd99a4981730be955
|
4
|
+
data.tar.gz: efc188086b6124410a52c6d6796541a38fddb7af
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 11510e2136f9f04d213b44459bb9459628c67e38d5a469b9491300ad4f68faef00f8bad55817eb4e88048f4f167aa745607062c41ac15debfeaba631cb477c08
|
7
|
+
data.tar.gz: cbf6cbb1066541439b77030703b2a5085f0975dbdf7a089ca46e5c0dd2ad8fb4fec789d5091af2a8b77543fa95658176a95cb82ccc41de2533a6e7bad99b0102
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 HAUSGOLD | talocasa GmbH
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Billomat
|
2
|
+
[![Build Status](https://travis-ci.org/hausgold/billomat.svg?branch=master)](https://travis-ci.org/hausgold/billomat)
|
3
|
+
|
4
|
+
This gem provides a Ruby API for [billomat.com](https://billomat.com) - an online accounting service.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'billomat'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install billomat
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
### Configuration
|
25
|
+
|
26
|
+
The configuration takes two settings: `api_key` and `subdomain`. The latter is e.g. the name of your organization.
|
27
|
+
|
28
|
+
```
|
29
|
+
Billomat.configure do |config|
|
30
|
+
config.subdomain = 'your-company'
|
31
|
+
config.api_key = 'a3b148a61cb642389b4f9953f6233f20'
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### Basic usage
|
36
|
+
|
37
|
+
Currently there is basic support for the models `Invoice`, `Client`, `InvoicePayment`, `InvoiceItem`
|
38
|
+
|
39
|
+
```
|
40
|
+
Billomat::Models::Invoice.where(invoice_number: 'RE1234')
|
41
|
+
=> [#<Billomat::Models::Invoice:0x005574b58d6510 ...]
|
42
|
+
|
43
|
+
Billomat::Models::Invoice.find('1234')
|
44
|
+
=> #<Billomat::Models::Invoice:0x005574b58d6510
|
45
|
+
|
46
|
+
client = Billomat::Models::Client.find('1234')
|
47
|
+
client.save
|
48
|
+
=> true
|
49
|
+
|
50
|
+
client.delete
|
51
|
+
=> true
|
52
|
+
```
|
53
|
+
|
54
|
+
|
55
|
+
## Development
|
56
|
+
|
57
|
+
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.
|
58
|
+
|
59
|
+
To 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).
|
60
|
+
|
61
|
+
## Contributing
|
62
|
+
|
63
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hausgold/billomat.
|
data/Rakefile
ADDED
data/billomat.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "billomat/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "billomat"
|
8
|
+
spec.version = Billomat::VERSION
|
9
|
+
spec.licenses = ['MIT']
|
10
|
+
spec.authors = ["Henning Vogt"]
|
11
|
+
spec.email = ["henning.vogt@hausgold.de"]
|
12
|
+
|
13
|
+
spec.summary = %q{Wrapper for the Billomat API}
|
14
|
+
spec.homepage = "https://github.com/hausgold/billomat"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_dependency 'rest-client', '~> 2.0', '>= 2.0.2'
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "simplecov", "~> 0.15"
|
37
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "billomat"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Billomat
|
4
|
+
module Actions
|
5
|
+
class Cancel
|
6
|
+
def initialize(invoice_id)
|
7
|
+
@invoice_id = invoice_id
|
8
|
+
end
|
9
|
+
|
10
|
+
def call
|
11
|
+
Billomat::Gateway.new(:put, path).run
|
12
|
+
|
13
|
+
true
|
14
|
+
end
|
15
|
+
|
16
|
+
def path
|
17
|
+
"/invoices/#{@invoice_id}/cancel"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Billomat
|
4
|
+
module Actions
|
5
|
+
class Complete
|
6
|
+
def initialize(invoice_id, opts = {})
|
7
|
+
@invoice_id = invoice_id
|
8
|
+
@opts = opts
|
9
|
+
end
|
10
|
+
|
11
|
+
def call
|
12
|
+
Billomat::Gateway.new(:put, path, wrapped_data).run
|
13
|
+
|
14
|
+
true
|
15
|
+
end
|
16
|
+
|
17
|
+
def wrapped_data
|
18
|
+
{ complete: @opts }
|
19
|
+
end
|
20
|
+
|
21
|
+
def path
|
22
|
+
"/invoices/#{@invoice_id}/complete"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This actions sends an invoice email
|
4
|
+
# Recipients must be passed like this:
|
5
|
+
# { recipients: { to: 'bob@example.org' } }
|
6
|
+
|
7
|
+
module Billomat
|
8
|
+
module Actions
|
9
|
+
class Email
|
10
|
+
def initialize(invoice_id, opts = {})
|
11
|
+
@invoice_id = invoice_id
|
12
|
+
@opts = opts
|
13
|
+
end
|
14
|
+
|
15
|
+
def call
|
16
|
+
Billomat::Gateway.new(:post, path, wrapped_data).run
|
17
|
+
|
18
|
+
true
|
19
|
+
end
|
20
|
+
|
21
|
+
def wrapped_data
|
22
|
+
{ email: @opts }
|
23
|
+
end
|
24
|
+
|
25
|
+
def path
|
26
|
+
"/invoices/#{@invoice_id}/email"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Billomat
|
4
|
+
module Actions
|
5
|
+
class Pdf
|
6
|
+
def initialize(invoice_id, opts = {})
|
7
|
+
@invoice_id = invoice_id
|
8
|
+
@opts = opts
|
9
|
+
end
|
10
|
+
|
11
|
+
def call
|
12
|
+
resp = Billomat::Gateway.new(:get, path).run
|
13
|
+
resp['pdf']
|
14
|
+
end
|
15
|
+
|
16
|
+
def path
|
17
|
+
"/invoices/#{@invoice_id}/pdf"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Billomat
|
4
|
+
module Actions
|
5
|
+
class Uncancel
|
6
|
+
def initialize(invoice_id)
|
7
|
+
@invoice_id = invoice_id
|
8
|
+
end
|
9
|
+
|
10
|
+
def call
|
11
|
+
Billomat::Gateway.new(:put, path).run
|
12
|
+
|
13
|
+
true
|
14
|
+
end
|
15
|
+
|
16
|
+
def path
|
17
|
+
"/invoices/#{@invoice_id}/uncancel"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'billomat/actions/complete'
|
4
|
+
require 'billomat/actions/email'
|
5
|
+
require 'billomat/actions/pdf'
|
6
|
+
require 'billomat/actions/cancel'
|
7
|
+
require 'billomat/actions/uncancel'
|
8
|
+
|
9
|
+
module Billomat
|
10
|
+
module Actions; end
|
11
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rest-client'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
module Billomat
|
7
|
+
class GatewayError < StandardError; end
|
8
|
+
|
9
|
+
class Gateway
|
10
|
+
attr_reader :method, :path, :body
|
11
|
+
|
12
|
+
def initialize(method, path, body = {})
|
13
|
+
@method = method.to_sym
|
14
|
+
@path = path
|
15
|
+
@body = body
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
resp = RestClient::Request.execute(
|
20
|
+
method: method,
|
21
|
+
url: url,
|
22
|
+
timeout: timeout,
|
23
|
+
headers: headers,
|
24
|
+
payload: body.to_json
|
25
|
+
)
|
26
|
+
|
27
|
+
raise GatewayError, resp.body if resp.code > 299
|
28
|
+
return nil if resp.body.empty?
|
29
|
+
|
30
|
+
JSON.parse(resp.body)
|
31
|
+
end
|
32
|
+
|
33
|
+
def url
|
34
|
+
"https://#{config.subdomain}.billomat.net/api#{path}"
|
35
|
+
end
|
36
|
+
|
37
|
+
def timeout
|
38
|
+
5
|
39
|
+
end
|
40
|
+
|
41
|
+
def headers
|
42
|
+
{
|
43
|
+
'Accept' => 'application/json',
|
44
|
+
'Content-Type' => 'application/json',
|
45
|
+
'X-BillomatApiKey' => config.api_key
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
def config
|
50
|
+
Billomat.configuration
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'ostruct'
|
4
|
+
|
5
|
+
module Billomat
|
6
|
+
module Models
|
7
|
+
class Base
|
8
|
+
attr_accessor :data
|
9
|
+
|
10
|
+
def self.find(id)
|
11
|
+
return nil if id.nil?
|
12
|
+
resp = Billomat::Gateway.new(:get, "#{base_path}/#{id}").run
|
13
|
+
new(resp[resource_name])
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.where(hash = {})
|
17
|
+
Billomat::Search.new(self, hash).run
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(data = {})
|
21
|
+
@data = OpenStruct.new(data)
|
22
|
+
end
|
23
|
+
|
24
|
+
def save
|
25
|
+
return create if id.blank?
|
26
|
+
update
|
27
|
+
end
|
28
|
+
|
29
|
+
def create
|
30
|
+
resp = Billomat::Gateway.new(
|
31
|
+
:post, self.class.base_path, wrapped_data
|
32
|
+
).run
|
33
|
+
|
34
|
+
@data = OpenStruct.new(resp[self.class.resource_name])
|
35
|
+
|
36
|
+
true
|
37
|
+
end
|
38
|
+
|
39
|
+
def update
|
40
|
+
path = "#{self.class.base_path}/#{id}"
|
41
|
+
resp = Billomat::Gateway.new(:put, path, wrapped_data).run
|
42
|
+
@data = resp[self.class.resource_name]
|
43
|
+
|
44
|
+
true
|
45
|
+
end
|
46
|
+
|
47
|
+
def delete
|
48
|
+
path = "#{self.class.base_path}/#{id}"
|
49
|
+
Billomat::Gateway.new(:delete, path).run
|
50
|
+
|
51
|
+
true
|
52
|
+
end
|
53
|
+
|
54
|
+
def id
|
55
|
+
@data['id'] || nil
|
56
|
+
end
|
57
|
+
|
58
|
+
def wrapped_data
|
59
|
+
{ self.class.resource_name => @data.to_h }
|
60
|
+
end
|
61
|
+
|
62
|
+
def method_missing(method, *args, &block)
|
63
|
+
return @data[method] if @data.to_h.keys.include?(method)
|
64
|
+
super
|
65
|
+
end
|
66
|
+
|
67
|
+
def respond_to_missing?(method, include_privat = false)
|
68
|
+
@data.to_h.keys.include?(method.to_s) || super
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Billomat
|
4
|
+
module Models
|
5
|
+
class Invoice < Base
|
6
|
+
def self.base_path
|
7
|
+
'/invoices'
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.resource_name
|
11
|
+
'invoice'
|
12
|
+
end
|
13
|
+
|
14
|
+
def complete!
|
15
|
+
Billomat::Actions::Complete.new(id).call
|
16
|
+
end
|
17
|
+
|
18
|
+
def cancel!
|
19
|
+
Billomat::Actions::Cancel.new(id).call
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_email(recipient)
|
23
|
+
email_params = { recipients: { to: recipient } }
|
24
|
+
|
25
|
+
Billomat::Actions::Email.new(id, email_params).call
|
26
|
+
end
|
27
|
+
|
28
|
+
def to_pdf
|
29
|
+
Billomat::Actions::Pdf.new(id).call
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'billomat/models/base'
|
4
|
+
require 'billomat/models/client'
|
5
|
+
require 'billomat/models/invoice'
|
6
|
+
require 'billomat/models/invoice_item'
|
7
|
+
require 'billomat/models/invoice_payment'
|
8
|
+
|
9
|
+
module Billomat
|
10
|
+
module Models; end
|
11
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'uri'
|
4
|
+
|
5
|
+
module Billomat
|
6
|
+
class Search
|
7
|
+
def initialize(resource, hash)
|
8
|
+
@resource = resource
|
9
|
+
@hash = hash
|
10
|
+
end
|
11
|
+
|
12
|
+
def path
|
13
|
+
"#{@resource.base_path}?#{hash_to_query}"
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
return [] if @hash.compact.empty?
|
18
|
+
to_array(Billomat::Gateway.new(:get, path).run)
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_array(resp)
|
22
|
+
case count(resp)
|
23
|
+
when 0
|
24
|
+
[]
|
25
|
+
when 1
|
26
|
+
# Necessary due to strange API behaviour
|
27
|
+
[@resource.new(resp["#{name}s"][name])]
|
28
|
+
else
|
29
|
+
resp["#{name}s"][name].map do |c|
|
30
|
+
@resource.new(c)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def name
|
36
|
+
@resource.resource_name
|
37
|
+
end
|
38
|
+
|
39
|
+
def count(resp)
|
40
|
+
return 0 if resp.nil?
|
41
|
+
resp["#{name}s"]['@total'].to_i
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def hash_to_query
|
47
|
+
URI.encode_www_form(@hash)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/lib/billomat.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'billomat/version'
|
4
|
+
require 'billomat/configuration'
|
5
|
+
require 'billomat/models'
|
6
|
+
require 'billomat/actions'
|
7
|
+
require 'billomat/search'
|
8
|
+
require 'billomat/gateway'
|
9
|
+
|
10
|
+
module Billomat
|
11
|
+
class << self
|
12
|
+
attr_writer :configuration
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.configuration
|
16
|
+
@configuration ||= Billomat::Configuration.new
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.configure
|
20
|
+
yield(configuration)
|
21
|
+
end
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: billomat
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Henning Vogt
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.0.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.0.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.15'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.15'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '10.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '10.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rspec
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '3.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: simplecov
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.15'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0.15'
|
89
|
+
description:
|
90
|
+
email:
|
91
|
+
- henning.vogt@hausgold.de
|
92
|
+
executables: []
|
93
|
+
extensions: []
|
94
|
+
extra_rdoc_files: []
|
95
|
+
files:
|
96
|
+
- ".gitignore"
|
97
|
+
- ".rspec"
|
98
|
+
- ".travis.yml"
|
99
|
+
- Gemfile
|
100
|
+
- LICENSE
|
101
|
+
- README.md
|
102
|
+
- Rakefile
|
103
|
+
- billomat.gemspec
|
104
|
+
- bin/console
|
105
|
+
- bin/setup
|
106
|
+
- lib/billomat.rb
|
107
|
+
- lib/billomat/actions.rb
|
108
|
+
- lib/billomat/actions/cancel.rb
|
109
|
+
- lib/billomat/actions/complete.rb
|
110
|
+
- lib/billomat/actions/email.rb
|
111
|
+
- lib/billomat/actions/pdf.rb
|
112
|
+
- lib/billomat/actions/uncancel.rb
|
113
|
+
- lib/billomat/configuration.rb
|
114
|
+
- lib/billomat/gateway.rb
|
115
|
+
- lib/billomat/models.rb
|
116
|
+
- lib/billomat/models/base.rb
|
117
|
+
- lib/billomat/models/client.rb
|
118
|
+
- lib/billomat/models/invoice.rb
|
119
|
+
- lib/billomat/models/invoice_item.rb
|
120
|
+
- lib/billomat/models/invoice_payment.rb
|
121
|
+
- lib/billomat/search.rb
|
122
|
+
- lib/billomat/version.rb
|
123
|
+
homepage: https://github.com/hausgold/billomat
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata:
|
127
|
+
allowed_push_host: https://rubygems.org
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.6.11
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Wrapper for the Billomat API
|
148
|
+
test_files: []
|