octobat 2.0.10 → 2.0.11

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: dac7e1b7d5e946a2311b75cb66cb75f8cf20ff2e
4
- data.tar.gz: cd1dd873040acdbc7b119e4b6fa062b892bc1c80
3
+ metadata.gz: 2086e40878a77c42ceea5f27eafc03e84af74174
4
+ data.tar.gz: 797414c2c1882ff3359ed28226fd856a02259553
5
5
  SHA512:
6
- metadata.gz: a5265c3568e8392309a9f1f35d41caf480255591c78748e9973bdff03740c002cbbfde12db25fe37425799dea8c98d49aeff5baaa1c814b7602013703dcd0322
7
- data.tar.gz: 4488d9f0e18b66e6bd01f09492f9dccc8a5ffb7c1ebbf5523389140555a5f0d986640f7afa6701d0972d74e45724af5fbb636d507b8c4c63143a18f37225b22b
6
+ metadata.gz: 6610668ad5b756b952bded110afcc76d8047111a21082d5084364b22599f689b87699f2baa1cc6e6821743f07dfdc4bc583ad52e5375934a5a426b1acfd9d06e
7
+ data.tar.gz: e383f98dc35acdfeeece4a3c77abed0616bdb15607f881b6a92ca2d2e39feb98a01d841c4459b391767d34eb0edebe0e805f726e5fecd244d2dbf4af703f2048
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octobat (2.0.10)
4
+ octobat (2.0.11)
5
5
  rest-client (>= 1.4, < 4.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,7 @@
1
+ === 2.0.11 2018-04-10
2
+ * 1 minor enhancement:
3
+ * Add CSV exports for payouts
4
+
1
5
  === 2.0.10 2018-03-08
2
6
  * 1 minor enhancement:
3
7
  * Add Tax Evidences Requests for supplier & customer data
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.10
1
+ 2.0.11
@@ -5,5 +5,16 @@ module Octobat
5
5
  def balance_transactions(params = {})
6
6
  BalanceTransaction.list(params.merge({ payout: id }), @api_key)
7
7
  end
8
+
9
+ def self.csv_export(params = {}, opts={})
10
+ api_key, headers = Util.parse_opts(opts)
11
+ api_key ||= @api_key
12
+ opts[:api_key] = api_key
13
+
14
+ instance = self.new(nil, opts)
15
+
16
+ response, api_key = Octobat.request(:post, url + '/csv_export', api_key, params)
17
+ return true
18
+ end
8
19
  end
9
20
  end
@@ -1,3 +1,3 @@
1
1
  module Octobat
2
- VERSION = '2.0.10'
2
+ VERSION = '2.0.11'
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.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaultier Laperche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-08 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client