catarse_pagarme 1.4.2 → 1.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cc9cc433a2c6555836b1c03bb17d5a1acced81c
4
- data.tar.gz: 1259542a443bfdcb3cb08bd7cecd0c403dc96696
3
+ metadata.gz: 247e7ccde85880c5177870379d45b650ab4b9a71
4
+ data.tar.gz: f97de2d44fc531af988cd997893be857dc594844
5
5
  SHA512:
6
- metadata.gz: 7777c573dcf6067bcab34559798e2eaddcfdf276f7e88d9a4dd9c0a959dde71d064178d9cd4029b47b8a478775a70ec6b4caf9996704659bc262aec33de05f9c
7
- data.tar.gz: fca3e4d2afddcdd57c9cbefcf7f27909ca570fc7cefc7ebe01f4cbcd77f7c41232ee3e52fe5f87e7a3483038bbde340ec299090400b6039348395411489d4083
6
+ metadata.gz: 21e68ecb516a22d8c144c8a459c05f9fdf536334143584e4555adc6d3202c96fc4407c723302b80f220ed0d644420e0ca2254ab8747817d6aa38b0fe7595e142
7
+ data.tar.gz: c4f9b6bb5e3d9b20586a48412c6864d94d9981c185292b5d19bf990b9edf39e7a1e9f86b2b20bb6fe6f036ef0102c94976dcd003b0f780d4d30d5f0f0cd07c11
@@ -13,6 +13,7 @@ module CatarsePagarme
13
13
  contribution.try(:invalid_refund)
14
14
  else
15
15
  delegator.change_status_by_transaction(params[:current_status])
16
+ delefator.fill_acquirer_data
16
17
  end
17
18
 
18
19
  return render nothing: true, status: 200
@@ -20,6 +20,15 @@ module CatarsePagarme
20
20
  end
21
21
  end
22
22
 
23
+ def fill_acquirer_data
24
+ if !contribution.acquirer_name.present? || !contribution.acquirer_tid.present?
25
+ contribution.update_attributes({
26
+ acquirer_name: transaction.acquirer_name,
27
+ acquirer_tid: transaction.acquirer_tid
28
+ })
29
+ end
30
+ end
31
+
23
32
  def refund
24
33
  if contribution.is_credit_card?
25
34
  transaction.refund
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-04 00:00:00.000000000 Z
12
+ date: 2014-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails