Skip to content

Commit

Permalink
Updated: PixSend example
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica-gavaGN committed Dec 15, 2022
1 parent 2405328 commit feee1e7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 1.0.2

- Updated: PixSend example

# 1.0.2

- Updated: dependencies

# 1.0.0
Expand Down
6 changes: 5 additions & 1 deletion examples/pix/pix/pix_send.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
sandbox: CREDENTIALS::SANDBOX
}

params = {
idEnvio: " "
}

body = {
valor: "0.01",
pagador: {
Expand All @@ -23,5 +27,5 @@
}

gerencianet = Gerencianet.new(options)
puts gerencianet.pix_send(body: body)
puts gerencianet.pix_send(params: params, body: body)

4 changes: 2 additions & 2 deletions lib/gerencianet/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ module Constants
method: "get"
},
pix_send: {
route: "/v2/pix",
method: "post"
route: "/v2/gn/pix/:idEnvio",
method: "put"
},
pix_detail: {
route: "/v2/pix/:e2eId",
Expand Down
2 changes: 1 addition & 1 deletion lib/gerencianet/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# :nodoc:
module Gerencianet
VERSION = "1.0.2"
VERSION = "1.1.2"
end

0 comments on commit feee1e7

Please sign in to comment.