From feee1e76bef324235eacd689df4cdfd9710bcc5c Mon Sep 17 00:00:00 2001 From: "jessica.gava" Date: Thu, 15 Dec 2022 11:18:57 -0300 Subject: [PATCH] Updated: PixSend example --- CHANGELOG.md | 4 ++++ examples/pix/pix/pix_send.rb | 6 +++++- lib/gerencianet/constants.rb | 4 ++-- lib/gerencianet/version.rb | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c113908..251d746 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 1.0.2 +- Updated: PixSend example + +# 1.0.2 + - Updated: dependencies # 1.0.0 diff --git a/examples/pix/pix/pix_send.rb b/examples/pix/pix/pix_send.rb index 5fafa46..4b064f9 100755 --- a/examples/pix/pix/pix_send.rb +++ b/examples/pix/pix/pix_send.rb @@ -12,6 +12,10 @@ sandbox: CREDENTIALS::SANDBOX } +params = { + idEnvio: " " +} + body = { valor: "0.01", pagador: { @@ -23,5 +27,5 @@ } gerencianet = Gerencianet.new(options) -puts gerencianet.pix_send(body: body) +puts gerencianet.pix_send(params: params, body: body) diff --git a/lib/gerencianet/constants.rb b/lib/gerencianet/constants.rb index d7c4292..d172c07 100755 --- a/lib/gerencianet/constants.rb +++ b/lib/gerencianet/constants.rb @@ -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", diff --git a/lib/gerencianet/version.rb b/lib/gerencianet/version.rb index b75d278..a18ff56 100755 --- a/lib/gerencianet/version.rb +++ b/lib/gerencianet/version.rb @@ -1,4 +1,4 @@ # :nodoc: module Gerencianet - VERSION = "1.0.2" + VERSION = "1.1.2" end