catarse_pagarme 1.1.0 → 1.2.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: 37b5997612c9b0aa8f466a15d4b3363e04e4aae1
4
- data.tar.gz: d07591832c70c9dc332bea5858e42c327032d614
3
+ metadata.gz: a3d683d3c0f7869aac0c860485ef1c2bda1c785d
4
+ data.tar.gz: af91496a515d7ecaf8cc9a83149a4da7a4e7b9bc
5
5
  SHA512:
6
- metadata.gz: d35abb2d31477f1f729e2c1a843652e77d26a8a030bdc3b08fd7e8e987a8717f17f69ed21221ede28a4eae736d406987800f4767fd3603624e139282bd75793c
7
- data.tar.gz: 3d8ed5835649bc23f5cf3a9b59eda9061ab035dafeb50b28569872fb5ae185a529ed82f660cf4ac15366bae13368ceb888e4e319fb04c219502e41b814095ee1
6
+ metadata.gz: 7fb737eaad03d3a7dfbbbac08ce0cd088077395b9a3b06d3b5077de53fba8d92df58c6c809b01767e9d67bb112ba2cd5129b741d088e54356966e261abcabd91
7
+ data.tar.gz: 97e2a5460ad4f95286c29e4843815921f9d61412b1df5e8b2a932382bfcfc6390c693a1d6021ab6a302d4221ed8173b7959275bdbd73f4fe354ffd5ef8963a5a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (1.0.0)
4
+ catarse_pagarme (1.1.0)
5
5
  pagarme (~> 1.9.5)
6
6
  rails (~> 4.0)
7
7
 
@@ -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 = "1.1.0"
2
+ VERSION = "1.2.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: 1.1.0
4
+ version: 1.2.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-10 00:00:00.000000000 Z
12
+ date: 2014-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails