From 736c1bb6d2f5f53b43b6427a383f1d6b0ba605d8 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:40:50 -0500 Subject: [PATCH 1/2] :herb: Fix README.md formatting --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 87455fb..b99c829 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ For example, consider the `client.Payments.List` endpoint usage below: response, err := client.Payments.List( context.TODO(), &square.PaymentsListRequest{ - Total: square.Int64(100), + Total: square.Int64(100), }, ) ``` @@ -78,7 +78,7 @@ List endpoints are paginated. The SDK provides an iterator so that you can simpl page, err := client.Payments.List( context.TODO(), &square.PaymentsListRequest{ - Total: square.Int64(100), + Total: square.Int64(100), }, ) if err != nil { @@ -124,7 +124,7 @@ defer cancel() response, err := client.Payments.List( ctx, &square.PaymentsListRequest{ - Total: square.Int64(100), + Total: square.Int64(100), }, ) ``` @@ -217,7 +217,7 @@ request (shown above), or for an individual request like so: response, err := client.Payments.List( ctx, &square.PaymentsListRequest{ - Total: square.Int64(100), + Total: square.Int64(100), }, option.WithToken(""), ) @@ -293,7 +293,7 @@ This can be done for an individual request, too: response, err := client.Payments.List( context.TODO(), &square.PaymentsListRequest{ - Total: square.Int64(100), + Total: square.Int64(100), }, option.WithMaxAttempts(1), ) From 319812acc75a330996313093c402029245f0584b Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:07:47 -0500 Subject: [PATCH 2/2] Update import path --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b99c829..1d9f4fa 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Square Go Library [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern) -[![go shield](https://img.shields.io/badge/go-docs-blue)](https://pkg.go.dev/github.com/fern-demo/square-go-sdk) +[![go shield](https://img.shields.io/badge/go-docs-blue)](https://pkg.go.dev/github.com/square/square-go-sdk) The Square Go library provides convenient access to the Square API from Go. @@ -14,16 +14,16 @@ This module requires Go version >= 1.18. Run the following command to use the Square Go library in your module: ```sh -go get github.com/fern-demo/square-go-sdk +go get github.com/square/square-go-sdk ``` ## Usage ```go import ( - "github.com/fern-demo/square-go-sdk" - squareclient "github.com/fern-demo/square-go-sdk/client" - "github.com/fern-demo/square-go-sdk/option" + "github.com/square/square-go-sdk" + squareclient "github.com/square/square-go-sdk/client" + "github.com/square/square-go-sdk/option" ) client := squareclient.NewClient(