teamleader 0.5.1 → 0.6.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 +8 -8
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/teamleader/api.rb +6 -0
- data/lib/teamleader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDRhN2VhZTJjZTExYWZlYzJlNTgyM2UyOGQzZDdkYjhkOGM4ZTBmMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWIzYmUxNjk0Y2JhMDk1NzA4NmIzNTliMmM4YjMwMWM1Nzk1MzIzMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZThhYjBkMjhjNTgwYjNjN2Q2MzllYTI0MzdiYzFhYTg5ZTQ5ZGRkODQ4NmZi
|
10
|
+
N2QyZmVlOTRhY2M5MDY2ODIyMTAxOWEwMGQxN2VlYWRiOGZhZGY4OWNmMDFl
|
11
|
+
OTQ3Y2RjZDAyZmU0ZTk0ODhlNThhZjQwZDE2YmJmNDUwYWJiY2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWUyNjAyMDM3M2FiZDlmNzgzZjk0ZDExZGQyYzE3NGZiMjQ0OTg1ZWU2ZGJj
|
14
|
+
N2YyNjAwYmY0YTA4ZWYwZWIxNWViYmE4YWIxZTdiM2ZhYmIyMmMwMmJiNzY0
|
15
|
+
ZjdlOWQxMTFmYzMzNjE3NzlhZWQ4MzJkOGQzMjVmNmEwN2Y2YzI=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -79,6 +79,7 @@ teamleader.update_invoice_payment_status({:invoice_id => 123, :status => "paid"}
|
|
79
79
|
teamleader.get_invoice({:invoice_id => 123})
|
80
80
|
teamleader.download_invoice_pdf({:invoice_id => 123})
|
81
81
|
teamleader.get_invoices({:date_from => "01/01/2017", :date_to => "01/05/2017"})
|
82
|
+
teamleader.get_creditnotes({:date_from => "01/01/2017", :date_to => "01/05/2017"})
|
82
83
|
teamleader.get_bookkeeping_accounts({:sys_department_id => 134})
|
83
84
|
```
|
84
85
|
|
data/lib/teamleader/api.rb
CHANGED
@@ -123,6 +123,12 @@ module Teamleader
|
|
123
123
|
request "/getInvoices.php", params
|
124
124
|
end
|
125
125
|
|
126
|
+
def get_creditnotes(params={})
|
127
|
+
raise "date_from is required" if params[:date_from].nil?
|
128
|
+
raise "date_to is required" if params[:date_to].nil?
|
129
|
+
request "/getCreditnotes.php", params
|
130
|
+
end
|
131
|
+
|
126
132
|
def get_bookkeeping_accounts(params={})
|
127
133
|
raise "sys_department_id is required" if params[:sys_department_id].nil?
|
128
134
|
request "/getBookkeepingAccounts.php", params
|
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.6.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: 2017-10-
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|