catarse_pagarme 2.4.1 → 2.4.2

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: ee4dc707bf4336ffd8e4b1fd9f21101299dd576c
4
- data.tar.gz: 767f387e062a1c4ebdcafee108fb29ff2decd0ed
3
+ metadata.gz: b95d35996e19a543468ea0515d70d555f5e47d3c
4
+ data.tar.gz: 39ad2fb520a832a509b9605795aba019215ee5ce
5
5
  SHA512:
6
- metadata.gz: a0031bd2ef70ac03f7f156eb0362ef7b926d8d0e147220dda7c7b6f81760201830f0e347ee4fcab61926b82e23db2263ca9af16d924e708b70b83a7a55bb1011
7
- data.tar.gz: e8f515de2dd656db36b026a335961a224180a1c1d47ccd2186d7cc122ede091857e01c79d8f00bcb12fcacafd44ac2830a83f0fed278a0e40bf0e473aa2af835
6
+ metadata.gz: dac0f105f5291fda4ae09442524a2d2bb61ab407629b57d0dc0e44e2c9a013bc91bbbdf7c1183a808a3c49f86e0c450c0667a6dbe6d2ec73947cc6061d76a97c
7
+ data.tar.gz: 064697b9651aae7cd6c07dcf2d772deb5e79a9e52939608e7b63645c6da4d1f1929fbe8b4763f972b629bdbbbd57b147e92a7e03ab1fa38a88239edaa81ee795
@@ -12,10 +12,10 @@ module CatarsePagarme::FeeCalculatorConcern
12
12
  else
13
13
  if self.transaction.card_brand == 'amex'
14
14
  self.contribution.installments > 1 ? tax_calc_for_installment(cielo_installment_amex_tax) : tax_calc(cielo_installment_not_amex_tax)
15
+ else
16
+ current_tax = self.transaction.card_brand == 'diners' ? installment_diners_tax : installment_not_diners_tax
17
+ self.contribution.installments > 1 ? tax_calc_for_installment(current_tax) : tax_calc(cielo_tax)
15
18
  end
16
-
17
- current_tax = self.transaction.card_brand == 'diners' ? installment_diners_tax : installment_not_diners_tax
18
- self.contribution.installments > 1 ? tax_calc_for_installment(current_tax) : tax_calc(cielo_tax)
19
19
  end
20
20
  end
21
21
  end
@@ -21,6 +21,8 @@ module CatarsePagarme
21
21
  self.cielo_tax = 0.038
22
22
  self.cielo_installment_diners_tax = 0.048
23
23
  self.cielo_installment_not_diners_tax = 0.0455
24
+ self.cielo_installment_amex_tax = 0.058
25
+ self.cielo_installment_not_amex_tax = 0.048
24
26
  end
25
27
  end
26
28
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.2"
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: 2.4.1
4
+ version: 2.4.2
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: 2015-01-08 00:00:00.000000000 Z
12
+ date: 2015-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails