Skip to content

Commit

Permalink
Point - Code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
meliguilhermefernandes committed Feb 22, 2024
1 parent 9519031 commit 5d71839
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 66 deletions.
4 changes: 2 additions & 2 deletions examples/apis/point/cancel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ func main() {
}

client := point.NewClient(cfg)
can, err := client.Cancel(context.Background(), "{{DEVICE_ID}}", "{{PAYMENT_INTENT_ID}}")
canceledResponse, err := client.Cancel(context.Background(), "{{DEVICE_ID}}", "{{PAYMENT_INTENT_ID}}")
if err != nil {
fmt.Println(err)
return
}

fmt.Println(can)
fmt.Println(canceledResponse)
}
4 changes: 2 additions & 2 deletions examples/apis/point/create/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ func main() {
}

client := point.NewClient(cfg)
ppi, err := client.Create(context.Background(), "{{DEVICE_ID}}", req)
paymentIntent, err := client.Create(context.Background(), "{{DEVICE_ID}}", req)
if err != nil {
fmt.Println(err)
return
}

fmt.Println(ppi)
fmt.Println(paymentIntent)
}
4 changes: 2 additions & 2 deletions examples/apis/point/getdevices/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ func main() {
}

client := point.NewClient(cfg)
dev, err := client.GetDevices(context.Background())
devices, err := client.GetDevices(context.Background())
if err != nil {
fmt.Println(err)
return
}

fmt.Println(dev)
fmt.Println(devices)
}
28 changes: 0 additions & 28 deletions examples/apis/point/getintentstatus/main.go

This file was deleted.

30 changes: 0 additions & 30 deletions examples/apis/point/listintents/main.go

This file was deleted.

4 changes: 2 additions & 2 deletions examples/apis/point/search/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ func main() {
}

client := point.NewClient(cfg)
ppi, err := client.Get(context.Background(), "{{PAYMENT_INTENT_ID}}")
paymentIntent, err := client.Get(context.Background(), "{{PAYMENT_INTENT_ID}}")
if err != nil {
fmt.Println(err)
return
}

fmt.Println(ppi)
fmt.Println(paymentIntent)
}

0 comments on commit 5d71839

Please sign in to comment.