catarse_pagarme 2.10.5 → 2.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/catarse_pagarme/bank_account_concern.rb +8 -8
- data/lib/catarse_pagarme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48ba445850d1c02b29c64df8d6f7173c1414dcb4
|
4
|
+
data.tar.gz: 6613c4cef2ca884c12449a4bcca460772d5ca947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b5d7aaca949261724e2c824c2997bfd1f7440276bd23f7ecef8a087b6d9c0584bc656f4aaf6e409d83390c4b4aff410b08f2afce85137f72b2427e6f475c16
|
7
|
+
data.tar.gz: 1a346082e8d3f90e8121404e4477af8dd7c2272d35433e70aff10cd87946acce18420c7fec6069c7690a64c2066064ab184e1220fdcdccd540b525a6dbba4080
|
data/Gemfile.lock
CHANGED
@@ -29,15 +29,15 @@ module CatarsePagarme::BankAccountConcern
|
|
29
29
|
|
30
30
|
def attributes_parsed_to_pagarme
|
31
31
|
pagarme_params = {
|
32
|
-
bank_code:
|
33
|
-
agencia:
|
34
|
-
conta:
|
35
|
-
conta_dv:
|
36
|
-
legal_name:
|
37
|
-
document_number:
|
38
|
-
type:
|
32
|
+
bank_code: bank.try(:code),
|
33
|
+
agencia: agency,
|
34
|
+
conta: account,
|
35
|
+
conta_dv: account_digit,
|
36
|
+
legal_name: user.name.try(:[], 0..29),
|
37
|
+
document_number: user.cpf,
|
38
|
+
type: account_type
|
39
39
|
}
|
40
|
-
pagarme_params[:agencia_dv] =
|
40
|
+
pagarme_params[:agencia_dv] = agency_digit unless agency_digit.blank?
|
41
41
|
pagarme_params
|
42
42
|
end
|
43
43
|
|