catarse_pagarme 2.14.6 → 2.14.7

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
  SHA256:
3
- metadata.gz: aa4938c90efaaf6e0c11bbb7b176c03d393717e7a69cc1dffc3fb86b38c9a1cd
4
- data.tar.gz: 5041f51d186def056427f9b7954da994833e84760e367f0effcecd59ecf921c5
3
+ metadata.gz: 62b17aa42cfc086d08abc40ae926b1666493ae35600b79928d6fc8228e1b327e
4
+ data.tar.gz: bcc764e79f071249fd06e49d00c7af6c3599d54a61d8a561aea1249d96098890
5
5
  SHA512:
6
- metadata.gz: 549c1ef2a654f21dc63473388c9fb4d406de4df1c4d75ed6dabe1003091ddbdeb494769ca89a1ccd88d6272b810206c1f09635e74d3998b66198483dd395ec71
7
- data.tar.gz: 0e44bf29138b74dd767f5c192e1433981618a19c592fb63ce3b3e1010602cc56ab472f19d24e836ba2b61fdc962d96c450d15bd89e5dc3c5abc20c5d97a28e93
6
+ metadata.gz: 33542924bf56400602f63ccd81b7eee5d8f626ab20c9c6f947f5eda19b3c8f269eb2f93b770b1de6420d214067d153f335a54e8e9a96d200c78e393dbe414794
7
+ data.tar.gz: '00296e3fbef2a605225afb83546aefa0e3329a5f888d45c92b047461389a56aece0462de94762149e74c02783aebcdc73ae851c1ba5832eb6056f883806e66a5'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.14.6)
4
+ catarse_pagarme (2.14.7)
5
5
  countries (= 3.0.0)
6
6
  konduto-ruby (= 2.1.0)
7
7
  pagarme (= 2.1.4)
@@ -40,7 +40,11 @@ module CatarsePagarme
40
40
  customer: {
41
41
  email: payment.user.email,
42
42
  name: payment.user.name,
43
- document_number: document_number,
43
+ type: payment.user.account_type == 'pf' ? 'individual' : 'corporation'
44
+ documents: [{
45
+ type: payment.user.account_type == 'pf' ? 'cpf' : 'cnpj',
46
+ number: document_number
47
+ }],
44
48
  },
45
49
  metadata: metadata_attributes
46
50
  }
@@ -53,6 +57,5 @@ module CatarsePagarme
53
57
  def international?
54
58
  contribution.international?
55
59
  end
56
-
57
60
  end
58
61
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.14.6"
2
+ VERSION = "2.14.7"
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.14.6
4
+ version: 2.14.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva