teamleader 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +4 -1
- data/lib/teamleader/api.rb +5 -0
- data/lib/teamleader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90a14273fee7021e5122e2fbf5edd49241f959a
|
4
|
+
data.tar.gz: 1dafd86c0e74191f36dc026956336dff296b6ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2caf7127f5b0674d0d9c66cb1fe8078db9910983f44bd55d04c5e7d21be4d42ba3b503a7642b990d3c46500491f7fee7ac0fb9aaad6152d4c3d6ac5420a62c1d
|
7
|
+
data.tar.gz: 2498b6402671f6b9f590008419cf5970c546c6111b8ee6d6a8dd8d5b2fc2c89975c755945dc019df4e794cc04e3c6284fe7b7cb25275da6c1e34ad41b21b9ab5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -98,7 +98,7 @@ teamleader.get_bookkeeping_accounts({:sys_department_id => 134})
|
|
98
98
|
```
|
99
99
|
|
100
100
|
#### Other supported methods
|
101
|
-
`book_draft_invoice`, `update_invoice`, `update_invoice_comments`, `delete_invoice`, `get_creditnote`, `get_invoices_by_project`, `get_creditnotes_by_project`, `get_invoices_by_deal`, `add_creditnote`
|
101
|
+
`book_draft_invoice`, `update_invoice`, `update_invoice_comments`, `delete_invoice`, `get_creditnote`, `get_invoices_by_project`, `get_creditnotes_by_project`, `get_invoices_by_deal`, `add_creditnote`, `download_creditnote_pdf`
|
102
102
|
|
103
103
|
### Products
|
104
104
|
|
@@ -188,6 +188,9 @@ teamleader.get_calls(amount: 10, pageno: 0)
|
|
188
188
|
teamleader.get_call(call_id: '123456')
|
189
189
|
```
|
190
190
|
|
191
|
+
### Subscriptions
|
192
|
+
Available methods are: `get_subscriptions`, `get_all_subscriptions`
|
193
|
+
|
191
194
|
## License
|
192
195
|
The Teamleader GEM is released under the MIT License.
|
193
196
|
|
data/lib/teamleader/api.rb
CHANGED
@@ -192,6 +192,11 @@ module Teamleader
|
|
192
192
|
request "/downloadInvoicePDF.php", params
|
193
193
|
end
|
194
194
|
|
195
|
+
def download_creditnote_pdf(params={})
|
196
|
+
raise "creditnote_id is required" if params[:creditnote_id].nil?
|
197
|
+
request "/downloadCreditnotePDF.php", params
|
198
|
+
end
|
199
|
+
|
195
200
|
def get_invoices(params={})
|
196
201
|
raise "date_from is required" if params[:date_from].nil?
|
197
202
|
raise "date_to is required" if params[:date_to].nil?
|
data/lib/teamleader/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamleader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre-Yves Orban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|