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.
- checksums.yaml +8 -8
- data/figo.gemspec +1 -1
- data/lib/figo.rb +3 -4
- data/lib/models.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTYzMGFjNjA2NTg2MjdiNzJlZjZlMDZkYzQ3OWQyMGFhZDE3ZmY4Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2FkY2E0OWRmOTFiNWJiMjk3OWI5OWZhMzFhMTRmNWJkM2EyYmY1Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzM1Y2U3NThjODc3ZDcwOGU3YzRlNWQxNjk2MmY4YThmYzBmNGE4ZmMzY2M0
|
10
|
+
YjI2ZTNlODM1MzAwZWI0NDcyNDBjNWJiMzUwNGY3YjU2NDg2YTBkOGQwODRl
|
11
|
+
Mjg0MDE1MjczNTQxY2E5MzViMTkxYzhkMDdhYzk5ODhiOTNlMmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjYzZmRkOGMwMmZhNzliYTM2MjdmNWVjNzhmYzc2YjZkNjBiZjBlNzRlOGVk
|
14
|
+
MTdkZjMxYWQ1NWRiNWIzOTFiZDQwMDhmZTNiZGRjNmIwMjU0MjI5N2U2NWI4
|
15
|
+
ZmViZjhmYzViOWE5YjkyODEzNzdiMjY1YmVlNTQ4OTIzNWIzYzM=
|
data/figo.gemspec
CHANGED
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,
|
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,
|
205
|
-
@session.transactions @account_id, since,
|
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.
|