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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36180931b2458b20647c4502b35a3cc31bc6ab1b683e1162119bec53fb5e5010
4
- data.tar.gz: 5d6d7af417105158da1ce1f1d90fb0980c32974ca9d1057b77323d570bf0e09c
3
+ metadata.gz: 6656b90d972e274f6f52acd6cdbe33b3c29c68d8577b34f8d84f66a85f97eb2c
4
+ data.tar.gz: 4478667c645bae64e51bd0420cb78ef6afe9f574d0eebb8916de513cbba0bd7b
5
5
  SHA512:
6
- metadata.gz: 73090ceb182ed5569c12937540174a3bcd41e480bc92ffe4e88d0cc00f85d2796d76857d27b5099c3e5e54f7029a11d06433f6c57492a2fd042bc5eec118b439
7
- data.tar.gz: d8996fb89daba65b337dfca59cf783c043db7b1c79891f88e9442f262fc9fcefd2eafd5ec5924bbfdb87b52740b8f33af74d45b8432033528d1f21a94644b0c3
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["cobranca"]["id"] || hash["pagamentoId"],
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"])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro