bs2_api 1.4.1 → 1.4.2

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: 9e4d7f6e459c54a97638a2dbaab2b78116db4eef72f4f1249901d35193061a4a
4
- data.tar.gz: a246e42a43100320dea1df879c059d4b91db38a5987d6a3a00d7dce9522f4590
3
+ metadata.gz: 9bd1ef702376f17fa811965d2f0d46551dcbfba7743ed8c35557c81c719d07db
4
+ data.tar.gz: deed5c8e1e0df62bade820bafa7adb7603d3a377ffb1b9ba5319e97ffe056bf4
5
5
  SHA512:
6
- metadata.gz: 6fc63cb91a06046febcb71fc20ee3e8344cd4c28b676e5453e228f080de4b518de89d3f76870f7b8d5bcfba5e27d02ce992ea0b2f8e9dd94215bd1a86650832c
7
- data.tar.gz: 636f5d7ccb751c66fd5ba9a2cbcd06f545f62d0bac02f8b302c4998128c34c09e3c1d811382b7f1dffb156eca69781b1eec38b8c731cc09a6df8782f36405fde
6
+ metadata.gz: d100b1a6e5336ae4f56cecc5c3bd01b2e91b97238260c4ad9d6138f1335c7ddf3c09f963ad7bb76f9696fc3693ff342e2a6a7b2b6c8759af3add3286569f98b4
7
+ data.tar.gz: 7f9d349b5416f0230f1e5cd416f0f18fb0a57c4aeac52e8963f8f504e5feafa1ba81ffc8a6a8cf7e3556018a70bfc7b3adada7aba97c4f53d56b1a254fa7d1de
@@ -14,4 +14,4 @@ class Configuration
14
14
 
15
15
  true
16
16
  end
17
- end
17
+ end
@@ -19,7 +19,6 @@ module Bs2Api
19
19
 
20
20
  def call
21
21
  url = "#{Bs2Api.endpoint}/pix/direto/forintegration/v1/recebimentos/#{@end_to_end_id}/recebimento"
22
-
23
22
  access_token = Bs2Api::Request::Auth.token(
24
23
  client_id: @client_id,
25
24
  client_secret: @client_secret
@@ -29,7 +29,6 @@ module Bs2Api
29
29
  client_secret: @client_secret
30
30
  )
31
31
 
32
- # TODO: is PUT the right method?
33
32
  response = HTTParty.put(
34
33
  url,
35
34
  http_proxyaddr: @proxy&.host,
@@ -42,7 +41,7 @@ module Bs2Api
42
41
  'Authorization' => "Bearer #{access_token}",
43
42
  },
44
43
  body: {
45
- valor: value
44
+ valor: @value
46
45
  }.to_json
47
46
  )
48
47
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = '1.4.1'
4
+ VERSION = '1.4.2'
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro