qonto 0.2.0 → 0.3.0

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: 94826f445212489870421cdbc931d2be335464a1
4
- data.tar.gz: c1108a0ddfcaae32d02f04afa503fc6de6e4fdb1
3
+ metadata.gz: e7fb9be242d4c01f0915f737317a591e573e9a13
4
+ data.tar.gz: d944bc2d4b06b56f53ef36fa4ab0fa6ba649d52e
5
5
  SHA512:
6
- metadata.gz: 454908ec5ed286c4fa1f1a3ce7e605a5e9017d9f1b338d882bed87757c2f0158ece0d86139c9e76fff0e7d5f52ae36260109a28f1dd7c787d7b2014b4dbb72aa
7
- data.tar.gz: 61201d2ffedeee015af3f7de5e0559704c0eecee5221ce092376f47bae9842d96e25379d42a69bc75e9e3d35ddf8e89ca4b760622848e29115bc95cbe6c2092f
6
+ metadata.gz: bc2ba5849a656da4b056713effe2a75189142147f6263c4a1e2ec92883935d609a52792fbfb3da18deae4d83be172d2b76c1e8361c7443930fb15f22e0373703
7
+ data.tar.gz: 43156e540d71f0d5dac719f75058be4ba477adf7faae1d60933aac149ff0bfea6e233c719400cad2c35a283a7132f31fdc8fde34f604dc13e7be8615d9b6c6a8
@@ -3,7 +3,7 @@ jobs:
3
3
  build-latest: &common-build
4
4
  working_directory: ~/qonto-api-ruby
5
5
  docker:
6
- - image: circleci/ruby:2.4.1-node
6
+ - image: circleci/ruby:2.5.0-node
7
7
  steps:
8
8
  - checkout
9
9
 
@@ -27,14 +27,18 @@ jobs:
27
27
  - run:
28
28
  name: Run tests
29
29
  command: bundle exec rspec
30
+ build-2-4:
31
+ <<: *common-build
32
+ docker:
33
+ - image: circleci/ruby:2.4.3-node
30
34
  build-2-3:
31
35
  <<: *common-build
32
36
  docker:
33
- - image: circleci/ruby:2.3.4-node
37
+ - image: circleci/ruby:2.3.6-node
34
38
  build-2-2:
35
39
  <<: *common-build
36
40
  docker:
37
- - image: circleci/ruby:2.2.7-node
41
+ - image: circleci/ruby:2.2.9-node
38
42
  build-2-1:
39
43
  <<: *common-build
40
44
  docker:
@@ -45,6 +49,7 @@ workflows:
45
49
  build:
46
50
  jobs:
47
51
  - build-latest
52
+ - build-2-4
48
53
  - build-2-3
49
54
  - build-2-2
50
55
  - build-2-1
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Qonto API Ruby Client
2
2
 
3
3
  The Qonto API Ruby client provides convenient access to the Qonto API from applications written in Ruby language.
4
- It is currently up to date with the `v1` version. Qonto API documentation is avaible at https://api-doc.qonto.eu.
4
+ It is currently up to date with the `v2` version. Qonto API documentation is avaible at https://api-doc.qonto.eu.
5
5
 
6
6
  This project is not affiliated with the Qonto company in any way.
7
7
 
@@ -44,15 +44,16 @@ You can retrieve your organization bank accounts by calling `get_organization`:
44
44
 
45
45
  You can list transactions for a given bank account by calling `list_transactions`:
46
46
 
47
- # Paginate through the transactions
47
+ # Paginate through the pending transactions
48
48
  transactions = client.list_transactions(
49
49
  bank_account: bank_account,
50
50
  per_page: 10,
51
- current_page: 2
51
+ current_page: 2,
52
+ status: ['pending']
52
53
  )
53
54
 
54
55
  transactions.each do |transaction|
55
- puts " #{transaction.side}: #{transaction.amount} #{transaction.currency} - #{transaction.label}"
56
+ puts " #{transaction.side} (#{transaction.status}): #{transaction.amount} #{transaction.currency} - #{transaction.label}"
56
57
  end
57
58
 
58
59
  If a request returns an error, the client raises a `Qonto::Error`. This can be simply
@@ -3,18 +3,21 @@ module Qonto
3
3
  class Transaction < Base
4
4
  attr_accessor :amount
5
5
  attr_accessor :amount_cents
6
+ attr_accessor :currency
7
+ attr_accessor :emitted_at
8
+ attr_accessor :label
6
9
  attr_accessor :local_amount
7
10
  attr_accessor :local_amount_cents
8
- attr_accessor :side
9
- attr_accessor :operation_type
10
- attr_accessor :currency
11
11
  attr_accessor :local_currency
12
+ attr_accessor :note
13
+ attr_accessor :operation_type
12
14
  attr_accessor :settled_at
13
- attr_accessor :label
15
+ attr_accessor :side
14
16
  attr_accessor :status
15
17
  attr_accessor :transaction_id
16
- attr_accessor :emitted_at
17
- attr_accessor :note
18
+ attr_accessor :vat_amount
19
+ attr_accessor :vat_amount_cents
20
+ attr_accessor :vat_rate
18
21
  end
19
22
  end
20
23
  end
@@ -1,3 +1,3 @@
1
1
  module Qonto
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qonto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Charrier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-21 00:00:00.000000000 Z
11
+ date: 2019-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty