catarse_pagarme 2.10.13 → 2.10.14

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: cde90bc926b2af16ff99573573b70f93b6b65ca5
4
- data.tar.gz: 1c0c8c784a0e71caf06129284fe578318650f021
3
+ metadata.gz: 7e470e7cc867aedcc2aaf3940b1fa5f23f0f1123
4
+ data.tar.gz: 5315c5f27cc3f856ddc3e3a9e77b28460ead587d
5
5
  SHA512:
6
- metadata.gz: e9004e886bb754d6c852f5e44508036d7bba1946ceb7c3ed62114f730e5e072c53880f4cfe840f4ba26e05b1bc57067de71719093acb6c1e2e0aa288a6c46f2f
7
- data.tar.gz: 79d25538a1b19dbf01d94514a474830fb7b65bbd9ba8a1342049cd9d56d6de9429ffd93f6100850bb0af87dedf2eb510ea6b0495526ec2af79481f92a74dd9cf
6
+ metadata.gz: a4613aab2d3eab8be7d2975458bb0f8eb83798a75d86d5588c2b87b6e0d627e4d8100a9086fcb5cb47825fdb3ef9f1501d994ae6f76aacf92450f2ee89e2ebbf
7
+ data.tar.gz: e3543071634faf9c45722e3fa5f1a3ee744a353dd31b34c5accb8f4ec5881b8876684732182761de4afde472e71b48ecc4bc4043e318aa2abd05d6d4fdc9aa13
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.10.13)
4
+ catarse_pagarme (2.10.14)
5
5
  pagarme (= 2.1.4)
6
6
  rails (~> 4.0)
7
7
  sentry-raven
@@ -39,10 +39,20 @@ module CatarsePagarme
39
39
  protocol: CatarsePagarme.configuration.protocol),
40
40
  customer: {
41
41
  email: payment.user.email,
42
- name: payment.user.name
42
+ name: payment.user.name,
43
+ document_number: document_number,
43
44
  },
44
45
  metadata: metadata_attributes
45
46
  }
46
47
  end
48
+
49
+ def document_number
50
+ international? ? '00000000000' : contribution.user.cpf.gsub(/[-.\/_\s]/,'')
51
+ end
52
+
53
+ def international?
54
+ contribution.international?
55
+ end
56
+
47
57
  end
48
58
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.10.13"
2
+ VERSION = "2.10.14"
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.10.13
4
+ version: 2.10.14
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: 2017-08-11 00:00:00.000000000 Z
12
+ date: 2017-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails