catarse_pagarme 1.5.2 → 1.5.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: cf98d419de56f7a1adfa64592a5d329dc303785d
4
- data.tar.gz: 4f0515130277c1bd3cfad9a597a104994e5037a6
3
+ metadata.gz: e4ba46bca94f1ff4f9461ea5ee5b99798e1e80f7
4
+ data.tar.gz: 082fc8e59856c856bf6f3dab97c710027f935fe9
5
5
  SHA512:
6
- metadata.gz: 231ba1581b502e9095993cac7285b9e56c17698330a8258c9da95beeb3ce35a15fca1acdb699610d0914912bb84c78abb90ee92b0aa87ee6f1eadccb849e5869
7
- data.tar.gz: 53d94d2c2bc7853e96a3e20887c0f999ad8165fec6a25a1fb6e85af516d3ae008ba8eac31ab6146382a4b863a3a1f74475910975b450ae50882f52e27155b3a8
6
+ metadata.gz: dc5e1858379c685bceb097b3737db4f8cbaa35ee202165f2f65aa416db7d157fbc3233101c936a61db78256317f9847b92204bcebd12b09d6fb5076fcf3826e2
7
+ data.tar.gz: 236f314db22fb50785f5fe70ff5ef01fc35785ae7112d1de196bd4233f20f6340fe8dc34f5b56e78181868b1f523d27016300949190abe8ba2ca428f2eb64ac2
@@ -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 = "1.5.2"
2
+ VERSION = "1.5.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.5.2
4
+ version: 1.5.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: 2015-01-21 00:00:00.000000000 Z
12
+ date: 2015-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails