diff --git a/CHANGELOG.md b/CHANGELOG.md index 20f6a29..12d5884 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Next Release -- Add beta `ListChildUsers` and `GetNextChildUserPage` functions to `User` service +- Add `ListChildUsers` and `GetNextChildUserPage` functions to `User` service ## v4.0.0 (2023-12-06) diff --git a/tests/cassettes/TestUserAllChildUsers.yaml b/tests/cassettes/TestUserAllChildUsers.yaml index 47acbd8..5a952d1 100644 --- a/tests/cassettes/TestUserAllChildUsers.yaml +++ b/tests/cassettes/TestUserAllChildUsers.yaml @@ -11,7 +11,7 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/beta/users/children + url: https://api.easypost.com/v2/users/children method: GET response: body: '{"children":[{"created_at":"2023-09-20T18:01:26Z","id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test @@ -31,8 +31,6 @@ interactions: - strict-origin-when-cross-origin Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload - Vary: - - Origin X-Backend: - easypost X-Content-Type-Options: @@ -40,20 +38,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 3dfb1daf657a0736f41c042e0014d481 + - 3c78c4076597040af3f7dc71000c4afb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb1nuq 2c48984abf + - extlb2nuq 003ad9bca0 X-Runtime: - - "0.151736" + - "0.040478" X-Version-Label: - - easypost-202312131821-3665db39b5-master + - easypost-202401041812-437974c716-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserGetNextChildUserPage.yaml b/tests/cassettes/TestUserGetNextChildUserPage.yaml index 37e04f2..55a2bb0 100644 --- a/tests/cassettes/TestUserGetNextChildUserPage.yaml +++ b/tests/cassettes/TestUserGetNextChildUserPage.yaml @@ -11,7 +11,7 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/beta/users/children + url: https://api.easypost.com/v2/users/children method: GET response: body: '{"children":[{"created_at":"2023-09-20T18:01:26Z","id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test @@ -31,8 +31,6 @@ interactions: - strict-origin-when-cross-origin Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload - Vary: - - Origin X-Backend: - easypost X-Content-Type-Options: @@ -40,20 +38,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 3a880b16657a072ff440c60f0015d5e8 + - 3c78c4076597040bf3f7dc71000c4b20 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef + - intlb2nuq 2c48984abf - extlb2nuq 003ad9bca0 X-Runtime: - - "0.067030" + - "0.043493" X-Version-Label: - - easypost-202312131821-3665db39b5-master + - easypost-202401041812-437974c716-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/user.go b/user.go index 3a59513..399f9ee 100644 --- a/user.go +++ b/user.go @@ -124,7 +124,7 @@ func (c *Client) ListChildUsers(opts *ListOptions) (out *ListChildUsersResult, e // ListChildUsersWithContext performs the same operation as ListChildUsers, but allows // specifying a context that can interrupt the request. func (c *Client) ListChildUsersWithContext(ctx context.Context, opts *ListOptions) (out *ListChildUsersResult, err error) { - err = c.do(ctx, http.MethodGet, "/beta/users/children", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "users/children", c.convertOptsToURLValues(opts), &out) return }