figo 1.2.0 → 1.2.1

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.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/figo.gemspec +1 -1
  3. data/lib/figo.rb +3 -4
  4. data/lib/models.rb +3 -3
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDMwM2ExN2I1ZDEzOGFlNGM3ZGRlY2I2ODljMTEyZTE2ZGE2MDg2OQ==
4
+ YTYzMGFjNjA2NTg2MjdiNzJlZjZlMDZkYzQ3OWQyMGFhZDE3ZmY4Mw==
5
5
  data.tar.gz: !binary |-
6
- ODQzNGViYjA3ZTM3NzI2ZmMxMmNiN2IxNWQ2Zjg2YmZkZmIwMDRmYw==
6
+ M2FkY2E0OWRmOTFiNWJiMjk3OWI5OWZhMzFhMTRmNWJkM2EyYmY1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjhiZDlhYzY5NWY0ZjQ3YzEzY2YyYTQ1MjNkYjJlOTU2NDk2Y2YxNWQ5MjA3
10
- YTJjODk1NTYzNDNmOGNmZWZiZTBmYmZkMmVlZDQ1MjY3MjY3NDAxNDE4MTc2
11
- Y2I0MDdiZDhiNmE1YmI3MTQ0MTYyYzRhNGY2ODRmNjY0ZDczYTc=
9
+ YzM1Y2U3NThjODc3ZDcwOGU3YzRlNWQxNjk2MmY4YThmYzBmNGE4ZmMzY2M0
10
+ YjI2ZTNlODM1MzAwZWI0NDcyNDBjNWJiMzUwNGY3YjU2NDg2YTBkOGQwODRl
11
+ Mjg0MDE1MjczNTQxY2E5MzViMTkxYzhkMDdhYzk5ODhiOTNlMmY=
12
12
  data.tar.gz: !binary |-
13
- NjEzZDg0MDdjNzg0MjVkYzNkZGQ0ZTliMzE4ZDlkMzAyMTgzZjU3OTI1MDU5
14
- M2Y3NjVhMGUxZTg3OGE2Nzc4NjZiODc5Y2MxNDE1OTllZmQ1YTE5MmY0M2E1
15
- Mjk4YWI2MWJmYmVkMTZhNTdkNzI3NzYyMzBlZGNkMTk0YzM1MTg=
13
+ MjYzZmRkOGMwMmZhNzliYTM2MjdmNWVjNzhmYzc2YjZkNjBiZjBlNzRlOGVk
14
+ MTdkZjMxYWQ1NWRiNWIzOTFiZDQwMDhmZTNiZGRjNmIwMjU0MjI5N2U2NWI4
15
+ ZmViZjhmYzViOWE5YjkyODEzNzdiMjY1YmVlNTQ4OTIzNWIzYzM=
data/figo.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "figo"
3
- s.version = "1.2.0"
3
+ s.version = "1.2.1"
4
4
  s.authors = ["Stefan Richter"]
5
5
  s.email = ["stefan.richter@figo.me"]
6
6
  s.homepage = "https://github.com/figo-connect/ruby-figo"
data/lib/figo.rb CHANGED
@@ -358,16 +358,15 @@ module Figo
358
358
  #
359
359
  # @param account_id [String] ID of the account for which to list the transactions
360
360
  # @param since [String, Date] this parameter can either be a transaction ID or a date
361
- # @param start_id [String] do only return transactions which were booked after the start transaction ID
362
361
  # @param count [Integer] limit the number of returned transactions
362
+ # @param offset [Integer] which offset into the result set should be used to determin the first transaction to return (useful in combination with count)
363
363
  # @param include_pending [Boolean] this flag indicates whether pending transactions should be included
364
364
  # in the response; pending transactions are always included as a complete set, regardless of
365
365
  # the `since` parameter
366
366
  # @return [Array] an array of `Transaction` objects, one for each transaction of the user
367
- def transactions(account_id = nil, since = nil, start_id = nil, count = 1000, include_pending = false)
368
- data = {"count" => count.to_s, "include_pending" => include_pending ? "1" : "0"}
367
+ def transactions(account_id = nil, since = nil, count = 1000, offset = 0, include_pending = false)
368
+ data = {"count" => count.to_s, "offset" => offset.to_s, "include_pending" => include_pending ? "1" : "0"}
369
369
  data["since"] = ((since.is_a?(Date) ? since.to_s : since) unless since.nil?)
370
- data["start_id"] = start_id unless start_id.nil?
371
370
 
372
371
  query_api_object Transaction, (account_id.nil? ? "/rest/transactions?" : "/rest/accounts/#{account_id}/transactions?") + URI.encode_www_form(data), nil, "GET", "transactions"
373
372
  end
data/lib/models.rb CHANGED
@@ -195,14 +195,14 @@ module Figo
195
195
  # Request list of transactions of this account
196
196
  #
197
197
  # @param since [String, Date] this parameter can either be a transaction ID or a date
198
- # @param start_id [String] do only return transactions which were booked after the start transaction ID
199
198
  # @param count [Integer] limit the number of returned transactions
199
+ # @param offset [Integer] which offset into the result set should be used to determin the first transaction to return (useful in combination with count)
200
200
  # @param include_pending [Boolean] this flag indicates whether pending transactions should be included
201
201
  # in the response; pending transactions are always included as a complete set, regardless of
202
202
  # the `since` parameter
203
203
  # @return [Array] an array of `Transaction` objects, one for each transaction of this account
204
- def transactions(since = nil, start_id = nil, count = 1000, include_pending = false)
205
- @session.transactions @account_id, since, start_id, count, include_pending
204
+ def transactions(since = nil, count = 1000, offset = 0, include_pending = false)
205
+ @session.transactions @account_id, since, count, offset, include_pending
206
206
  end
207
207
 
208
208
  # Request specific transaction.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Richter