catarse_pagarme 2.0.3 → 2.1.0

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: bf159ee5a6327b88d3ade2e99d1bf845e95747e3
4
- data.tar.gz: 3aa1048431d23a01bc3216af455e3b517f8fba47
3
+ metadata.gz: 15918d28c417265f79c1ba2fae6cf2ca9b46b922
4
+ data.tar.gz: f48f6042076b45924c55a9ac598e478e86da759a
5
5
  SHA512:
6
- metadata.gz: 49fcaaf3b57127a7f470010554fa7a1cdaf4f2084aba6e67a13277a23836e93787735c2d6f9ce6277d33337f127278e41118f7b12134e4c639fe6d718c2cc584
7
- data.tar.gz: 6f63e5f1764837bc00a1ae292ccce970a0aac3f5a15229b3a23bd8fd29c99a3a144ed63dfa3164bbd8dc5c06be3b8c1a89a15ea82cda681fc7b98c3add26cfbe
6
+ metadata.gz: 5873c6649050e6000b6a32b68dbc361f8eb86f566a500e339d28af7f4d1cbaaca09a7a1f7c28d0ab6d6b9c12314c72398c17a81f628f0ec4b5e47ee30d015c61
7
+ data.tar.gz: 9a1c244b67a441f3722ce3ea6acf42c51c4315eae002fb61db29b56b115059e9179084710e327537a60130cb617cb5072c25147fdade186f8b79049ed745ad27
@@ -26,7 +26,9 @@ module CatarsePagarme
26
26
  payment_id: self.transaction.id,
27
27
  payment_method: 'Pagarme',
28
28
  slip_url: self.transaction.boleto_url,
29
- installments: (self.transaction.installments || 1)
29
+ installments: (self.transaction.installments || 1),
30
+ acquirer_name: self.transaction.acquirer_name,
31
+ acquirer_tid: self.transaction.tid
30
32
  }
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.0.3"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -11,6 +11,7 @@ describe CatarsePagarme::CreditCardTransaction do
11
11
  transaction.stub(:boleto_url).and_return(nil)
12
12
  transaction.stub(:installments).and_return(3)
13
13
  transaction.stub(:acquirer_name).and_return('stone')
14
+ transaction.stub(:tid).and_return('123123')
14
15
  transaction
15
16
  }
16
17
 
@@ -65,6 +66,14 @@ describe CatarsePagarme::CreditCardTransaction do
65
66
  it "should update contribution payment_choice" do
66
67
  expect(contribution.payment_choice).to eq(CatarsePagarme::PaymentType::CREDIT_CARD)
67
68
  end
69
+
70
+ it "should update contribution acquirer_name" do
71
+ expect(contribution.acquirer_name).to eq('stone')
72
+ end
73
+
74
+ it "should update contribution acquirer_tid" do
75
+ expect(contribution.acquirer_tid).to eq('123123')
76
+ end
68
77
  end
69
78
  end
70
79
 
@@ -10,6 +10,7 @@ describe CatarsePagarme::SlipTransaction do
10
10
  transaction.stub(:boleto_url).and_return('boleto url')
11
11
  transaction.stub(:installments).and_return(nil)
12
12
  transaction.stub(:acquirer_name).and_return('pagarme')
13
+ transaction.stub(:tid).and_return('123123')
13
14
  transaction
14
15
  }
15
16
  let(:valid_attributes) do
@@ -97,6 +98,14 @@ describe CatarsePagarme::SlipTransaction do
97
98
  it "should update contribution payment_choice" do
98
99
  expect(contribution.payment_choice).to eq(CatarsePagarme::PaymentType::SLIP)
99
100
  end
101
+
102
+ it "should update contribution acquirer_name" do
103
+ expect(contribution.acquirer_name).to eq('pagarme')
104
+ end
105
+
106
+ it "should update contribution acquirer_tid" do
107
+ expect(contribution.acquirer_tid).to eq('123123')
108
+ end
100
109
  end
101
110
  end
102
111
 
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: 2.0.3
4
+ version: 2.1.0
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-10-15 00:00:00.000000000 Z
12
+ date: 2014-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails