braspag-rest 0.2.2 → 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: ab50490753da628f3caa4b5e43721eb3658415c7
4
- data.tar.gz: d0193f523710cb3e1f3810957db05e2c09063735
3
+ metadata.gz: a0dc295a8186727cb241f4cca8f10ff00762969c
4
+ data.tar.gz: 464e1e449e2c0a59b6678f70e13522dadf04e4dd
5
5
  SHA512:
6
- metadata.gz: 1b2b2ae5539502b498c790a269e151c5dcedcce59e0127aa489cb073f9c42ba1113a3ea018191ef037c15994ab0a6b2a2faee0cdec2fb9fbaa596819fb4ee535
7
- data.tar.gz: b091d8d92eca0c14a1a0623b435bb3c2fa3db23b62ac2ed17a5cc203f073f396c2f1165134e81f03b7d895da9cc9315be118d610d6c31e7a5496edf57ecb8ba2
6
+ metadata.gz: 1634d01cae6efd613fbe97d698290033c9c98ab996872fd5e47dd835880f51eb6334362d2a1a5dbb9616f7c65fba08efff429977d66888b58eb5c4b6ced91fc6
7
+ data.tar.gz: 2fe619cfc67c4abf95dc12089059bcad932bc5416e88230554fe69c45bfc4fc5101feff88eb14489f9f173fe83b26ddf12ec46ce512f10e991515062f8a977b2
@@ -54,6 +54,14 @@ module BraspagRest
54
54
  payment.captured?
55
55
  end
56
56
 
57
+ def reload
58
+ if !request_id.nil? && payment && !payment.id.nil?
59
+ self.class.find(request_id, payment.id)
60
+ else
61
+ self
62
+ end
63
+ end
64
+
57
65
  private
58
66
 
59
67
  def initialize_errors(errors)
@@ -1,3 +1,3 @@
1
1
  module BraspagRest
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braspag-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinda Dev Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client