From ce495ea0924c2eb9835ffe9c1718826aa9c5a498 Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Sat, 5 Aug 2023 13:34:40 +0300 Subject: [PATCH] Add refund transaction API --- client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 35b5a5c..778afa4 100644 --- a/client.go +++ b/client.go @@ -6,7 +6,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" ) @@ -102,7 +101,7 @@ func (client *Client) do(req *http.Request) (*Response, error) { return resp, err } - _, err = io.Copy(ioutil.Discard, httpResponse.Body) + _, err = io.Copy(io.Discard, httpResponse.Body) if err != nil { return resp, err } @@ -119,7 +118,7 @@ func (client *Client) newResponse(httpResponse *http.Response) (*Response, error resp := new(Response) resp.HTTPResponse = httpResponse - buf, err := ioutil.ReadAll(resp.HTTPResponse.Body) + buf, err := io.ReadAll(resp.HTTPResponse.Body) if err != nil { return nil, err }