bitpagos 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitpagos/client.rb +9 -1
- data/lib/bitpagos/version.rb +1 -1
- metadata +1 -2
- data/lib/bitpagos/errors/invalid_query.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7169a4a6edfeba0a437acea15d2ab06828e0442
|
4
|
+
data.tar.gz: f9125372ab55f2f2e0fc32425ba20b50323d354a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126f3dceab89b0a95141733b1a5f8d476aa8abf892cbc2180d6341376f3b2c3e29d75d21d301f04887b41176fb76c93e5a57265df3253eaf3153a052f3c69610
|
7
|
+
data.tar.gz: 5d494319701a37422dd55964d3ad75c4702b5c16f494e511360d4974d70522be172cdac5f0b0cb8eecfeaf4e731c3de97ed020f4b085c31a0bad868e6b60c60b
|
data/lib/bitpagos/client.rb
CHANGED
@@ -42,11 +42,19 @@ module Bitpagos
|
|
42
42
|
retrieve_transactions(PARTIALLY_PAID)
|
43
43
|
end
|
44
44
|
|
45
|
+
# Returns the total count of transactions in all states.
|
46
|
+
#
|
47
|
+
# @return [Integer] Total transaction count
|
48
|
+
def transaction_count
|
49
|
+
all_transactions["meta"]["total_count"]
|
50
|
+
end
|
51
|
+
|
45
52
|
private
|
46
53
|
|
47
54
|
def retrieve_transactions(query = nil, transaction_id = nil)
|
48
55
|
url = "#{API_BASE}/transaction/#{transaction_id}"
|
49
|
-
RestClient.get(url, headers)
|
56
|
+
response = RestClient.get(url, headers)
|
57
|
+
JSON.parse(response)
|
50
58
|
end
|
51
59
|
end
|
52
60
|
end
|
data/lib/bitpagos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitpagos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauro Otonelli
|
@@ -105,7 +105,6 @@ files:
|
|
105
105
|
- lib/bitpagos/client.rb
|
106
106
|
- lib/bitpagos/errors/generic_error.rb
|
107
107
|
- lib/bitpagos/errors/invalid_api_key.rb
|
108
|
-
- lib/bitpagos/errors/invalid_query.rb
|
109
108
|
- lib/bitpagos/version.rb
|
110
109
|
homepage: http://github.com/ombulabs/bitpagos
|
111
110
|
licenses:
|