lib/bs2_api/entities/payment.rb in bs2_api-1.1.7 vs lib/bs2_api/entities/payment.rb in bs2_api-1.2.0

- old
+ new

@@ -25,14 +25,14 @@ def self.from_response(hash_payload) hash = ActiveSupport::HashWithIndifferentAccess.new(hash_payload) Bs2Api::Entities::Payment.new( - payment_id: hash["pagamentoId"] || hash["cobranca"]["id"], + payment_id: hash["cobranca"]["id"] || hash["pagamentoId"], end_to_end_id: hash["endToEndId"], receiver: Bs2Api::Entities::Bank.from_response(hash["recebedor"]), payer: Bs2Api::Entities::Bank.from_response(hash["pagador"]) ) end end end -end \ No newline at end of file +end