@@ -27,7 +27,7 @@ func newCustomers(sdkConfig sdkConfiguration) *Customers {
2727
2828// List - Retrieve a list of customers
2929// Retrieve a list of customers for the authenticated workspace.
30- func (s * Customers ) List (ctx context.Context , opts ... operations.Option ) ([]operations.ResponseBody , error ) {
30+ func (s * Customers ) List (ctx context.Context , request operations. GetCustomersRequest , opts ... operations.Option ) ([]operations.ResponseBody , error ) {
3131 hookCtx := hooks.HookContext {
3232 Context : ctx ,
3333 OperationID : "getCustomers" ,
@@ -76,6 +76,10 @@ func (s *Customers) List(ctx context.Context, opts ...operations.Option) ([]oper
7676 req .Header .Set ("Accept" , "application/json" )
7777 req .Header .Set ("User-Agent" , s .sdkConfiguration .UserAgent )
7878
79+ if err := utils .PopulateQueryParams (ctx , req , request , nil ); err != nil {
80+ return nil , fmt .Errorf ("error populating query params: %w" , err )
81+ }
82+
7983 if err := utils .PopulateSecurity (ctx , req , s .sdkConfiguration .Security ); err != nil {
8084 return nil , err
8185 }
@@ -840,6 +844,10 @@ func (s *Customers) Get(ctx context.Context, request operations.GetCustomerReque
840844 req .Header .Set ("Accept" , "application/json" )
841845 req .Header .Set ("User-Agent" , s .sdkConfiguration .UserAgent )
842846
847+ if err := utils .PopulateQueryParams (ctx , req , request , nil ); err != nil {
848+ return nil , fmt .Errorf ("error populating query params: %w" , err )
849+ }
850+
843851 if err := utils .PopulateSecurity (ctx , req , s .sdkConfiguration .Security ); err != nil {
844852 return nil , err
845853 }
@@ -1170,19 +1178,14 @@ func (s *Customers) Get(ctx context.Context, request operations.GetCustomerReque
11701178
11711179// Update a customer
11721180// Update a customer for the authenticated workspace.
1173- func (s * Customers ) Update (ctx context.Context , id string , requestBody * operations.UpdateCustomerRequestBody , opts ... operations.Option ) (* operations.UpdateCustomerResponseBody , error ) {
1181+ func (s * Customers ) Update (ctx context.Context , request operations.UpdateCustomerRequest , opts ... operations.Option ) (* operations.UpdateCustomerResponseBody , error ) {
11741182 hookCtx := hooks.HookContext {
11751183 Context : ctx ,
11761184 OperationID : "updateCustomer" ,
11771185 OAuth2Scopes : []string {},
11781186 SecuritySource : s .sdkConfiguration .Security ,
11791187 }
11801188
1181- request := operations.UpdateCustomerRequest {
1182- ID : id ,
1183- RequestBody : requestBody ,
1184- }
1185-
11861189 o := operations.Options {}
11871190 supportedOptions := []string {
11881191 operations .SupportedOptionRetries ,
@@ -1230,6 +1233,10 @@ func (s *Customers) Update(ctx context.Context, id string, requestBody *operatio
12301233 req .Header .Set ("User-Agent" , s .sdkConfiguration .UserAgent )
12311234 req .Header .Set ("Content-Type" , reqContentType )
12321235
1236+ if err := utils .PopulateQueryParams (ctx , req , request , nil ); err != nil {
1237+ return nil , fmt .Errorf ("error populating query params: %w" , err )
1238+ }
1239+
12331240 if err := utils .PopulateSecurity (ctx , req , s .sdkConfiguration .Security ); err != nil {
12341241 return nil , err
12351242 }
0 commit comments