octobat 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da96cee3fd34ea4d0e17eaa00ae9dcd36767e55b
4
- data.tar.gz: 9028ab72ae69c91f591180d667aa900684ab3750
3
+ metadata.gz: 1a193d3d3821d34dbd7f2cd8b8ef333d91b4344e
4
+ data.tar.gz: 2f0a07eae13a57037df0e24d8f56515ee7f81fe5
5
5
  SHA512:
6
- metadata.gz: 59013c93cb2b3d72a5aad265dc27200e160af58c147880e7c21707069652b47b57471195867a5d5b11341d10f21c14688fcb96a87b63eb3449543dbf1118fdb2
7
- data.tar.gz: e5db7fd75c1122e7f534caefb190f35a52ebb0e12e8fefdf991752946e43b057af43783ff181adf4155a8f8ff1fe797015c4439d0ff24a7bd622cc54b3c3fe20
6
+ metadata.gz: 248468e87c8a929646ae7210425ed796bac0f4e364e8e3ab486d8f491384aee7a08b0f9c6e470e3d4c04eeab903c8c91a4b7d45cad76776ab7ea4d7949daffea
7
+ data.tar.gz: 9575a6021cef7b3a44791b5ba1d8bb036865a46efb3ef49c6dc08c9b6015dcf2e1412c87887c7bbcd10fc912a702b78dd219418b5ab7e79d366a148274287ec2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octobat (2.0.8)
4
+ octobat (2.0.9)
5
5
  rest-client (>= 1.4, < 4.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,7 @@
1
+ === 2.0.9 2017-10-02
2
+ * 1 minor enhancement:
3
+ * Add PDF exports for credit notes
4
+
1
5
  === 2.0.8 2017-06-08
2
6
  * 1 minor enhancement:
3
7
  * Add CSV exports for transactions
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.8
1
+ 2.0.9
@@ -3,6 +3,19 @@ module Octobat
3
3
  extend Octobat::APIOperations::List
4
4
  include Octobat::APIOperations::Create
5
5
  include Octobat::APIOperations::Update
6
+
7
+
8
+ def self.pdf_export(params = {}, opts={})
9
+ api_key, headers = Util.parse_opts(opts)
10
+ api_key ||= @api_key
11
+ opts[:api_key] = api_key
12
+
13
+ instance = self.new(nil, opts)
14
+
15
+ response, api_key = Octobat.request(:post, url + '/pdf_export', api_key, params)
16
+ return true
17
+ end
18
+
6
19
 
7
20
  def send_by_email(email_data = {})
8
21
  response, api_key = Octobat.request(:post, send_url, @api_key, email_data)
@@ -1,3 +1,3 @@
1
1
  module Octobat
2
- VERSION = '2.0.8'
2
+ VERSION = '2.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octobat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaultier Laperche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-08 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client