teamleader 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0e557b6250104a02e13641d58fe6a7d6be3e7bf
4
- data.tar.gz: b6c0fb57abcd643a45eea2318491e2ba853a392a
3
+ metadata.gz: b90a14273fee7021e5122e2fbf5edd49241f959a
4
+ data.tar.gz: 1dafd86c0e74191f36dc026956336dff296b6ecc
5
5
  SHA512:
6
- metadata.gz: 9de87cc5cf51df6e1bea17e221638cc5f9ead39b1728adbb1ea9746f87dbb05ea7d0d1ca69ba9ec18c61211bd83c67f5b7361ce987146f35fe7d6d470b502294
7
- data.tar.gz: 727e25afac26a9c7e975c1a0af9280794f3a9c8154670763beb9d144030b084612f7aa7837aaa9b8e17890cad109e30b717574c4b4367db5d189677326195d35
6
+ metadata.gz: 2caf7127f5b0674d0d9c66cb1fe8078db9910983f44bd55d04c5e7d21be4d42ba3b503a7642b990d3c46500491f7fee7ac0fb9aaad6152d4c3d6ac5420a62c1d
7
+ data.tar.gz: 2498b6402671f6b9f590008419cf5970c546c6111b8ee6d6a8dd8d5b2fc2c89975c755945dc019df4e794cc04e3c6284fe7b7cb25275da6c1e34ad41b21b9ab5
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.15.0] - 2019-05-09
5
+ - New method related to credit notes: `download_creditnote_pdf`
6
+
4
7
  ## [0.14.0] - 2018-10-01
5
8
  - Sync with version published on Rubygems
6
9
 
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
 
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Teamleader
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
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.14.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: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler