From 4c77c8d40f24d117da1ea4935fa429d68b3c02b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:11:19 +0000 Subject: [PATCH] fix: rename pay groups endpoint (#192) --- .stats.yml | 2 +- api.md | 2 +- payrollpaygroup.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 354f1e5..5eb9675 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-f1001da4ad3c1503330eebc1e61319a1a5db5e2da9fec98bc8682cb0967894d2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-4e739f38d47eaea407bcc974cd10c25aad8062a965ebb37dd37014135744cbb9.yml diff --git a/api.md b/api.md index 8d26493..8e07c78 100644 --- a/api.md +++ b/api.md @@ -317,5 +317,5 @@ Response Types: Methods: -- client.Payroll.PayGroups.Get(ctx context.Context, payGroupID string) (finchgo.PayrollPayGroupGetResponse, error) +- client.Payroll.PayGroups.Get(ctx context.Context, payGroupID string) (finchgo.PayrollPayGroupGetResponse, error) - client.Payroll.PayGroups.List(ctx context.Context, query finchgo.PayrollPayGroupListParams) (pagination.SinglePage[finchgo.PayrollPayGroupListResponse], error) diff --git a/payrollpaygroup.go b/payrollpaygroup.go index d45f219..62ba21e 100644 --- a/payrollpaygroup.go +++ b/payrollpaygroup.go @@ -43,7 +43,7 @@ func (r *PayrollPayGroupService) Get(ctx context.Context, payGroupID string, opt err = errors.New("missing required pay_group_id parameter") return } - path := fmt.Sprintf("employer/pay-group/%s", payGroupID) + path := fmt.Sprintf("employer/pay-groups/%s", payGroupID) err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...) return }