Skip to content

Commit feee1e7

Browse files
Updated: PixSend example
1 parent 2405328 commit feee1e7

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 1.0.2
22

3+
- Updated: PixSend example
4+
5+
# 1.0.2
6+
37
- Updated: dependencies
48

59
# 1.0.0

examples/pix/pix/pix_send.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
sandbox: CREDENTIALS::SANDBOX
1313
}
1414

15+
params = {
16+
idEnvio: " "
17+
}
18+
1519
body = {
1620
valor: "0.01",
1721
pagador: {
@@ -23,5 +27,5 @@
2327
}
2428

2529
gerencianet = Gerencianet.new(options)
26-
puts gerencianet.pix_send(body: body)
30+
puts gerencianet.pix_send(params: params, body: body)
2731

lib/gerencianet/constants.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ module Constants
217217
method: "get"
218218
},
219219
pix_send: {
220-
route: "/v2/pix",
221-
method: "post"
220+
route: "/v2/gn/pix/:idEnvio",
221+
method: "put"
222222
},
223223
pix_detail: {
224224
route: "/v2/pix/:e2eId",

lib/gerencianet/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# :nodoc:
22
module Gerencianet
3-
VERSION = "1.0.2"
3+
VERSION = "1.1.2"
44
end

0 commit comments

Comments
 (0)