bs2_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bs2_api/entities/payment.rb +1 -1
- data/lib/bs2_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6656b90d972e274f6f52acd6cdbe33b3c29c68d8577b34f8d84f66a85f97eb2c
|
4
|
+
data.tar.gz: 4478667c645bae64e51bd0420cb78ef6afe9f574d0eebb8916de513cbba0bd7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df1b5703d739b8325e8e7966c85bd1f4175ff7908575c2eb3259e853e093edbf741ff5687c4f90d5647ebb112eca6378d56020ac7ac566aacbc58b6ba3c3579
|
7
|
+
data.tar.gz: 24ab9a80179f3bd3ff47037329c584a741a8038b11649865a2709fcddac7f36881ada91a0ed05cf3d49764baee2a50e061fab3006b4867b78a5293681d876f69
|
@@ -27,7 +27,7 @@ module Bs2Api
|
|
27
27
|
hash = ActiveSupport::HashWithIndifferentAccess.new(hash_payload)
|
28
28
|
|
29
29
|
Bs2Api::Entities::Payment.new(
|
30
|
-
payment_id: hash["
|
30
|
+
payment_id: hash["pagamentoId"] || hash["cobranca"]["id"],
|
31
31
|
end_to_end_id: hash["endToEndId"],
|
32
32
|
receiver: Bs2Api::Entities::Bank.from_response(hash["recebedor"]),
|
33
33
|
payer: Bs2Api::Entities::Bank.from_response(hash["pagador"])
|
data/lib/bs2_api/version.rb
CHANGED